Why AI Coding Agents Fall Into Infinite Code Review Loops—and How to Stop Them
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
- 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.
- 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.
- 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-Pattern | Working Replacement |
|---|---|
| Reviewing every small commit automatically | Review 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-pong | Hard cap: max 2 rounds, then require human sign-off |
| Relying on LLM opinions alone | Gate 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.