pytest for agent outputs.
You test code with pytest. You test agents with vibes. agenteval-bench closes that gap: define eval suites in YAML, score outputs with deterministic matchers, track regressions across runs, and fail CI when the pass rate drops below your threshold.
Its sharpest trick is bugsmith: point it at any small pytest repo and it builds you an executable SWE-benchmark. It injects seeded AST-mutation bugs, validates each one inside Docker against the repo's own test suite, and keeps only bugs that break at least one test — with FAIL_TO_PASS / PASS_TO_PASS lists. Benchmark correctness defined by the machine, never by hand-written task lists.
Live captures: a passing gate, then the same suite with one regressed recorded output — pass rate 75% vs threshold 90%, gate fails, exit code 2.
git clone https://github.com/Zion-sewers/agenteval-bench && cd agenteval-bench uv venv && source .venv/bin/activate uv pip install -e ".[dev]" agenteval-bench run --suite examples/support-agent.yaml --ci --threshold 0.9
Exit 0: pass. Exit 2: the gate failed. Wire it into CI and agent regressions become red builds.
Each eval suite rises to its pass rate against the dashed gate line. One suite below the gate is enough: the bar pulses red and the merge gate exits 2. The animation loops the verdict so the failure mode is unmissable.
- Deterministic matchers:
exact,contains,regex,json_schema. No model calls, no flakiness. - Replay mode: grade recorded outputs without burning inference budget.
- Regression tracking: compare runs, see which cases moved.
- Python API:
EvalSuite.from_yaml+EvalRunner.run(suite, agent_fn)for live agents. - Judge decorrelation:
agenteval-bench judges --registry examples/judges-registry.jsonallocates judges from distinct model families (HOST != FAMILY) and reports unreachable judges as holes, never dropped. - Judge calibration:
agenteval-bench calibrate --observations examples/calibration-observations.jsongrades a judge's stated confidence against measured agreement; only a CALIBRATED judge's scores may gate, once a live judge transport exists (see docs/CALIBRATION.md). - Coverage-gated ranking:
agenteval-bench alt-test --data annotations.jsonlranks judges only when every (judge, annotator) cell shares at least 50 items by default (override with--min-cell-n; floors below 50 void the source guarantee and warn); sparse cells are masked, never silently dropped, and a leaderboard with no rankable judge is refused (exit 1) — a leaderboard over tiny samples is not a ranking (see docs/COVERAGE.md). - OEC ship gate:
agenteval-bench register-design --design examples/ship-design.json --registry examples/ship-registry.jsonlregisters the design in the hash chain, thenagenteval-bench ship --design examples/ship-design.json --evidence examples/ship-evidence.json --registry examples/ship-registry.jsonlrules SHIP / NO_SHIP / NEEDS_REPLICATION for an agent change: OEC + guardrails pre-registered, SRM / A/A trust tests before results are read, surprising wins need replication (see docs/OEC.md). - Anti-mode-collapse /diverge:
agenteval-bench diverge --candidates examples/diverge-candidates.jsonruns a token-level near-duplicate check over 5 recorded candidates before selection on high-stakes choices: near-verbatim paraphrase sets are refused, the declared p_conventional is checked against the measured share of the conventional answer's cluster, and the selection records why the conventional answer won or lost; a single sample never decides a high-stakes choice. Protocol only: candidates and scores are caller-supplied, there is no live generation transport yet, and a diverse verdict is not a semantic-diversity claim (see docs/DIVERGE.md). - Perturbation stability:
agenteval-bench perturb --suite examples/perturbation-triple.yamlgrades a suite on three regimes — clean, lightly-perturbed, fully-adversarial — and reports all three pass rates plus the stability verdict: acceptance reads clean, light and the clean-to-adversarial drop together, never the worst case alone, and a single regime can never gate. Protocol only: adversarial is a fixed prompt-injection battery, not an adaptive adversary (see docs/PERTURBATION.md).
- The CLI replays recorded outputs. Live agent evaluation needs your own
agent_fnthrough the Python API. - LLM-as-judge is planned, not implemented.
- Bug-injection benchmarking needs Docker.
- v0.1.0, Alpha. The matchers are strict; the ecosystem is young.
Part of Zion — public infrastructure for trust in agents. The eval layer for the long-horizon era.

