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.
npx skills add 7df-lab/devo --skill compactgit clone --depth 1 https://github.com/7df-lab/devoWrote 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/skills/7df-lab/devo/compact)<a href="https://agentmods.dev/skills/7df-lab/devo/compact"><img src="https://agentmods.dev/badge/skills/7df-lab/devo/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/skills/7df-lab/devo/compact"><img src="https://agentmods.dev/badge/skills/7df-lab/devo/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.00038 | $0.00472 |
| Opus 5.5 | $0.00015 | $0.00189 |
| Sonnet 5.5 | $0.00008 | $0.00094 |
| Haiku 4.5 | $0.00004 | $0.00047 |
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 22d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- compact — 100% identical, 0 lines differ
What it actually says
Compact
Compaction replaces older conversation history with a dense summary, freeing
context so long-running work can continue. The implementation lives in the
host (the same one behind the user's /compact command); this skill is the
kernel-side interface to it. Call it directly from the Python REPL:
await compact.status()
await compact.run()
await compact.run("keep the failing test names and the migration checklist")
API
await compact.status()— current context usage as a dict:tokens,context_window, andpercent(Noneright after a compaction until the next model response), plusscheduled(whether a requested compaction is already pending).await compact.run(instructions=None)— schedule compaction. Returns{"scheduled": True}, or{"scheduled": False, "reason": ...}when there is nothing to compact yet. Optionalinstructionsfocus the summary on what matters for the remaining work.
Rules
- Compaction never runs mid-cell. A scheduled compaction runs when the current turn ends, and the turn then stays ended — you are not resumed automatically. Before scheduling, record the state the summary must carry (plan, handles, file paths, the concrete next step) and tell the user how to pick the work back up. Work continues from the summary on the next instruction.
- Conversation compaction does not itself prune the live Python namespace. Kernel snapshots and restores are separate: oversized or unserializable values may not be saved (the default per-variable limit is 16 MiB). Keep large or essential source data on disk and record how to reload it.
- Compact at a natural boundary — a milestone reached, results saved, the
next step easy to state — rather than mid-analysis. Check
await compact.status()when unsure. - One request per turn is enough; calling
runagain before the turn ends only updates the instructions.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 22d ago Changed · +2 lines 195611c0759a
- 23d ago Changed · +14 lines 2509daf15b77
- 1mo ago First seen · 31 lines · 38 tokens per session scan A 7ea696d94cc9
compact is a skill published in the GitHub repository 7df-lab/devo (347 stars, last pushed 5d ago), licensed MIT. It adds 38 tokens to every session and 472 once invoked, about $0.0002 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-06.
compact compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| compact7df-lab/devo | Skill | 347 | 5d ago | MIT | A | 38 | Claude Code, Codex |
| code-review-contextopeninterpreter/openinterpreter | Skill | 69k | yesterday | Apache-2.0 | A | 7 | Codex |
| memorySparkElf/deepseek-harness-plus | Skill | 1 | today | MIT | A | 72 | Claude Code, Codex |
| dsh-archive-agent-notesSparkElf/deepseek-harness-plus | Skill | 1 | today | MIT | A | 76 | Claude Code, Codex |
| plugin-creatoropeninterpreter/openinterpreter | Skill | 69k | yesterday | Apache-2.0 | A | 86 | Codex |
| codex-pr-bodyopeninterpreter/openinterpreter | Skill | 69k | yesterday | Apache-2.0 | A | 17 | Codex |
| agent-state-barbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 105 | Claude Code, Codex |