evalctl
Local-first evals for agents, not just prompts.
evalctl treats eval cases as files, runners as shell commands, and results as durable artifacts. It scores what agents actually do — files written, diffs produced, commands run — on your own machine, with no gateway, dashboard, or SaaS account.
v0.3 writes durable run metadata, supports crash resume, adds local run-state inspection, and can optionally delegate runner execution to spoolctl. The standalone synchronous path remains complete and requires no external service. inferctl route capture remains deferred.
About
evalctl is an agent-first evaluation harness for local workflows. It runs eval cases as filesystem fixtures, invokes agents through ordinary runner commands, and grades the resulting workspace with deterministic scorers. The core artifact is a portable run directory that another agent can inspect, report on, and re-score without access to the original shell history.
Keywords: agent evals, LLM evaluation, AI agents, local-first, CLI, code review, workspace diff, deterministic scoring, artifact replay, eval harness.
How it differs from promptfoo
promptfoo is the incumbent local eval CLI, and it is prompt/chat-shaped. evalctl is agent-shaped.
| Axis | promptfoo | evalctl |
|---|---|---|
| Unit under test | prompt → completion | agent run → files, diffs, command logs, artifacts |
| Scoring surface | text of a response | resulting workspace: git diff, expected/forbidden file changes, exit codes, plus text |
| Execution | in-process, synchronous | v0.3 synchronous by default; run --resume resumes crashed runs; optional --queue spoolctl delegates runner execution |
| Model context | provider API keys | inferctl route/preflight provenance is deferred |
Status
Python pre-release. v0.3 provides scaffold, validate, bounded parallel run
execution, durable run metadata, crash resume, local jobs inspection, optional
spoolctl queueing, status, report, deterministic local scorers, CLI authoring
verbs, execution replay for failed cases, command scorers, truthful
warnings/errors, real schema output, and artifact replay from a copied run
directory.
contract_version remains 1.
Install
Requires Python 3.11+ and has no runtime dependencies (standard library only).
From source:
pip install "git+https://github.com/evalctl/evalctl.git"
For development, clone and install editable:
git clone https://github.com/evalctl/evalctl.git
cd evalctl
pip install -e .
Quickstart
Scaffold a project, author a suite, run it, and read the report:
evalctl init --json
evalctl suite add demo --runner-argv "python3 $EVALCTL_WORKSPACE/r.py" --json
evalctl case add demo --task "do X" --workspace fixtures/x --expect-json '{"exact":"ok"}' --json
evalctl scorer add demo --name exact --required --json
evalctl run demo --json
evalctl run --resume <run-id> --json
evalctl jobs list --json
evalctl run demo --queue spoolctl --slots 4 --json
evalctl replay --failed <run-id> --json
evalctl report <run-id> --format json
Durable Runs
Every run writes run.json before executing cases and writes
cases/<case_id>/state.json only after the case artifacts needed for reports are
complete. manifest.json is finalized from that durable state. If a process is
killed mid-run, evalctl run --resume <run-id> --json reuses the original
suite snapshot and run parameters, skips terminal cases, deletes partial
unfinished case directories, and executes only the remainder.
Reservations are liveness-only .reservation.json files with a TTL and
background heartbeat. A live reservation returns E_RUN_BUSY; a stale
reservation is reclaimed by explicit --resume. jobs list|get|prune inspects
completed, running, stale, and orphaned local run state and safely prunes only
with explicit confirmation.
Durability sidecars are operational state. Reports and artifact replay do not
require run.json, .reservation.json, .spoolctl.db, state.json, or
job.json; report_hash stays based on the report projection. SOURCE_DATE_EPOCH
controls created_ts for deterministic manifest parity.
Optional Spoolctl Queue
evalctl run <suite> --queue spoolctl --json delegates only runner execution to
spoolctl (>= 0.4.1). Evalctl still prepares workspaces, normalizes stdout and
stderr, captures workspace diffs, scores cases, and writes terminal markers. If
spoolctl is absent or incompatible, queued runs fail explicitly; non-queued runs
do not need spoolctl.
The queue database is per-run at .spoolctl.db; v0.3 starts one ephemeral
spoolctl work --drain worker per queued run. General externally managed worker
fleets are not part of this release.
Authoring
suite add, case add, and scorer add let agents build a suite without
hand-editing suite.json or cases.jsonl. Authoring verbs are idempotent on
retry: adding the same canonical object returns created:false; reusing the
same key with different content returns E_RUN_CONFLICT.
case add only writes paths under the suite tree. Absolute paths and ..
segments are rejected so generated suite files remain portable.
Replay
replay --failed selects failed/errored cases from the source run's recomputed
report projection, not from score.json or stored manifest status. It re-runs
only those cases against the current suite and writes a fresh partial run whose
manifest replayed_from names the source run.
replay --run-id names the destination run. It never resolves the source. Pass
--suite <suite-or-path> when replaying a copied run or when the current suite
cannot be resolved by manifest suite name.
Command Scorers
scorer add <suite> --name command --id judge --argv "python3 scorer.py" adds an
external scorer. The scorer receives EVALCTL_CASE_FILE,
EVALCTL_OUTPUT_FILE, and EVALCTL_WORKSPACE, and emits one JSON verdict.
Command-scorer verdicts are captured once under
cases/<case_id>/scorers/<id>.json. Reports and artifact replay read that
artifact and do not re-execute the scorer binary. Command scorers run arbitrary
local code and are covered by the same unsandboxed-runner warning as runners.
License
Apache License 2.0. See LICENSE.
Home
- Site: evalctl.dev
- Repository: github.com/evalctl/evalctl
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 evalctl-0.3.0.tar.gz.
File metadata
- Download URL: evalctl-0.3.0.tar.gz
- Upload date:
- Size: 57.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae17430231d66c4d80e8b81090b3bb00723e4cfe7051b07178002bb4c5d62a8a
|
|
| MD5 |
02d208dc229228616cbe0f90f3c4fd1d
|
|
| BLAKE2b-256 |
76138bf5ac6a1cf36909808f6ed6b14c6a9b9a09afcb62070b5869e748b31011
|
File details
Details for the file evalctl-0.3.0-py3-none-any.whl.
File metadata
- Download URL: evalctl-0.3.0-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b8228d968bc766d2ecee8c8d6103cb64c3526f46c557a677dac8a6a6c1bb8a4
|
|
| MD5 |
f29573b3db6f5d7f558f75c17af77b95
|
|
| BLAKE2b-256 |
9b5f2b3dfe71b07b715136497b7080be0d016f0c8b9e6a2e72dd30725cd71557
|