Multi-agent code review that catches real bugs

One generic “please review this PR” pass tends to miss structured risk. Multi-agent review works when each pass has one job, and when a human triages the.

Published 2026-11-09 · Translation: VI

One generic “please review this PR” pass tends to miss structured risk. Multi-agent review works when each pass has one job, and when a human triages the output into decisions.

The trap is letting the agent write essays. An essay feels thorough while still being unusable for merging. You want a list of issues with locations, severity, and fixes.

Pick role-split review when risk is real

When this fits vs when it does not

When this fits vs when it does not

Role-split is worth it when:

  • the PR touches auth, data parsing, payments, migrations, or infra glue
  • the diff is large enough that a human will skim
  • the team is seeing repeat incidents caused by the same class of mistakes

For a typo or a one-line config change, do not spend four passes. Keep the workflow cost proportional to risk.

Run roles, then triage, then decide

Operational defaults that keep this useful:

  • Separate context windows. The security pass should not see the generator’s rationalizations.
  • Fixed output format. For each finding: severity, file path, line range, why it matters, suggested fix.
  • Time box per role. You want coverage, not infinite debate.

A simple role set:

  1. Security: secrets, authz, injection sinks, unsafe deserialization, logging of sensitive data, risky deps.
  2. Architecture: boundaries, wrong-layer imports, API surface growth, dependency changes.
  3. Tests: missing failure cases, poor assertions, rollback coverage, flake patterns.
  4. Diff hygiene: unrelated renames, formatting churn, dead code, incomplete PR template.

The human owner then maps every finding to one of three outcomes: fix now, follow-up ticket, or dismiss with a reason. That mapping is what teaches both humans and agents.

Three failure modes that make multi-agent review worthless

Failure modes to catch early

Failure modes to catch early

  • Self-review in the same context. The model defends its own story. Fix: run critic roles in fresh context.
  • No triage. Four roles produce contradictions and nothing gets decided. Fix: require must-fix vs follow-up labels.
  • Essay output. Findings with no file and no fix are not findings. Fix: enforce a strict schema for output.

A weekly loop that improves review quality

Review Loop

Review Loop

  • Save the best “caught a real bug” findings as prompt fixtures.
  • Delete noisy prompt lines that produce style nits.
  • Track one number: percent of role findings that became real changes. If it drops, your roles drifted.

Bottom line

Multi-agent review works when roles are sharp, outputs are actionable, and humans triage into decisions. Treat it as a way to expand checklist coverage, not as a replacement for merge responsibility.

Related: Pair two models: generator vs critic and Protect monorepo package boundaries from agents.

Share

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