plugin-eval
Run and read `claude plugin eval`: preflight, no-spend validation, cost estimate, the run, its validity verdict and the with-versus-without delta. Use when: 'run my plugin evals', 'evaluate this plugin', 'eval my skill', 'does my skill actually fire', 'did my change make the skill better', 'is this gain real', comparing runs or arm scores, aggregate-result.json, an eval CI gate, headless `claude -p` launches, missing socat or bubblewrap, `--allow-tools` order, worktree refusals, eval cost, measuring CLAUDE.md or rules (load before answering). Not criteria design (/evals:design) or skill-creator JSON evals.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- metadata
- { "summary": "Preflight, price, run, and read a plugin eval suite around the CLI", "workflow-stage": "test" }
- description
- Run and read `claude plugin eval`: preflight, no-spend validation, cost estimate, the run, its validity verdict and the with-versus-without delta. Use when: 'run my plugin evals', 'evaluate this plugin', 'eval my skill', 'does my skill actually fire', 'did my change make the skill better', 'is this gain real', comparing runs or arm scores, aggregate-result.json, an eval CI gate, headless `claude -p` launches, missing socat or bubblewrap, `--allow-tools` order, worktree refusals, eval cost, measuring CLAUDE.md or rules (load before answering). Not criteria design (/evals:design) or skill-creator JSON evals.
- argument-hint
- [preflight|validate|run|read <json>|ci|init] [target]
- user-invocable
- true
- disable-model-invocation
- false
02 资源文件 46
- 参考文档reference/case-authoring.md13.3 KB
- 参考文档reference/ci.md6.3 KB
- 参考文档reference/iterating.md1.4 KB
- 参考文档reference/reading-results.md23.4 KB
- 参考文档reference/records.md13.5 KB
- 参考文档reference/sandboxes.md13.4 KB
- 脚本scripts/calibrate-judge.py28.2 KB
- 脚本scripts/calibrate-judge.test.sh1.7 KB
- 脚本scripts/convert-evals-json.py34.6 KB
- 脚本scripts/convert-evals-json.test.sh1.7 KB
- 脚本scripts/docker-links.py12.0 KB
- 脚本scripts/docker-links.test.sh1.7 KB
- 脚本scripts/fixtures/calibrate-judge/result.json4.6 KB
- 脚本scripts/fixtures/calibrate-judge/suite/capital-city/graders/names-paris.md135 B
- 脚本scripts/fixtures/calibrate-judge/suite/capital-city/graders/no-tool.md49 B
- 脚本scripts/fixtures/calibrate-judge/suite/capital-city/prompt.md164 B
- 脚本scripts/fixtures/calibrate-judge/suite/capital-city/samples/names-paris.json584 B
- 脚本scripts/fixtures/calibrate-judge/suite/capital-city/samples/no-tool.json147 B
- 脚本scripts/fixtures/calibrate-judge/traces/answered-itself.jsonl268 B
- 脚本scripts/fixtures/calibrate-judge/traces/reproduced.jsonl489 B
- 脚本scripts/fixtures/run-validity/r2-clean-runs.json2.5 KB
- 脚本scripts/fixtures/run-validity/r2-invalid.json4.8 KB
- 脚本scripts/fixtures/run-validity/traces/axyiOf.jsonl826 B
- 脚本scripts/fixtures/run-validity/traces/clean.jsonl217 B
- 脚本scripts/fixtures/run-validity/traces/d6Z5IW.jsonl808 B
- 脚本scripts/fixtures/run-validity/traces/IF6xuu.jsonl1.8 KB
- 脚本scripts/fixtures/run-validity/traces/LyFFkR.jsonl808 B
- 脚本scripts/fixtures/run-validity/traces/network-denied.jsonl809 B
- 脚本scripts/fixtures/run-validity/traces/self-glob-escape.jsonl697 B
- 脚本scripts/fixtures/run-validity/traces/self-lookup-allowed.jsonl1.2 KB
- 脚本scripts/fixtures/run-validity/traces/self-read-escape.jsonl720 B
- 脚本scripts/fixtures/run-validity/traces/self-read-unfinished.jsonl513 B
- 脚本scripts/fixtures/run-validity/traces/self-search-finished.jsonl681 B
- 脚本scripts/fixtures/run-validity/traces/self-search-outside.jsonl667 B
- 脚本scripts/noise-report.py20.4 KB
- 脚本scripts/noise-report.test.sh1.6 KB
- 脚本scripts/run-validity.py132.2 KB
- 脚本scripts/run-validity.test.sh1.7 KB
- 脚本scripts/test_calibrate_judge.py25.2 KB
- 脚本scripts/test_convert_evals_json.py29.5 KB
- 脚本scripts/test_docker_links.py12.0 KB
- 脚本scripts/test_noise_report.py21.9 KB
- 脚本scripts/test_run_validity.py148.8 KB
- 脚本scripts/test_win_test.py6.8 KB
- 脚本scripts/win-test.py8.7 KB
- 脚本scripts/win-test.test.sh1.6 KB
03 SKILL.md 正文
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 |
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; 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: <n> sandboxes (<total size> in <tmp>) | unknown
tmp_free: <free space on the temp dir's filesystem> | unknown
eval_tmpdir: <dir> (<n> characters) | too long: <dir> (<n> characters) | n/a
eval_tmpdir is the <dir> the run step will pass as TMPDIR on Linux and WSL2, 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 a shorter <dir>, as in Run step 3.
Preflight removes nothing and blocks on neither leftover_sandboxes nor 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). 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 withbubblewrapandsocat, 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 repointingDOCKER_CONFIGto get past the check, which bypasses a sandbox safety check. Onplatform: wsl2, whenDOCKER_CONFIGis unset (the swap changes only~/.docker), every link (or~/.dockeritself) points under/mnt/, and no link target holds atls/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 pr-run-plugin-evals.yml on main under the CI rules and keep its env-scrub input on, since off gives Bash subprocesses the Claude credentials. It passes no --threshold, so the job goes red below the CLI's default. Issue 6649 tracks the suite job. Elsewhere, write a job from CI and ci.md |
With TMPDIR moved out of /tmp (PR 12643), a Bash,Write case scored 1.00 in one run with env-scrub on, its graders matching a git merge call and the file that merge brings in (run). The earlier pass, also env-scrub on, logged only sandbox refusals under /tmp (record) |
Issue 6649; https://code.claude.com/docs/en/plugin-evals#run-evals-in-ci | 2026-11-04 | Issue 6649 closes, that workflow's run step changes, or that section changes its runner requirements |
Worktree isolation
Under Claude Code's worktree isolation a Bash guard can refuse the CLI; which session shapes it
covers is in records. It matters only when run or init invokes
the CLI. Never retry, wrap, reroute, or otherwise bypass a refusal. Build the command with absolute
paths: for run, an absolute <target> and --json path inside the worktree; for init,
cd <absolute plugin root> && claude plugin eval init --bare <name>. Take the first route that fits,
and after a run, read the --json file back with the read action:
- A
runin a session entered withEnterWorktree: ask the user whether to leave the worktree for it. Only on a yes,ExitWorktreewithkeep, run it, thenEnterWorktreeback by the worktree's path; on a no, take route 3. - A subagent: return the exact command to the caller, which takes these same routes.
- Otherwise print it for the user to run in a terminal outside Claude Code, or in a session
started with plain
claude(not--worktree) in the worktree.
Separately, the CLI refuses a plugin inside a repository with many linked worktrees (registers more linked worktrees than can be screened). Copy the plugin into a new empty directory outside
any git repository without git metadata or results (rsync -a --exclude .git --exclude 'evals/results' <plugin-dir>/ <new empty dir>/), run against the copy with an absolute target,
and point --json at the original's gitignored results directory.
Tested model and judge
Resolve the model under test and the judge from the planned invocation, the cases' model keys,
and the environment, by the --model and --judge-model rows of the command options table; an
alias and a full model ID naming the same model are the same. Report unknown when either cannot
be resolved before a run. Setting: ${user_config.same_model_warning}; if it renders empty or as
the literal placeholder text, use true, the manifest default, and say which you used. When it is
false, print same_model: off and compare nothing. When same_model is yes, print this line
under the report. It is advice: the run goes ahead.
warning: the judge is the model under test; pass a different --judge-model
Target routing
The plugin is the only unit the harness loads and the only thing the ablation measures. Every delta is "this plugin versus no plugin".
| Target | target_type |
Route |
|---|---|---|
A plugin root with plugin.json or .claude-plugin/plugin.json plus an eval dir |
plugin |
Direct. This is the designed path |
| A bare skill directory | wrapped-skill |
Wrap it in a minimal .claude-plugin/plugin.json so it loads as <name>@skills-dir; claude plugin init <name> scaffolds that. Assert with a tool_used grader on tool: Skill with input_match naming the skill |
| An agent definition | wrapped-agent |
Ship it in the wrapping plugin's agents, list Agent in the case's allowed_tools, assert tool_used on Agent. No first-party text describes this route; it composes documented parts, so treat a null result as a route defect before a plugin defect |
| Hooks and slash commands | component of plugin |
Loaded as plugin components. Hooks run outside the sandbox, so a score for hooks you did not write is advisory unless the run is in a container or a CI runner. Nothing first-party grades command invocation as such |
| MCP servers | component of plugin |
Mocked by default from evals/mocks/<server>/<tool>.md; a real server needs --allow-real-servers or --mocks off plus an --allow-tools "mcp__plugin_<plugin>_<server>__*" grant, and runs as you, outside the sandbox |
CLAUDE.md, .claude/rules, user settings, memory |
rules |
Refused. Every run starts from a throwaway home with user settings, hooks, CLAUDE.md, memory, MCP servers, and other plugins absent, so a shim that re-injects the rule measures the shim, not the rule |
A skill or agent that is not yet wrapped is not a target: report the wrap route, print it, and stop.
The next preflight sees wrapped-skill or wrapped-agent and proceeds.
For a rules target, invoke /harness-config:unhobble through the Skill tool when the
harness-config plugin is installed: it measures standing instructions by stripping them and
watching what the model stumbles over. When that plugin is absent, say so and describe the
experiment in one sentence (strip the instructions on a branch, log observed stumbles, restore only
what repeated evidence earns) so the user can run it by hand.
Cost
Each run and each judge grader is a real model call on the operator's account; there is no dry run.
agent runs = cases x runs x arms (arms = 2 under the default ablation, 1 under --ablation none)
judge calls = 3 per llm or baseline grader per run (the 2-of-3 vote)
Four grader types are free (regex, tool_used, tool_order, file_exists); llm and
baseline are billed. Carry the estimate as "roughly": the reported costUsd is a list-price
estimate, and arm costs are not symmetric.
A fresh suite is priced at 0.2 USD per run in either arm, judge calls included, and the figure is
called headroom. It has no pass of its own to scale, while cases x runs x arms is known before
any spend: four cases at three runs and two arms is 4.8 USD. Once a suite has run, scale from its
own last costUsd instead, estimating each arm from its own runs. Use 0.8 USD for a case's
without-arm only when a kept trace shows that arm loading a large skill; a suite with no such trace
is priced at 0.2 alone, and the older anchor is no caveat or risk to that estimate. An opus-judged
run costs more; size it from its own first run. When to re-derive the anchors: records.md.
Ceiling: ${user_config.max_cost_usd} USD, unlimited: ${user_config.unlimited_cost}. If either
renders empty or as the literal placeholder text, use 5 USD and false, the manifest defaults, and
state the ceiling you used without commenting on the setting's state.
- Print the estimate. This happens on every invocation, including unlimited, and the print is the step that must appear in the transcript before any CLI call, not only in the final answer.
- Unlimited: drop
--max-cost-usdfrom the command and start. Never prompt; the estimate already printed is the whole disclosure. - Ceiling set and estimate under it: the pass goes through. Pass
--max-cost-usd <ceiling>and start, without stopping to ask. A question about whether a pass fits gets the same answer: it will go through and starts now under the ceiling, for example "about 4.8 USD, under the 5 USD ceiling, so it starts with--max-cost-usd 5and no confirmation". - Ceiling set and estimate over it: stop and offer three exits, then proceed only on the answer:
raise the ceiling, narrow the run with
--case <glob>or--tag <tag>, or accept a partial run knowing it exits 2 and its scores are not comparable.
The ceiling bounds a list-price estimate, not subscription usage, and it is checked before each run
launches, so an overrun is bounded by the runs already in flight (one, or up to --concurrency).
Cheapest levers first: deterministic graders only, then --ablation none (halves the runs and
loses the delta), then --case or --tag, then --runs 1 for iteration with a confirm at 3, then
a committed mocks/.replay/ so agent mocks replay without a model call.
Run
-
Run the static validator. It reaches no model:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/validate/scripts/validate-cases.py" <eval-dir>Use
pythonwherepython3does not resolve. In this repository's own checkout${CLAUDE_PLUGIN_ROOT}isplugins/evals, here and below. Exit 0 means proceed (WARN lines are advice, not a stop); exit 1 means at least one FAIL, so stop and fix the cases before spending, invoking theevals:validateskill through the Skill tool for the finding detail; exit 2 means the eval dir is unreadable or the arguments are wrong, which is also a stop. -
Run "Calibrating a judge" first unless every
llmgrader it can reproduce has passed with this run's judge model. On a miss, fix the rubric or calibrate a stronger--judge-modeland use it. -
Invoke the CLI with the target first, ahead of every flag. Pointer for how the target is parsed: https://code.claude.com/docs/en/plugin-evals#choose-what-to-evaluate.
claude plugin eval <target> --trust-plugin --keep-temp --judge-model opus --json results.json --threshold 0.8 --max-cost-usd <n> --no-publishWhen preflight's
suite_toolslists gated tools, add--allow-toolswith exactly those tools; without the grant each is removed from every run, so a case that must run or verify its own work cannot. When a selected case'scase.yamlsetscontext.scaffold_script, read each such script first, since it runs as you outside the sandbox (see Gotchas), then add--scaffold. Without it those cases run against an unstaged workspace, both arms score the same, and their delta reads 0, so that share of the pass is wasted. When a script is one you would not run on your own machine, select the other cases with--case <glob>or--tag <tag>. On Linux and WSL2, run the CLI asenv TMPDIR=<dir> claude plugin eval …, where<dir>is a directory of at most 24 characters outside the system temp directories that you create first, on disk (for example$HOME/.evwhen that stays within 24 characters; not the/run/usertmpfs, which kept sandboxes can fill). Why: sandboxes.md, Sandbox start. When a case's description asks forCLAUDE_CODE_DISABLE_AUTO_MEMORY=1, add it to the sameenvprefix: sandboxes.md, Auto memory.A non-TTY run against an untrusted directory needs
--trust-plugin(Trust the plugin directory).--keep-tempkeeps each run's trace for the validity gate under "Reading the delta". A run that feeds a decision keeps--judge-model opus, since the CLI's default judge is uncalibrated for decisions; only an exploratory run drops it. Run it in the foreground with a tool timeout that covers the estimate (a three-case pass took about six minutes here) and wait. Stay attached until every run exits: the results come back in the same tool call, so a headless (-p) session runs suites one after another (-jadds concurrency inside one) and answers only after all exit. A CLI backgrounded with a shell&gets no wait: the session answers before the results exist and reads none of them. A command the main conversation starts with the Bash tool'srun_in_backgroundholds a-prun open until it exits or reaches its time limit (both in records). A larger suite can outrun the foreground timeout or the time limit itself. For what holds a-prun open and which limits apply, see https://code.claude.com/docs/en/headless#background-tasks-at-exit and https://code.claude.com/docs/en/tools-reference#time-limit-for-background-commands. An interactive session backgrounds a run only as a harness-tracked task it waits for. A run is finished when the process exits andresults.jsonexists; read the exit code and the JSON together, never one alone. Write the file where git ignores it (the CLI's own copy lands where the--output-dirrow of Command options says, which can take--jsontoo when ignored); a run result is evidence to distill, not a file to commit. -
Read the JSON with the
readaction below. With--json <file>there is no terminal table, so the JSON is the only record of what happened.
Where a harness guard other than the worktree refusal above blocks a Bash command containing the
bare word eval, run the same command text, unchanged, through the PowerShell tool instead.
Reading the delta
Read in this order. Stopping early at any step is the finding.
-
Run the validity gate before reading any number:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/plugin-eval/scripts/run-validity.py" results.json --runs <the run count the eval used> [--scaffolded]The run count is the run's
--runs, else the cases'runs, else 3. Add--scaffoldedonly when the eval ran with--scaffold(why). Without the traces--keep-tempkept it reports the trace checks unchecked and the run INVALID. Report a score, delta, or interval only fromverdict: VALID(exit 0), naming any warnings it printed. Onverdict: INVALID(exit 1), report INVALID with every reason on that line and no number, then fix the cause and rerun. Tell the user to post that INVALID line and its reasons in place of the number; "post nothing" is not the instruction. Report aharness failure:reason as a harness failure, never as the skill's result or a null delta, whatever the CLI's exit code, and rerun by Sandbox start. Exit 2 means the file could not be read or an argument was wrong: say which. The steps below still apply to a VALID run.A with-arm denial aimed at or under the plugin's directory, at a directory above it (which covers its files), or with no absolute path or no known plugin directory, is a FAIL: the agent reached for a plugin file it could not read, so the fact belongs in the hub. So is a with-arm Bash call whose result reports a sandbox network denial (Sources: sandbox network denial report), whose hosts the summary names: the score measured a blocked request. Only an invocation probe, a control, or a case whose
prompt.mdorcase.yamltags includeno-networkturns it into a warning; a without-arm one is not read. The exceptions that turn a denial into a warning (a denial the environment makes in both arms, such as a user-scope read of~/.claude/standards; a denial in a case whose denial-free runs scored the same; an invocation probe's denial; a sandbox network denial in an invocation probe, control orno-networkcase; a negative control's broken side, run with--own-copy-search-warns, searching its own copy, where such a case cannot decide the control; a finished without-arm run's search naming only the plugin it lacks), Bash denial paths, A/B gating, the 0-turncontext: forkrun the gate passes, and invocation-probe misses and tools: reading-results.md, Denials. -
partial.true(withpartialReasonofcost_ceiling,interrupted, orauth_failed) means the suite did not finish: report that and keep the document out of any trend. -
Per run,
skippedPaidGraders: trueor a non-nullerror. A skipped judge grader is still scored, as a failure withexplanation: "skipped: cost ceiling", so it silently depresses the arm. A non-nullerrordoes not by itself imply score 0: which errored runs are still graded is in JSON result. Either makes the case not comparable; say so instead of reporting its number. -
cases[].aggregates.delta. It is omitted when the arms are not comparable. An omitted delta is never zero, and neither is a missingscoreWithout. -
Only now read the delta: with-arm score minus without-arm score. A case the gate's
ceilingline names cannot show a gain: say it is excluded and use the delta that line gives over the other cases. -
Run the noise report over the same file and read its lines before calling any delta a gain:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/plugin-eval/scripts/noise-report.py" results.json --threshold <the run's --threshold> --interval-method <method> --grader-agreement<method>is${user_config.interval_method}, and an empty or unfilled value there means the default,normal, applies; do not mention the setting's state to the user. Pass--grader-agreementunless${user_config.grader_run_twice}isfalse(unexpanded, empty, or any other value meanstrue, the manifest default). Any otherinterval_methodvalue is passed as is, and the script falls back tonormal. These values set the command this skill runs; they say nothing about a user's own run. Exit 2 means the file could not be read or an argument was malformed: say which, and report no interval.
Read the noise report's lines this way:
verdict: within noiseorverdict: n too small to call: the gain is not established, whatever the delta's sign or size. Say so before any number.verdict: the interval excludes 0: report the delta together with its interval.near ceiling: the baseline leaves no headroom, so the suite has almost no room to show a gain. Add a case the model fails without the plugin before reading the delta again.not comparableandscore check: name the case. A score check means the run's reported score and its graders disagree; read that run's graders before using its number.judge agreement: a grader with split runs needs its explanation and evidence read before its verdict is trusted. The line saying the file holds no judge votes means agreement is unknown, not perfect.cost: report it beside the scores, in the same answer as the delta.- Two versions:
--baseline <before.json> --margin <m>; readcompare verdictwith eachcase drop. pass count: the interval method (theinterval_methodsetting, the--interval-methodflag) changes only this line, the count of cases at or above the threshold. Every score interval, the delta line included, uses the normal method paired over cases whatever the setting, because a case score is not a proportion of trials. So a normal delta interval underwilsonis the setting working as designed, and nothing needs checking (local-decisions.md, Interval method).
Spot-read outputs against verdicts before trusting any delta. For each case whose delta you
report, open a few runs from each arm (the grader explanations in results.json, and the kept
trace from --keep-temp), at least one its graders passed and one they failed where both exist,
and check each verdict against what the output does. A pass on a wrong output, or a fail on a
correct one, makes the grader or its rubric the finding: fix it and rerun before quoting the
number, and say which run showed it.
Check that every counted run did the task before its case's delta counts. A run that stopped early, answered a different request or never reached the case's subject still gets a score, so averaging it in moves the delta for a reason that is not the plugin. The test: each counted run's grader explanations or kept trace show it attempted the task the prompt set and produced a result for it. Name each run that did not, and report its case as not comparable, as step 3 does.
A gap holds for the model it ran on. A gap claimed for more than that model needs a run on a second
model (the same suite with a different --model), because one model's delta can come from that
model's habits rather than from the plugin's content. The test: the second run's noise report also
reads verdict: the interval excludes 0 with a delta of the same sign. Without that run, the report
names the one model the gap was measured on.
A case at 1.00 in both arms is a passing case and a null measurement at once. What else the number
means (with-only graders, arm: both, the ablation mode, a plugin directory named evals):
reading-results.md, What a delta does and does not say.
End the reading with one line on the change under test: promote only when the run is VALID, the
noise report's verdict is that the interval excludes 0 with the with-arm ahead, the spot-read found
no verdict it disagrees with, every counted run did the task, and a gap claimed beyond one model has
its second-model run; otherwise do not promote, followed by the first condition that failed. Then remove the run's sandboxes, once its traces are no longer needed: sandboxes.md.
A no-loss two-version compare ships a cut only after a detection control, the before text with the changed rule removed, scores clearly lower on the same cases and model; otherwise report it as unable to detect a loss: reading-results.md, Detection control. A whole-page deletion is proven with a sensitivity control instead, the page replaced by a plausible but wrong version and run beside the before version, which must score clearly lower; every other cut keeps the detection control.
Calibrating a judge
Trust an llm grader's scores only after its judge, the model the suite uses, agrees with labeled
answers on at least 90% of runs; a pass says nothing about another model. Before the first full
run, calibrate every LLM-judge grader the harness can reproduce (one with labeled samples, judging
text); the default judge is uncalibrated until it passes. Report any other judge grader as
uncalibrated, never trusted silently. Labels are the must-pass and must-fail answers in the case's
samples/<grader>.json, set by three agents independently with the user settling every
disagreement:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/plugin-eval/scripts/calibrate-judge.py" build --suite <eval-dir> --out <empty dir outside the repo>
claude plugin eval <out> --trust-plugin --ablation none --threshold 0 --runs 3 --judge-model <the suite's judge model> --keep-temp --no-publish --json <out>/results.json
python3 "${CLAUDE_PLUGIN_ROOT}/skills/plugin-eval/scripts/calibrate-judge.py" score --manifest <out>/manifest.json <out>/results.json
--threshold 0 keeps the CLI's exit code about errors, since must-fail cases are meant to score 0.
score prints a FAIL grader line for each grader under 90% and exits 1; fix that rubric, or move
the whole suite to a stronger judge, and calibrate again before reading its scores. Its false
positives and negatives name the samples to read first. A sample with no reproduced run is listed
untested, counts toward no agreement, and shows in the verdict line; raise --runs or tighten
the prompt before reading the grader's score. What build writes and skips, and which runs
score leaves out: case-authoring.md, Calibration samples.
CI
A CI job runs the command under Run with --model and --judge-model added, under three rules:
pin both, each to a full model ID and never an alias such as sonnet, so a model rollout is not
read as a plugin regression; pass --trust-plugin because a non-TTY job is otherwise refused; and
read the JSON in addition to the exit code. Exit 1 still fails the job on a below-threshold case,
but exit 1 has several causes and exit 2 more than one (the table in Run evals in CI lists them), so the JSON is what tells a
reader which one happened and whether the arms were comparable at all (pointer: the CI pins row under Sources).
Boundary, the built-in plugin eval command
- The CLI (
plugin eval, a built-in command) owns execution, grading, the ablation arms, the JSON and the HTML report. It is gated by the version floor under Preflight, so this skill reads the version and never assumes the command is available. This skill owns what surrounds a spend: the preflight, the no-spend validation, the estimate and ceiling, target routing and the reading discipline. It never re-implements grading and never simulates a run or a score. - Success criteria and case design belong to
/evals:design; come here once a suite exists. - The skill-creator JSON eval format is not a suite this command reads. Convert its cases to case
directories (
/evals:design skill <name>writes them), check those with/evals:validate, then run them here. To move one plugin'sevals.jsoncases into its suite, runpython3 "${CLAUDE_PLUGIN_ROOT}/skills/plugin-eval/scripts/convert-evals-json.py" <plugin-dir>(--dry-runprints the case count and writes nothing;--helpprints what it writes), then/evals:validateon the plugin'sevals/.
Next
- Validator FAIL, or a case file that failed to load:
/evals:validate <eval-dir>. - Target turns out to be
CLAUDE.mdor rules rather than a plugin:/harness-config:unhobble. - Suite ran and the delta is read, and a case needs sharper criteria:
/evals:design <target>.
Gotchas
- A pass that crosses the ceiling late can still end
partial: falsewith exit 0 and one case missing itsdelta: the ceiling skips judge calls, not runs. A pass that crosses it earlier skips whole cases and reportspartial: truewith exit 2. Only the JSON distinguishes them. - The without-arm is not the with-arm minus the plugin: the model without the plugin may load a
bundled skill such as
claude-apiand cost several times the with-arm. Estimate each arm from its own runs. --trust-pluginpersists (observed: records.md), so later non-TTY runs launch instead of being refused. How far a yes at the trust prompt reaches: Trust the plugin directory.- Without
--keep-tempthe per-runtracePathpoints at a directory the runner has already deleted, so decide on--keep-tempbefore the run, not after reading a surprising score. - A typo in
--caseexits 1 and no exit code separates it from a real failure, so read the CLI's message before treating an exit 1 as a failing case. - A usage or rate limit mid-suite is not marked partial, so
partial: falsedoes not show the runs ended normally. Later runs end with the error and get 0 with no grader run, in both arms, so the suite reads as a regression (pointer: Runs fail with a usage-limit or rate-limit error partway through). Check each affected run'serror(cases[].arms.with[].error,cases[].arms.without[].error) before believing a drop; when it names the limit, rerun those cases with--caseonce the limit resets. It is neither a regression nor flaky cases, and leaving the cases out of the trend is not enough on its own. Whenerroris null, run the validity gate and the noise report before drawing any conclusion, and say nothing yet about the cases themselves. A run whose sandbox never started fails the gate'ssession startedcheck; theTMPDIRroute is in sandboxes.md, Sandbox start. On Claude Code 2.1.316, when cases grant Bash or load a skill with a pre-computed (!`command`) line, a run'sTMPDIRmust not sit under/tmpor/var/tmp; the run step's$HOMEdirectory avoids it. The gate'ssession startedcheck fails a run whose failed Bash result reports a read-only file system in the run's workspace orTMPDIR. Itsskill loadedcheck fails a run whose skill never loaded because a pre-computed command failed or its permission check refused it, as when the case grants no Bash. That holds even when the skill-fired grader saw the Skill call, so a "did not fire" and a "failed to load" verdict name different faults; in an invocation probe or--measured-firecase a failed Skill call only warns. Recheck when a release note touchesplugin evalsandbox paths orTMPDIR(records.md). - Pass
--no-publishon a terminal run whose report must stay local. When a report publishes, and when a session-started run keeps it local: HTML report. - The sandbox limits what the agent under test can reach. It is not a boundary against the
plugin's own code: hooks,
--scaffoldscripts, and real MCP servers run as you, outside it, with network access. A passing suite is a behavior measurement, never a security vetting. Observed sandbox write limits: records.md.
Sources
Each row: the rule it backs, the pointer to read live, and, for a stored value, its as-of date and recheck trigger (a pointer-only row leaves those cells empty). When a trigger fires, re-read the pointer, refresh the rule and its records.md entry, and record a drift outcome in this plugin's CHANGELOG.
| Rule | Pointer | As of | Recheck when |
|---|---|---|---|
| Version floor and its two error strings | claude plugin eval --help; https://code.claude.com/docs/en/plugin-evals#requirements; https://code.claude.com/docs/en/plugin-evals#troubleshooting |
2026-09-12 | A release note touches plugin eval, or the floor error string changes |
| Git floor | https://code.claude.com/docs/en/plugin-evals#requirements; refusal at https://code.claude.com/docs/en/plugin-evals#git-is-too-old-for-claude-plugin-eval | 2026-10-10 | That section changes the floor or its no-git exemption |
| Sandbox backend table and the no-backend refusal | Set up Linux and WSL2; https://code.claude.com/docs/en/plugin-evals#grant-tools | 2026-10-04 | Either names a Windows backend, or adds or drops a package or WSL note |
Docker credential-store refusal and the ~/.docker/bin exemption |
https://code.claude.com/docs/en/changelog (2.1.293); no docs page covers it | 2026-10-10 | A docs page documents the check, or a release note touches sandbox credential exclusion or exempt paths |
eval_tmpdir 24-character bound and its refusal |
unix(7) sun_path; sandbox-runtime's bridge sockets and the 63- and 24-character pair in sandboxes.md, Sandbox start |
2026-10-31 | sandbox-runtime renames its bridge sockets, a release note touches plugin eval sandbox paths or TMPDIR, or a <dir> within the bound fails with the bridge-socket error |
| Sandbox network denial report, read by the permission denials check | Sandboxing, The unsandboxed retry escape hatch says only that the result names the denied host; no page documents the report's format, observed in a with-arm Bash result on Claude Code 2.1.317 (issue #12988), its shape kept in scripts/fixtures/run-validity/traces/network-denied.jsonl |
2026-11-04 | That page documents the violation report, a release note touches sandbox violation reporting, or a kept trace shows a network denial the check missed |
| Cloud route host and packages | What's available in cloud sessions (host), Installed tools (packages) | ||
| Read-only tool set | https://code.claude.com/docs/en/plugin-evals#grant-tools | 2026-10-10 | That section's allowed-tools sentence changes |
Worktree Bash guard refusal of claude plugin eval --help, and which session shapes it covers |
Observed on Claude Code 2.1.318 (records.md) | 2026-11-04 | A release note touches worktree isolation or plugin eval |
Worktree Bash guard refusal of the user's ! command |
Observed on Claude Code 2.1.285 (records.md) | 2026-10-01 | A release note touches worktree isolation or plugin eval |
| CLI linked-worktree refusal | Observed on Claude Code 2.1.289 (records.md) | 2026-10-04 | A release note changes the limit or the CLI's repository screening |
| Model and judge resolution | https://code.claude.com/docs/en/plugin-evals#command-options | ||
--scaffold for a case with a scaffold_script, and the zero delta without it |
https://code.claude.com/docs/en/plugin-evals#add-setup-or-history-with-case-yaml; the --scaffold row of https://code.claude.com/docs/en/plugin-evals#command-options; two discarded passes on Claude Code 2.1.309 and 2.1.310 (issue #9414) |
2026-10-27 | That section changes when a scaffold_script runs, or a release note touches --scaffold |
| Flag order, trust refusal, flag defaults | claude plugin eval --help; https://code.claude.com/docs/en/plugin-evals#command-options |
2026-09-12 | --help no longer matches, or a release note touches the flag set |
| Cost anchors (list-price estimates, this plugin's read-only suite, Claude Code 2.1.287 and 2.1.296) | records.md, Cost anchors | 2026-10-11 | A release note touches plugin eval, the served model changes, or a pass averages more than 0.2 USD per run |
| Spoke reach | https://code.claude.com/docs/en/plugin-evals#grant-tools; kept traces in records.md | 2026-10-04 | A release note touches plugin eval or sandbox permissions, or a kept trace on 2.1.289 or later shows a spoke Read denied |
| Repeat count | https://code.claude.com/docs/en/plugin-evals#how-a-case-is-scored | 2026-10-01 | The page changes its default run count |
| Judge calibration: what a judge reads, the 90% bar, trace judges not seeing the prompt | https://code.claude.com/docs/en/plugin-evals#what-a-grader-can-look-at; "When the grader is an LLM judge" in eval-audit.md; a kept 2.1.287 trace | 2026-10-02 | The focus table changes, a kept trace starts carrying the prompt or system prompt, or eval-audit.md moves its bar |
| CI pins | https://code.claude.com/docs/en/plugin-evals#run-evals-in-ci; https://code.claude.com/docs/en/model-config#model-aliases | 2026-10-02 | Either section changes how it pins or resolves a model |
Headless stay-attached: what holds a -p run open, the background command time limit |
https://code.claude.com/docs/en/headless#background-tasks-at-exit; https://code.claude.com/docs/en/tools-reference#time-limit-for-background-commands; a probe on Claude Code 2.1.316 (records.md) | 2026-11-01 | Either section changes what holds a run open or its limits, or a release note touches background tasks or -p exit |
Ceiling shapes, trust persistence, the unmarked limit, kept local, init needing a terminal |
https://code.claude.com/docs/en/plugin-evals#command-options (--max-cost-usd row); https://code.claude.com/docs/en/plugin-evals#run-evals-in-ci (exit codes, CI); https://code.claude.com/docs/en/plugin-evals#runs-fail-with-a-usage-limit-or-rate-limit-error-partway-through; https://code.claude.com/docs/en/plugin-evals#html-report; https://code.claude.com/docs/en/plugin-evals#write-a-case-manually; records.md |
2026-09-13 | A release note touches plugin eval, publishing, init or limit handling, or a pass shows a ceiling shape not named here |
04 同仓库更多 Skills
track
Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.
reviewer-media
Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
principles
Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.
write
Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').