Skip to main content

agent-exam

docs codecov

Eval framework for agent skills. Point it at a repo of skills and a suite of YAML tasks, and it runs them against a real agent CLI, grades the resulting transcript, and reports verdicts plus cost and token metrics.

Supported harnesses: Claude Code, Codex CLI, Copilot CLI and OpenCode. Each runs as a subprocess against your existing subscription or login — no pay-per-token API key is required.

Intended use

Interactive development of skills — edit a skill, run the relevant suite or a single task, read the report, iterate. Automating runs against subscription-backed CLIs may stretch a harness's terms, and LLM evals are slow and expensive enough that running every suite on every change buys little extra signal.

Install

pip install agent-exam

Quick start

In the repo holding your skills:

# evals/config.yaml
default_harness: claude_code

Skills are picked up from ./skills by default; set skills_dirs to point elsewhere.

# evals/suites/my-suite/tasks/greets.yaml
description: |
  The skill should greet by name.
kind: execute
prompt: |
  Greet Ada.
assertions:
  - skill_invoked: my-skill
  - judge: |
      The reply greets Ada by name.
  - no_permission_errors:
agent-exam doctor          # preflight checks
agent-exam my-suite        # run the suite
agent-exam show latest     # read the report

examples/config.yaml documents every configuration key, and the documentation covers writing suites, grading with judges and reading the reports.

The evals directory is found relative to the nearest pyproject.toml and defaults to evals/. Add a [tool.agent-exam] section only to point somewhere else, or to register a pre_run_hook:

# pyproject.toml
[tool.agent-exam]
evals_dir = "qa/evals"
pre_run_hook = "evals.hooks:pre_run_hook"

What it gives you

  • Multi-harness by design. Assertions and the normalized transcript are harness-neutral, so adding another agent CLI is a small adapter rather than a core rewrite.
  • Trigger evals are first-class. Test whether the right skill fires for a given prompt, separately from whether it then does the right thing.
  • Reality-check modes. --without-skill re-runs a suite with one skill removed and --no-skills with the whole library removed, so you can see whether a skill earns its place against the bare agent.
  • Tags for the costly evals. Tag a task or a whole suite, declare the tag excluded by default, and a run spanning every suite covers the cheap tasks only; --tag and --all-tags bring the rest back.
  • Deterministic and LLM-judge assertions, per-attempt fixtures and isolated working directories, parallel execution with concurrency groups, and regression reports across runs (runs, show, history, diff).
  • Rescoring without re-running. agent-exam rescore re-grades archived attempts against current assertions.

Contributing

uv sync
uv run pytest                  # unit tests
tox                            # full matrix, linting, packaging checks
pre-commit install

Pull requests run a secrets scan that must pass before merging; pre-commit install runs the same check locally. If it flags a value that is genuinely not a secret, audit it into .secrets.baseline and mention it in the PR.

License

Apache-2.0. See LICENSE.

Metadata

Release files for agent-exam 0.3.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 agent-exam 0.3.0
File Size Uploaded Provenance
agent_exam-0.3.0.tar.gz 300.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-exam 0.3.0
File Interpreter ABI Platform
agent_exam-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 511.3 kB

Release files / agent_exam-0.3.0.tar.gz

Download URL agent_exam-0.3.0.tar.gz
Size 300.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0ff950f794dcb49c99191e8850143d617cfc76f575bc22936980709187176cbd
BLAKE2b-256 checksum
How to use checksums
746b64a3558b05605f3782ceb9681e429869256ff20210b67ab58c012fdfcb6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 20, 2026.

Transparency log

Release files / agent_exam-0.3.0-py3-none-any.whl

Download URL agent_exam-0.3.0-py3-none-any.whl
Size 210.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e0e0f899173df04713dde474593dc03273f82fda2b46a4160a6111022aa202d
BLAKE2b-256 checksum
How to use checksums
9d3892b7c62074502c134b2e69748904b6d90e5f07bd2bf02fa68656f130eafa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 20, 2026.

Transparency log

Security for agent-exam 0.3.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agent_exam-0.3.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 Oct 20, 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.

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