Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/GregorBiswanger/featherspecWrote 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/gregorbiswanger/featherspec/sdd-clean)<a href="https://agentmods.dev/commands/gregorbiswanger/featherspec/sdd-clean"><img src="https://agentmods.dev/badge/commands/gregorbiswanger/featherspec/sdd-clean/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/gregorbiswanger/featherspec/sdd-clean"><img src="https://agentmods.dev/badge/commands/gregorbiswanger/featherspec/sdd-clean.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.00021 | $0.01547 |
| Opus 5.5 | $0.00008 | $0.00619 |
| Sonnet 5.5 | $0.00004 | $0.00309 |
| Haiku 4.5 | $0.00002 | $0.00155 |
Grade A, and why
sdd-clean 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 2mo 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 — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/sdd-clean — Context Cleanup
Persistent markdown is a paid resource: every line it holds loads into future context
windows. This workflow keeps it at as little as possible, as much as necessary — maximum
useful information per token, judged by semantic usefulness, never by raw size alone. It is
manually invokable at any time; other workflows may recommend it, but cleanup never happens
as a silent side effect. The user may name one file after the command; then only that file
is analyzed and compacted. All dialogue and reports in DocLanguage; compacted files keep
the language they are written in.
Scope and write authority
Analyze all FeatherSpec-managed markdown; write only where this command has authority:
| Files | Authority |
|---|---|
.memory-bank/*.md |
analyze + compact here |
.architecture/*.md maps |
analyze + compact here (≤ 40-line budget per .claude/rules/architecture-map.md) |
architecture: snapshot in AGENTS.md |
analyze only; observed drift hands over to /sdd-architecture-update — its gate stays the snapshot's only write path |
.specs/** specs and plans |
analyze, report findings only — their commands and rules own edits; AC- and T- IDs are never cleanup material |
Wiring (.claude/, .github/, AGENTS.md prose) |
out of scope — template-owned |
Phase 1 — Analyze (read-only)
Read each in-scope file against its declared purpose (AGENTS.md Memory Bank list,
.claude/rules/memory-bank.md with its routing table, .claude/rules/architecture-map.md
for maps) and ask, in this order:
- Misplaced? Content in the wrong file moves to its declared home per the routing table — moving is not deleting.
- Duplicate? A fact stated in several files keeps exactly one canonical home; the others link or drop it.
- Stale? Spot-check claims against the repository — named paths, technologies, assumptions. A named file, script or command target must exist: verify each with a cheap check (path exists, script is in the manifest) and carry the checked items into the Phase-2 plan — "nothing to verify" is itself a claim and needs that list to back it. Stale content is updated or removed; git history is the archive, the live file represents the current useful state.
- Rediscoverable? Inventories an agent can derive from the code in seconds (file lists, obvious signatures) go. Intent, boundaries, constraints, conventions and traps stay — the Memory Bank holds knowledge, not a second copy of the repository.
- Historical?
activeContext.mdis the current working state, not a diary: finished episodes leave; decisions that still matter move, dated, tosystemPatterns.md. - Verbose? Compact prose into facts without losing meaning. Reasoning stays when it binds future decisions ("new persistence tech needs architecture approval"), goes when it only narrates the past.
- Over budget?
activeContext.mdagainst its size limit inAGENTS.md; maps against their 40 lines. Over budget triggers the checks above — never blind truncation. - Against the constitution? A statement that contradicts an
AGENTS.mdinvariant — a plan file described as deleted, a "preference" that is not a bullet inAGENTS.md— is a finding, never a fact to preserve: inside this command's write scope, correct the text to plain facts stripped of the invalid justification; outside it, report it with the quote.
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.
- 2mo ago First seen · 114 lines · 21 tokens per session scan A c8fefbdc43d6
sdd-clean is a command published in the GitHub repository GregorBiswanger/featherspec (70 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 1,547 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-08-30.
sdd-clean compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sdd-cleanGregorBiswanger/featherspec | Command | 70 | 1mo ago | MIT | A | 21 | Claude Code |
| kiro-steering-customgotalab/cc-sdd | Command | 3.8k | 15d ago | MIT | A | 0 | Claude Code |
| al-context-createjaviarmesto/ALDC-AL-Development-Collection | Command | 115 | yesterday | MIT | A | 35 | Claude Code |
| planloiane/specs-driven-development-spring-angular | Command | 62 | yesterday | MIT | A | 18 | Claude Code |
| speckit.checklistgithub/spec-kit-copilot | Command | 24 | 2d ago | MIT | A | 13 | Claude Code |
| speckit.specifygithub/spec-kit-copilot | Command | 24 | 2d ago | MIT | A | 13 | Claude Code |
| speckit.implementgithub/spec-kit-copilot | Command | 24 | 2d ago | MIT | A | 14 | Claude Code |