The same model scores differently in different coding agents, and one agent can pass a task on one run and fail it on the next. Running both agents on the same tasks, several times each, is how you tell a real gap from noise.
Engineer's view. This is comparing two builds by replaying the same captured traffic through both. Each request is fast or slow on its own, so you measure the difference request by request. Compare coding agents on different tasks, or with one run each, and task difficulty becomes that noise. It hides most gaps under 15 points.
TL;DR. To compare coding agents, run both on the same tasks from your own repo, several times each, and measure the difference task by task. That cancels out how hard each task is. Even then, 50 tasks only settle large gaps, so report the interval, not just the winner.
Explain Like I'm 5
Two kids want to know who spells better. If each kid gets a different list of words, one list might just be easier. So you give both kids the same list.
Now look closely. An easy word that both kids get right tells you nothing. A hard word that both kids miss tells you nothing either. Only the words where one kid is right and the other is wrong show who is better.
Kids also slip on words they know. So you ask each word a few times before you decide.
The Problem
You have shipped this bug before, and it had nothing to do with AI.
You rewrote a hot path and wanted to know if the new build was faster. So you compared Monday's p95 latency on the old build with Tuesday's on the new one. Tuesday was 12% faster. You celebrated. Then someone pointed out that Tuesday's traffic had fewer large uploads. The build had not changed much. The requests had.
The fix you learned was replay. Capture one set of requests and send the same set through both builds. Then compare each request with itself.
Choosing a coding agent has the same bug. A leaderboard shows one agent at 62% and another at 58%. Often the two scores come from different runs, sometimes from different task sets, and often from one run per task. Or your team trials one agent for a week and another the next week, on different tickets.
Two sources of noise hide in those numbers. First, tasks differ wildly. Some tasks every agent solves, and some none can. Second, an agent is not repeatable. The same agent on the same task passes on one run and fails on the next. Either noise is larger than most of the gaps you are trying to see.
The fix: run both agents on the same tasks from your own repo, several times each, and measure the difference task by task, with an interval around it.
Read the full post on The AI Commit
How to Compare Two Coding Agents on Your Own Tasks carries the rest: the fix and why it works, the code to change for each role, how to tell it worked, when it is the wrong tool, and an interactive model you can play with.
Originally published at theaicommit.com, a daily AI engineering lab for software engineers. The original has an interactive version you can play with, and the full runnable code is on GitHub.
Top comments (0)