Download

An open scorecard for benchmarking coding agents on your own codebase

AutoRouter12 min read

Key facts

AutoRouter's open coding agent benchmark scorecard is a free, ungated template for comparing coding agents and models on your own codebase. It has four parts: a task spec that records where each task comes from and how it's graded, a run log with one row per task, setup and run, a summary per setup with pass rate, a 95% interval, cost per solved task, median time and flakiness, and a validation checklist to finish before you trust any of it. AutoRouter, the Mac app for all your coding agents, publishes it as YAML, CSV, JSON Schema and Markdown files you can copy, and builds a free company benchmark for teams that would rather have one built and run for them.

This post covers the format and the arithmetic, not the whole method. How to choose tasks and seal them off from the answer is in How do you build an AI coding benchmark for your company?, how to pick a grader is in Grading coding agents: tests, rubrics or an LLM judge, and how Ramp, Cursor and Uber run theirs is in How Ramp, Cursor and Uber build AI coding benchmarks.

What goes in a coding agent benchmark scorecard?

A scorecard needs four things: a task spec, a run log, a summary and a validation checklist. Each is a plain text file that spreadsheets, diff tools and coding agents can read:

PartFileOne entry perWhat it answers
Task spectask-spec.yaml, checked by task-spec.schema.jsonTaskWhere the task came from, how it starts and how it's graded
Run logruns.csvTask × setup × runWhat happened in every attempt, and what it cost
Summarysummary.csvSetupWhich setup passes most, at what cost and how reliably
Validation checklistscorecard.mdBenchmarkWhether the results can be trusted

A setup is one combination of harness, harness version, model and effort setting. Comparing two models means running two setups that differ only in the model, on the same tasks.

What fields does each benchmark task need?

Each task needs enough to rebuild its starting point, rerun it and grade it the same way every time. The task spec records it in these fields:

FieldWhat it recordsWhy it's there
idA stable task idJoins the run log to the task
source_pr_urlThe merged pull request the task comes fromTraces the task to real shipped work
workflowThe kind of work: bug-fix, feature, refactor, test-writing, migrationLets you split results by workflow
repo, parent_commitThe repository and the pull request's base commitThe agent starts from the code before the change
promptThe original request, as the engineer gave itThe agent gets the request, not a description written after the fix
setupCommands run before the agent startsEvery run starts from the same state
gradingThe method (tests, rubric or llm-judge) and its exact command or rubricGrading is written down before any run and repeats exactly
pass_criteriaWhat counts as a pass, in a sentenceSettles edge cases, such as an agent that edits the tests
time_limit_minutesA wall-clock limit for one run, or nullStops runaway runs and keeps setups comparable
illustrativetrue for made-up tasksKeeps examples from being read as data
validation (optional)Fails before the fix, passes after, gold patch hidden, date checkedThe task half of the validation checklist

The fields line up with SWE-bench's: its base_commit is the parent commit, its problem_statement is the prompt, and its FAIL_TO_PASS and PASS_TO_PASS lists name the tests that must start passing and the tests that must keep passing. The scorecard keeps those two lists as fail_to_pass and pass_to_pass under grading. The JSON Schema (draft 2020-12) requires a command when the method is tests, a rubric when it's a rubric, and a rubric plus a judge model for an LLM judge. Here is the illustrative task, shortened:

scorecard_version: "1.0"
tasks:
  - id: bill-1482
    illustrative: true
    source_pr_url: https://git.example.com/example-co/billing/pull/1482
    workflow: bug-fix
    repo: example-co/billing
    parent_commit: 3f9c2a7e1b4d6c8a0e2f4b6d8c0a1e3f5b7d9c2e
    prompt: |
      Partial refunds are off by a cent on some invoices. ...
    setup:
      - pnpm install --frozen-lockfile
    grading:
      method: tests
      command: pnpm vitest run src/refunds
      fail_to_pass:
        - src/refunds/partial.test.ts > rounds once across line items
    pass_criteria: The grading command exits 0 and no test file was edited by the agent.
    time_limit_minutes: 20

What should the run log record for every run?

The run log takes one row per task, setup and run, with the verdict, the time, every token count, the cost and the exact settings, so every summary number can be recomputed and every surprise traced to a run:

GroupColumnsNotes
Identityrun_id, task_id, setup_id, runrun counts repeats of one task on one setup, from 1
Settingsharness, harness_version, model, effort, dateOn every row, so a version change partway through shows up
Verdictpassed, grader_notesThe notes say why a run failed: a broken test, an edited test, a timeout
Time and costwall_time_s, input_tokens, output_tokens, cached_tokens, cost_usdinput_tokens counts uncached input only; cached_tokens counts cache reads
Behaviortool_calls, human_interventionsInterventions should be 0 in an unattended run; report any beside the pass rate
Flagillustrativetrue for made-up rows
run_id,task_id,setup_id,run,date,harness,harness_version,model,effort,passed,grader_notes,wall_time_s,input_tokens,output_tokens,cached_tokens,cost_usd,tool_calls,human_interventions,illustrative
bill-1482.setup-a.1,bill-1482,setup-a,1,2026-11-26,example-harness,1.0.0,model-a,high,true,All FAIL_TO_PASS and PASS_TO_PASS tests pass,627,135986,13480,479448,1.26,40,0,true
bill-1517.setup-c.2,bill-1517,setup-c,2,2026-11-26,example-harness,1.0.0,model-c,high,false,Fix passes target test but breaks a PASS_TO_PASS test,519,242994,17078,878673,0.20,47,0,true

