speckit-companion: Command for Claude Code

.claude/commands/bench-wave.md

bench-wave is a command for Claude Code from alfredoperez/speckit-companion. It costs 15 tokens per session (850 once invoked), scanned A, original, MIT.

A command procedure for benchmarking one pipeline-change wave on two test setups and recording the result. A benchmark is a repeatable performance test, while a pipeline wave is one grouped change being evaluated.

In plain words
What is it for?
It is for checking out a wave branch, compiling it, verifying the changed command text, running the benchmark, and recording its result.
Why use it?
It ensures the tested worktree contains the intended branch and rebuilt code before the measurement starts. It also keeps the run controlled by allowing only one heavy benchmark at a time.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is alfredoperez/speckit-companion's own configuration. It tells Claude Code how to work on speckit-companion itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything speckit-companion configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Bash(git -C:*), Bash(npm run compile:*), Bash(python3 speckit-extension/scripts/*), Bash(python3 -m pytest:*), Bash(npx jest:*), Bash(node ../speckit-bench/*), .

Reuse

Borrowing it

Nothing to install: this file belongs to alfredoperez/speckit-companion. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alfredoperez/speckit-companion/main/.claude/commands/bench-wave.md
Clone the repo
git clone --depth 1 https://github.com/alfredoperez/speckit-companion

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bench-wave

README.md
[![agentmods](https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/bench-wave/github.svg)](https://agentmods.dev/commands/alfredoperez/speckit-companion/bench-wave)
Your own site
<a href="https://agentmods.dev/commands/alfredoperez/speckit-companion/bench-wave"><img src="https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/bench-wave/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bench-wave

Your own site · 80×15
<a href="https://agentmods.dev/commands/alfredoperez/speckit-companion/bench-wave"><img src="https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/bench-wave.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00850
Opus 5 $0.00008 $0.00425
Sonnet 5 $0.00003 $0.00170
Haiku 4.5 $0.00002 $0.00085

Measured 3d ago against content hash 47f9fc8a9c83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

bench-wave scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/bench-wave.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Your task

Bench one wave of the pipeline diet, start to finish, and record it. $ARGUMENTS is the wave letter (B), optionally followed by the branch; the branch defaults to pipeline-diet/wave-<letter lowercase>. The plan and the results table live in the vault at Projects/speckit companion/plans/pipeline-speed/Pipeline Speed Execution.md.

One bench at a time. Nothing else heavy runs on this machine until the row is recorded.

1. The wave has to reach the cell

The bench dispatches from the pinned worktree, not from this checkout. Point it at the wave's pushed commit and rebuild the preamble:

git -C ~/dev/GitHub/speckit-companion.worktrees/bench-main fetch -q origin
git -C ~/dev/GitHub/speckit-companion.worktrees/bench-main checkout -q --detach origin/<branch>
(cd ~/dev/GitHub/speckit-companion.worktrees/bench-main && npm run compile)

Then prove the wave's text is what the cell will get: pick one line the wave changed and grep for it in ~/dev/GitHub/speckit-companion.worktrees/bench-main/speckit-extension/commands/. If it is not there, the branch was not rebuilt (assemble-nodes.py, build-commands.py) or not pushed. Stop and fix that first.

2. Gates, in this checkout, on the wave branch

python3 speckit-extension/scripts/assemble-nodes.py --check
python3 speckit-extension/scripts/check-shape-parity.py
python3 speckit-extension/scripts/instruction-budget.py
python3 -m pytest speckit-extension/tests -q
npx jest

A red gate means the wave is not ready to bench. Say which one and stop.

3. Bake and prep

node ../speckit-bench/sync-templates.mjs --sizes hard --speckit keep --ext code --sweep "wave <letter>"
node ../speckit-bench/run-all.mjs prep --sizes hard --modes companion,companion-living
node ../speckit-bench/run-all.mjs --dry-run

The bake prints speckitExtBuild as code@<sha>; it must be the wave's commit. The dry run prints which letter is which arm: take the two letters that are not stock. Never pass the mapping itself anywhere.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 60 lines · 15 tokens per session scan A 47f9fc8a9c83

Subscribe to this mod's changes

bench-wave is a command published in the GitHub repository alfredoperez/speckit-companion (89 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 850 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.