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 qte77/claude-code-plugins --skill compacting-contextgit clone --depth 1 https://github.com/qte77/claude-code-pluginsWrote 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/qte77/claude-code-plugins/compacting-context)<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/compacting-context"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/compacting-context/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/qte77/claude-code-plugins/compacting-context"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/compacting-context.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.00029 | $0.00343 |
| Opus 5.5 | $0.00012 | $0.00137 |
| Sonnet 5.5 | $0.00006 | $0.00069 |
| Haiku 4.5 | $0.00003 | $0.00034 |
Grade A, and why
compacting-context 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 8d 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
Context Compaction (ACE-FCA)
Distills verbose outputs into structured summaries following ACE-FCA principles.
When to Use
Per references/context-management.md:
- After verbose tool output (logs, JSON, search results)
- After completing a phase or milestone
Workflow
- Identify noise - What pollution sources need compacting?
- Extract signal - Correct + Complete info only
- Structure output - Use template format below
Output Template
# Compaction: {{name}}
## Trajectory
<!-- Research status → Planning status → Implementation status -->
## Key Files
<!-- files touched with purpose -->
## Completed
<!-- done items -->
## Blockers
<!-- blocking issues (empty if none) -->
## Findings
<!-- key discoveries, distilled outputs from logs/JSON/tests -->
Quality Check
- Correct > Complete > Minimal
- No raw dumps, only structured summaries
- Enough to continue, no more
- Update working plan with compaction output (don't orphan it)
What ships with it
1 file 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.
- 8d ago Changed d6708f95cdb3
- 29d ago Changed · -1 lines f921925e0788
- 3mo ago First seen · 60 lines · 29 tokens per session scan A 4a3d126fc3be
compacting-context is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 343 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.
compacting-context compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| compacting-contextqte77/claude-code-plugins | Skill | 3 | yesterday | Apache-2.0 | A | 29 | Claude Code |
| meta-synthesisstefanoskarakasis/Product-Marketing-Skills | Skill | 22 | today | MIT | A | 83 | Claude Code |
| meta-learnstefanoskarakasis/Product-Marketing-Skills | Skill | 22 | today | MIT | A | 64 | Claude Code |
| evolving-statusclaude-world/director-mode-lite | Skill | 80 | 1mo ago | MIT | A | 17 | Claude Code |
| dreamsaadshahd/moo.md | Skill | 39 | today | MIT | A | 65 | Claude Code |
| session-recapsxhmilyoyo/sundayhao-plugins | Skill | 8 | 8d ago | Apache-2.0 | A | 39 | Claude Code |
| knowledge-bank-lookupsxhmilyoyo/sundayhao-plugins | Skill | 8 | 8d ago | Apache-2.0 | A | 94 | Claude Code |