AI Code Review in Practice: How the Claude Code Team Doubled PR Merge Rates

Anthropic trains AI reviewers with incident exams, using dual-agent structure and risk tiers to turn review into a controlled process.
The article breaks down the Claude Code team's practices for tackling the AI code review bottleneck. When writing code speeds up, review becomes the new bottleneck; the team builds an exam from historical incident PRs to evaluate reviewers, adopts a 'nitpick + verify' dual-agent structure, and controls review convergence (max three rounds). Among seven defense layers, risk tiers determine the number of approvals, and bot approvals cannot replace humans. The author also shares personal pitfalls, stressing that false-positive noise costs more than missed detection, and provides a copy-paste checklist.
AI writes code faster, but review has become the new bottleneck. Anthropic's Claude Code team shared some numbers: merged PRs doubled, while rollbacks dropped by 40%. How did they do it? Combining the official long-form article and the talk, I've broken down the design logic of this AI review system, and I'll also share the pitfalls I've run into myself.
The Bottleneck Shifts: When Writing Code Is No Longer the Problem
Nine months ago, model capabilities suddenly crossed a threshold—give it a task and it could basically deliver independently. The time spent writing code got compressed, and all the pressure squeezed into the review stage. Changes landing in Anthropic's main repository grew from 2,500 a day in May to over 30,000 in September. PRs piled up in queues, and people started rubber-stamping each other, glancing and clicking approve. The speaker put it bluntly: this was theater.
In an internal poll, 77% of people considered review the slowest step. Some people each wrote their own review bots, and the result was seven AIs arguing with each other under a single PR, with one PR revised back and forth two hundred times. This isn't a joke—it was daily reality.
Boris, the author of Claude Code, handed this mess to PM Morgan's team. The goal was clear: 90% of PRs should merge without disturbing anyone other than the author. The guardrails were also hard-coded—rollbacks and incidents must not increase at all, otherwise the time saved is just shifted to firefighting.
Training AI Reviewers with an Incident Exam
How do you judge whether an AI reviewer is reliable? They didn't use synthetic test sets. Instead, they dug up every PR in the company's history that had caused an incident and turned them into an exam. Each question is a small file: which commit, which PR, which file and line the problem is on, and what the correct answer is. For example, one PR caused a customer to receive two identical invoices, and the problem was on line 88 of a function—that's one question.

The speaker's advice was very practical: have Claude read your incident system, and you can build your own exam in two or three days—don't just listen to vendor hype. With the exam, you can experiment wildly—swap prompts, swap review perspectives, swap agent combinations, keep what improves, discard what degrades—running hundreds of thousands of rounds.
The final structure was: first send out a group of nitpicking agents, each looking for faults; then dispatch another group of verifiers specifically to rebut them, and only issues with majority approval remain. The remaining issues are sorted by severity, deduplicated, and divided into three categories—important issues that must be fixed, trivial nits, and old issues unrelated to this PR. Only the first category blocks merging.
Result: PRs receiving substantive review comments rose from 16% to 54%. But finding more doesn't mean finding better. They tracked two metrics simultaneously: recall (how many real problems were caught) and precision (how many reported issues were false alarms).
Recall and precision are two fundamental metrics for evaluating binary classification models. Recall refers to the proportion of all real problems that the reviewer successfully finds; precision refers to the proportion of all reported issues that are actually problems. The two trade off: loosening standards raises recall but introduces many false positives, while tightening standards may miss real problems. In code review, low precision means developers spend a lot of time sifting through noise, and agent authors will repeatedly revise due to false positives, so teams need to find a balance between these two metrics rather than simply pursuing "finding more."
Noise Is More Expensive Than Missed Detection: Controlling Review Convergence
When the author is an agent, the cost of noise is even higher. A human sees a minor nit and swipes it away in a second; an agent will dutifully go fix it, resulting in one more commit and one more review round. In the most extreme case, a single PR was tossed back and forth between nitpicking and fixing fifty-plus rounds overnight.
On investigation, about 59% of the repeatedly flagged issues were old code that existed from the first round. The reviewer wasn't finding new bugs; it was digging up a few more old ones each round. There are four solutions:
- At most three rounds; if it doesn't pass, have the author rethink the approach, and after a few rounds only review new changes;
- Report a class of issues, not a single line;
- Don't repeat what's already been said;
- Weekly, pull out human rebuttals on PRs and write them into the repository's review.md so the same mistakes aren't repeated.
Now over 90% of PRs converge within three rounds.

