Code Review
Code Review
Code Review analyzes your GitHub pull requests and posts findings as inline comments on the lines of code where it found issues. You can tune what Claude flags by adding a CLAUDE.md or REVIEW.md file to your repository.
A fleet of specialized agents examine the code changes in the context of your full codebase, looking for logic errors, security vulnerabilities, broken edge cases, and subtle regressions.
Example REVIEW.md:
# Code Review Guidelines
## Always check
- New API endpoints have corresponding integration tests
- Database migrations are backward-compatible
- Error messages don't leak internal details to users
## Style
- Prefer `match` statements over chained `isinstance` checks
- Use structured logging, not f-string interpolation in log calls
## Skip
- Generated files under `src/gen/`
- Formatting-only changes in `*.lock` files
Severity levels — each finding is tagged:
- Normal — a bug that should be fixed before merging
- Nit — a minor issue, worth fixing but not blocking
- Pre-existing — a bug that exists in the codebase but was not introduced in this PR
Comment @claude review on a pull request to trigger a review.
Code Review usage is billed separately through extra usage and does not count against your plan's included usage.
Related: Security Review, GitHub Actions, CLAUDE.md Files, Extra Usage