Notes on building software.
A personal blog of technical articles about software development.
Piping Data into Claude Code
Feed files, command output, and logs straight into Claude Code by piping them into claude -p.
Choosing Output Formats: text, json, stream-json
Control how claude -p prints results with --output-format text, json, or stream-json for scripts and pipelines.
Appending to the System Prompt
Use --append-system-prompt to add standing instructions on top of Claude Code's built-in system prompt.
Running Claude Code in CI Pipelines
Combine headless mode and JSON output to run Claude Code as a step in your continuous integration pipeline.
Useful CLI Flags You Might Have Missed
A roundup of Claude Code CLI flags that quietly make everyday work smoother, from --model to --add-dir.
Headless Claude for Scripted Tasks
Run Claude non-interactively with the -p flag so you can call it from scripts and capture its output.