Yeda AI Tips · #100

Español

One Model Writes, a Different Model Reviews

Never let the AI grade its own homework. The model that wrote your code shares its own blind spots — ask it to review its own output and it tends to approve its own mistakes. The fix is structural, not a better prompt: one model writes, a different model reviews, the first one fixes, and a human makes the final call.

Why self-review fails

This isn't a hunch; it's measured.

The intuition matches the data: the same weights that produced a wrong assumption will re-apply that assumption during review. One model, one set of blind spots.

The split-role loop

  1. Model A writes. Full task context: spec, constraints, codebase conventions.
  2. Model B reviews. A different model family gets the diff plus the spec and reviews for correctness, edge cases, and architecture. It flags — it does not rewrite.
  3. Model A fixes. Feed B's findings back to the writer. Cap it at 1–2 rounds.
  4. A human decides. Merge, revise, or reject. The models advise; you own the call.

A review prompt that keeps the roles clean:

You are a senior code reviewer. You did not write this code.
Review the diff below against the attached spec for correctness,
edge cases, and architecture. List findings as numbered items
with file:line references. Do not rewrite the code.

Rules of thumb

SituationDo this
Picking the reviewerDifferent model family, not the same model at another temperature
Reviewer outputA findings list with file:line — never a rewritten patch
Fix loopWriter applies fixes; stop after 1–2 rounds
Writer and reviewer agree instantlyFine — but spot-check; agreement isn't proof
Writer and reviewer disagreeThat's signal — read that code yourself first
Final mergeAlways a human

Power-user moves

Resources

Building an AI feature? Yeda AI designs, audits, and ships production LLM systems.

Talk to us · Read the blog