Skip to content
mentoor

Topic 4 of 6 · 4 min read

Reading agent and coding benchmarks

Goal: Compare two agent benchmark scores and check whether harness, attempts and budget were the same.

An agent benchmark scores a whole system, not just a model: the model plus the harness that gives it tools, prompts and a loop. Two scores are only comparable when the harness, attempts and budget match.

Check yourself · 1 of 3

In SWE-bench, what decides whether an issue counts as resolved?

Choose one answer

Why it matters

Coding and agent tools are where many teams spend real money, and these are the tests labs now lead with. They look more realistic than quiz tests, but they have more moving parts, so more can differ between two numbers.

The common tests

  • SWE-bench gives an agent a real issue from an open-source Python repository and a copy of the code. The agent must produce a patch, and hidden unit tests decide whether the issue is resolved. The score is the percent resolved. SWE-bench Verified is a smaller set of problems that humans checked to be solvable.
  • Terminal-Bench gives an agent a command-line task, such as setting up a build or fixing a broken environment, and checks the end state of the machine.
  • Computer-use tests such as OSWorld ask an agent to operate a desktop or browser by looking at screenshots and clicking.

What the harness changes

The harness is the code around the model: the instructions, the tools (search, edit, run tests), how files are shown, how many steps are allowed, and when the run stops. A good harness can add many points to the same model. That is why labs report scores for their own tools, and why a model's score in one tool can differ from its score in another.

What to compare

  1. Harness. Same scaffold, or each lab's own?
  2. Attempts. One run, best of several, or a majority vote?
  3. Budget. Step limit, time limit, tokens, and thinking effort.
  4. Subset. The full set, a verified subset, or a cleaned one.
  5. Grader and date. Test versions get fixed, and scores shift.

If any of these differ, the gap in scores is partly about setup, not just the model.

Before and after

Before: "Model A solves 70% of issues and model B solves 64%, so A is better at coding."

After: "A's 70% used its own tool with parallel attempts and a long step budget. B's 64% used a basic loop with one attempt. I cannot say which model is better. I need both under the same harness, or I need to try both on my own repository."

What goes wrong

  • Comparing a model's score to another's from a different harness.
  • Forgetting that some issues in a public benchmark may have appeared in training data.
  • Assuming a benchmark task looks like your code. SWE-bench is one language and a small set of projects.
  • Ignoring cost. A higher score that needs ten times the tokens may not be a better buy.

Examples

The same model, two scores

A lab reports 72% on a coding benchmark using its own agent tool with several attempts per task. An independent run with a basic loop and one attempt reports 58% for the same model. Neither is wrong. The gap measures the harness and the extra tries.

Matching conditions

Before comparing two numbers, write down for each: harness, attempts, step or token budget, subset. If two of four differ, the comparison is weak.

Key points

  • An agent benchmark score reflects the model plus the harness around it.
  • SWE-bench scores the percent of real repository issues resolved, checked by hidden tests.
  • Compare harness, attempts, budget and subset before comparing two scores.
  • A better harness can raise the same model's score, so labs' own tools are not a fair comparison.
  • Cost per solved task matters alongside the score.

Common mistakes

  • Comparing scores produced by different harnesses as if only the model differed.
  • Ignoring how many attempts or how large a budget each score used.
  • Assuming a benchmark's single language and few repositories look like your own codebase.
  • Looking at the score without the cost to reach it.

Check yourself · 2 of 3

Why can two labs report different scores for the same model on the same coding benchmark?

Choose one answer

Check yourself · 3 of 3

Model A scores 66% with one attempt and a basic tool loop. Model B scores 70% using best of five attempts. What is the fair conclusion?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic