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/punt-labs/z-specWrote 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/punt-labs/z-spec/cleanup)<a href="https://agentmods.dev/commands/punt-labs/z-spec/cleanup"><img src="https://agentmods.dev/badge/commands/punt-labs/z-spec/cleanup/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/punt-labs/z-spec/cleanup"><img src="https://agentmods.dev/badge/commands/punt-labs/z-spec/cleanup.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.00007 | $0.00588 |
| Opus 5.5 | $0.00003 | $0.00235 |
| Sonnet 5.5 | $0.00001 | $0.00118 |
| Haiku 4.5 | $0.00001 | $0.00059 |
Grade A, and why
cleanup 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 3mo 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.
This is a copy
89% identical to cleanup-dev — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Cleanup Z Specification Files
Remove auto-managed TeX tooling files from the project while preserving source specs and PDF output.
Input
Arguments: $ARGUMENTS
- Directory path (default:
docs/)
Files to Remove
TeX tooling (auto-copied by /z-spec:code2model):
fuzz.sty- LaTeX style file*.mf- Metafont source files*.pk- Packed font files*.tfm- TeX font metrics
Build intermediates:
*.aux- LaTeX auxiliary*.log- LaTeX log*.fuzz- fuzz output*.toc- Table of contents
Files to Keep
*.tex- Z specification source files*.pdf- Compiled PDF output
Process
1. Confirm Directory
DOCS_DIR="${1:-docs}"
if [ ! -d "$DOCS_DIR" ]; then
echo "Directory not found: $DOCS_DIR"
exit 1
fi
2. List Files to Remove
Before removing, show what will be deleted:
echo "Files to remove from $DOCS_DIR:"
ls -la "$DOCS_DIR"/fuzz.sty "$DOCS_DIR"/*.mf "$DOCS_DIR"/*.pk "$DOCS_DIR"/*.tfm \
"$DOCS_DIR"/*.aux "$DOCS_DIR"/*.log "$DOCS_DIR"/*.fuzz "$DOCS_DIR"/*.toc 2>/dev/null
3. Remove Files
cd "$DOCS_DIR"
# TeX tooling
rm -f fuzz.sty
rm -f *.mf *.pk *.tfm
# Build intermediates
rm -f *.aux *.log *.fuzz *.toc
4. Report Results
echo ""
echo "Cleanup complete. Remaining files:"
ls -la "$DOCS_DIR"/*.tex "$DOCS_DIR"/*.pdf 2>/dev/null || echo "No .tex or .pdf files"
Output
Report what was removed and what remains:
## Cleanup Complete
Removed from docs/:
- fuzz.sty
- 10 Metafont files (*.mf)
- 3 font files (*.pk, *.tfm)
- 4 build files (*.aux, *.log, *.fuzz, *.toc)
Preserved:
- koch_trainer.tex (source)
- koch_trainer.pdf (output)
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.
- 3mo ago First seen · 96 lines · 7 tokens per session scan A acfcd789fa8d
cleanup is a command published in the GitHub repository punt-labs/z-spec (5 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 588 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to cleanup-dev, differing in 2 lines, and is treated as a copy.
cleanup compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cleanuppunt-labs/z-spec | Command | 5 | yesterday | MIT | A | 7 | Claude Code |
| feedback-to-uspunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 19 | Claude Code |
| badgepunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 11 | Claude Code |
| importpunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 15 | Claude Code |
| researchpunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 12 | Claude Code |
| streamlinepunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 18 | Claude Code |
| reviewpunt-labs/prfaq | Command | 26 | 2d ago | MIT | A | 12 | Claude Code |