Most AI agent code that passes tests is not prepared to merge
Of 900 tries, 400 passed the tests, but only 172 gave code that was prepared to merge into the project.
Researchers released MergeReady-Bench, a benchmark (a standard test) for AI agents that write code. It has 50 tasks from new pull requests, which are code changes for inspection, in 20 open source projects. They examined six agents, three models each in Claude Code and Codex, three times. Less than half of the solved tries were prepared to merge.
Three grades
Each try gets a grade for three results:
- solved: the code passes the hidden tests and the initial tests
- prepared to merge: it also passes code checks and a code judge
- trustworthy: the agent did a check, operated safely and told the results correctly
The numbers
Higher cost did not give a higher merge rate. No agent was above 26%. GPT-6.1 Terra is equal to GPT-6.2 Sol on this rate at half the cost. The rate changes more between projects than between agents.
Repeat tries and fixes
The top agent gave code prepared to merge one time or more on 20 tasks, but in all tries on only 6. With a free add-on tool from the researchers, an agent added a guide to bug repair and a checker agent to Claude Code. The merge rate became more than two times higher, at 49%. This test used Claude Opus 5.5 on only seven Vue tasks.
Insight: The merge gate can be more important than the model
This study finds more difference between projects than between agents. An October study, InfraDev, found that more tests rejected 32% of changes that official tests accepted. Another October study found that many agent changes to code and server setup merge with no inspection. This reads as a move of control to the team that writes the merge checks. Before you pay for a model with a higher price, increase the quality of your project checks.
Sources
Posted