Skip to main content

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. 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

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.

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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentgauge-eval 0.2.0
File Size Uploaded Provenance Actions
agentgauge_eval-0.2.0.tar.gz 143.6 kB With provenance Details for agentgauge_eval-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentgauge-eval 0.2.0
File Interpreter ABI Platform Actions
agentgauge_eval-0.2.0-py3-none-any.whl Python 3 none any Details for agentgauge_eval-0.2.0-py3-none-any.whl

Total release size: 199.0 kB

Release files / agentgauge_eval-0.2.0.tar.gz

Download URL agentgauge_eval-0.2.0.tar.gz
Size 143.6 kB
Tags Source
SHA-256 checksum
How to use checksums
423152874265782c3b6d9ddd372cd98476527c3eb6596e5be97cfdefb8874973
BLAKE2b-256 checksum
How to use checksums
f84315623b80d09e8e0a9f0217cc55cf9f5e0ddba7f3ec8c422fe84b5bf66459
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 5, 2026.

Transparency log

Release files / agentgauge_eval-0.2.0-py3-none-any.whl

Download URL agentgauge_eval-0.2.0-py3-none-any.whl
Size 55.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7967c4e48c22053c26bcff6692cc413862d0965d4226029e040656a3f9015aa6
BLAKE2b-256 checksum
How to use checksums
a987555c8b35f09ce384f845d054f7396d8efe7df04bb6efc70cad0a34d8c169
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 5, 2026.

Transparency log

Security for agentgauge-eval 0.2.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.

Select from 2 files

Attestation for agentgauge_eval-0.2.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 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page