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 alexmond/alexmskills/plugin install evolving-claude-mdWrote 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/alexmond/alexmskills/compact)<a href="https://agentmods.dev/commands/alexmond/alexmskills/compact"><img src="https://agentmods.dev/badge/commands/alexmond/alexmskills/compact/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/alexmond/alexmskills/compact"><img src="https://agentmods.dev/badge/commands/alexmond/alexmskills/compact.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.00035 | $0.01174 |
| Opus 5.5 | $0.00014 | $0.00470 |
| Sonnet 5.5 | $0.00007 | $0.00235 |
| Haiku 4.5 | $0.00003 | $0.00117 |
Grade A, and why
compact 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 16d 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 — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/evolving-claude-md:compact
Run the four downward pressures on this repo's Decisions & Learnings log as one
reviewed edit. plan stops after showing the plan. yes skips the approval
step. Anything else (or nothing) proposes, then waits.
CLAUDE.md is the project's working memory, so nothing is rewritten unseen,
and nothing is deleted without a trace: archived entries go to
docs/decisions/, graduated ones leave a line pointing at the rule.
1. Get the plan
From the directory holding CLAUDE.md, run the planner (read-only):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/evolving-claude-md/compact-claude-md.py"
If CLAUDE_PLUGIN_ROOT is unset, use the newest installed copy:
ls ~/.claude/plugins/cache/*/evolving-claude-md/*/skills/evolving-claude-md/compact-claude-md.py | sort -V | tail -1.
No ### Decisions & Learnings section → stop and offer the skill's setup
("make CLAUDE.md evolve") instead; there is nothing to compact.
Then read the whole Decisions & Learnings section and the Conventions / Gotchas sections — every judgment below needs the actual text, not the planner's previews.
2. Draft the edits, in this order
The order is the point. Graduation must happen before age-out, or a lesson that should be a standing rule goes into the quarterly archive instead.
- Supersede gaps — strike the named target, or fix the link.
- Release mirrors — an entry that names a version
CHANGELOG.mdalready documents. Keep what the release taught — a constraint, a trap, a reversal, usually theWhy:— and drop what it shipped. Rewrite the entry to the lesson, or drop it outright when it only says what shipped. - Same-day clusters — collapse to one entry only if it really was one
piece of work. A busy day spanning unrelated tickets is not a cluster.
Per-aspect detail goes to
docs/decisions/{date}-{topic}.md. - Graduation — two sources:
- the planner's tag candidates (same tag 3+ times, stable), and
- your review of every age-out entry. The planner lists them because a lesson recurring by theme under different tags never trips the tag rule, and a log that tags each entry uniquely would otherwise graduate nothing. Ask of each: would a future session make a mistake without it? Each graduation is a one-line rule in Conventions (or Gotchas for a trap). Merge with an existing rule rather than adding a near-duplicate. If the file has neither section, propose adding the one you need.
- Mega entries — keep a one-line teaser, move the detail to
docs/decisions/{date}-{topic}.md. - Stale candidates — check the cited artifacts against the tree (grep,
git log -- <path>). Fix the entry, strike it, or keep it with a note. - Age-out — last, mechanically:
archive-decisions.py --cutoff <date>(the planner prints the exact command). It moves every entry on or before the cutoff todocs/decisions/{YYYY-QN}.mdand leaves one teaser per quarter, merging with a teaser from an earlier run.
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.
- 16d ago First seen · 98 lines · 35 tokens per session scan A eda6092b9682
compact is a command published in the GitHub repository alexmond/alexmskills (9 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 1,174 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-10-03.
Other commands, from other repositories
instinct-import
Import instincts from external sources.
learn
Extract patterns and learnings from current session.
context-save
Save project context, decisions, and progress for a later session.
recall-save
Generate / overwrite .recall/context.md with Recall's local offline summarizer.
export-closedloop-learnings
Exports pending ClosedLoop learnings to global location with deduplication.
show
Show this project's saved Recall context (.recall/context.md).