Vibeleaderboard
← All Intel
Intel / article

How the Claude Code team does code review

Source
claude.dev
Publisher
Anthropic
Author
pretext
Date

Context

Claude writes about 90 percent of Claude Code's own code, and in Anthropic's monorepo daily changes went from about 2,500 in May to more than 30,000 in September. At that volume a person cannot read every diff. In this post, Addy Osmani, Morgan Westlee Lunt and Qing Wang of Anthropic describe how the Claude Code team handles review now (claude.dev). Their reframe is that whether a human read the code is the wrong test; the right one is what could break and which check, automated or human, is best placed to catch it.

Review now happens in layers rather than at one gate. Claude runs tests and builds before a pull request exists, and a fresh reviews the diff. On every PR, several agents hunt for bugs in parallel and a separate group of agents votes on each finding, so only findings enough of them agree on get posted. A security review and required CI both block merging until findings are fixed or answered. A classifier then sets the risk tier: for authors on the repo's trusted list, docs and flagged additive changes can merge with no human approval, ordinary changes need one person, and the riskiest paths need two; everyone else needs a second person. An agent's approval never counts as a person's. Merge queues, feature flags, internal use first and fast rollback catch what slips through.

The team reports that from June to September merged PRs more than doubled while the share reverted fell by more than 40 percent. They also describe a failure mode specific to agents reviewing agents: one PR went through more than fifty overnight rounds of review and fixes, mostly re-flagging old code. Changes such as capping rounds and re-reviewing only new diffs raised the share of PRs passing after one round from 65 to 78 percent. Past incidents are turned into an the reviewer is scored against daily.

People keep the calls machines are bad at: whether to build something, risky code such as billing and CI, architecture, reading the evidence, and owning the outcome. The authors admit gaps, notably no automatic tightening of approvals when revert rates rise. The figures are Anthropic's own internal numbers.

Terms in this piece · Glossary
  • Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
  • eval — A repeatable test for AI quality — a set of tasks plus scoring — used the way software teams use test suites, because model output is too variable to judge by eyeballing.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
Recommended reads