Borrowing it
Nothing to install: this file belongs to mkwatson/ai-fastify-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mkwatson/ai-fastify-template/main/.claude/commands/compact-before-review.mdgit clone --depth 1 https://github.com/mkwatson/ai-fastify-templateWrote 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/mkwatson/ai-fastify-template/compact-before-review)<a href="https://agentmods.dev/commands/mkwatson/ai-fastify-template/compact-before-review"><img src="https://agentmods.dev/badge/commands/mkwatson/ai-fastify-template/compact-before-review.svg" alt="Measured on agentmods" 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.00000 | $0.00026 |
| Opus 5 | $0.00000 | $0.00013 |
| Sonnet 5 | $0.00000 | $0.00005 |
| Haiku 4.5 | $0.00000 | $0.00003 |
Grade A, and why
compact-before-review 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 6d 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.
What it actually says
/compact keep the git branch, PR, and/or Linear ticket we're currently working on—include whatever exists, ignore anything missing
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.
- 6d ago First seen · 2 lines · 0 tokens per session scan A 1862922bc5fe
compact-before-review is a command published in the GitHub repository mkwatson/ai-fastify-template (18 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 26 tokens. 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.
Other commands, from other repositories
context
项目上下文管理:初始化 .context 目录、记录决策日志、压缩归档、查看历史.
bm
Ask basemind anything about the current codebase — outlines, refs, callers, git history, blame, diffs, docs, memory.
context-load
Carga de contexto al inicio de sesión. Lee estado del workspace, decisiones recientes, último session save y actividad Git para arrancar con el big picture.
review-code
Read ALL memory bank code rules + best practices, check the files that changed, and APPLY fixes so they adhere. The active counterpart to /scan (which is read-only). Use after an AI session, before commit, to make changed files compliant.
vouch-propose-from-pr
Distill a merged PR into vouch claim proposals.
yolo-exit
Graceful close of /yolo Hive session — persists operational + strategic vault writes, finalizes audit log, commits Memory Bus session-summary atom.