Skip to main content

agent-exam

docs

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_exam-0.1.0.tar.gz (232.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_exam-0.1.0-py3-none-any.whl (174.1 kB view details)

Uploaded Python 3

File details

Details for the file agent_exam-0.1.0.tar.gz.

File metadata

  • Download URL: agent_exam-0.1.0.tar.gz
  • Upload date:
  • Size: 232.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_exam-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19f61aa8b3da848dfb1ef4bce6bf54365c4fd42045a951382b3d3d15675c1b20
MD5 bceb31a28a5c6e106f02603d9b936079
BLAKE2b-256 6efc6a16b66e1c413a1392e2f5d393ec16097f62ce29ad551e5506fc735bc179

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_exam-0.1.0.tar.gz:

Publisher: publish.yml on zytedata/agent-exam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_exam-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agent_exam-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 174.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_exam-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eec5d48418e8b049f2fbe7802ea20be6da60329ae126119ac05b54637b6b6bdf
MD5 3dcdbebb5830fa99d99ea1a020988cb5
BLAKE2b-256 603d7ecf39a4c585f86d24f5ad3838a95d56d0dafbfff0a6eda65bab162c231f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_exam-0.1.0-py3-none-any.whl:

Publisher: publish.yml on zytedata/agent-exam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page