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.
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
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:
- Security: secrets, authz, injection sinks, unsafe deserialization, logging of sensitive data, risky deps.
- Architecture: boundaries, wrong-layer imports, API surface growth, dependency changes.
- Tests: missing failure cases, poor assertions, rollback coverage, flake patterns.
- 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
- 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
- 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