By the way, the division of labor between the two files: claude.md documents project rules everyone should know, and reviewers also check against it; review.md is written only for reviewers—what counts as an incident in this code, how many nits to report at most, which paths to skip, and every comment must cite file and line as evidence.
Review convergence refers to the state where the review process reaches a stable end from its start. In traditional human review, convergence is usually achieved naturally when a person judges "it's fine now"; but in agent-involved review, since agents mechanically respond to every comment, if reviewers keep producing new issues (especially old issues in legacy code), an infinite loop of "review—fix—re-review" forms. The team's definition of "converge within three rounds" is a hard constraint: exceeding three rounds means the current approach is deemed infeasible and the author must redesign rather than continue patching. This essentially shifts review from "exhausting all issues" to "reaching a mergeable state within a limited number of rounds," to control the time and risk costs of noise.
Seven Layers of Defense and Risk Tiers
Review is just one layer. A change must pass through seven layers from laptop to user, like Swiss cheese—one layer has holes, the next layer plugs them.
- Self-justify before opening a PR: have Claude run tests, builds, and screenshot comparisons, and show the results; then have a fresh-context sub-agent take a look. Boris said this alone can make results two to three times better.
- Every PR goes through AI review.
- Security review; cannot merge until issues are resolved.
- Routine checks; the PR template clearly states how to test and how to roll back.
- Risk-based number of required approvals.
- Feature flags after merge; internal first, then staged rollout.
- Detect problems immediately and turn them off immediately, without redeploying.
Let's focus on the fifth layer. Fixing a typo and changing an auto-updater are not the same order of risk. Low risk—docs, copy, new features hidden behind flags—can merge once automated checks pass, no extra reviewer needed. Medium risk—ordinary feature changes—one person is enough. High risk—billing, release process—requires two people.

There are four key principles: the tier is determined by the change itself, not by who wrote it (they added an LLM-based classifier on top of GitHub; touching billing code again, only a logic change requires an extra person); the lightweight path is only for people on the repository's trusted list; bot approvals can never replace a human slot; an approval only applies to that one commit, and any new commit afterward requires re-approval.
One line was particularly harsh: whoever has the agent write the code counts as a reviewer, just as accountable as if you'd typed it yourself.
Feature flags are an engineering practice that decouples code deployment from feature release. After code is merged, the new feature is wrapped behind a flag and off by default; the team can first enable it for internal users, then gradually expand to a small percentage of external users, and after observing no anomalies in metrics, roll it out fully. If problems arise, simply turning off the flag instantly rolls back without redeploying or releasing. Compared to the traditional "merge equals release" model, this greatly reduces the blast radius and recovery time of incidents. The seventh layer, "turn it off immediately when problems arise," relies on this mechanism, giving high-risk changes a safety valve even after merging.
My Pitfalls: False Positives Are More Insidious Than Missed Detection
I've also been using AI for code review at my company, and the pitfalls I've hit are almost identical to what they described. At first I accepted everything and fixed every nit the AI reported. Looking back later, many so-called minor issues were outright false positives, and a few times fixing them per the AI's suggestion actually introduced new bugs. This is exactly the precision problem they mentioned—noise doesn't just waste time; when an agent or person fixes it, it introduces new risk.

My current rule is: minor issues must be verified against the original code before being raised; serious issues get a separate re-check; larger changes are split into several perspectives reviewed in parallel. Looking back, this is the same idea as their nitpick-plus-verify structure.
For the Claude Code you have on hand, there are three ways to use it: slash CodeReview, run in a local session, taking seconds to minutes, suitable for checking as you write—it's different from the hosted version, deliberately lightweight so it doesn't pull you out of flow; slash CodeReview space Ultra, which unleashes a whole squad of reviewers in the cloud, each issue individually verified against the code, taking about 5-15 minutes, costing $5-25 each time; hosted CodeReview, enabled per repository in the Team or Enterprise backend, automatically triggered on every PR. Note that Ultra is not available on third-party platforms like Amazon Bedrock and will fall back to local review.
Copy-Paste Checklist: Usable Tomorrow
Finally, a checklist you can copy directly:
- Before opening a PR, a short claude.md lists the checks that can be run.
- Locally run slash codereview and slash securityreview.
- Move recurring comments into review.md.
- Add testing, risk, and rollback info to every PR template.
- Try AI review in one repository first, tune for a few weeks, then expand.
- Every comment must get a response; limit the number of review rounds.
- Risk tiers are set by the change, strict first then relaxed; bot approvals cannot replace humans.
- After merge: feature flags, staged rollout, one-click rollback, and turn every incident into a question in the exam.
The speaker ended with a metaphor: they're like building sandcastles by the sea—just as they've scaffolded the product, the next generation of models rushes in like a tide, and the scaffolding is no longer needed. The specific models and number of agent layers will change; what won't change is the approach—first decide how people's time should be spent, then use incident data to prove the machine is reliable.
Related articles

Ubuntu Parent Company Doubles Down on DEI and Trans Activism, Reigniting Open Source Community Controversy
Canonical partners with SheCanCode to advance DEI, sparking controversy in the open source community. Critics say its policies lean radical, lack counterpart resource groups, and discuss alternative Linux distributions.

Mysterious Cybersecurity Paper Sparks Panic in AI World: One Tweet from an Anthropic Engineer Ignites Speculation
An Anthropic engineer's cryptic tweet pointing to a 'Cryptography Incident Review Group' website of cryptographers from Stanford, MIT, and other institutions has sparked panic and speculation in the AI world about potential cybersecurity threats.

Vercel Connect Adds Managed AWS Connector: Keyless Access to Cloud Services
Vercel Connect launches a managed AWS connector: apps and AI Agents exchange OIDC identity for short-term STS credentials, eliminating stored AWS keys, with IAM role scoping and SNS event ingestion.