Agent-Assisted Code Review · ~7 min
A reviewer is allowed to suspect anything. The reader is allowed to see only what an independent verifier could actually reproduce.
The fix is structural, not a better prompt. Put an independent verifier between the reviewer's findings and the human, and drop anything it cannot reproduce against actual code behavior. A reproduction is harder to fake than a judgment — and that asymmetry is the whole pattern.
A reviewer raises candidate findings freely — high recall, speculative, cheap. A fresh-context verifier then tries to build a concrete reproduction for each one before it ships. The gate sits exactly where findings would otherwise reach the user.
"Reproduce" is concrete, not a second opinion. Given the diff plus the claim ("function X crashes on
empty input at line 42"), the verifier must produce one of: an input that triggers the failure, a code path that shows
the contradiction, or a file:line citation to the behavior in the source. The canonical bar is a behavior
claim needs a citation in the code — not an inference from a variable's name.
A verifier that shares context with the reviewer inherits its reasoning errors and rubber-stamps its own false positives. Two dimensions make the verifier independent:
The gain is empirical. Multi-agent verification with conditionally independent agents lifted accuracy from 32.8% to 72.4% in CodeX-Verify, with measured reviewer-pair error correlations of just 0.05–0.25 — confirming the agents fail on non-overlapping populations.
Non-reproducing findings are dropped without a trace, not appended as low-confidence noise. Surfacing them with a "maybe" flag re-creates exactly the noise problem the gate exists to solve.
A pipeline that spawns many reviewers but reports every candidate isn't running this gate — it's raw fan-out, which amplifies false positives instead of filtering them. The verify step is what converts diversity into precision.
| Part | Job | Implementation |
|---|---|---|
| Reviewer | High-recall candidate generation | Per-class agents (correctness, security, regressions) in parallel |
| Verifier | Reproduction against actual code | Fresh-context agent given diff + claim; reproduced or dropped |
| Drop policy | Discard non-reproducing findings | Silent — not surfaced to the user |
| Artifact | Expose the evidence | "How it verified the problem" reasoning, on demand |
The gate is for substantial pre-merge changes, not every diff. Watch four failure modes:
file:line citation, never a naming inference.Retrieval practice — recall, don't peek
Question 1A reproduce-before-report gate drops a reviewer finding when…
Question 2The load-bearing property that makes the verifier work is its…
Question 3A finding the verifier cannot reproduce should be…
Question 4Fanning out many reviewers but reporting every candidate is…
Question 5 · spaced recall from an earlier lessonIn the committee pattern, running several specialized reviewers and synthesizing one verdict beats…
REVIEW.md verification bar tuned to your worst false-positive
class, or help deciding which defect classes to route to an unverified-suspicion channel? Next: Human-AI
Synergy — splitting review by comparative advantage so agents triage breadth and humans judge intent.