How the Claude Code team reviews agent-written code, and what you can copy

A decode of Anthropic's layered review process (AI review, risk-tiered approvals, fast rollback) for teams whose agents outpace human reviewers.

Picture a four-person product team at a B2B SaaS shop. Two engineers run coding agents most of the day, and a few more PRs arrive overnight from an agent working through tickets. The tech lead still reads every diff before merge, because that's the rule. By mid-morning there are a dozen open PRs, with a docs typo next to a change to the billing webhook, and all of them wait on the same person. The lead either rubber-stamps the small ones to keep up, or the queue grows and the agents' speed goes to waste. Neither approach shows which changes actually needed a human.

The Claude Code team at Anthropic published an account of how it handles this on October 15, 2026, at far higher volume. Anthropic says that 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 is not reading less for its own sake. In the post's words, the team "did move most of the reading to machines, optimized for human time and attention, and invested heavily in making it fast and easy to undo mistakes." Copy the structure. You don't need their volume to benefit.

What it is

This is a process write-up with one product inside it. Here are the layers, mapped to the lede's problem, as Anthropic describes them:

Alternatives the sources cover:

Our sources don't compare other vendors' AI code reviewers, so we won't either.

Who it's for

Pick this up if your agents already open more PRs than your humans can read properly, and you have CI that can block a merge. Claude Code users can apply the most of it directly, because the review commands and the hosted product are Anthropic's.

Skip the AI-review layer if your PRs are tiny and you genuinely read each one. The DEV Community guide sets that line at about 20 lines. If you have no required checks or rollback path, start there instead, because every other layer here assumes those exist. Solo developers can borrow the tiers to decide how careful to be, but there is nobody to route approvals to.

Before and after

Before:

  1. The agent writes code and says it's done.
  2. A PR opens and waits for the lead.
  3. The lead reads every diff at the same depth, whether it's docs or billing.
  4. A bad merge is found by users and fixed with a redeploy.

After, following Anthropic's flow:

  1. The agent runs tests or a build, shows the output, and a fresh-context subagent reviews the diff.
  2. The PR gets an automated bug review and security review. Open findings block the merge.
  3. Required CI runs (lint, types, tests, build).
  4. The risk tier sets zero, one or two human approvals, and sensitive paths always get a person.
  5. The merge queue re-checks against main and new behavior ships behind a flag.
  6. If something slips through, the flag goes off without a deploy, and the incident review asks which layer should have caught it.

The lead's time moves from reading the docs typo to the billing change.

Try it

The smallest steps the sources support:

  1. Make the agent prove its work. The DEV Community guide suggests putting "run the test command and a diff-review subagent before opening a PR" in CLAUDE.md. It estimates 30 minutes.
  2. Write a short REVIEW.md following Anthropic's guidance above: what failure looks like, a cap on nits, paths to skip, file-and-line evidence, and a summary that starts with a count.
  3. Run /code-review and /security-review locally in Claude Code before opening a PR.
  4. Make lint, type checks, tests and build required status checks. The DEV guide says that if you do only three things, do required checks, a risk rule and a rollback you have actually practiced.
  5. On a Team or Enterprise plan, try the hosted Code Review and choose Quick, Standard or Deep per repo. None of our sources give pricing. The DEV guide lists it as "plus usage cost."

To try the inverse-pyramid route, the pstack README gives this Claude Code install:

/plugin marketplace add cursor/plugins
/plugin install pstack@cursor-plugins

Then run /pstack:setup-pstack to pick models, and /pstack:poteto-mode for tasks that need rigor. The README notes that steps needing Cursor-only features are skipped in Claude Code.

Where it breaks

Who picks this: teams already drowning in agent PRs who have blocking CI and a working rollback. Who skips it: teams still reading small PRs comfortably, or teams without tests and flags, who should build those first.

Sources