

Claude Code headless: run it from a script
Claude Code headless means running claude -p with a prompt. Pick an output format, pre-approve tools with --allowedTools, and add --bare for CI.
2 posts


Claude Code headless means running claude -p with a prompt. Pick an output format, pre-approve tools with --allowedTools, and add --bare for CI.
Claude Code hooks run shell commands at set lifecycle points. Set up three first: a desktop notification, Prettier after edits, and protected files.