FIELD REPORT

I tested Claude Code vs Codex on 6 planted bugs. It ended 6-0 (full guide)

·

I tested Claude Code vs Codex on 6 planted bugs. It ended 6-0 (full guide)

All six models saw the bugs.

On 31 October I sent eight small pull requests to six AI code reviewers, and two of the six setups would still have let every bug through. Twenty days and three tool upgrades later, I ran the exact same eight pull requests again, twice per reviewer.

The models were never the weak link. What failed was everything wrapped around them: a severity threshold, a reviewer that blocks good work, and an empty quota. One setup flipped a bug from blocking to ignored within ten minutes on the same day, and a free tier that had returned empty errors suddenly caught all six.

Live-dead-live: the rule from electricians

Electricians do not trust a voltage tester that reads dead. Before touching a wire, they prove the tester on a known live source, test the wire, and then prove the tester on the live source again. If the tester broke in between, the dead reading meant nothing.

Checks around a coding agent need the exact same three-step routine:

  1. Live. Feed the check a known-bad input and watch it fire.
  2. Dead. Run the real change through it.
  3. Live again. After any model swap, tool upgrade, prompt edit, quota shift, or config change, prove it still fires on the known-bad input.

One scoring rule sits underneath all three steps: a check that could not run is PARTIAL, never PASS. A timeout, a non-zero exit, or a missing verdict is an unrun check, not an approval.

The eight pull requests

To test reviewers without noise (see how I test AI code reviewers), I built eight fixture pull requests against a small Python library. Six plant one bug each while keeping the existing test suite green, each under a plausible commit title such as perf: skip the empty slice at the end of chunk().

The six bugs cover classic review misses: an off-by-one in chunk() that drops the last chunk, a deleted null check in truncate(), a test skipped to hide a regression in stats.py, an inverted flag in slugify(), a swallowed error in duration.py that returns zero, and a tautological test on truncate() word boundaries.

Two more pull requests are clean controls: a documentation and real-test addition (c1), and a behaviour-preserving refactor (c2) that builds the duration error once up front. A reviewer that approves everything fails on the six bugs; a reviewer that blocks everything fails on the clean controls.

To count as fired, a reviewer has to return REQUEST_CHANGES and name the planted file and line within three lines. Any timeout, non-zero exit, missing verdict, or conflicting verdict scores COULD NOT RUN, which resolves to PARTIAL.

31 October: models passed, plumbing failed

On 31 October I ran every fixture once against six reviewers plus a fake control script (lgtm.py) that approves every pull request.

Claude Code 2.1.316 on Opus 5.5, Sonnet 5.5, and Haiku 5.5 all scored LIVE: six out of six planted bugs caught, zero false alarms on the two clean controls. Even Haiku caught all six (the three spot-checked outputs explained them accurately).

Codex CLI 0.166.0 (codex review on gpt-6.1-sol at xhigh reasoning) spotted and explained all six planted lines, then rated all six P2. According to OpenAI’s GitHub review documentation, Codex flags only P0 and P1 issues on GitHub so comments stay focused on high-priority risks. At that threshold, zero of six blocked (DEAD).

Note the caveat: local codex review is not GitHub’s hosted reviewer, which runs its own unpublished prompt. Three days later, on 3 November, TestMu AI published an independent test running codex twice on four planted bugs and saw the same pattern: Codex flagged all four, and rated the two user-visible bugs P2.

OpenCode 2.2.5 on MiniMax M3.1 Flash caught all six bugs, then blocked the clean refactor c2 for allocating an error object on every call (measuring valid parses roughly 47% slower). A reviewer that blocks valid code trains teams to override or disable it, so the rubric scores a blocked clean control as DEAD.

OpenCode 2.2.5 on DeepSeek V4.1 Flash’s free tier returned empty output and exit code 1 on all eight fixtures with HTTP 429 (Free usage limit reached). The drill scored it PARTIAL. A CI check that only blocks when it sees REQUEST_CHANGES would have merged all six bugs that afternoon with silence logged as approval. On 1 October, Michael Ashley hit the same failure in production when GitHub Copilot hit its review quota limit and five open pull requests waited on reviews that never arrived.

The approve-everything control scored zero of six and DEAD, as expected.

20 November: twenty days and three tool upgrades later

On 25 August, Avery Lin argued in an opinion post that the AI reviewer is the one pipeline stage nobody tests, and that teams need a planted-bug corpus re-run on a schedule to catch silent drift.

On 20 November, twenty days and three upgrades later (Claude Code 2.1.328, Codex CLI 0.170.0, OpenCode 2.2.6), I ran the exact same eight pull requests again with the same prompt and the same drill script, twice per reviewer between 11:37 and 11:54.

Claude Code did not move. Opus 5.5 (55 s and 56 s), Sonnet 5.5 (39 s and 37 s), and Haiku 5.5 (43 s and 42 s) all scored six of six bugs and zero false alarms in both runs.

Codex (codex review on gpt-6.1-sol at xhigh) moved within ten minutes on the same day. In Run 1 (finished at 11:42, 333 s), it rated the off-by-one bug P1 and the other five P2, scoring one of six blocking (DEAD). In Run 2 (finished at 11:49, 380 s), it rated all six P2 again and approved (DEAD).

Counting an earlier 31 October writable-sandbox smoke run where the off-by-one was P1, the off-by-one scored P1 in two of four runs, while the other five bugs stayed P2 across all three drill runs. Across all three drill runs, five of the six bugs never triggered a P0 or P1 block, and the sixth flipped with the run.

MiniMax M3.1 Flash stayed consistent: six of six bugs caught, and one false alarm on c2 in both runs (562 s and 305 s), measuring 25% to 44% slower valid parses in Run 1. Three runs, three false alarms.

DeepSeek V4.1 Flash’s free tier swung from eight of eight unrun on 31 October to six of six caught with zero false alarms (LIVE) in both 20 November runs. Run 1 finished in 211 s; Run 2 took 770 s, with two reviews taking over four minutes each (272 s and 288 s). Whether a free-tier reviewer works or hangs depends on the day and the hour.

Three checks that died between uses

Code reviewers are not the only checks that go quiet without error. Here are three checks from my own setup that died between uses:

  1. A folder fence disappeared on a CLI upgrade. On 17 October, upgrading OpenCode to v2 (2.0.32) swapped the build agent’s defaults to allow all external directory operations with no external_directory rule. A live run read and wrote files outside its working directory without asking, until a same-day check caught and restored the fence.
  2. A permission grant detached after an interpreter update. After a managed Python runtime was replaced on 11 August, a daily backup health check lost macOS Full Disk Access (which binds to an execution identity). The health check failed five mornings in a row (12 to 16 August) for permission errors while real overnight backups underneath were also failing (BACKUP_FAILED_DEVICE_LOCKED).
  3. A cleanup job ran inside active hours for two months. After morning operating hours extended on 1 September, all four scheduled times for a browser-cleanup script fell inside active windows where its own rule forbade quitting. The job logged a normal start every run while returning an empty list for roughly two months until 31 October.

Copy this

To run the drill on your own reviewer, you need two branches:

  1. Make a branch with one bug your tests do not catch, such as an off-by-one in a loop bound, and open it as a pull request.
  2. Open a second pull request with a clean change, so you also see whether the reviewer blocks good code.
  3. Send both to your reviewer with your usual settings. The first must be blocked and the second approved.
  4. Keep both branches and send them again after every model swap, tool upgrade, prompt edit, quota shift, or config change. A timeout, a non-zero exit, or a missing verdict counts as PARTIAL, never PASS.

Credits

Live-dead-live (called prove-test-prove in the UK) comes from electrical safety testing. Planting bugs on purpose comes from mutation testing, and watching a check fail before trusting a pass is the red step of TDD. Closer to AI coding agents, Christopher Maher wrote about his “bite check” on 22 June 2026, Ichigo (@iiiichigo_chan) included a “Test the tester” step on 24 October 2026, Avery Lin made the case for scheduled planted-bug corpora on 25 August 2026, Michael Ashley documented his 1 October Copilot quota failure, and TestMu AI documented Codex’s P2 threshold on 3 November 2026.

Has your AI code reviewer or CI gate ever failed a planted-bug check, or have you only ever watched it print green?

Files for this piece

The 3 page summary PDF comes with the briefing below.

First published on X.