Anthropic's AI Code Reviewer Looped 50 Rounds. The Fix: Stop at Three.

The Claude Code team says its share of reverted changes fell over 40 percent; its reviewer now serves 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.

Anthropic's playbook, most of it free

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 it also offers a monthly spend limit for the Code Review service under claude.ai/admin-settings/usage, which skips reviews once it runs out. Eligible Enterprise organizations can claim at least $10,000 in Code Review credits until January 15, 2027, per the launch post; credits expire 30 days after they are claimed. And a clean review "doesn't mean your code is error-free or secure." The 40 percent is Anthropic's own figure for its own team, so the number worth watching is a team's own revert rate before and after. The main doubt on Hacker News was whether any of this works without a big lab's budget; the five free steps above are the part that travels.

Sources

Comments

No comments yet.

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