How Anthropic reviews code when Claude writes most of it

AI-generated illustration.
In my piece on systems thinking, the short version was that AI speeds up the writing of code and the extra work piles up at the next step, which is usually review. Anthropic is the extreme case. Its monorepo went from about 2,500 merged changes a day in May 2026 to more than 30,000 a day in September, the company says. Nobody reads 30,000 changes a day line by line.
So how do they review it? On 15 October, Addy Osmani, Morgan Westlee Lunt and Qing Wang of the Claude Code team wrote it up, and Osmani reposted it as an X article that had passed four million views by the start of December. The team says Claude writes about 90 percent of Claude Code's own code. Their headline result: from June to September, merged pull requests to Claude Code more than doubled, and the share that had to be reverted fell by more than 40 percent.
The answer, simply put, is that they still review everything. Machines do most of the reading now, and people are kept for the few calls only a person can make. This post walks through how that works in plain terms, as of 1 December 2026, and then makes the case against it.
The question they changed
Code review has always had two jobs. The team's own list is "Find and fix issues before they ship" and "Build shared context and codebase understanding across the team." Most of their write-up is about the first job, and so is most of this post.
The key move is a change of question. The usual rule is that a person reads every line before it merges. The team calls "did a human read the code?" an "imprecise proxy" for the question that matters: "what could go wrong with this change, and which check—automated or human—is the right one to catch it?"
Ask it that way and review stops being a single gate at the end. They compare it to spellcheck, which runs while you write. By the time a person is asked to look at a change, Claude has usually reviewed and fixed it at least once already.
What they're trying to save
The scarce thing is human attention, and they count its cost on both sides: the time people spend reviewing, plus the time they spend fixing what bad code breaks. If review gets faster and bug-fixing gets slower, nothing was saved.
That gives them a goal they can measure. Most pull requests in the Claude Code repos (the CLI, the desktop and web apps, and the mobile apps) should merge with at most one human involved, and that human can be the author. They track human approvals per pull request (the median and the 95th percentile), human comments, and how long a pull request waits on a person. Revert and incident rates are the guardrail. If those rise, they write, "we haven't saved human time, we've only moved it."
This is the part I'd steal first. It turns "can we trust AI review?" into a number you can watch go up or down.
Seven layers between a change and a user
A change goes through seven layers on its way to users: six kinds of check, then a way to undo. No single layer catches everything. Each catches some problems and misses others, few problems get through all of them, and rollback handles the rest.
| # | Layer | Who does the work |
|---|---|---|
| 1 | The work is verified before anyone else looks | The agent that wrote it, then a fresh-context subagent |
| 2 | AI review on every pull request | Several Claude agents, then a vote |
| 3 | Security review that can block | Automated |
| 4 | Lint, type checks, tests and a build | CI |
| 5 | Human approval, scaled by risk | Zero, one or two people |
| 6 | Merge queue, feature flags, staged release | Automation, then Anthropic staff as the first users |
| 7 | Fast detection and rollback | On-call engineers and dashboards |
Most of the interesting ideas sit in layers 1, 2 and 5.
Layer 1: the agent proves its work
Most review now happens before a pull request exists. The team gives Claude something it can run, such as tests, a build or a screenshot to compare against the design, and asks it to "show the output instead of saying it's done." Then a subagent with fresh context reviews the diff. Boris Cherny, who created Claude Code, put the reason plainly in January: give Claude a way to verify its work, and "it will 2-3x the quality of the final result."
When the automated reviewer keeps flagging the same thing, they fix the cause instead of the instance: in a skill, with a lint rule, or in one of two instruction files. CLAUDE.md tells Claude what the project is, and every review loads it. REVIEW.md is written by code owners and tells the reviewer what matters in their part of the code. The good ones, they say, are short. They define what failure looks like in that repo (for docs, "it lies"; for config, "it misroutes"), cap the nitpicks, list paths to skip, and demand a file and line as evidence for every finding.
Layer 2: Claude reviews every pull request
Every pull request gets a Claude review before a person sees it. The reviewer reads the diff against the whole repository and the author's stated intent, and asks whether the change solves its problem, fits the system and leaves everything else working. On a bug fix, it looks for the root cause.
The clever part is how findings get filtered before anyone reads them. Several agents hunt for bugs at the same time. A separate group then votes on each finding, and it's posted only if enough of them agree it's real. Comments that are only about style or cleanup are dropped, a filter they A/B tested on their own pull requests first. What's left appears inline, sorted by severity and tagged "Important, Nit, or Pre-existing." The last tag exists so a bug the author didn't write doesn't look like their fault. The public product's docs describe the same filter in plainer terms: "A verification step checks findings against the code before they're reported."
Every finding has to be answered. You fix it, or you close the thread with a reason. Often an agent picks up the fix overnight, so the author comes back to a pull request that has already been through another round.
This reviewer is a product you can buy: Code Review for Claude Code. Anthropic's launch post on 9 March reported that the share of its internal pull requests getting substantive review comments went from 16% to 54%. On large pull requests (over 1,000 lines), 84% got findings, averaging 7.5 issues each. On small ones under 50 lines, 31% did. Anthropic says "less than 1% of findings are marked incorrect" by its engineers.
Layers 3 and 4: security and CI block the merge
Security gets its own automated review, and a pull request can't merge while any finding from either review is still open. A later commit that fixes the issue clears the finding on its own. Then come the ordinary checks: lint, type checks, tests on every platform and a build. A typical CLI pull request may run dozens of checks before a person looks. The pull request template asks how the change was tested and how to undo it, and Claude can fill that in, but the person who asked for the change signs off on the answers.
Layer 5: people approve by risk, and the change sets the risk
A docs fix and a change to the auto-updater carry different risk, so they get different review. This is the team's table:
| Risk | Examples | Human approvals |
|---|---|---|
| Low | Docs, copy, internal-only features, additive changes behind a flag | None required once automated review and security checks are green |
| Medium | Ordinary product changes, and changes to sensitive areas such as caching, the auto-updater, or system prompts | One person |
| High | The highest-risk code, plus a small set of paths that always need two people | Two people |
The rules around that table are where the care shows:
- The change sets the tier, never the author. A classifier reads the change and picks its tier. A second classifier asks whether this particular change needs a person anyway.
- Anything owners have marked sensitive, and any CI workflow file, always needs a person.
- Only authors on the repo's trusted list, mostly the team that owns it, get the lighter paths. Everyone else needs a second approver.
- An agent's approval never counts as a person's. Automated review can clear a low-risk change, but it can't fill a slot that calls for a human.
- Whoever directed the agent counts as one of the required reviewers on an agent-written pull request, the same as if they'd typed the code.
- An approval covers one commit. If an agent pushes again, or someone resolves a merge by hand, the approval has to be given again.
Anthropic is now selling a version of this layer as well. Code Review is now one of three Claude Ship agents for GitHub pull requests. Code Review is generally available. The other two are in public beta: PR Steward works on review feedback and failing checks, and Claude Approvals is a check that reports who still has to approve, driven by a policy file you write. Your branch rules still decide what merges.
Layers 6 and 7: ship small, undo fast
The merge queue re-runs every check against main with the change applied, so two pull requests that pass separately can't combine into a broken main. New behaviour usually ships behind a flag to Anthropic employees first, and their heavy daily use often surfaces regressions before customers see them. Public releases go to a "latest" channel first, with "stable" trailing behind.
Some mistakes will still get through, so the last layer is about speed. Flags turn off without a deploy. Claude Code has a weekly on-call rotation, and each incident review asks which layer should have caught the problem. One colleague told the authors that slowing down does lower your error rate, mostly because you're doing less of everything. The team would rather get faster at noticing and fixing.
Teaching the reviewer
The reviewer gets better on a loop, and the loop is built from their own failures. The team collected past pull requests that caused incidents, along with their fixes and reverts, and had engineers who knew that code confirm each bug and where it lived. The reviewer runs against that set every day, and every change to the reviewer is scored against all of it.
Catching more bugs is easy if you don't mind flagging lots of non-bugs, so they measure noise too. Every comment is sorted by what the person on the pull request did with it: fixed it, said it was wrong, said the behaviour was intentional, or decided it didn't matter. They also run the reviewer on pull requests known to be clean, and count how often it would have pushed someone into a harmful change.
Noise costs more when the author is an agent. A person can wave off a nitpick in a second. An agent fixes it, which means another commit and another round of review. That led to the most useful lesson in the piece: review has to converge. One CLI pull request went through "more than fifty" rounds of review and fixes overnight before someone stopped it. When they ran git blame on what the reviewer kept flagging, about 59% was code that had been there since the reviewer's first pass. It wasn't finding new bugs. It was finding a few more old ones each round.
Their fixes are simple, and they carry over to any team:
- After three rounds, the reviewer asks the author to step back and reconsider the approach.
- After the first few passes, re-review only the new diff.
- Flag the class of bug, so the author fixes every instance and not one line.
- Never repeat a finding that's already been posted.
What people still do
None of this removes people. The write-up is clear that a senior engineer pulled out of deep work to spot a routine mistake is the expensive option, and it lists what people keep:
- deciding whether to build the thing at all: direction, taste and scope
- reviewing risky code such as billing, the auto-updater and CI workflows
- reviewing architecture that sets a pattern others will copy
- reading the evidence: test output, the command that ran, screenshots and the reviewer's findings
- owning the outcome, because "A person is accountable for every change that ships, whoever typed it."
On the evidence point, they add a test I like: if you can't say what the checks would miss, ask for a real review and skip the quick approval.
If machines read the code, who learns it?
This is review's second job, and the team is candid that they have no formal answer. "Nobody on the team keeps a complete mental model of Claude Code in their head," they write, "and we don't think anyone needs to." When someone needs to understand a part of the code, they ask Claude to write an explainer for exactly that slice, which takes minutes and matches the code as it is today. Their argument is that reading a one-line copy change teaches you almost nothing, while an explainer for the module you're about to change teaches you a lot.
Two habits hold the rest together. The first is "you land it, you own it": if your small or medium change breaks something, you usually fix it, because you have the most context, and incident reviews look at the system instead of the person. The second is working in open Slack channels, where anyone can see what others are building and ask why while the work is still early. Code is cheap to write now, so closing a pull request after someone points to a better path doesn't feel like a loss. The trick, they say, is to raise a different direction early in the thread, before the pull request is finished.
The case against
I find most of this convincing, but there are real objections, and the first one is about who's talking.
Every number about the reviewer comes from Anthropic, and Anthropic sells the reviewer. The 16%-to-54% jump, the under-1% "incorrect" rate and the 40% drop in the revert share are all self-reported, with no outside audit that I could find. We don't get the starting revert rate either, so "fell by more than 40 percent" could be a big change or a small one. A month after the launch, InfoQ quoted AI researcher Nir Zabari saying it "doesn't share any technical details (like what each parallel agent focuses on) or explain why it's better than other tools." The October write-up shares more, but the gap in outside measurement remains.
The sharpest technical objection is that every reviewer is Claude. The bug hunters, the voters and the security pass all run on the same family of models. The author of paddo.dev, who runs a second-model reviewer in their own setup, put it bluntly: "Votes from the same model are not independent. If Claude has a blind spot, five Claudes share it." Their logs from 20 September to 27 October show 51 second-model reviews of changes Claude had already reviewed, and 29 of them found a serious bug. That's one practitioner's unpublished setup, so treat it as a warning sign and not a measurement. It still points at a cheap fix: put a different model somewhere in the loop.
Cost is the next question. The launch post said reviews are billed on token usage and "generally average $15–25," with about 20 minutes per review during the preview. The general-availability post on 15 October says most reviews now take 6 to 10 minutes and gives no per-review price. My read is that $15–25 is cheap next to an hour of a senior engineer's time, if it actually saves that hour. On a small team it can add up quickly. The current cost docs say Code Review "has no flat per-review price," and a newly added repository starts at a review after every push, "multiplying cost by the number of pushes." Switch that to once per pull request unless you have a reason not to.
The safety net does a lot of the work here, and most teams don't have one this good. The whole approach leans on fast undo: flags that turn off without a deploy, staged release channels, and a whole company of employees using the product heavily before customers do. If you ship quarterly to servers you don't control, or your code moves money or medical records, the team's promise to "undo most mistakes in minutes" isn't on the table, and you'll want more human approval than Anthropic's low tier allows. Regulated teams may not get the product at all: the docs say Code Review isn't available to organizations with Zero Data Retention enabled or the HIPAA configuration applied. The team admits a gap of its own as well: there are no circuit breakers yet that tighten approval when revert or incident numbers move.
Last, the second job of review is the one they haven't solved, and the lead author has written about the cost himself. In April, Osmani described comprehension debt as "the hidden cost to human intelligence and memory resulting from excessive reliance on AI and automation." On-demand explainers are a reasonable answer for a team that ships its own product all day. My read is that they're a weaker answer for a team that touches a codebase once a quarter and has to debug it at 2 a.m.
For a sense of what outside data looks like, Atlassian's team published a year-long evaluation of its own AI reviewer at ICSE 2026. It found that 38.70% of its comments led to a code change, pull request cycle time fell 30.8%, and human-written comments fell 35.6%. That's also a company measuring its own tool, but it's peer-reviewed and it shows a range: AI review helps, and it's far from catching everything.
Where I'd start
Most of the pieces exist today, and the team's own adoption list is short. If I were starting on an ordinary team, I'd take them in this order:
- Give the agent checks it can run, list them in a short
CLAUDE.md, and make it show the output. - Add
REVIEW.mdand move every repeated review comment into it. - Put an AI reviewer on one repo for a few weeks before widening it. The team names two options, Code Review for Claude Code or the open-source Claude Code GitHub Action, and Anthropic's open-source security review action covers the security pass.
- Require every review thread to be resolved before merge, and never let a bot's approval count as a person's.
- Write down risk tiers set by the change, start strict, and loosen them only with evidence.
- Cap review rounds at three, and re-review only the new diff after that.
- Keep a list of the pull requests that caused incidents and score the reviewer against it every time you change its prompt or model.
- Measure human time, with the revert rate as the guardrail.
The last step is the one that keeps the rest honest. If reverts go up, you haven't saved anyone's time. You've only moved it.
Sources
- Addy Osmani, Morgan Westlee Lunt and Qing Wang, How the Claude Code team does code review, claude.dev, 15 October 2026
- Addy Osmani, X article version, 26 October 2026
- Anthropic, Redesigning source control at Anthropic, 13 October 2026
- Anthropic, Code Review for Claude Code launch post, 9 March 2026
- Anthropic, Code Review is now generally available, 15 October 2026
- Anthropic, Code Review documentation, cost documentation and Claude Ship documentation, read 1 December 2026
- Boris Cherny, thread on getting results from Claude Code, 2 January 2026
- Daniel Dominguez, InfoQ coverage of the Code Review launch, April 2026
- paddo.dev, Claude Reviewing Claude: Anthropic's Code Review Process Has No Second Model, 27 October 2026
- Addy Osmani, Comprehension Debt: The Hidden Cost of AI-Generated Code, O'Reilly Radar, 13 April 2026
- Kla Tantithamthavorn et al., RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian, ICSE 2026