Guide AI Coding & Agents Published 1 min read

Why AI Coding Agents Fall Into Infinite Code Review Loops—and How to Stop Them

Quick Answer & Key Takeaways

Setting a high-reasoning model to automatically review every micro-commit from another coding agent routinely causes endless nitpicking loops—like Theo's viral 19-round loop that inflated a 480-line hotkey into 5,000+ lines. Fix it by reviewing against explicit specs at the module level, capping review rounds at two, and grading findings by real-world failure probability.

  • High-reasoning reviewers invent hypothetical edge cases when given an open-ended 'review this diff' prompt.
  • Cross-model ping-pong (e.g., Gemini Neon writing, GPT Astra or Claude Opus reviewing every micro-edit) burns rate limits and balloons codebases 5–10x.
  • Always split reviews into three explicit lenses: spec compliance, architecture, and critical bugs—never 'find everything wrong'.
  • Cap automated review cycles to 1–2 rounds and enforce end-to-end tests instead of endless static commentary.

The Anatomy of a 10x Review Spiral

A pattern has surfaced across almost every heavy AI-coding team: you ask Agent A to implement a small feature, then wire Agent B on maximum reasoning to review the diff until it approves.

In a widely discussed example from T3 Code creator Theo, a simple Cmd+Enter hotkey feature started at 480 lines and ballooned past 5,000 lines across 19 back-and-forth review rounds. Developers running dual-worker loops overnight report the exact same outcome: two frontier models arguing over theoretical race conditions until morning while shipping zero net value.

Why High-Reasoning Models Over-Review

  1. Sycophancy in reverse: When you ask a smart model to "review this PR," it assumes its job is to find flaws. If no real bugs exist, it invents speculative edge cases.
  2. No shared definition of done: Without a written spec, Reviewer B judges the code against its own preferred style rather than the user's goal.
  3. Style clash across providers: Sending one provider's idioms to a rival provider produces multi-page rewrites over naming and abstraction taste.

The 4-Rule Review Protocol That Works

Anti-PatternWorking Replacement
Reviewing every small commit automaticallyReview completed modules against a short written spec
Prompt: "Review this code carefully"Prompt: "List only P0/P1 bugs that break the spec or leak data. Ignore style."
Unlimited auto-fix ping-pongHard cap: max 2 rounds, then require human sign-off
Relying on LLM opinions aloneGate merges on automated tests + E2E browser/CLI checks

A Copy-Paste Triage Prompt for Reviews

When you do want a second opinion from another model, force a severity filter:

Review this module strictly against the spec below.
Return a table with columns: Issue | Real-World Probability (Low/Med/High) | Impact | Fix Required (Yes/No).
Do not suggest speculative abstractions, extra wrappers, or style rewrites.
Only flag defects that cause data loss, security holes, or broken user flows.

Frequently Asked Questions

Is cross-model code review ever worth using?

Yes—once per completed feature or security-sensitive module, with a strict severity filter and a 1-round cap. It breaks down when wired into an unbounded commit-by-commit loop.

Primary Sources & Verification

Related Articles

Guide

The Reasoning Overthinking Trap: Why Medium Effort Often Beats Extra High

Leaving coding agents permanently on Extra High reasoning wastes rate limits and triggers overthinking—such as hand-writing raw XML for an Excel file instead of invoking a library. Match effort to task complexity, compress context before hitting 250k–300k tokens, and instruct agents to use real CLI tools for binary document formats.