Testing
~8 min readUpdated: December 2026

MergeReady-Bench: Evaluating Coding Agents Beyond Test Passing

MergeReady-Bench Coding Agent Evaluation Beyond Test Passing in Smoke Monkey

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%.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Examplemergeready-dual-agent.ts
mergeready-dual-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Implementer + Read-Only Reviewer dual-agent pattern proven on MergeReady-Bench
const 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);
Video Guides

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 / AttemptMedian Time
Claude Code (Opus 5.5)55%26%83%$0.512.9 min
Claude Code (Sonnet 5.5)35%11%78%$0.161.6 min
Claude Code (Haiku 5.5)40%13%71%$0.043.0 min
Codex (GPT-6.2 Sol)47%21%87%$0.121.0 min
Codex (GPT-6.2 Astra)47%23%81%$0.320.9 min
Codex (GPT-6.1 Terra)43%21%81%$0.061.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:

  1. 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.
  2. 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.md clarity matter most.
  3. 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%).
  4. 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:

bash
# 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 3
Google Search Questions & Answers

Frequently 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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness