Pair two models: generator vs critic

A generator-critic pair catches subtle bugs a single pass misses. One model proposes a minimal patch; another challenges assumptions, tests, and edge cases.

Published 2026-11-09 · Translation: VI

A generator-critic pair catches subtle bugs a single pass misses. One model proposes a minimal patch; another challenges assumptions, tests, and edge cases. A human still decides.

The trap is self-review in the same thread. The model defends its own story. Fresh context plus a hostile brief finds contradictions that confidence hides.

When to spend a second model

When this fits vs when it does not

When this fits vs when it does not

Run the pair when failure is expensive or the diff is large enough that humans miss patterns. Skip it for copy-only PRs and when you cannot afford a human reconciliation step. Different vendors help, but separate context and a defect-focused brief already improve results.

Generate → criticize → human decide

Critic Loop

Critic Loop

Practical loop:

  1. Generator produces a minimal patch with tests and a short explanation.
  2. Critic gets a new context: diff, acceptance criteria, and a brief to find defects (correctness, security, performance, hygiene). No rewrite-for-taste mandate.
  3. Sort findings into must-fix vs nits. Generator addresses must-fix only.
  4. Human triages remaining disagreements and merges or rejects.
  5. Save critic prompts that repeatedly catch real bugs; drop noisy ones.
  6. Time-box deadlocks. Prefer a distinguishing test over picking the more confident voice.

Use this loop on high-risk paths. Skip it when the cost of two passes exceeds the cost of a typo.

Three ways the pair fails

Failure modes to catch early

Failure modes to catch early

  • Self-grading. Same window “reviews” its own patch. Fix: new thread, new model if you can, no generator prose.
  • Nit theater. Style comments block merge; real bugs drown. Fix: severity labels and a human who ignores nits by default.
  • Model swarm. Five critics, no owner. Fix: two disciplined passes max; advisory CI comments only on critical paths.

A weekly habit

Reserve the pair for auth, payments, migrations, and concurrency. Keep a folder of exemplary critic catches as fixtures for your eval harness. Drop prompts that produce essays without locations.

Bottom line

Separate contexts, a hostile brief, severity labels, and a human decision beat one confident pass. Spend the second model where bugs are expensive.

Related: Multi-agent code review that catches real bugs and Measure coding-agent ROI without vanity metrics.

Share

X Facebook LinkedIn
Educational content only. Rankings reflect stated criteria at the update date—not investment advice or permanent performance guarantees.