Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/alfredoperez/speckit-companionnpx agentmods add commands/alfredoperez/speckit-companion/speckit.companion.amendWrote 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.
[](https://agentmods.dev/commands/alfredoperez/speckit-companion/speckit.companion.amend)<a href="https://agentmods.dev/commands/alfredoperez/speckit-companion/speckit.companion.amend"><img src="https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/speckit.companion.amend/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.
<a href="https://agentmods.dev/commands/alfredoperez/speckit-companion/speckit.companion.amend"><img src="https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/speckit.companion.amend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.01072 |
| Opus 5.5 | $0.00012 | $0.00429 |
| Sonnet 5.5 | $0.00006 | $0.00214 |
| Haiku 4.5 | $0.00003 | $0.00107 |
Grade A, and why
speckit.companion.amend 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Amend Spec
Change the active spec in place. This command edits spec.md with the change you describe,
records it in .spec-context.json, and re-plans only when the requirements changed.
Name every command the way this project registers it
Commands are named in dot form throughout this body, speckit.companion.plan, because that is their canonical id, and without a leading slash, because the spelling a host actually registers is not always this one. Claude Code installs /speckit-companion-plan. Look at how the commands are installed in this project, under the agent's own commands or skills directory, and use that spelling every time you name one to the developer or dispatch one yourself. A dotted name typed into a host that registered dashes resolves to nothing at all.
Prerequisites
- Verify Python is available by running
python3 --version. - If
python3is not available, warn the user and skip:[companion] Warning: python3 not detected; skipped amend. Do not fail the host command.
Execution
-
Resolve the feature directory. Use the one in the input, else the
feature_directoryin.specify/feature.json. If it has nospec.md, stop and tell the user to runspecifyfirst. -
Read the requirement list (the
FR-lines) inspec.mdbefore you touch it. -
Edit
spec.mdin place with the change the user described. Never start a new spec: never mint a folder and never runmint-spec-dir. The change belongs to this spec. -
Read the requirement list again and compare. A requirement added or removed means re-plan; wording only means no re-plan.
-
Re-plan only when a requirement was added or removed. First point
.specify/feature.jsonat this spec by writing{"feature_directory": "<feature_directory>"}, because plan and converge read their target from it. Then invokespeckit.companion.plan <feature_directory>, thenspeckit.converge <feature_directory>. For wording only, run neither. If either fails, record a--concernthat names the step and says the plan or tasks are now behind the spec.
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.
- 5d ago First seen · 70 lines · 31 tokens per session scan A eef726187886
speckit.companion.amend is a command published in the GitHub repository alfredoperez/speckit-companion (111 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 1,072 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-11-25.
speckit.companion.amend compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| speckit.companion.amendalfredoperez/speckit-companion | Command | 111 | 3d ago | MIT | A | 31 | Claude Code |
| debugtruffle-ai/dexto | Command | 661 | yesterday | none | A | 12 | Claude Code |
| explaintruffle-ai/dexto | Command | 661 | yesterday | none | A | 14 | Claude Code |
| zooza-setupzooza-dev/zooza-mcp-server | Command | 6 | 7d ago | MIT | A | 21 | Claude Code |
| create-storefabioc-aloha/Alex_Plug_In | Command | 4 | 16d ago | none | A | 13 | GitHub Copilot |
| svelte:componentqdhenry/Claude-Command-Suite | Command | 1.4k | 9mo ago | none | A | 0 | Claude Code |
| enforce.playwright-typescriptstefaniuk/loadout | Command | 1 | 4d ago | MIT | A | 11 | Claude Code, GitHub Copilot |