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/0xhimanshu/governorWrote 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/0xhimanshu/governor/compress)<a href="https://agentmods.dev/commands/0xhimanshu/governor/compress"><img src="https://agentmods.dev/badge/commands/0xhimanshu/governor/compress.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.00020 | $0.00413 |
| Opus 5 | $0.00010 | $0.00206 |
| Sonnet 5 | $0.00004 | $0.00083 |
| Haiku 4.5 | $0.00002 | $0.00041 |
Grade A, and why
compress 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 7d 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
Governor Compress
Automatically compress memory files with dense professional prose while strictly protecting critical spans.
Usage:
/governor:compress [light|medium|aggressive] [file]
Default target: CLAUDE.md
Default level: medium
Compression targets:
light: remove filler/repetition; target 15-30% savings outside protected spans.medium: collapse narrative into decision bullets; target 35-55% savings outside protected spans.aggressive: keep only rules, facts, commands, risks, decisions; target 50-70% savings outside protected spans.
One-command rule: do not ask the user to edit drafts, copy paths, or run follow-up commands unless manual mode is explicitly requested or a safety fallback is required.
Internal flow:
- Run Governor auto mode.
- Parse the returned JSON payload.
- Rewrite the protected payload internally.
- Run the JSON finalize command, then inspect
status. - If
status=quality_guard_failedandnext_levelis present, retry once at the stronger level usingretry_auto_command. - Finalize, validate, recover if needed, and restore the backup on unrecoverable failure.
- Reject low-savings output with a quality guard.
- Return only the result summary.
Manual mode (manual or --manual) is only for very large files or explicit user request.
Protected spans are never modified:
- Code blocks and inline code.
- Paths, URLs, commands, env vars.
- API names, model names, versions, dates.
- Headings, frontmatter, tables.
- Warnings and irreversible rules.
- Brand and design tokens.
After compression, report:
- Original vs compressed token estimate.
- Memory saved percentage.
- Validation status.
- Quality-guard status.
- Backup location.
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.
- 7d ago First seen · 61 lines · 20 tokens per session scan A 5346dfe65007
compress is a command published in the GitHub repository 0xhimanshu/governor (133 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 413 once invoked, about $0.0001 per session on Opus 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.
Other commands, from other repositories
speckit.specjudge.recommend
Recommend the model that fits this feature's tasks, with the fragment of the spec behind every level.
instinct-import
Import instincts from external sources.
fire-reflect
After any failure (debug resolution, test failure, approach rotation, stalled loop), capture what was tried, why it failed, and what actually worked as a persistent reflection. Future sessions search these before investigating.
dream
Memory dream pass — judge undreamed days, promote durable signal to long-term, then sweep.
check
Run mneme check against a file or proposed change.
tree-ring-certify
Generate Tree Ring harness or recall-quality evidence without confusing it with the full framework release suite.