Claude Code · Automation and CI
Run Claude Code in CI
Run a non-interactive task with only the tools it needs and a turn limit. Review the changes before merging.
claude -p "Fix the failing tests" --allowedTools "Bash,Edit,Read" --max-turns 5
Caution: Give automated runs the least access they need, and never run them with unreviewed credentials.
Official Claude Code documentation