claude-skills/engineering/agent-regression-evals/commands/cs-eval-gate.md
Claude 8407939adb
fix(commands): hide skill-wrapper commands from the model's skill listing
Claude Code puts every model-invocable command into the same character-budgeted
listing as skills. Every plugin command here wraps a skill that is already listed,
so the model saw each capability twice and the listing overflowed sooner.
disable-model-invocation keeps /cs-<name> typeable and only removes the
duplicate from the model's view (verified on Claude Code 2.1.314).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8KYFLGyaha8ReWA1JaCfC
2026-10-30 17:14:41 +00:00

1.3 KiB

disable-model-invocation description argument-hint
true Just the merge gate - paired statistical comparison of a candidate eval run against baseline, with a PASS / WARN / BLOCK exit code. baseline.jsonl candidate.jsonl [quarantine.json]

/cs-eval-gate

Answer one question about $ARGUMENTS: is the candidate measurably worse than the baseline?

python ${CLAUDE_PLUGIN_ROOT}/skills/agent-regression-evals/scripts/regression_gate.py \
  --baseline <baseline.jsonl> --candidate <candidate.jsonl> [--quarantine <quarantine.json>]

What blocks (exit 4)

  • Upper end of the 95% CI on the mean per-case delta below zero, or one-sided McNemar p < 0.05.
  • A critical case that passed every baseline trial and failed any candidate trial.
  • A baseline case missing from the candidate run.
  • A quarantine entry without owner or expiry, or one covering a critical case.

What warns (exit 2)

  • A drop larger than --tolerance (default 0.02) that the sample cannot confirm. Report the number of cases the gate says would be needed to detect it.
  • Mean cost per case up more than --max-cost-increase (default 20%).

Report

Verdict first, then the delta and CI, then every BLOCK and WARN line verbatim, then the largest per-case drops. On WARN, state the decision the human must make; do not make it for them.