Claude CodeIntermediateClaude Code
In CI, run Claude Code with -p and JSON output
With claude -p the pipeline does not sit waiting for input, and with JSON output you can parse the result to comment on the PR.
The -p (--print) flag processes the prompt, prints to stdout and exits: it is the non-interactive mode for pipelines. The guide adds --output-format json and --json-schema so the result is parseable and can be posted as inline comments. Check the current documentation for the exact flags before building the pipeline.
Example
claude -p "Review this PR for security problems" --output-format json