Anthropic's AI code reviewer got stuck in a 50-round loop overnight. The fix: stop at three.

The Claude Code team showed how it checks code that AI writes, says the share of changes it had to undo fell by more than 40 percent, and opened its review tool to business plans.

Listen to this story
4:39

On October 15, Anthropic shared how the Claude Code team does code review. Claude Code is Anthropic's coding agent, which writes software on its own. Code review is the step where someone reads a change before it goes live, and on that team AI now does most of the reading. Anthropic says that from June to September, merged pull requests (bundles of code changes) more than doubled, while the share that later had to be undone, or "reverted," fell by more than 40 percent. Those are the company's own numbers, with no counts behind them.

The most useful part is a failure. One pull request "went through more than fifty rounds of review and fixes overnight before its author stopped it." About 59 percent of what the reviewer kept flagging was code that had been there since its first look. The fix was a cap: after three rounds, the author steps back and rethinks the approach.

The reviewer is only one guard. The post shows six layers of checks, from the author's own testing to a security review and human approval scaled by risk, with fast rollback, a quick way to undo a release, underneath. The 40 percent came from all of them together. Claude Code is one of Jon's main tools, and his fleet already runs one reviewer agent on every change before it lands. An AI writer and an AI reviewer can keep each other busy forever, and when every round is billed in tokens, the units AI use is metered in, a loop is a bill as well as a delay.

The same day, the paid Code Review product became generally available for Team and Enterprise plans. Most reviews now take 6 to 10 minutes, down from about 20. Per its documentation, it works "without building or running your code" and "never approves or blocks the pull request." There is "no flat per-review price"; in March, Anthropic said reviews "generally average $15–25," and it has published no newer figure. The Next Web notes that no one outside the company has tested these numbers. Since then, the Claude Code changelog shows only small fixes, such as an October 31 chart of findings by severity on the analytics page.

How to use it

Most of it costs nothing:

  1. Test before review. Have the agent run tests or a build and show the results.
  2. Cap the rounds at three, then rethink. Later passes re-review only the new changes, flag the whole class of bug at once, and never repeat a posted finding.
  3. Set risk from the change, not the author. Docs and small changes hidden behind a switch need no person once checks pass. Ordinary changes need one; the riskiest code needs two. "An agent's approval never counts as a person's."
  4. Write a REVIEW.md, a file telling the reviewer what failure looks like in that project and asking for a file and line as proof.
  5. Turn past mistakes into a test. Anthropic runs its reviewer daily against old pull requests that caused incidents.

Inside Claude Code, the /code-review command runs a similar check on any plan, at an effort level from low to max. --fix applies the findings and --comment posts them. /code-review ultra runs a deeper review in the cloud, with three free runs on Pro, Max and Ultra plans.

For the paid product, an Owner of the Claude organization turns it on in Admin settings on claude.ai, per the setup page. The catch: a new repository starts on "After every push," so cost grows with every push. Switch it to "Once after PR creation" or "Manual." To estimate spend, the costs page says to run a small pilot and read each repository's "Average cost" column. And a clean review "doesn't mean your code is error-free or secure."

What nobody knows yet

  • The counts behind the 40 percent, and what else changed in those months.
  • What a review costs today. The only public average is from March.
  • Whether this works for a small team without a big lab's budget, the main doubt on Hacker News.
  • Anthropic's own gap: nothing yet tightens approval automatically when reverts rise.

What to watch

  • An outside team publishing its own revert numbers with Code Review turned on.
  • January 15, 2027: the last day eligible Enterprise organizations can claim Code Review credits.

Sources

Comments

No comments yet.

Sign in to comment. You'll come back to this story.