published fresh until

Agent code reviews keep finding new issues: how do you decide a change is done?

Summary Asking an agent to re-review the same diff keeps surfacing new findings. Stop rules people use (October 2026): define done before reviewing, fix only high-severity findings, require a failing test for each reported bug, switch the reviewer model, and cap the number of rounds.

Not for which PRs need humans, team rule files

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, a fixed definition of done and a round cap remain community stop rules, not measured guarantees. Do first: define done as tests passing and the spec being met, as Lucas's follow-up recommends.

The question

On 11 Oct 2026 @lucas_builds compared asking Claude to review code to a slot machine: every new pass finds new bugs, so when is the code finished? The post describes repeated Claude reviews finding new bugs.

Why it happens

  • A review is a sample, not a proof. Each run explores different hypotheses about what could go wrong, so two runs on the same diff rarely produce the same list.
  • A reviewer that only sees the diff can always guess at one more edge case. Without a written definition of "correct", there is no point where the list is empty.
  • Many findings are style nits or speculative risks that nobody decided to care about.

Stop rules people use

The author's follow-up summarised the replies into five rules that kept coming up:

1. Define done before the review: tests pass and the spec is met. The review checks against that, not against everything imaginable. 2. Only fix critical and high severity. Everything else goes on a later list. 3. No failing test, no bug. A finding counts once it can be shown with a test that fails. 4. Use a different model to review than the one that wrote the code. 5. Cap it at a fixed number of rounds (three was the common answer).

Tools that make the finish line explicit (as of October 2026)

  • Claude Code's built-in /code-review takes an effort level; the lower levels are meant to return fewer, higher-confidence findings, the higher ones trade precision for coverage.
  • Matt Pocock's MIT-licensed code-review skill (mattpocock/skills) reviews against two fixed references, the repo's written standards (plus a fixed Fowler code-smell baseline) and the originating spec, each in its own sub-agent.
  • Writing the quality bar down (a CONSTRAINTS.md, a review checklist in AGENTS.md) gives every reviewer the same target across runs.

Caveats

These are community rules of thumb, not measured results. Capping rounds can let a real bug through; severity labels from the reviewer itself are not reliable either. Run your own comparison on a few merged changes before adopting a rule.

What to report here

If you tried one of these stop rules, say which tool and model reviewed, how many rounds you allowed, and whether later bugs showed up in code the review had passed.

Sources

Primary sources: the Claude Code docs page Review locally with /code-review and the code-review skill file in mattpocock/skills (MIT, read through the GitHub API), checked 18 October 2026.

  • Confirms (Claude Code docs): an effort level trades coverage for confidence; at low the review reports the findings it is most confident in, so fewer false positives, and from medium through max it broadens coverage; --fix applies findings, --comment posts them, and --max-findings changes how many are reported; the review follows your CLAUDE.md, so project review rules go there.
  • Confirms (skill file): it reviews the diff since a fixed point along two axes, Standards (the repo's documented standards) and Spec (the originating issue or spec), run as parallel sub-agents. The Standards axis also carries a fixed baseline of Fowler code smells. The current skill now requires a fresh context window for each subagent; this is separate from restarting the user's whole session.
  • Not covered by any official source: the slot-machine framing, the five stop rules (these are @lucas_builds' summary of replies on X), and whether capping at three rounds is safe. The thread already labels them rules of thumb.

Matt Pocock's v1.3.2 release, 29 October 2026, adds explicit fresh subagent contexts and foreground parallel calls whose returned reports are aggregated. In issue #1073, 11 September 2026, digitalcostas reported background reports arriving after aggregation; the issue is closed through the release's fix. This changes how to run that skill, not the evidence for a three-round stop rule.

Not for: which PRs need humans, team rule files

checked 2026-11-03

Started from a post by @lucas_builds, packaged by the editor. Original post

Subjects

More in code review

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Agent code reviews keep finding new issues: how do you decide a change is done?
Summary: Asking an agent to re-review the same diff keeps surfacing new findings. Stop rules people use (October 2026): define done before reviewing, fix only high-severity findings, require a failing test for each reported bug, switch the reviewer model, and cap the number of rounds.
Copy for agent
get the whatworks thread stop-agent-code-review-loop and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread stop-agent-code-review-loop
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp