@readmodelmag
MODEL

Tools

Hot take: green tests are the new 'works on my machine' for AI-written code

SummaryA new benchmark from RELAI ran Claude Code and Codex on 900 attempts at real pull-request fixes. 400 passed the tests; only 172 were merge-ready. The misses were rarely broken builds. Not tested by MODEL.

· MODEL Editors · 2 min read

Some links may be affiliate links. Disclosure

MODEL card on a cream background. Red kicker: HOT TAKE / AI-WRITTEN CODE. Large red text: 57%. Black headline: Tests passed. Still not ready to merge. Bottom left: MODEL. Bottom right: Sources: RELAI MergeReady-Bench paper + @FeiziSoheil, Dec 1 2026.
Share of test-passing agent fixes that were not merge-ready, per RELAI's MergeReady-Bench paper. Not tested by MODEL. Illustration by MODEL. Original. Image source.

What happened. On Tuesday, Dec. 1, RELAI's Soheil Feizi, a University of Maryland computer science professor, posted that "even when Claude Code and Codex passed the tests, 57% of their fixes weren't merge-ready," and open-sourced agent-eval-loop, an Apache 2.0 plugin that builds coding-agent evals from a team's own merged pull requests (@FeiziSoheil (opens in a new tab)). The numbers come from a paper in the repository, MergeReady-Bench, by Priyatham Kattakinda, Wenxiao Wang and Feizi (paper (opens in a new tab)). Feizi says a full technical report and benchmark are coming Thursday.

Our take. "The tests pass" has become the new "works on my machine." It is necessary, and it is nowhere near enough. Sloppy AI-written code rarely breaks the build. It breaks the parts of your codebase that no test checks.

The setup. Six agents (three Claude models in Claude Code, three GPT models in Codex) each tried 50 tasks built from pull requests merged in 20 open-source repositories, three times each: 900 attempts. A fix counts as "solved" when the hidden tests and the existing tests pass, and "merge-ready" when it is solved, passes the repository's code checks and an AI code-review judge has no requests. Every task was validated: the real fix and an alternative fix had to pass, and the untouched repository and known-wrong fixes had to fail.

What they found.

  • Of 900 attempts, 400 were solved and 172 were merge-ready, so 228 of 400 test-passing fixes (57%) were not.
  • Only 32 of the 400 solved attempts failed a code check like lint or build. 178 passed every check and drew only a minor request from the reviewer, such as a missing changelog entry, a fix in the wrong layer, or a behavior change the issue did not ask for.
  • Mean cost per attempt varied 13-fold across agents, from $0.04 to $0.51, while merge-ready rates stayed between 11% and 26%.
  • Merge-ready rates varied more across repositories (3% to 40%) than across agents.
  • The top agent, Claude Code with Opus 5.5, was merge-ready at least once on 20 tasks but in all three runs on only 6.

The fix they tested. Using agent-eval-loop on seven Vue tasks, a coding agent tried 13 setups for Claude Code with Opus 5.5 while the model stayed fixed. The setup it kept, a bug-fixing workflow file plus a read-only reviewer subagent, raised the merge-ready rate from 23% to 49% and the trustworthy rate from 77% to 96%. Mean cost per trial rose from $0.32 to $0.84. Instruction files alone raised one of those numbers but not both.

The caveats, from the paper itself. The judges that decide "merge-ready" are Claude Opus 5.5, the same model as one of the agents and the reviewer subagent, so the authors note self-preference could favor that agent, and the judges' scores have not yet been compared with maintainers' ratings. The case study covers one agent, seven tasks and one repository. No task has been audited end to end by a person yet. This is RELAI's own benchmark for RELAI's own tool.

Takeaway. If your agent's pull requests keep coming back, the problem is probably not the model. Write down the conventions your reviewers enforce, add a second reviewer pass, run more than once, and stop treating a green test run as approval.

Not tested by MODEL. Not sponsored. No affiliate link.

Get three tested tools every Friday

Free, weekly. Unsubscribe anytime.

Sources

  1. MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing (PDF)

    RELAI (Kattakinda, Wang, Feizi)

  2. agent-eval-loop

    RELAI on GitHub

  3. agent-eval-loop launch post

    @FeiziSoheil on X

FREE · EVERY WEEK

The top AI tools this week, tested.

Every week MODEL's editors pick the AI tools worth your time, try them hands-on, and tell you what's good, what's not, and who it's for. Free, in your inbox.

Free. Unsubscribe anytime. Our picks are editorial and can't be bought.