Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By viktorbezdekv1.0.11MITIn 1 marketplace
Compresses long agent sessions into structured summaries that keep files modified, decisions and next steps when the context window fills. Includes probe-based templates to test whether compression preserved what matters.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
v1.0.11 | Context Engineering | 5 iterations
Reduce agent context size without losing the information that matters -- structured summarization, anchored iterative compression, tokens-per-task optimization, and probe-based quality evaluation. Single skill + 1 reference document | 13 trigger evals, 3 output evals
Long-running AI agent sessions generate enormous conversation histories. A debugging session might reach 89,000 tokens across 178 messages. A codebase exploration might accumulate millions of tokens of tool output. When the context window fills up, something must be compressed or discarded -- and naive approaches destroy the information agents need most.
The default compression strategy is aggressive token reduction: summarize everything, keep it short, move on. This looks efficient on paper. In practice, it causes agents to forget which files they modified, lose track of error messages they already diagnosed, and re-explore approaches they already tried. The agent spends 20% more tokens recovering context that compression threw away. The "savings" cost more than they saved.
The deeper failure is measurement. Teams optimize for tokens-per-request (how small is each API call?) when the real metric is tokens-per-task (total tokens consumed to complete a piece of work). A compression strategy that saves 0.5% more tokens per request but causes agents to re-fetch information three times is a net loss. Without probe-based evaluation to measure what compression actually preserved, teams cannot distinguish good compression from bad.
This plugin provides a single skill that teaches Claude how to compress context intelligently using three production-tested approaches: anchored iterative summarization (structured summaries that force preservation of critical information), opaque compression (maximum token savings for short sessions), and regenerative full summaries (readable output at phase boundaries). The skill includes a probe-based evaluation framework that measures compression quality across six dimensions -- accuracy, context awareness, artifact trail, completeness, continuity, and instruction following.
The core insight is that structure forces preservation. When summaries have explicit sections for session intent, files modified, decisions made, and next steps, the summarizer must populate each section. Silent information drift becomes structurally impossible. The plugin also teaches when to trigger compression (70-80% context utilization), how to merge summaries incrementally rather than regenerating from scratch, and how to handle the artifact trail problem -- the weakest dimension across all compression methods.
Compression strategy depends on your session characteristics -- what the agent does, how long sessions run, and which specific information types get lost. Generic compression advice rarely fits; specific session context produces immediately applicable strategy.
What information to include in your prompt:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub viktorbezdek/skillstack --plugin context-compressionPlugins from other owners that cover similar ground