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:

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