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 (1,208 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 runs a file that does not travel with it, so clone the repository first. The line is python3 apps/speckit-extension/scripts/build.py --check.

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 1,208 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.01208
Opus 5.5 $0.00006 $0.00483
Sonnet 5.5 $0.00003 $0.00242
Haiku 4.5 $0.00002 $0.00121

Measured 18d ago against content hash 561fad8b3e97, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 18d 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 · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 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.

Paths

Shell state does not persist between Bash calls, so start each one with this line:

. .claude/sandboxes-env.sh && eval "$(node "$SANDBOXES_REPO"/bench/paths.mjs --sh)"

It sets $SANDBOXES_REPO (the sibling speckit-sandboxes checkout, whose bench/ folder is the harness) and $BENCH_CELLS_DIR (where the cells are baked). When you hand a path to an agent, expand it first: an agent gets the absolute path, never the variable.

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/apps/speckit-extension/commands/.

A node has to be in the step's _order.yml to reach the arm. The Companion arms dispatch /speckit-companion-<step>, whose body is assembled from nodes/<step>/_order.yml. A part added to a preset's own commands/ is inert for them: that body lands as the stock /speckit-<step> skill, which only the stock arm runs. Attaching a node for a bench means a file in nodes/<step>/ and its name in that step's _order.yml; the grep above is what proves it. If it is not there, the branch was not rebuilt (build.py) or not pushed. Stop and fix that first.

Read the full file on GitHub · 72 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. 18d ago Changed · +2 lines 561fad8b3e97
  2. 19d ago Changed · +10 lines e9adf4ab3a41
  3. 1mo ago Changed c9f2edd7ccad
  4. 1mo ago Changed 81476d97fa7a
  5. 1mo 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 (99 stars, last pushed 6d ago), licensed MIT. It adds 15 tokens to every session and 1,208 once invoked, about $0.0001 per session on Opus 5.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.