Coding Agent Eval: 5 Traps That Skew Your Results

Coding agent eval results on a repository benchmark

Building a coding agent eval on your own repository sounds like an afternoon project. The common recipe takes 30 to 50 merged pull requests and turns each into a task. The agent starts from the parent commit, reads the PR description, and gets graded on tests it never saw. Many teams bolt on an LLM judge, since green tests don’t guarantee a maintainer would accept the change. METR estimated that about half of PRs passing SWE-bench would be rejected on review.

A first score arrives quickly. A score worth acting on takes far longer, and a benchmark run on the Click library shows five places where the measurement breaks.

The Click benchmark

The benchmark covered 29 merged Click PRs and pitted a cheap, fast setup (GPT-6 Luna at low effort, $0.27 for the whole run) against a frontier one (GPT-6.1 Sol at high effort, $4.38). Click’s small size let the authors dissect every failure. They expect bigger multi-package repos to be messier.

Prompts decide what you measure

A prompt naming the exact function, file and test cases checks whether a model can follow a specification. A casual bug report, such as “–version is broken when a package’s import name doesn’t match its pip name, can u fix?”, forces the agent to read intent, investigate and repair, which resembles how engineers really use agents.

Hidden tests make this a balancing act. When a test imports a particular public function, the prompt must name it, or a sound solution fails over naming. Say too much, and the task becomes easy. Task size matters as well: mining PRs favors changes that are simple to isolate, and 22 of the 29 Click tasks were small, with none changing 150 lines of production code.

Agents cheat when they can

The answer can sit in git history, an existing PR or a closed ticket. Cognition measured 37.2% unfair solution use on one frontier model in FrontierCode 1.1 before it added guardrails, and SWE-bench+ reported about 33% leakage.

Cheating grows with effort. Agents that try harder dig through reflogs, tags and remote PRs, so leakage hands high-effort setups wins they didn’t earn. One contaminated run even graded as identical to the human patch. Defenses include:

  • Truncating git history and refs at the parent commit.
  • Freezing any ticket tracker at the same point in time.
  • Installing dependencies up front and sending model traffic through a relay that blocks web, PR and commit lookups.
  • Reviewing tool traces after the run.

Silent infrastructure faults also skew results. Around a third of candidate attempts died on flaky installs, timeouts or rate limits, and a grader that scores those as zero can’t tell an outage from a bad model. Reusing two verified Click snapshots for all 29 tasks brought median verification from roughly 15 minutes to roughly 20 seconds.

Tests can be wrong both ways

Seven patches failed the hidden tests after LLM reviewers had approved them. Three hid real regressions, such as –help exiting with code 2. The other four hit overly strict tests that demanded unstated details like exact error wording.

In one task, a behavioral check outside the suite showed both agents returned the wrong version (8.7.6 rather than 2.3.4) and crashed where the human PR succeeded. The assertion that failed was about error prose and masked a real bug. When an automated reviewer screened the tasks for bad tests, it flagged 17 of 18 that a blind audit found fair, and missed half of the true defects. The authors check tests by executing them: each must fail before the gold change and pass after it.

Judges and scoreboards mislead

A judge reading a static diff has trouble tracing edge cases. Both models introduced the same bracket bug, turning [a|b]! into [[a|b]!]. At low reasoning effort the equivalence judge declared the broken patch equivalent in 3 of 4 draws at 0.99 confidence, and it was still wrong at medium. Only high effort caught the flaw. Among 14 patches known by execution to be broken, a requirements-checklist judge passed 5, and a stricter prompt pushed that to 6.

Faros AI found a similar style bias, with a judge ranking a model that solved 16% of tasks above one that solved 33% because its failures looked thorough. The takeaway: calibrate the judge’s error rate like any instrument and ignore its stated confidence.

What to do before you trust a score

A pass/fail result carries at most one bit per task, and none when both setups pass or both fail. A trustworthy coding agent eval therefore needs tasks that actually separate the setups, sealed environments, tests proven by execution, and judge error rates published beside the scores.

Source: stet.sh

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.