MergeReady-Bench: Evaluating Coding Agents Beyond Test Passing

MergeReady-Bench (arXiv:2612.02506, RELAI.ai) evaluates coding agents on 50 validated pull requests across 20 open-source repositories using three strict outcomes: solved, merge-ready, and trustworthy. Across 900 attempts by Claude Code and Codex agents, 400 passed hidden tests (solved) but only 172 were merge-ready—while adding a workflow guide plus a read-only reviewer subagent doubled merge-readiness from 23% to 49%.
MergeReady-Bench: Evaluating Coding Agents Beyond Test Passing: MergeReady-Bench (arXiv:2612.02506, RELAI.ai) evaluates coding agents on 50 validated pull requests across 20 open-source repositories using three strict outcomes: solved, merge-ready, and trustworthy. Across 900 attempts by Claude Code and Codex agents, 400 passed hidden tests (solved) but only 172 were merge-ready—while adding a workflow guide plus a read-only reviewer subagent doubled merge-readiness from 23% to 49%. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Exposes the Solve-vs-Merge Gap: Of 900 agent runs, 400 solved hidden tests (44%) but only 172 (19%) passed repository lint/type checks and code-review criteria.
- Cost Does Not Predict Mergeability: Mean attempt cost varies 13x ($0.04 to $0.51), yet GPT-6.1 Terra ($0.06) matches GPT-6.2 Sol ($0.12) at 21% merge-ready.
- Doubles Merge-Ready Rate via Harness Design: Revising workflow instructions and adding a read-only reviewer subagent lifted Vue task merge-readiness from 23% to 49% and trustworthiness from 77% to 96%.
- Open Dataset & Eval Loop: Ships 50 validated PR tasks on Hugging Face (relai-ai/mergeready-bench) and open-source agent-eval-loop tooling.
import { createAgent } from '@smoke-monkey/harness';// Implementer + Read-Only Reviewer dual-agent pattern proven on MergeReady-Benchconst implementer = createAgent({agentId: 'mergeready-implementer',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8000/v1',model: 'Qwen/Qwen3-Coder',workspacePath: process.cwd(),permissions: { read_file: 'allow', write_file: 'allow', run_command: 'ask' },});const reviewer = createAgent({agentId: 'mergeready-readonly-reviewer',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8000/v1',model: 'Qwen/Qwen3-Coder',workspacePath: process.cwd(),permissions: { read_file: 'allow', write_file: 'deny', run_command: 'deny' },});async function main() {const fix = await implementer.run('Implement minimal fix, run typecheck + lint + tests, and summarize exact output.');const review = await reviewer.run(`Audit git diff for scope creep, missing tests, and report accuracy:\n${fix.summary}`);console.log('Merge-ready review verdict:', review.summary);}main().catch(console.error);
Watch: Related Video Guides
How SWE-bench Changed the Way We Test AI Coders
How AI Coding Gets Tested | SWE-bench Explained
What Is MergeReady-Bench and How Are Agents Graded?
MergeReady-Bench tests whether autonomous coding agents produce pull requests maintainers can actually merge, rather than brittle patches that only satisfy unit tests. Every task across 20 repositories is validated so both the merged PR and an alternative fix pass hidden tests while the base commit and known-bad fixes fail.
| Agent & Harness (150 Attempts Each) | Solved (%) | Merge-Ready (%) | Trustworthy (%) | Cost / Attempt | Median Time |
|---|---|---|---|---|---|
| Claude Code (Opus 5.5) | 55% | 26% | 83% | $0.51 | 2.9 min |
| Claude Code (Sonnet 5.5) | 35% | 11% | 78% | $0.16 | 1.6 min |
| Claude Code (Haiku 5.5) | 40% | 13% | 71% | $0.04 | 3.0 min |
| Codex (GPT-6.2 Sol) | 47% | 21% | 87% | $0.12 | 1.0 min |
| Codex (GPT-6.2 Astra) | 47% | 23% | 81% | $0.32 | 0.9 min |
| Codex (GPT-6.1 Terra) | 43% | 21% | 81% | $0.06 | 1.2 min |
Four Empirical Findings for Coding Agent Harnesses
Analyzing 900 attempts and an iterative optimization case study on Vue tasks revealed concrete levers for engineering teams:
- Passing Tests != Merge-Ready: Over half of test-passing patches failed repository lint/type checks, broke unrelated invariants, or introduced scope creep flagged by the code-review judge.
- Repository Variance Dominates Model Choice: Merge-ready rates swung from 3% to 40% across repositories—far wider than the 11% to 26% spread across models—proving repo tooling and
AGENTS.mdclarity matter most. - Separate Reviewer Subagent Beats Higher Reasoning Effort: Raising reasoning effort alone did not reliably lift merge-readiness, whereas pairing a concise bug-fix workflow with a separate read-only reviewer subagent lifted merge-readiness from 23% to 49% (trustworthy 77% -> 96%).
- Rigid Blanket Rules Backfire: Hard rules like "zero new exports" caused artificial workarounds; softening them to "avoid unless needed" improved solve rate and trustworthiness.
Enforce a Combined Final Verification Command
Requiring coding agents to run typecheck, lint, and tests in one combined final command before writing a 10-line summary eliminates stale test claims and catches formatting regressions.
Reproducible MergeReady-Bench & Agent-Eval-Loop Commands
Download the validated 50-task dataset and run the open-source evaluation loop locally:
# Clone the evaluation loop tooling
git clone https://github.com/relai-ai/agent-eval-loop.git && cd agent-eval-loop
# Pull the validated 50-PR dataset from Hugging Face
hf download relai-ai/mergeready-bench --repo-type dataset --local-dir ./data/mergeready-bench
# Run evaluation checks (unit tests + repo lint/typecheck + judge rubrics)
python -m agent_eval_loop.run --dataset ./data/mergeready-bench --agent claude-code --runs 3Frequently Asked Questions
Q:What separates "solved" from "merge-ready" on MergeReady-Bench?
A solved attempt only passes existing and hidden unit tests. A merge-ready attempt must also pass all repository code checks (lint, formatting, typecheck) and receive zero change requests from a rubric-validated code-review judge.
Q:What does "trustworthy" measure in MergeReady-Bench?
Trustworthy verifies two conditions: the agent followed safe engineering processes (actually running checks rather than bypassing them) and reported its edits and test results accurately without fabricating passes.
Q:How did the authors double merge-readiness without changing the model?
Using agent-eval-loop on seven Vue tasks, adding a structured bug-fix workflow and a read-only reviewer subagent lifted merge-ready rate from 23% to 49% and trustworthy rate from 77% to 96%.
Q:Are MergeReady-Bench tasks reproducible across runs?
Single-run evaluations can mislead: even the top-scoring agent (Opus 5.5) was merge-ready at least once on 20 tasks out of 50, but merge-ready in all 3 runs on only 6 tasks.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.