Home / Work / HarnessBench

Case study · Agent evaluation · browser app

HarnessBench

Did your agent harness change actually help? You changed a retry policy, added a tool, or swapped the context strategy, and your eval went from 5/10 to 8/10. HarnessBench tells you whether that is a real improvement or noise, what changed between the two configs, and why the worse side failed on each task that flipped.

Open source · Apache-2.0 View on GitHub →

01Problem

Most agent evals report a pass-rate delta and stop there. A harness change that moves an eval from 5/10 to 8/10 looks like a win, but on small evals that kind of jump is often chance. And “the model got confused” is not a diagnosis anyone can act on.

HarnessBench treats the harness as the system under test: same tasks on both sides, a significance test on the tasks that flip, a diff of what changed, and a failure cause only when the trace supports one.

02Approach

A small web app that runs in your browser and never calls a model. You record runs from your own agent, export them as one JSON file, and import it. Nothing is uploaded anywhere.

  • Paired significance test. Both harnesses ran the same tasks, so only the tasks that flip carry evidence. An exact McNemar test (a sign test over tasks when there are repeats) says could be chance until the result holds, with 95% Wilson intervals on task success.
  • What changed. Each harness config is hashed and diffed, so a verdict reads like loop.retries 0 → 2, tools +run_tests.
  • Failure causes that cite the trace. A cause is named only when a trace event supports it: a tool that errored and never recovered, a run that hit its step limit, an agent that declared success after a red test run. Otherwise: insufficient evidence.
  • A grader that trusts outcomes, not claims. Checks read what the environment observed after the attempt, not what the agent said it did.

03Key decision

Refuse to declare a winner without evidence. Even when every flipped task favours one harness, p stays above 0.05 until at least six of them flip. The importer rejects a file unless every task has the same number of runs on every harness, and the diagnosis abstains rather than inventing a cause.

04Architecture

  1. Your agent recorder or an Inspect AI log produces a runs JSON file
  2. Import and validate pairing: every task, every harness, same number of runs
  3. Grader: outcomes, not claims
  4. Diagnosis: cite trace events or abstain
  5. Harness configs: stable hash and diff against the baseline
  6. Paired test: McNemar / sign test, Wilson interval
  7. Output: verdict, task matrix, trace view, Markdown report

The core in src/lib/harness/ (import, grader, diagnosis, stats, config diff) has no React dependency. A built-in rule engine can write simulated traces so the pages have something to show before you import anything.

HarnessBench overview page: two harnesses, the tasks that differ, and the paired test.
HarnessBench overview page: two harnesses, the tasks that differ, and the paired test. Simulated sample data.

05Results

Simulated, not measured. HarnessBench has not yet been run on a production agent. The numbers below come from the shipped sample and from the built-in simulator. They are pinned by tests and show how the pages read; they are not measurements of any agent.
Study (simulated)HarnessTask successPaired test
Shipped sample importTwo coding harnesses, 4 tasks1/4 → 3/42 tasks flip, both one way, p = 0.50. Could be chance.
Coding agentsGeneration-only → Verify-and-repair50% → 80%3 tasks flip, all one way, p = 0.25. Could be chance.
General tool agentsChat loop → Retrieval harness40% → 80%4 tasks flip, all one way, p = 0.13. Could be chance.

Every one of these correctly reads could be chance, which is the point: small evals rarely justify the conclusion people draw from them. Results on real agents: to come.