Anthropic published how Claude Code’s team reviews their own pull requests: an AI reviewer on each PR, the /code-review and /security-review commands, and a REVIEW.md file. You can copy almost everything today; which part depends on your Claude plan.
The article, signed on October 15, 2026 by Addy Osmani, Morgan Westlee Lunt, and Qing Wang, starts from a volume problem. Claude already writes most of Claude Code’s code, and line-by-line human review stopped scaling. The team’s response wasn’t to eliminate review: they moved almost all the reading to machines and reserved human attention for decisions that machines solve poorly.
What is Claude Code and how is it used to review code?
Claude Code is Anthropic’s agentic programming tool: it reads your codebase, edits files, and runs commands from the terminal, IDE, desktop app, or browser. Code review is now a family of features around it:
- A local command anyone can run:
/code-review. - A security-focused variant:
/security-review. - An open source GitHub Action.
- A hosted reviewer, Code Review, that comments on each pull request in organizations with Team or Enterprise plans.
How does Claude Code’s team do code review?
Every change goes through stacked layers of verification, and no single layer should catch everything on its own:
- Before the PR exists. Claude runs tests, build, and linter and shows the result. Then, a second agent with clean context reviews the diff.
- AI review on each PR. Multiple agents search for bugs in parallel. Another group votes on each finding, and only those that enough agents consider real are published. Each finding is labeled as Important, Nit, or Pre-existing.
- A separate security review. In Anthropic’s repositories, a PR can’t merge while any finding from either review remains open.
- Mandatory CI. Lint, types, tests on all platforms, and build.
- Human approval based on risk. A classifier assigns zero, one, or two people based on the change, not the author. Routes like CI workflows always require a person.
- Merge queue, feature flags, gradual rollout, and fast rollback.
The team reports these results, measured by Anthropic itself and without independent verification:
- Between June and September, merged PRs more than doubled while the proportion that had to be reverted fell by over 40 percent.
- PRs with substantial review comments went from 16 to 54 percent.
- After limiting review rounds, PRs approved after a single round went from 65 to 78 percent.
That last change matters if you wire an agent to fix what a reviewer points out. One PR went through more than fifty review and correction rounds overnight, until someone stopped it. The solution was simple: a maximum of three rounds, review only the new diff after the first passes, and don’t repeat findings already published.
If you compare approaches, at yoDEV we tested another combination: two AIs reviewing the same code, Claude and Codex.
What is REVIEW.md and how do you write it?
REVIEW.md is a Markdown file in your repository root with instructions that only apply to code review. It coexists with CLAUDE.md, which stores the project’s general context and which Claude reads in any task. At Anthropic, each code owner writes their own for their part of the code.
Anthropics documentation proposes this example for a backend service:
# Review instructions
## What Important means here
Reserve Important for findings that would break behavior, leak data,
or block a rollback: incorrect logic, unscoped database queries, PII
in logs or error messages, and migrations that aren't backward
compatible. Style, naming, and refactoring suggestions are Nit at
most.
## Cap the nits
Report at most five Nits per review.
## Do not report
- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/` and any `*.lock` file
- Test-only code that intentionally violates production rules
## Always check
- New API routes have an integration test
- Log lines don't include email addresses, user IDs, or request bodies
- Database queries are scoped to the caller's tenant
The documentation suggests five types of instruction:
- Redefine what Important means in your repository.
- Limit how many nits each review publishes.
- List paths and categories to ignore.
- Add team rules to check on every PR.
- Require a
file:linecitation before publishing certain types of findings, to reduce false positives.
Three rules about how the file is read:
- It can be nested. A
REVIEW.mdin a subdirectory, likeservices/billing/, adds checks for changes under that path, in addition to the root file. - It’s never read from the PR itself. It’s taken from the base branch or default branch, so a change to
REVIEW.mdonly takes effect after merging it. - Branch protection matters. Some instructions are only respected if the root file is on a protected default branch: downgrading a finding’s severity, excluding paths, and capping nits.
If you want to understand how Claude Code combines CLAUDE.md with other instruction files, we explain it in Claude Code Now Reads AGENTS.md.
Does REVIEW.md work on the Pro or Max plan?
No. As of October 17, 2026, REVIEW.md is only read by the hosted Code Review service, available on Team and Enterprise plans. The local /code-review command reads your CLAUDE.md files and ignores REVIEW.md; Anthropic’s documentation states this explicitly.
On Pro or Max, the equivalent levers are these:
- Put review guidelines in
CLAUDE.md./code-reviewreads it. - Customize
/security-review. Copy thesecurity-review.mdfile from Anthropic’s security review repository into the.claude/commands/folder of your project and edit it. - Give your own instructions to the GitHub Action. Use its
custom-security-scan-instructionsparameter.
Writing a REVIEW.md anyway costs nothing, and it’ll be ready if your organization moves to a plan that reads it.
How do I use /code-review in Claude Code?
Run /code-review within a Claude Code session; it’s available on any plan. It reports bugs to fix and lets you adjust its depth with an effort argument, for example /code-review high. If you add --comment, it publishes findings as inline comments on your GitHub PR. It runs in your session, takes seconds to a few minutes, and counts toward your normal usage.
For a deeper pass, /code-review ultra (ultrareview) launches a fleet of reviewer agents in a cloud sandbox and reproduces each finding before reporting it. As of October 17, 2026 it’s in research preview. Pro and Max accounts get three free runs, and after that each review normally costs between 5 and 25 dollars in usage credits. It’s not available through Amazon Bedrock, Google Cloud, or Microsoft Foundry.
How do I do a security review with /security-review?
Run /security-review in your project directory. It reviews pending changes for issues like:
- Injection (for example, SQL injection).
- Cross-site scripting (XSS).
- Authentication and authorization failures.
- Unsafe data handling.
- Vulnerable dependencies.
Afterward you can ask Claude to implement the fixes. The command comes bundled with Claude Code and is available on individual paid plans and API Console accounts.
How do I add automatic security review to your pull requests on GitHub?
Use Anthropic’s open source GitHub Action, anthropics/claude-code-security-review. The quick start from its README goes in .github/workflows/security.yml:
name: Security Review
permissions:
pull-requests: write # Needed for leaving PR comments
contents: read
on:
pull_request:
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 2
- uses: anthropics/claude-code-security-review@main
with:
comment-pr: true
claude-api-key: ${{ secrets.CLAUDE_API_KEY }}
Before adding it, keep three things in mind:
- It needs an API key. Store it as the
CLAUDE_API_KEYsecret in your repository, enabled for both the Claude API and Claude Code. Runs are charged to that key, not a subscription. - It’s not protected against prompt injection. The README indicates it should only review PRs from trusted sources and recommends requiring approval before workflows run for external collaborators.
- It comments but doesn’t block. The Action publishes findings on the PR. At Anthropic a merge is blocked because review conversations must be resolved first; that’s a repository branch protection policy, not a feature of either tool.
The Action also accepts exclude-directories and a false-positive-filtering-instructions file to fine-tune filtering. If you work with Cursor, we cover a similar flow in Cursor Security Review.
What does Claude Code’s Code Review do on Team and Enterprise plans?
Code Review is the hosted reviewer that Claude Code’s team uses on every PR. An Organization Owner installs the Claude GitHub App and chooses repositories. Each repository has a setting for when reviews run: when opening a PR, after each push, or only on request. Also, anyone with write permission can start one by commenting @claude review on the PR.
The Owner sets a review level for the organization and can change it per repository:
- Quick: the fastest and cheapest pass.
- Standard: the default level.
- Deep: the most thorough and expensive, for code where a bug that escapes costs more than review time.
Findings arrive as inline comments sorted by severity, along with a check run called Claude Code Review. That check run never ends in failure: a review never approves or blocks a PR, and the decision to merge remains with your team.
As of October 17, 2026, Code Review:
- Is generally available on Team and Enterprise plans.
- Works only with GitHub, including GitHub Enterprise Server.
- Is not available for organizations with Zero Data Retention, HIPAA configuration, or customer-managed encryption keys.
Is Claude Code free for code review? How much does it cost?
Not entirely: each layer is paid differently.
/code-reviewand/security-reviewcount toward your normal Claude Code usage.- Ultrareview has three free runs and is then charged in usage credits.
- The GitHub Action is charged to your API key.
- Code Review is billed to the organization, and the Owner sets a monthly spend limit.
What decisions are still human?
According to the article, the team reserved five decisions for people:
- Whether a change should build.
- Changes to risky code, like billing, the auto-updater, and CI workflows.
- The architecture that sets a pattern others will copy.
- Reading the evidence: test output, screenshots, and reviewer findings.
- Taking responsibility for the outcome, whoever typed it.
An agent’s approval never replaces a person’s. Whoever directed an agent to write a PR counts as one of its required reviewers.
Where do I start?
Anthropic’s recommendation is incremental. Start with checks your agent can run, listed in a short CLAUDE.md. Add /code-review and /security-review before pushing. Put an AI reviewer on a single repository, tune its instructions for a few weeks, then scale up. Every review comment you find yourself repeating, move it to the instruction file.
And you? What rule would you put first in your team’s REVIEW.md?
- Locally, before pushing
- On each pull request, in CI
- I don’t use AI review yet
- I prefer another option (tell us which)
Comment below or, if this article reached you by email, reply directly to the email: your reply will be published here.
Related: How to Do Code Review with Claude Code and Other Agents with Open Code Review