Claude Code without the chat: script it with claude -p #claudecode

Claude Code is not only a chat. Add -p and it becomes a command you can script: it takes a prompt, does the work, prints the answer and exits. Pipe a build log in, get JSON out with –output-format json, and pre-approve exactly the tools a task needs with –allowedTools. In CI, add –bare so the run is the same on every machine. Use –continue to pick up the last conversation.

#claudecode #aicoding #automation