Overview¶
Harness Lab is a local-first experimentation platform for evaluating AI coding-agent harnesses.
Given the same software task and the same starting repository state, how do different agent harnesses and configurations compare in verified success, token usage, tool usage, latency, cost and behaviour? Harness Lab answers that question reproducibly:
TASK SUITE
│
identical starting repo (one git commit)
│
┌──────────┼──────────┐
▼ ▼ ▼
Harness A Harness B Harness C codex · claude · fake · generic · yours
│ │ │
isolated isolated isolated one git worktree per run
worktree worktree worktree
│ │ │
└──────────┼──────────┘
▼
independent verifier hidden tests + exit code / partial score
│
▼
normalized experiment provider-neutral trace + metrics + diff
│
▼
Harness Lab UI matrix · run detail · compare · grow
Harness Lab is not an observability product. It is a scientific instrument for controlled comparisons: the agent never decides whether it succeeded, every run starts from the same commit, and every trace is stored in one provider-neutral schema.
What it does¶
- Runs the same task through different harnesses. Claude Code, the OpenAI Codex CLI, a deterministic fake agent, any CLI you wrap, or a Python adapter you write.
- Decides success independently. Hidden tests are injected after the agent exits and a verifier command produces the verdict.
- Normalizes every trace. Tool calls, commands, file changes, tokens, cost and LLM calls are stored the same way for every harness. Hidden reasoning is never persisted.
- Records what reproduction needs. Base commit, task hash, harness bundle hash, config hash, CLI version, model and environment on every run.
- Compares configurations. Sweeps search model × effort × toolset × compaction × action policy × harness bundle for the cheapest configuration that still passes.
- Grows a harness from its failures. The
growloop edits a harness bundle with an optimizer, keeps only edits that fix failures without regressing a held-out gate, and records the lineage. - Proves each component earns its place.
ablatetests every part of a harness bundle against its own absence; every comparison carries paired, task-level intervals and a verdict only from enough tasks. - Measures more than pass/fail. Improvement tasks (rounds against a measured objective), safety as an axis (risky actions, canaries, a sentinel hook to A/B test), find-everything tasks graded with an answer key, recovery from injected faults, and pass@k / best-of-k over attempts.
- Builds benchmarks from your code.
suite mineturns commits that changed code and tests into verifier-backed tasks.
Where to go¶
| You want to | Read |
|---|---|
| Install and see it work in five minutes without any API key | Install, then Quickstart |
| See every dashboard view and real CLI output first | Tour |
| Understand runs, experiments, sweeps and grow sessions | Concepts |
| Benchmark Claude Code or Codex | Run Claude Code, Run Codex |
| Benchmark pi, OpenCode or Hermes Agent (unreleased) | Run pi, Run OpenCode, Run Hermes Agent |
| Plug in your own agent | Test your own harness |
| Build a benchmark of your own tasks | Write a task suite, Mine tasks from git history |
| Find the cheapest configuration that still passes | Configuration sweeps |
| Improve a harness automatically with a regression gate | Grow the harness |
| Test whether each part of a harness helps | Ablate a harness |
| Measure optimization, safety, discovery or recovery | Improvement tasks, Safety, Find-everything tasks, Recovery tasks |
| Read the results and their statistics | Read and export results, The dashboard |
| Look up a flag, a YAML field or a metric | Reference |
| Know what is deliberately not solved | Honest limits |
Requirements¶
Python 3.12 or 3.13 (the versions CI tests), git 2.20 or newer, Linux or macOS (Windows through
WSL). Nothing else is
needed for the demo: the fake runner needs no API keys. The Claude Code, Codex, pi, OpenCode and
Hermes Agent adapters need their CLIs on PATH and their credentials.
Source and issues: github.com/bilgin-kocak/harness-lab. Package: pypi.org/project/harnesslab. License: MIT. To cite Harness Lab, use GitHub's Cite this repository or CITATION.cff.