Run a Claude Code review in CI with one claude -p line A developer documented a method for running Claude Code as a non-interactive CI step using the CLI's headless mode, `claude -p`, which runs a single prompt, prints the result, and exits. The approach pipes a `git diff` into the prompt and uses `--allowedTools "Read,Grep"` to keep the run read-only and `--max-turns 3` to bound execution, then fails the build unless the output is exactly "LGTM". The writeup recommends storing the API key in repository secrets and running the check with `continue-on-error: true` for a week before making it block builds. Most people only use Claude Code interactively. But the same CLI has a headless mode: claude -p "