Comparing AI Coding Agents: A Task-Stratified Analysis of Pull Request Acceptance
This empirical study analyzes 7,156 pull requests to reveal that while Devin shows a unique positive temporal trend in acceptance, task type is the dominant factor influencing success rates, with OpenAI Codex demonstrating the most consistent high performance across diverse categories despite no single agent excelling in all task types.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are the manager of a busy construction site. Instead of human workers, you have five different AI robots (OpenAI Codex, GitHub Copilot, Devin, Cursor, and Claude Code) that can write code, fix bugs, and write documentation. Your goal is to see which robot is the best at getting its work approved by the site inspectors (the "Pull Request Acceptance Rate").
This paper is like a detailed report card comparing these five robots over several months. Here is what they found, explained simply:
1. The "Job Type" Matters More Than the Robot
The biggest surprise wasn't which robot was the fastest, but what kind of job they were doing.
- The Analogy: Imagine asking a robot to "write a poem" versus "build a bridge." Writing a poem is usually easier to get approved than building a bridge.
- The Finding: The paper found that the type of task is the most important factor.
- When the robots were asked to do documentation (like writing manuals or comments), they got approved 82% of the time.
- When they were asked to build new features (like adding a new room to a house), they only got approved 66% of the time.
- The Lesson: If you judge a robot just by its overall score, you might be fooled. A robot that mostly does easy "poem-writing" tasks will look like a superstar, even if it's terrible at "bridge-building."
2. No Single Robot Wins Every Category
There is no "best robot" for everything. Each one has a specific superpower.
- OpenAI Codex: This is the reliable all-rounder. It performed consistently well across almost every type of job, never dropping below a decent score.
- Claude Code: This is the Documentation Specialist. It was the best at writing manuals and creating new features, but we have to be careful because it didn't do many other tasks in this study.
- Cursor: This is the Bug Fixer. When it came to fixing broken things, it was the top performer.
- Devin: This robot started slow but got better over time. It was the only one that showed a clear trend of improvement week after week, climbing from about 60% approval to 80%.
3. Time Changes Things (But Not for Everyone)
The researchers watched these robots for months to see if they learned or improved.
- The Analogy: Think of it like a student taking a test every week.
- Devin is like the student who studies hard and keeps getting higher scores every week.
- The others are like students who are already smart; they start high and stay high, but they don't show much improvement over time. They just stay consistent.
4. Why the "Global Score" is Misleading
The paper warns against looking at a single "average score" for a robot.
- The Analogy: Imagine two chefs. Chef A only cooks simple salads (which everyone loves). Chef B only cooks complex, spicy stews (which are harder to get right). If you just look at the "average customer rating," Chef A might look better. But that doesn't mean Chef A is a better chef; it just means they were given easier ingredients.
- The Finding: The researchers had to separate the robots by the type of job they did to get a fair comparison. Once they did that, they found that the "best" robot changed depending on whether the job was fixing a bug, writing a test, or updating a document.
Summary
If you want to hire an AI coding assistant, don't just ask, "Who is the best?"
- If you need bug fixes, look at Cursor or OpenAI Codex.
- If you need new features or documentation, Claude Code or OpenAI Codex might be your best bet.
- If you want a robot that seems to be learning and improving over time, Devin is the one to watch.
The main takeaway is that context is king. You can't judge a tool without knowing exactly what job it's being asked to do.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.