Run a plugin eval suite
claude plugin eval runs each case with the plugin and without it, grades each run, and writes
aggregate-result.json. This skill does what the CLI does not, all before money is spent: checks
that this machine can run the suite, prices the run, routes a target that is not a plugin, and
reads the delta. It never re-implements grading and never simulates a run or a score.
Actions
| Action | What happens |
|---|---|
| preflight <target> | Print the report below and stop. No CLI invocation, no spend |
| validate [<eval-dir>] | Run the static case validator only. No model call |
| select <diff-base> | Name the cases a change affects and their agent runs, with no model call (select.md) |
| run <target> (default) | Preflight, validate, print the estimate, then invoke the CLI |
| read <json> | Read a written aggregate-result.json in the order that keeps a delta honest, then remove the sandboxes its run kept (sandboxes.md) |
| ci | Answer from the CI section below |
| init [<name>] | Scaffold a suite: claude plugin eval init --bare <name> where there is no terminal |
This page holds every rule the actions use; answer from it. Each upstream specific it states has a
row under Sources. Background for a human reader:
case-authoring.md, reading-results.md
(JSON fields), ci.md (workflow file, exit codes, parser), and
records.md (the observations behind each source row). Tuning one case
after a read, or confirming a change, is not an action and is answered from
iterating.md, never from this page alone.
Preflight
Print every field, in order, before anything else (leftover_sandboxes and tmp_free: probe; stale_run_roots: Stale run roots; eval_tmpdir: Sandbox start):
cli_version: <claude --version>
floor_met: <true | false>
git_version: <git --version | none>
platform: <windows | wsl2 | linux | darwin | other>
sandbox_backend: <present | absent | not-ready | unknown> (missing: <binaries that did not resolve> | links: <paths>)
target_type: <plugin | wrapped-skill | wrapped-agent | rules>
suite_tools: <read-only | the gated tools the cases request>
same_model: <yes | no | unknown | off> (tested <model>, judge <model>)
estimate_usd: roughly <n> (cases x runs x arms, plus judge calls)
ceiling: <n> USD | unlimited
leftover_sandboxes: [at least ]<n> sandboxes (<total size> in <tmp>) | unknown
tmp_free: <free space on the temp dir's filesystem> | unknown
stale_run_roots: <n> run roots (<m> claude-eval-* sandboxes, <total size>): <paths> | 0 | unknown | n/a
eval_tmpdir: <dir> (<n> characters) | too long: <dir> (<n> characters) | n/a
stale_run_roots lists the run roots under $HOME/.ev older than 3 days on Linux and WSL2, else n/a. eval_tmpdir is the <dir> the run step will pass as TMPDIR on Linux and WSL2, the run directory $HOME/.ev/<short-run-id> with each X of Run step 3's template standing for one character of the id, else n/a. Refuse before any spend when it is longer than 24 characters, the longest length measured to work (Sandbox start), and any case requests Bash or PowerShell; the route is fewer Xs in Run step 3's template, and when even three do not fit, $HOME is too long for the bound: say so and stop.
Preflight removes nothing and blocks on none of leftover_sandboxes, stale_run_roots and tmp_free. It prints no removal command either: <tmp> can be shared with another session's run, whose live or kept sandboxes a glob over <tmp>/claude-eval-* would delete. When leftover_sandboxes is above zero, point at the removal by results file instead (sandboxes.md); when stale_run_roots is above zero, say the next run's start removes the ones no run still uses (Pruning stale run roots). Report an unreadable path as unknown, never 0.
Version floor: Claude Code 2.1.269. Never assert that the command is installed: read claude --version and let the number decide. floor_met: false stops the run and reports the
floor; nothing else is worth doing on a binary that cannot execute a case. `plugin eval is
currently in early access means an older binary: updating fixes it, no sign-up. plugin eval is
currently unavailable` means Anthropic has switched the command off for now, possibly by account
or context: nothing local fixes it and there is no access to request, so wait and retry.
Git floor: fetch <https://code.claude.com/docs/en/plugin-evals#requirements> live for it. A
git below it sets floor_met: false and names the version on the git_version line; no git
reports git_version: none and does not block.
Sandbox backend
No CLI string reports the backend, so detection is platform-shaped. When the user states their
platform, answer for that platform and take platform from what they said. Never infer it from
this session's own host, which may not be the machine that will run the eval.
| Observation | sandbox_backend |
|---|---|
| Native Windows (no WSL), or WSL1 (wsl.exe -l -v lists the distribution at VERSION 1) | absent |
| Linux, or WSL2 (wsl.exe -l -v lists the distribution at VERSION 2; /proc/version naming microsoft only says the host is WSL, since a custom WSL2 kernel can carry any release string), and every package the sandboxing page lists resolves (command -v bwrap, command -v socat) | present |
| Linux or WSL2, and any of them is missing | absent, naming each missing binary |
| macOS | present |
| Anything else | unknown, treated as absent for the refusal below |
Then, when the table gives present, a case requests Bash or PowerShell, and
find "${DOCKER_CONFIG:-$HOME/.docker}/" -mindepth 1 -type l (read-only) prints a path, override
to not-ready, naming each path and the CLI's reason: the sandbox cannot reliably exclude a store
with a link inside it (the store's root may itself be a link), so the CLI refuses the whole Bash-granting pass, read-only cases included (every run ends at 0 turns with a run error naming the credential store). On platform: darwin
with cli_version 2.1.293 or later, ignore links under ~/.docker/bin (Docker Desktop's own); an
older client, or a $DOCKER_CONFIG store elsewhere, keeps them not-ready. Write and Edit run
outside the shell sandbox and do not trigger it.
Refuse before any spend when sandbox_backend is not present and any case requests Bash,
PowerShell, Write, or Edit. Name both halves in the refusal: why each granting run would be
refused by the CLI (with no backend a run is refused rather than run unconfined) and score 0
rather than measuring anything, and the route.
absentorunknown: the backend is missing. On Linux or WSL2, install each missing package,
restart Claude Code, and confirm with /sandbox. Otherwise: WSL2, a Linux host with
bubblewrap and socat, macOS, or a Claude cloud session, whose host and missing packages come
from fetching What's available in cloud sessions (host) and Installed tools (packages) live and applying the matching table row.
not-ready: the backend is present and the packages resolve; the cause is the named links, and
the route is to resolve them or run on a host without them. Never suggest repointing
DOCKER_CONFIG to get past the check, which bypasses a sandbox safety check. On platform: wsl2, when DOCKER_CONFIG is unset (the swap changes only ~/.docker), every link (or ~/.docker itself) points under /mnt/, and no link target holds a tls/ directory (the script refuses one), run the CLI through the link swap without asking, and say so in the run report (<skill-dir> there is ${CLAUDE_SKILL_DIR}), so the run sees no links: sandboxes.md, Docker link swap. When any of the three fails, refuse and name the links.
Read-only suites run anywhere: Read, Glob, Grep, NotebookRead, Skill, AskUserQuestion,
Agent, TodoWrite, TaskCreate, TaskGet, TaskList, TaskUpdate, TaskStop (the
validator's READ_ONLY_TOOLS). suite_tools is read-only when every case's allowed_tools sits
inside that set; otherwise it lists the gated tools, which are exactly the ones needing an
--allow-tools grant. Neither a case nor a skill's own allowed-tools can widen that grant; an
ungranted tool is removed and reported on stderr as not granted.
Route per environment
| Environment | Runs today, and the route | Recorded run | Pointer | As of | Recheck when |
|---|---|---|---|---|---|
| Windows native | Read the pointer for whether this host has a backend, then apply the backend table: without one, a suite requesting Bash, PowerShell, Write or Edit takes the refusal above and its route, and one requesting none of them meets no refusal | One read-only case passed on Claude Code 2.1.316; the CLI kept its unsealed sandbox, so remove each run's %TEMP%\claude-eval-* by hand as its warning says (record) | <https://code.claude.com/docs/en/plugin-evals#grant-tools> | 2026-11-05 | That section names a Windows backend, or a release note touches sandbox sealing on Windows |
| WSL2 | Any suite once the backend is present, with Run step 3's TMPDIR. Docker Desktop's links make it not-ready: take that route's link swap | Through the swap on Docker Desktop's own store, one Bash-granting case; also Bash-granting runs where a TMPDIR under /tmp or /var/tmp left the workspace read-only and one under home or /run/user/<uid> did not | Set up Linux and WSL2; records.md | 2026-11-04 | That section adds or drops a package or WSL note, or a release note touches sandbox credential exclusion |
| Claude cloud session | Unverified: in the session, take the absent route's cloud clause, then the backend table | None, by choice: the maintainers run no evals in cloud sessions, so whether the CLI runs there stays unverified (record) | Installed tools | | |
| GitHub Actions | In melodic-software/claude-code-plugins, dispatch