Evaluation harness for real headless CLI agents - reproducible multi-turn scenarios, rule + LLM scoring, cross-agent comparison
Project description
agent-belt
A seat belt for the agents you ship. Run reproducible multi-turn scenarios against the binary your users actually run - Claude Code, Cursor, Codex, Gemini, Copilot, opencode, Goose, or your own CLI. Score with rule checks, workspace diffs, and a separate LLM judge. Pin variance down with repeat trials, paraphrase families, and multi-judge consensus - so a green check actually means something on a stochastic stack.
Disclaimer
This tool is provided as-is with no warranty. Running untrusted agents or scenarios can cause real, irreversible damage to your system. Each scenario drives a real agent CLI that runs as your user - a malicious scenario can modify dotfiles, SSH config, or git hooks; run destructive or data-exfiltrating commands; or reach the network to pull instructions, upload source, or push to external repos. Only run scenarios you trust. We take no responsibility for damages.
Before You Begin
You need Python 3.13 (3.11+ supported) and at least one CLI agent installed and authenticated (run it once interactively to sign in). One agent is enough to get started.
Install
pip install agent-belt
belt doctor # verify agents, auth, and LLM scoring providers
For development setup, see CONTRIBUTING.md.
Quick Start
belt quickstart # auto-detects first available agent
belt quickstart claude-code # or specify one
This validates the agent, runs a single scenario with rules-only scoring (no API key needed), and prints next steps.
For more control over the bundled showcase (no source clone needed):
belt eval --bundled showcase --modes rules \
--tags real-runnable --allow-external-working-dir # whole runnable showcase
belt eval --bundled showcase --scorer-arg model=openai/gpt-5.4-mini # + LLM judge (cloud)
belt eval --bundled showcase --scorer-arg model=ollama/gemma4 # + LLM judge (local, no API key)
belt eval --bundled showcase --modes rules --workers 3 # parallel
belt eval --bundled showcase --progress live --workers 3 # live TUI
--bundled <NAME> resolves to the scenarios shipped inside the wheel
(belt/_bundled_examples/scenarios/<NAME>/), so the same one-liner
works after pip install agent-belt without cloning the source repo.
Use belt eval --bundled to target the whole bundled tree, or
belt eval <PATH> to point at your own scenarios directory.
The showcase is a schema-coverage reference, not a green-CI baseline -
the unfiltered command intentionally includes dry-run-only scenarios
that document fields no generic CLI agent surfaces. See
examples/scenarios/showcase/README.md
for the full first-run guide and the per-group index.
See the CLI guide for the subcommand index and
common workflows; belt <cmd> --help is the canonical flag reference.
For a real-world example, see examples/ - fixture
repos in Python, TypeScript, and Go with scenarios across L1-L4 difficulty
levels, including cross-agent comparison data.
Why agent-belt
The eval ecosystem is real, and most of it solves a different problem.
Generic LLM-eval frameworks score a model's output on a single prompt.
Observability platforms (LangSmith, Langfuse, Braintrust) eval the
function you wrap with their SDK - not the binary your users
npm install'd. Trajectory frameworks build the agent loop themselves
and score it from the inside. Coding-agent benchmarks freeze a curated
dataset and score the field on someone else's repo.
agent-belt closes the obvious gap: take the binary your users actually run, point it at a real workspace with your team's skills and MCP servers wired up, hand it scenarios that mirror the use cases they drive it through, repeat each one to measure reliability instead of luck, and ship a verdict.
Three things are distinctive:
- The black-box CLI is the unit. Not the model. Not a wrapper. Not
a solver class. The thing you
pip install'd,brew install'd, orcurl | bash'd. agent-belt runs it as a subprocess; your MCP servers, skills, and auth stay untouched. The same harness drives any CLI agent - same scenarios, same scoring, same verdict format. - Variance gets pinned down on three axes.
--trials Nruns the same scenario k times and reportspass^kfor k = 1, 3, 8. Tag a family of paraphrased scenarios and the aggregator gives you family-level pass rate. A multi-judge--scorer-configrequires consensus before a verdict counts. Each axis on its own is a partial signal - together they're a regression detector for stochastic stacks. - Your judge runs separately. You pick its provider, model, persona,
dimensions, and per-scenario instructions. It runs out-of-process from
the agent under test - never as another skill inside the same Claude
Code or Cursor session that's doing the work. OpenAI, Anthropic, Azure,
ollama/llama3.3on your laptop, vLLM on your own GPUs. The plumbing is in the box.
How agent-belt compares
| You want to evaluate | Use |
|---|---|
| A single LLM prompt's output (model-level, no agent loop) | DeepEval, Promptfoo, lm-evaluation-harness, OpenAI Evals |
| A function in your app you've wrapped with a vendor SDK | LangSmith, Langfuse, Phoenix, Braintrust |
| A research agent loop you've built inside a framework | Inspect AI |
| The field of coding agents on a frozen public benchmark | SWE-bench, Aider Polyglot, Terminal-Bench |
| The CLI agent your users actually run, on your repo, against your scenarios | agent-belt |
Evaluate Your Own Use Cases
agent-belt sends inputs to your agent headlessly. The agent CLI must be installed and authenticated on the host running agent-belt. Beyond that, what the agent can do per scenario depends on where the agent discovers its configuration:
- Discoverable from the working directory - skills, slash commands,
plugins, and MCP servers that the agent auto-loads from the worktree
root (e.g. Claude Code's
.claude/and.mcp.json) can ship with the fixture. Seeexamples/fixtures/folio/for a worked example exercising all four surfaces. - User-level only - configuration the agent reads from a fixed user
path (e.g.
~/.cursor/,~/.claude/, OS keychains) must be set up out of band on the host running agent-belt. - Repository access - the agent must be able to read and write the worktree agent-belt creates per scenario (default behavior).
Create a Scenario
Scenarios live in a group directory. Each group has a _config.json
that holds shared settings - which agent to use, workspace isolation,
custom scoring dimensions - so individual scenarios stay focused on the
test case itself. This matters when you have many scenarios: instead of
repeating "agent": "claude-code" and "working_dir": "../../my-repo"
in every file, you set it once in _config.json.
my-scenarios/
├── _config.json # shared: agent, workspace, tags
├── fix_bug.json # scenario 1
└── explain_arch.json # scenario 2
_config.json - shared group configuration
(full schema):
{
"agent": "claude-code",
"working_dir": "../../path/to/your/repo",
"default_tags": ["my-project"]
}
For a fully worked group with MCP servers, default skills, plugin
skills, plugin commands, and slash commands all wired into one fixture,
see
examples/scenarios/experience/programmatic-setup-claude/ -
seven runnable scenarios over a single _config.json. Run it with:
belt eval examples/scenarios/experience/programmatic-setup-claude --modes rules
See Scenarios for the full authoring guide and the field-by-field reference appendix.
Documentation
The docs/glossary/ directory holds the entire reference. One topic per
file, no duplication:
| Topic | Link |
|---|---|
| Architecture, design principles, where-things-live | ARCHITECTURE.md |
| Scenario authoring + JSON schema reference | SCENARIOS.md |
| Scoring (rules + LLM judges, multi-judge, thresholds) | SCORING.md |
| Layered configuration, env vars, security toggles | CONFIGURATION.md |
| CLI subcommand index, workflows, progress modes | CLI.md |
| CI integration, threshold gating, agent install/auth recipes | CI.md |
| Plugin architecture (agents, scorers, exporters) | PLUGGABILITY.md |
| On-disk artifacts, schema versioning, benchmark card | OUTCOMES.md |
| Built-in agent feature matrix | AGENT-FEATURES.md |
agent-belt also ships a SKILL.md inside the wheel so an AI coding
agent on your machine can author scenarios, run belt eval, and
interpret a verdict without leaving your IDE. One-time symlink setup is
in CONTRIBUTING.md.
Not for
- Benchmarking the LLMs themselves.
- Wrapping or replacing the agent loop. agent-belt invokes your already-installed, already-authenticated agent CLI as a subprocess.
- IDE integration. agent-belt is a headless CI-friendly harness; the agents it drives have their own IDE plugins.
Development
See CONTRIBUTING.md for setup, the test matrix, plugin authoring, and what gates a PR.
Release Notes
The release notes are available here.
License
Apache 2.0 - see LICENSE and NOTICE for third-party attribution. Contributions require signing the JFrog CLA; see CONTRIBUTING.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_belt-0.1.0.tar.gz.
File metadata
- Download URL: agent_belt-0.1.0.tar.gz
- Upload date:
- Size: 821.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae38095458676a7c2f30cadd8ce164ebfefc628b3913f8299a3dfbfeb87222e1
|
|
| MD5 |
f8447a567c5f6276278e030f9a6af007
|
|
| BLAKE2b-256 |
9ca65dc2e85c4f6eda5cbc0728061e1b469be27a4efd04cb00b1b2d139fef331
|
Provenance
The following attestation bundles were made for agent_belt-0.1.0.tar.gz:
Publisher:
release.yml on jfrog/agent-belt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_belt-0.1.0.tar.gz -
Subject digest:
ae38095458676a7c2f30cadd8ce164ebfefc628b3913f8299a3dfbfeb87222e1 - Sigstore transparency entry: 1561923521
- Sigstore integration time:
-
Permalink:
jfrog/agent-belt@e1c150e9e899ccae95c9273b609e1fe6a7915778 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jfrog
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1c150e9e899ccae95c9273b609e1fe6a7915778 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agent_belt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_belt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 435.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a5f7b9f7b0643e2cbcd6a4f629304324e8351658388dff6e1ca25ed5acee1a3
|
|
| MD5 |
c703c646d55eac2855868c8958a6bf7a
|
|
| BLAKE2b-256 |
dd63c652aae6fc62e4f4c1afa7e88dc19e02dfb8bc6aaef915e179aaa7fed773
|
Provenance
The following attestation bundles were made for agent_belt-0.1.0-py3-none-any.whl:
Publisher:
release.yml on jfrog/agent-belt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_belt-0.1.0-py3-none-any.whl -
Subject digest:
1a5f7b9f7b0643e2cbcd6a4f629304324e8351658388dff6e1ca25ed5acee1a3 - Sigstore transparency entry: 1561923641
- Sigstore integration time:
-
Permalink:
jfrog/agent-belt@e1c150e9e899ccae95c9273b609e1fe6a7915778 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jfrog
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e1c150e9e899ccae95c9273b609e1fe6a7915778 -
Trigger Event:
push
-
Statement type: