# An open scorecard for benchmarking coding agents on your own codebase

> AutoRouter's open scorecard is a free template for benchmarking coding agents and models on your own codebase: a YAML task spec with a JSON Schema, a CSV run log, a CSV summary and a validation checklist. Fill it from your merged pull requests, run every task at least three times per setup, and compare pass rate with a 95% Wilson interval, cost per solved task, median time and flakiness. AutoRouter, the Mac app for all your coding agents, also builds a free company benchmark for teams that want help.

Authors: AutoRouter
Author profile: https://autorouter.com/about
Published: 2026-11-28T20:05:00.000Z
Reading time: 12 min
Canonical: https://autorouter.com/blog/coding-agent-benchmark-scorecard
Part of: What is an LLM router? (https://autorouter.com/blog/what-is-an-llm-router.md)
Publisher: AutoRouter (https://autorouter.com)

## Key facts

- AutoRouter's open scorecard has four parts: a task spec (`task-spec.yaml`, checked by `task-spec.schema.json`), a run log with one row per task, setup and run (`runs.csv`), a summary per setup (`summary.csv`) and a validation checklist (`scorecard.md`), free at autorouter.com/scorecard/.
- The summary gives each setup's pass rate a 95% Wilson score interval computed over tasks, not runs, because repeated runs of one task aren't independent samples; NIST's handbook gives the Wilson method for a proportion ([NIST](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm)).
- In the made-up example, 12 tasks with 3 runs each give Setup A 78% (50% to 93%) and Setup B 67% (39% to 86%), too few tasks to tell the two apart.

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](https://autorouter.com), publishes it as [YAML, CSV, JSON Schema and Markdown files](#how-do-you-start-using-the-scorecard) you can copy, and builds a [free company benchmark](/benchmarks) for teams that would rather have one built and run for them.

![AutoRouter's open scorecard, in four parts. 1. Write the task spec (One entry per merged PR); 2. Validate every task (Fails before, passes after); 3. Log every run (Task × setup × run); 4. Summarize each setup (Pass rate, interval, cost). Source: AutoRouter's open coding agent benchmark scorecard, November 2026.](https://autorouter.com/blog/images/coding-agent-benchmark-scorecard/1-four-parts.png)

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?](/blog/build-an-ai-coding-benchmark), how to pick a grader is in [Grading coding agents: tests, rubrics or an LLM judge](/blog/grading-coding-agents), and how Ramp, Cursor and Uber run theirs is in [How Ramp, Cursor and Uber build AI coding benchmarks](/blog/private-benchmarks-ramp-cursor-uber).

## 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:

| Part                 | File                                                 | One entry per      | What it answers                                             |
| -------------------- | ---------------------------------------------------- | ------------------ | ----------------------------------------------------------- |
| Task spec            | `task-spec.yaml`, checked by `task-spec.schema.json` | Task               | Where the task came from, how it starts and how it's graded |
| Run log              | `runs.csv`                                           | Task × setup × run | What happened in every attempt, and what it cost            |
| Summary              | `summary.csv`                                        | Setup              | Which setup passes most, at what cost and how reliably      |
| Validation checklist | `scorecard.md`                                       | Benchmark          | Whether 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:

| Field                   | What it records                                                               | Why it's there                                                      |
| ----------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `id`                    | A stable task id                                                              | Joins the run log to the task                                       |
| `source_pr_url`         | The merged pull request the task comes from                                   | Traces the task to real shipped work                                |
| `workflow`              | The kind of work: bug-fix, feature, refactor, test-writing, migration         | Lets you split results by workflow                                  |
| `repo`, `parent_commit` | The repository and the pull request's base commit                             | The agent starts from the code before the change                    |
| `prompt`                | The original request, as the engineer gave it                                 | The agent gets the request, not a description written after the fix |
| `setup`                 | Commands run before the agent starts                                          | Every run starts from the same state                                |
| `grading`               | The method (`tests`, `rubric` or `llm-judge`) and its exact command or rubric | Grading is written down before any run and repeats exactly          |
| `pass_criteria`         | What counts as a pass, in a sentence                                          | Settles edge cases, such as an agent that edits the tests           |
| `time_limit_minutes`    | A wall-clock limit for one run, or `null`                                     | Stops runaway runs and keeps setups comparable                      |
| `illustrative`          | `true` for made-up tasks                                                      | Keeps examples from being read as data                              |
| `validation` (optional) | Fails before the fix, passes after, gold patch hidden, date checked           | The task half of the validation checklist                           |

The fields line up with [SWE-bench](https://huggingface.co/datasets/princeton-nlp/SWE-bench_Verified)'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](https://json-schema.org/specification) (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:

```yaml
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:

| Group         | Columns                                                                     | Notes                                                                           |
| ------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Identity      | `run_id`, `task_id`, `setup_id`, `run`                                      | `run` counts repeats of one task on one setup, from 1                           |
| Settings      | `harness`, `harness_version`, `model`, `effort`, `date`                     | On every row, so a version change partway through shows up                      |
| Verdict       | `passed`, `grader_notes`                                                    | The notes say why a run failed: a broken test, an edited test, a timeout        |
| Time and cost | `wall_time_s`, `input_tokens`, `output_tokens`, `cached_tokens`, `cost_usd` | `input_tokens` counts uncached input only; `cached_tokens` counts cache reads   |
| Behavior      | `tool_calls`, `human_interventions`                                         | Interventions should be 0 in an unattended run; report any beside the pass rate |
| Flag          | `illustrative`                                                              | `true` for made-up rows                                                         |

```csv
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:

- **Pass rate** = passed runs ÷ (n × k).
- **95% interval** = the Wilson score interval for the pass rate, with n set to the number of tasks. With z = 1.96 and p the pass rate, the center is (p + z²/2n) ÷ (1 + z²/n) and the half-width is z × √(p(1 − p)/n + z²/4n²) ÷ (1 + z²/n).
- **Solved tasks** = tasks that passed in more than half their runs, 2 of 3 with three runs.
- **Cost per solved task** = the total cost of every run ÷ passed runs: what one passing result costs, with the failed attempts behind it counted in.
- **Median time** = the median wall time over all runs, which one run stuck at the time limit can't drag up.
- **Flakiness rate** = tasks that passed in some runs and failed in others ÷ n.

The Wilson interval ([Wilson, 1927](https://doi.org/10.1080/01621459.1927.10502953)) is the method [NIST's engineering statistics handbook](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm) 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)](https://arxiv.org/abs/2411.00640) 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](https://arxiv.org/abs/2406.12045) 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](/scorecard/runs.csv) and [summary](/scorecard/summary.csv) hold every row.

| Setup (made-up)  | Pass rate (95% interval) | Solved tasks | Cost per solved task | Median time | Flakiness     |
| ---------------- | ------------------------ | ------------ | -------------------- | ----------- | ------------- |
| Setup A, model-a | 78% (50% to 93%)         | 10 of 12     | $2.10                | 12.0 min    | 33% (4 tasks) |
| Setup B, model-b | 67% (39% to 86%)         | 8 of 12      | $1.11                | 9.8 min     | 50% (6 tasks) |
| Setup C, model-c | 42% (19% to 68%)         | 4 of 12      | $0.48                | 8.4 min     | 42% (5 tasks) |

![Made-up team: 12 tasks can't separate A and B. Setup A (78%), 50% to 93%; Setup B (67%), 39% to 86%; Setup C (42%), 19% to 68%. Source: AutoRouter, illustrative data for a made-up team, not a measurement.](https://autorouter.com/blog/images/coding-agent-benchmark-scorecard/2-intervals.png)

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.

![Before switching setups, check the sample size. Setup A scored higher than Setup B. If Under 3 runs per task: Run each task 3 times; If Many flaky tasks: Add runs per task; If Intervals don't overlap: Treat the gap as real; If Intervals overlap: Count paired wins, then add tasks. Source: AutoRouter, after Miller (2024) and NIST's handbook on the Wilson interval.](https://autorouter.com/blog/images/coding-agent-benchmark-scorecard/3-too-small.png)

- **The intervals don't overlap.** Treat the gap as real for tasks like these.
- **The intervals overlap.** The comparison isn't settled. Count paired wins: tasks one setup solved and the other didn't. In the example, Setup A solved 6 tasks Setup C didn't, and C solved none that A didn't; if the two were equally good, a 6-to-0 split would happen about 3% of the time (2 × 0.5⁶). A against B is 2 to 0, which chance produces half the time, so the team can't call it. Miller recommends this kind of paired comparison wherever two models answer the same questions.
- **Many tasks are flaky.** Run each task more times before reading the pass rate. Three runs is a floor.

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

| Tasks | 95% interval at a 70% pass rate | Width     |
| ----- | ------------------------------- | --------- |
| 12    | 42% to 88%                      | 46 points |
| 25    | 50% to 84%                      | 34 points |
| 50    | 56% to 81%                      | 25 points |
| 100   | 60% to 78%                      | 18 points |
| 200   | 63% to 76%                      | 13 points |
| 400   | 65% 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.

- **Fails before, passes after.** Run the grader at the parent commit, where it must fail, and with the merged change applied, where it must pass. A task that passes before the fix measures nothing, and one that fails after it can't be solved. Record both in the task's `validation` block.
- **No gold-patch leakage.** The agent's copy must not hold later commits, branches, tags, the pull request text or the final tests. [How do you stop an agent from finding the answer?](/blog/build-an-ai-coding-benchmark#how-do-you-stop-an-agent-from-finding-the-answer) covers sealing the history. Memory leaks too: Cursor writes that OpenAI stopped reporting SWE-bench Verified after finding models could reproduce its gold patches from memory ([Cursor](https://cursor.com/blog/cursorbench)), which is why the tasks should be your own.
- **The same harness and settings across models.** Keep the harness version, tools, permissions, time limit, prompt and effort setting fixed, and change only what's under test. `check.py` fails a setup whose settings change between runs and warns when setups use different harness versions.
- **At least three runs per task.** One run can't show flakiness. [How to test an AGENTS.md change before it reaches your team](/blog/test-agents-md-changes) shows how far results move from one run to the next.
- **Dates recorded.** Models and harnesses change under the same name, so a date on every run says which version a result belongs to.

## 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:

- [task-spec.yaml](/scorecard/task-spec.yaml): the template, with every field explained, and one illustrative task
- [task-spec.schema.json](/scorecard/task-spec.schema.json): the JSON Schema for the task spec
- [runs.csv](/scorecard/runs.csv): the run log columns and 108 illustrative rows
- [summary.csv](/scorecard/summary.csv): the summary computed from those rows
- [scorecard.md](/scorecard/scorecard.md): every definition, formula and checklist item on one page
- [check.py](/scorecard/check.py): validates the task spec against the schema and the run log against the checklist, then writes `summary.csv`

```sh
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](https://docs.astral.sh/uv/guides/scripts/) installs them when it runs. The same files, with a README, are on GitHub in [fractal-works/autorouter-docs](https://github.com/fractal-works/autorouter-docs/tree/main/scorecard), under that repository's MIT license.

AutoRouter builds a [free company benchmark](/benchmarks) 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](/benchmarks).

## 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](/blog/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](/benchmarks) of their own work.

## Sources

- [Probable Inference, the Law of Succession, and Statistical Inference](https://doi.org/10.1080/01621459.1927.10502953), E. B. Wilson, Journal of the American Statistical Association 22(158), June 1927
- [Confidence intervals for a proportion](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm), NIST/SEMATECH e-Handbook of Statistical Methods, section 7.2.4.1
- [Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations](https://arxiv.org/abs/2411.00640), Evan Miller, November 1, 2024
- [τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains](https://arxiv.org/abs/2406.12045), Yao, Shinn, Razavi and Narasimhan, June 17, 2024
- [SWE-bench Verified dataset card](https://huggingface.co/datasets/princeton-nlp/SWE-bench_Verified), Princeton NLP, Hugging Face, checked November 28, 2026
- [How we compare model quality in Cursor](https://cursor.com/blog/cursorbench), Cursor, March 11, 2026
- [JSON Schema specification](https://json-schema.org/specification), draft 2020-12
- [Running scripts with uv](https://docs.astral.sh/uv/guides/scripts/), Astral, checked November 28, 2026
- [fractal-works/autorouter-docs](https://github.com/fractal-works/autorouter-docs), GitHub, MIT license

## Read next

- [How Ramp, Cursor and Uber build AI coding benchmarks, and how you can](https://autorouter.com/blog/private-benchmarks-ramp-cursor-uber.md): AutoRouter, the Mac app for all your coding agents, builds a free private coding benchmark from your team's merged pull requests, the approach Ramp, Cursor and Uber each took in-house. Ramp grades 500 tasks from merged agent pull requests with a panel of LLM judges, Cursor grades real sessions with agentic graders and refreshes them every few months, and Uber runs thousands of monorepo pull requests through one harness to pick the Pareto-best model. A startup can copy the method with one workflow, a few dozen validated tasks, three runs per model, and pass rate and cost per task.
- [How do you build an AI coding benchmark for your company?](https://autorouter.com/blog/build-an-ai-coding-benchmark.md): Build an AI coding benchmark for your company from recent merged pull requests: start each task from the code before the change, hold back its tests, and grade every model and agent on pass rate and cost per task. AutoRouter, the Mac app for all your coding agents, builds one from a team's own shipped work for free.
- [How do you test a model router change before it ships?](https://autorouter.com/blog/how-to-test-a-routing-change.md): Test a routing change by running real, reviewed requests through the same code path production uses, rules included, and grading each pick against the models a reviewer accepted. A test that skips the rules can pass while the shipped policy breaks one. AutoRouter, the Mac app for all your coding agents, checks its routing changes against reviewed cases that include picks people rated down.

Tags: [Model routing](https://autorouter.com/blog/tags/model-routing.md), [AutoRouter](https://autorouter.com/blog/tags/autorouter.md)

Drafted with AI from the sources linked above, then checked and edited by the AutoRouter team.

AutoRouter is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://autorouter.com/setup.md) and [pricing](https://autorouter.com/pricing).
