before a claude -p run goes into ci: bare mode so the machine's hooks and mcp servers stay out, tools approved up front, json output for the result and cost, and caps on turns and spend. neither cap has a default.
https://wotai.co/blog/claude-code-headless
before a claude -p run goes into ci: bare mode so the machine's hooks and mcp servers stay out, tools approved up front, json output for the result and cost, and caps on turns and spend. neither cap has a default. https://wotai.co/blog/claude-code-headless
0 vue
Publié le 20/11/2026 21:31
0:36
before a claude -p run goes into ci: bare mode so the machine's hooks and mcp servers stay out, tools approved up front, json output for the result and cost, and caps on turns and spend. neither cap has a default.
https://wotai.co/blog/claude-code-headless
2 commentaires
?
In agentdiet 0.11, 94% of CI integrations consume --json rather than text, so we treat text as the human view and JSON as the contract. Caps control spend; the scan controls what lands; the output contract controls what downstream code can trust.
Bare mode plus up-front tool approval is the safe shape for CI. One more gate before the agent's output merges: a deterministic scan that fails the job on new high-severity findings, not the model grading its own work. Caps control spend; the scan controls what lands.