agentgauge
agentgauge is an open-source regression-testing harness for LLM agents. It answers one question: did this change make my agent better or worse, and is that difference real? It calibrates its LLM judge against human labels, gates CI on bootstrap confidence intervals rather than raw score diffs, and scores tool-call trajectories as well as final answers.
Status: pre-alpha
What works today: define a suite of test cases in YAML or JSONL, run it against any OpenAI-compatible model, score it with deterministic scorers, an LLM judge calibrated against human labels, and tool-call trajectory scorers, store and inspect the runs, import OpenTelemetry traces, compare two runs with a significance test, locally or as a GitHub Action, and write a run as an HTML report.
The demo runs two versions of a small suite, compares them (a significant regression, exit code 1) and writes the HTML report. It is drawn by scripts/make_demo_gif.py from the commands' real output.
Quickstart
You need Python 3.12 or newer and uv. Install it from PyPI (the package is agentgauge-eval, the command is agentgauge):
uv tool install agentgauge-eval
agentgauge --help
To run the bundled example, work from a clone:
git clone https://github.com/AliNaveed01/agentgauge.git
cd agentgauge
uv sync
uv run agentgauge run examples/basic/suite.yaml
The example runs against a scripted fake model, so it works offline with no API key. You should see something like this (the run id and time will differ):
Run 99d30193 suite basic model scripted-demo started 2026-11-03 12:48:02 UTC
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Case ┃ Result ┃ Scores ┃ Latency ┃ Detail ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ arithmetic │ PASS │ exact_match=pass │ 0 ms │ │
│ capital-france │ PASS │ exact_match=pass │ 0 ms │ │
│ capital-australia │ FAIL │ exact_match=fail │ 0 ms │ exact_match: expected 'Canberra' │
│ gold-symbol │ PASS │ exact_match=pass │ 0 ms │ │
└───────────────────┴────────┴──────────────────┴─────────┴──────────────────────────────────┘
3/4 passed, 1 failed, 0 errors, cost $0.0000, took 0.00s
Stored as run 99d30193 in .agentgauge/runs.db
One case fails on purpose: the scripted model says Sydney, the suite expects Canberra. Look at what was stored:
uv run agentgauge runs list # newest first
uv run agentgauge runs show 99d30193 # one run in detail, with each case's output
runs show accepts any unique prefix of a run id. Runs are stored in .agentgauge/runs.db in the current directory; use --db PATH or the AGENTGAUGE_DB environment variable to put them elsewhere.
Writing a suite
A suite is a YAML file with a name, the model to run against, the scorers to apply and the cases:
name: my-suite
provider:
type: openai_compat # any OpenAI-compatible endpoint
model: my-model
base_url: http://localhost:8000/v1 # omit for api.openai.com
api_key_env: MY_API_KEY # name of the environment variable; never put keys in the file
params: {temperature: 0}
scorers:
- exact_match
- name: numeric_tolerance # scorers with settings use the long form
params: {abs_tol: 0.01}
cases:
- id: add
input: "What is 2 + 2?" # a string, or a list of {role, content} messages
expected: "4"
Every scorer runs on every case. Suites can also be JSONL, one case per line ({"id": "add", "input": "What is 2 + 2?", "expected": "4"}); since there is nowhere to put a provider or scorers there, pass them on the command line.
| Scorer | Passes when |
|---|---|
exact_match |
the output equals expected (params: case_sensitive, strip) |
contains |
the output contains expected (param: case_sensitive) |
regex |
the output matches pattern, or expected if no pattern is given (params: pattern, ignore_case, full) |
numeric_tolerance |
the first number in the output is within abs_tol or rel_tol of the number in expected |
json_schema |
the output is JSON that satisfies schema (a documented subset of JSON Schema) |
llm_judge |
a judge model scores the output against a rubric (params: rubric, judge, cache); see below |
tool_call |
the model made exactly the expected tool call (arguments compared case-insensitively), or none when none is expected |
trajectory_match |
an agent's tool-call sequence matches expected_trajectory (exact, in_order or any_order); see docs/trajectories.md |
trajectory_budget |
an agent finished within max_calls tool calls |
Judging with a model, and checking the judge
llm_judge asks a model to grade each output against a rubric. A judge is only worth trusting once it has been checked against human labels, so agentgauge ships the check:
uv run agentgauge calibrate examples/judge/suite.yaml --labels examples/judge/labels.yaml
It reports accuracy, Cohen's kappa with a bootstrap interval, a confusion matrix and per-class precision and recall, and warns when kappa is below 0.6. The example uses a scripted judge, so it runs offline. docs/calibration.md explains how to read the report.
Agents and traces
With an agent block a suite runs each case as a multi-step tool loop against scripted tools, and the trajectory scorers judge the route, not just the answer. agentgauge import-otel scores traces recorded elsewhere, from OpenTelemetry GenAI spans:
uv run agentgauge run examples/agent/suite.yaml
uv run agentgauge runs show <run id> --trajectory
uv run agentgauge import-otel examples/otel/traces.json --suite examples/otel/suite.yaml
See docs/trajectories.md.
Comparing runs
agentgauge compare pairs two runs by case, tests whether the pass rate really dropped (exact McNemar test), and exits 1 only on a significant regression, so it can gate a pull request:
uv run agentgauge run examples/regression/baseline.yaml
uv run agentgauge run examples/regression/candidate.yaml
uv run agentgauge compare previous latest
See docs/regression.md for how to read it, how many cases you need, and the GitHub Action (action.yml, example workflow).
HTML report
agentgauge report writes a stored run as one self-contained HTML file, with the comparison against a baseline if you ask for it. It needs no network, contains no scripts, and escapes everything the model said:
uv run agentgauge report latest --baseline previous --output report.html
See docs/report.md and the example report.
Running against a real model
Command-line options override the suite's provider block, so you can point the example at a real model:
export OPENAI_API_KEY=...
uv run agentgauge run examples/basic/suite.yaml --provider openai_compat --model <model-name>
For a local server, add --base-url http://localhost:8000/v1; no key is needed. Use --concurrency N to limit how many cases run at once (default 8).
Exit codes
run exits 0 whenever the run completes, even if cases fail or error: those are shown in the table. With --fail-under RATE it exits 1 instead when the pass rate is below RATE (errored cases count as not passed), so a pipeline can gate on a suite without compare. It exits 2 for configuration problems (unreadable or invalid suite, unknown scorer, bad provider options, a missing API key variable, an unusable database). runs show exits 1 for an unknown or ambiguous run id. calibrate --fail-under exits 1 when kappa is below the threshold. compare exits 0 when there is no significant regression, 1 on a significant regression, and 2 when the comparison cannot be made (unknown or ambiguous run, no shared cases, bad options, unusable database).
Documentation
The docs live in docs/ and build into a site with MkDocs Material (uv sync --group docs && uv run mkdocs serve): quickstart, a worked example of swapping a model, writing a suite, judge calibration, agent trajectories, regression comparison, the HTML report, the command reference, the benchmarks and the decision records.
Contributing
See CONTRIBUTING.md. Design decisions are recorded in docs/adr.
License
Apache-2.0. See LICENSE.
Metadata
Release files for agentgauge-eval 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentgauge_eval-0.6.0.tar.gz | 785.0 kB | With provenance | Details for agentgauge_eval-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentgauge_eval-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for agentgauge_eval-0.6.0-py3-none-any.whl |
Total release size: 874.2 kB
Release files / agentgauge_eval-0.6.0.tar.gz
| Download URL | agentgauge_eval-0.6.0.tar.gz |
|---|---|
| Size | 785.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6febca9f190510b7161c01cd84cf71e138cb4f3bd5cf2f2be534f0ec5efd1b32
|
|
BLAKE2b-256 checksum How to use checksums |
1ae4db305800b380b87dc45c0fbcc47406d35581d05dd90e9dd15b562d881dfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / agentgauge_eval-0.6.0-py3-none-any.whl
| Download URL | agentgauge_eval-0.6.0-py3-none-any.whl |
|---|---|
| Size | 89.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99edd240d6e9c1df4b59e531e6ead7817241015d9b913154d437391c43e627be
|
|
BLAKE2b-256 checksum How to use checksums |
1227399ec1e91b32d0370a84199ee7a468e31a2c58512dba79119e5cb2684981
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for agentgauge-eval 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentgauge_eval-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.