Record the cost you actually pay: list prices for an API key, or your own rate when a plan or a discount covers the run, and note which in the benchmark's notes.

How do you summarize the runs for each setup?

Summarize each setup with six numbers: pass rate, its 95% interval, solved tasks, cost per solved task, median time and flakiness. With n tasks and k runs per task:

The Wilson interval (Wilson, 1927) is the method NIST's engineering statistics handbook gives for a proportion, noting that Agresti and Coull recommend it for nearly every sample size and proportion. The familiar normal approximation, p ± 1.96 × √(p(1 − p)/n), can put its lower limit below zero and, the handbook says, may not be accurate enough for small samples, which describes most private benchmarks.

The interval uses the number of tasks, not runs, because three runs of one task share that task's difficulty; counting 36 runs as 36 independent samples would make the interval too narrow. Miller (2024) makes the same point for evals whose questions come in related groups and recommends clustered standard errors; treating each task as one sample is the simple, conservative version. Flakiness gets its own number because a setup that passes a task one run in three can't be left alone with it, the reliability τ-bench measures with its pass^k metric.

Example for a made-up team

Every number in this example is invented to show the arithmetic. None of it is a measurement, and the models are placeholders. A made-up team takes 12 bug-fix tasks from its billing service and runs three setups that differ only in the model, each task three times, 108 runs in all. The run log and summary hold every row.

Setup (made-up)Pass rate (95% interval)Solved tasksCost per solved taskMedian timeFlakiness
Setup A, model-a78% (50% to 93%)10 of 12$2.1012.0 min33% (4 tasks)
Setup B, model-b67% (39% to 86%)8 of 12$1.119.8 min50% (6 tasks)
Setup C, model-c42% (19% to 68%)4 of 12$0.488.4 min42% (5 tasks)

Setup A has the highest pass rate and Setup C the lowest cost per solved task, but all three intervals overlap, so the table alone can't say that A beats B.

How do you read the intervals, and when is the sample too small?

Read each interval as the range of pass rates a setup could plausibly have on tasks like these. A sample is too small when the gap you care about is narrower than the intervals.

More tasks are what narrow the interval. At a 70% pass rate, the 95% Wilson interval shrinks like this (AutoRouter's arithmetic):

Tasks95% interval at a 70% pass rateWidth
1242% to 88%46 points
2550% to 84%34 points
5056% to 81%25 points
10060% to 78%18 points
20063% to 76%13 points
40065% to 74%9 points

With a dozen tasks, two setups' intervals separate only when their pass rates sit about 45 points apart. Separating setups 10 points apart by intervals alone takes around 400 tasks; paired wins need fewer, because each task's difficulty cancels out of the comparison. Start with one workflow and a few dozen tasks, then add tasks where setups disagree.

What should you check before trusting the results?

Check five things before reading a single pass rate: each task's test fails before the fix and passes after it, the agent can't see the gold patch, every model runs with the same harness and settings, every task has at least three runs, and every run has a date.

How do you start using the scorecard?

Download the files, replace the illustrative task and rows with your own, and run the checker. Each file is free to copy and adapt:

curl -O "https://autorouter.com/scorecard/{task-spec.yaml,task-spec.schema.json,runs.csv,summary.csv,scorecard.md,check.py}"
uv run check.py          # validate, and compare summary.csv with runs.csv
uv run check.py --write  # rewrite summary.csv after new runs

check.py declares its two dependencies, PyYAML and jsonschema, inline, so uv installs them when it runs. The same files, with a README, are on GitHub in fractal-works/autorouter-docs, under that repository's MIT license.

AutoRouter builds a free company benchmark from a team's merged pull requests and agent traces, grades it against the team's tests or a rubric written with the team, and tunes a custom router, skills and team-wide system prompts against it. The team keeps the benchmark and the diagnostic whether or not a paid pilot follows. Want help building and running it? Get a free company benchmark.

Questions

How many runs per task does a coding agent benchmark need?

At least three. One run can't show whether a pass was luck, and three is the fewest that gives a majority verdict and a flakiness rate. Add runs when many tasks flip between pass and fail, and add tasks when intervals overlap, since more tasks narrow the interval and more runs mostly measure reliability.

Why use a Wilson interval instead of plus or minus two standard errors?

The normal approximation can put its lower limit below 0% and isn't accurate enough for small samples, which most private benchmarks are. The Wilson interval stays between 0% and 100% and is the method NIST's handbook gives for a proportion. With hundreds of tasks, the two give nearly the same answer.

Can I use the scorecard with a rubric or an LLM judge?

Yes. Set grading.method to rubric or llm-judge and list the criteria in grading.rubric before any run; an LLM judge also needs judge_model. The run log and summary stay the same, because every grader ends in a pass or a fail. Grading coding agents covers when each grader fits and how to check a judge against people.

Are the example numbers real?

No. The tasks, setups, models and every number in the example are made up to show the arithmetic, and every example row carries illustrative: true. AutoRouter doesn't publish benchmarks of its own routing; teams can get a free company benchmark of their own work.

Sources