Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add mbanderas/maestro/plugin install maestroWrote 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/mbanderas/maestro/compress)<a href="https://agentmods.dev/commands/mbanderas/maestro/compress"><img src="https://agentmods.dev/badge/commands/mbanderas/maestro/compress/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/mbanderas/maestro/compress"><img src="https://agentmods.dev/badge/commands/mbanderas/maestro/compress.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.00020 | $0.00344 |
| Opus 5.5 | $0.00008 | $0.00138 |
| Sonnet 5.5 | $0.00004 | $0.00069 |
| Haiku 4.5 | $0.00002 | $0.00034 |
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 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.
What it actually says
Compress a natural-language memory file (CLAUDE.md, todos, notes) into terse format. Input-token savings compound every turn the file is loaded (AGENTS.md S8: persistent files are token cost).
Target file: $ARGUMENTS
Steps:
-
If no filepath was given, ask for one and stop.
-
Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/compress.cjs" <filepath> -
Report the script's outcome to the user verbatim (chars saved, backup location, or the refusal/abort reason).
The script is self-contained and enforces its own guardrails — do not work around a refusal by editing or renaming files:
- Sensitive-path denylist (.env, credentials, keys, .ssh/.aws paths, token-ish names): hard refusal — compression sends file contents to the Anthropic API.
- Only .md/.txt/extensionless prose files; max 500 KB.
- Original saved as
<name>.original.md; aborts if that backup already exists. - Deterministic validation (headings, byte-exact code blocks, URLs, file paths, and needle preservation — versions, dates, S-ids, CLI flags, env vars, thresholds, inline code — as errors; bullet and heading-text drift as warnings) with up to 2 cherry-pick fix rounds; on persistent failure the original is restored untouched.
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 · 39 lines · 20 tokens per session scan A 7bcbac0de524
compress is a command published in the GitHub repository mbanderas/maestro (5 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 344 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-31.
compress compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| compressmbanderas/maestro | Command | 5 | 2mo ago | MIT | A | 20 | Claude Code |
| learnaffaan-m/ECC | Command | 313k | 7d ago | MIT | A | 8 | Claude Code, OpenCode |
| export-closedloop-learningsclosedloop-ai/claude-plugins | Command | 122 | 3d ago | Apache-2.0 | A | 13 | Claude Code |
| read-my-mindellmos-ai/build-your-users-mind | Command | 3 | 4d ago | MIT | A | 0 | Claude Code |
| recallvshulcz/deja-vu | Command | 1.7k | today | MIT | A | 17 | Claude Code |
| bootstrap-memory0xK3vin/MegaMemory | Command | 766 | 7mo ago | MIT | A | 0 | Claude Code |
| pn-audit-apiperniemann/pnCore | Command | 0 | yesterday | MIT | A | 44 | Claude Code, Cursor |