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 with deterministic scorers, and store and inspect the runs. Not built yet: the LLM judge and its calibration, trajectory scoring, statistical run comparison and the GitHub Action.
Quickstart
You need Python 3.12 or newer and uv. agentgauge is not on PyPI yet, so run it 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) |
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. 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.
Contributing
See CONTRIBUTING.md. Design decisions are recorded in docs/adr.
License
Apache-2.0. See LICENSE.
Metadata
Release files for agentgauge-eval 0.1.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.1.0.tar.gz | 98.1 kB | With provenance | Details for agentgauge_eval-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentgauge_eval-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agentgauge_eval-0.1.0-py3-none-any.whl |
Total release size: 134.1 kB
Release files / agentgauge_eval-0.1.0.tar.gz
| Download URL | agentgauge_eval-0.1.0.tar.gz |
|---|---|
| Size | 98.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72fe3e14572c1ff28379dca18e164012a77991124ba9bc81669b178bbeace5ed
|
|
BLAKE2b-256 checksum How to use checksums |
dace07af01b4568c615e1f878ec49d0f030c6256bfcdd0ada9660af3f38494f8
|
| 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 4, 2026.
Transparency logRelease files / agentgauge_eval-0.1.0-py3-none-any.whl
| Download URL | agentgauge_eval-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77df72f902eef00f3826c678c546413264907d9eb250f616c0e8dd4f6763810a
|
|
BLAKE2b-256 checksum How to use checksums |
c3dc23fc47a04fd211595e9c41b77e4a19542dc907d9efbd40c4af7b9d427bef
|
| 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 4, 2026.
Transparency logSecurity for agentgauge-eval 0.1.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.1.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 4, 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.