a builder's codex
codex · operators · Jarred Sumner · ins_sumner-adversarial-reviewer-pairing

Pairing implementer agents with dedicated adversarial reviewer agents catches bug categories that single-context review misses

By Jarred Sumner · Creator of Bun JavaScript runtime · 2026-07-08 · essay · Rewriting Bun in Rust

Tier B · TL;DR
Pairing implementer agents with dedicated adversarial reviewer agents catches bug categories that single-context review misses

Claim

Pairing implementer agents with separate adversarial reviewer agents, each given explicit instructions to find reasons the code fails, catches bug categories that single-context code review misses.

Mechanism

When the same context that wrote code also reviews it, the model carries forward its own assumptions and blind spots. A separate reviewer instance with no shared context and an explicit adversarial mandate approaches the code without those priors. Sumner ran 64 concurrent Claude agents during the Bun-in-Rust migration. Reviewer instances were instructed to find failures, not to confirm correctness. This framing shift produced qualitatively different review behavior: the reviewer looked for reasons to reject rather than reasons to accept, which surfaced failure modes the implementer had not modeled. Three bug categories were caught by reviewers that implementers missed entirely.

Conditions

Holds when: parallel agent capacity is available; the codebase is large enough that no single context can hold it; code correctness matters enough to justify the compute overhead of a second pass.

Fails when: the reviewer is given the same context as the implementer, collapsing the adversarial dynamic; or when the review prompt is too general and lacks an explicit instruction to find failure modes.

Evidence

Sumner documented the Bun-in-Rust migration in a July 8, 2026 essay. The migration ported 535,000 lines of Zig to Rust in 11 days, with 6,502 commits, 5.9 billion input tokens, and 64 concurrent Claude agents. The reviewer pairing was explicit: separate instances were instantiated specifically to find problems, not to validate. Three bug categories were caught this way that the implementer pass had not surfaced.

Signals

Counter-evidence

The technique requires significant compute: a second full-context pass per implementation unit at 64-agent parallelism. For smaller codebases or lower-stakes changes, a single-pass review may be sufficient. The three bug categories caught are not enumerated in the essay, so the severity and type of failures remains unspecified. It is also unclear whether the same result could be achieved by a different review prompt given to the same implementer context, or whether the separate instance is the key variable.

Cross-references

Open the interactive view → View original source → Markdown source →