How Anthropic's Claude Code team reviews agent-written code, and what to copy
Anthropic's layered, risk-tiered review playbook for agent-written PRs, decoded for GitHub teams weighing Code Review or a DIY version.
Picture a tech lead at a 20-person SaaS company. Half her team now directs Claude Code sessions instead of typing, and the pull request queue has roughly tripled. Review still works the old way: a senior engineer reads every diff line by line before approving. The queue backs up, approvals get faster and shallower, and the bugs that slip through show up as Friday reverts. In the postmortem, nobody can say which check should have caught them.
On October 15, 2026, the Claude Code team at Anthropic published how it reviews code at agent volume. The headline claim: from June to September, merged pull requests to Claude Code's codebase more than doubled while the share that had to be reverted fell by more than 40 percent. The method isn't skipping review. The team says it moved most of the reading to machines, tiered human approvals by risk, and invested in fast rollback. The same day, Anthropic made its Code Review product generally available on Team and Enterprise plans, according to The Next Web and Unite.AI. @bibryam on X called the post a must-read.
Keep one thing in mind throughout: these are Anthropic's numbers about Anthropic's repos.
What it is
Two different things shipped: a playbook and a product.
The playbook, per Anthropic's post, is a stack of layers. Each maps to a piece of our tech lead's pain:
- Review before the PR exists. Claude gets something it can run (tests, a build, a screenshot to compare against the design) and must show the output rather than say it's done. A subagent then reviews the diff with fresh context. Boris Cherny, who created Claude Code, estimates giving Claude a way to verify its work makes the result two to three times better. This catches routine mistakes before a senior engineer ever sees them.
- Fix recurring flags at the source, in a skill, a lint rule, CLAUDE.md or REVIEW.md. REVIEW.md is written by code owners. The good ones are short, say what failure looks like in that repo, cap nits, list paths to skip, and demand a file and line as evidence.
- A Claude review on every PR. Several agents hunt for bugs in parallel, a separate group votes on each finding, and only agreed findings get posted, tagged Important, Nit or Pre-existing. Every finding must be fixed or resolved with a reason. A separate security review runs too, and internally a PR can't merge while any finding from either is open.
- Risk tiers for humans. Low-risk changes (docs, copy, additive changes behind a flag) need no human approval once automated checks are green. Medium needs one person, high needs two. A classifier sets the tier, and a second classifier asks whether this change needs a person anyway. Only trusted authors get lighter paths, an agent's approval never counts as a person's, and the person directing an agent counts as a required reviewer. That's the answer to the clogged queue: humans spend time where risk is.
- Catch it fast afterwards. A merge queue re-runs checks against main, new behavior ships behind flags to employees first, and incident reviews ask which layer should have caught the issue. That answers "which check should have caught this?"
The post is candid about one failure. Agent author and agent reviewer can keep each other busy: one CLI PR went through more than fifty rounds overnight, and about 59% of what the reviewer kept flagging was code present since its first pass. Per CellCog's summary, the fix included asking the author to rethink after three rounds and reviewing only the new diff on later passes, which lifted first-round passes from 65% to 78%.
The product, Code Review for Claude Code, lets admins pick Quick, Standard or Deep per repo, per @ClaudeDevs. The key difference from Anthropic's internal setup, flagged by a DEV Community post: the product never approves or blocks a PR, and its check run never concludes as a failure. Blocking is your job.
Alternatives, described only from the comparison pages we have:
- CodeRabbit: AIMultiple says its pre-merge checks can warn or block merges entirely. In IonWarp's vendor-run test of 50 PRs it found 94 known issues but posted 194 unmatched findings. Trade-off: blocking built in, with noise risk.
- GitHub Copilot code review: AIMultiple notes tight GitHub integration and an "Implement suggestion" hand-off to Copilot's coding agent. IonWarp lists it as GitHub-only, paid from Copilot AI credits. Trade-off: the easiest add if you're already on Copilot, with no model choice.
- Cursor Bugbot: rules in BUGBOT.md and a "Fix in Cursor" button (AIMultiple). IonWarp lists $1.00–$1.50 a run and support for GitHub, GitLab, Bitbucket and Azure DevOps. Trade-off: suits Cursor shops and non-GitHub hosts.
- Graphite: Tenki's vendor-run benchmark (updated May 20, 2026) recorded its reviewer catching 4 of 122 bugs, and AIMultiple couldn't enable it for new repos. Trade-off: thin evidence for its reviewer.
Treat all of these benchmarks with care. Two are run by competing vendors, and AIMultiple tested November 2025 versions.
Who it's for
Pick up the product if you're on a Claude Team or Enterprise plan, your code lives on GitHub, and agents are inflating your PR volume. Unite.AI reports it's unavailable with Zero Data Retention, the HIPAA configuration or customer-managed encryption keys, and isn't covered under Anthropic's BAA. Those orgs should skip it.
Pick up the playbook regardless of vendor. Risk tiers, "the change sets the tier, not the author," and per-commit approvals are process, not product. Skip the zero-human tier if you lack solid tests, CI and feature flags. That's our analysis: no source tests the approach in low-coverage or regulated codebases.
Solo devs on individual plans get the local /code-review and /security-review commands and the open-source GitHub Action; the DEV Community post says /code-review runs on any plan.
Before and after
Before:
- An agent or engineer writes the change.
- Open a PR and wait for a colleague.
- A human reads every line.
- Merge, then find out in production.
After, per Anthropic's post:
- The agent runs tests or a build and shows the output.
- A fresh-context subagent reviews the diff, and optional local skills hunt bugs and simplify.
- On the PR: CI, Claude bug review and security review. Every finding is fixed or closed with a reason.
- A classifier sets 0, 1 or 2 human approvals. The person who prompted the agent counts as one.
- The merge queue re-checks against main, and the change ships behind a flag, then from the latest channel to stable.
- Any incident becomes an eval case the reviewer runs against daily.
Try it
Smallest step, any plan: run /code-review locally in a Claude Code session (per DEV Community). Anthropic's post also points to the /security-review command and an open-source security review GitHub Action. Add a short REVIEW.md at your repo root. The Claude Help Center says Code Review auto-discovers it.
For the managed product on Team or Enterprise, the Help Center describes these steps. An Owner enables Code Review, installs the Claude GitHub App, selects repos and picks a trigger per repo: once after PR creation, after every push, or manual. A test PR should show a check run named Claude Code Review. On Manual, comment @claude review at the start of a top-level PR comment. Reviews average $15–25 each, billed separately through usage credits, and the after-every-push trigger multiplies that.
To make findings block merges like Anthropic's internal repos do, DEV Community offers two routes. One is GitHub branch protection's "require conversations resolved" rule, which also blocks on nits and human comments. The other is a gh script that gates on open Important findings, which its author says he hasn't run against a live check.
The sources don't describe a turnkey way to reproduce the full setup with hooks or the claude-code GitHub Action.
Where it breaks
- The results are unverified. The doubling, the 40% revert drop and the 90% share are self-reported without base counts, as DEV Community notes. The monorepo jump from about 2,500 to more than 30,000 changes a day is Anthropic's figure alone. TNW says Anthropic's Code Review quality figures haven't been independently tested. Even the share of code Claude writes differs: 90% in Anthropic's post, 80% in TNW's report.
- The product doesn't gate. As shipped, it posts findings, not approvals. Unite.AI adds that it reads code without building or running it, may miss bugs, and a clean review doesn't mean the code is secure.
- Cost and loops add up. Per-review pricing plus agent-on-agent rounds can compound, and the fifty-round PR is the cautionary tale.
- Speed claims conflict. The Help Center says reviews average 20 minutes. GA coverage says most finish in 6–10.
- Permissions deserve a look. The Help Center says the GitHub App requests read and write access to contents, issues and pull requests. TNW recalls a June prompt-injection flaw in Anthropic's Claude Code action that exposed a write-access token; Anthropic fixed the core bypass within four days.
- Lock-in is real. The product works only on GitHub, and Anthropic picks the models, with no model choice in admin settings (Unite.AI).
- The guardrails are incomplete. Anthropic says it has no circuit breakers yet that tighten approval when revert or incident numbers move. Its own engineers want them before more code moves to zero-human merges.
Sources
- How the Claude Code team does code review / claude.dev Blog · Anthropic
- Claude Writes 90% of Claude Code: How Review Keeps Up · CellCog
- Claude Code Review Is GA and Never Fails a PR. Anthropic's Own Repos Block on Findings · DEV Community
- Anthropic makes Code Review generally available, with $50,000 in credits attached · TNW | Anthropic
- Anthropic Makes Code Review for Claude Code Generally Available · Unite.AI
- Set up Code Review for Claude Code | Claude Help Center · Claude Help Center
- ClaudeDevs (@ClaudeDevs) on X · @ClaudeDevs
- AI Code Review Tools Benchmark · AIMultiple
- AI Code Review Tools Compared on the Same 50 Pull Requests · IonWarp
- AI Code Review Benchmark 2026: Tenki vs CodeRabbit, Greptile, Cursor, Copilot · Luxor Technology
- @bibryam: 🎯How the Claude Code team does code review🎯 · @bibryam