
context-compression
When agent sessions generate millions of tokens of conversation history
by sickn33Free
Description
context-compression is an agent skill for managing agent sessions whose conversation history grows past the context window. It is for sessions that exceed context limits, codebases larger than a context window, designing conversation summarisation, debugging agents that forget the files they changed, and building evaluations of compression quality. The skill's key point is that the optimisation target is tokens per task, the total tokens needed to finish a task including any re-fetching caused by lost information, rather than tokens per request. It describes three approaches. Anchored iterative summarisation keeps a structured summary with sections for intent, file changes, decisions and next steps, and summarises only the newly truncated part before merging it. Opaque compression reaches very high ratios but cannot be inspected, so you cannot verify what was kept. Use it when you are designing how an agent keeps its memory of a long task. It is part of the sickn33/agentic-awesome-skills repository on GitHub, which has about 47,600 stars. The listing shows it as free, and it has about 1,400 installs. Its security audits show passes from Gen Agent Trust Hub, Socket and Snyk.…
Highlights
- Anchored iterative summarisation
- Tokens-per-task optimisation target
- Opaque compression trade-offs
- Evaluation of compression quality
- Debugging forgotten file changes
Ratings & Reviews
No ratings yet
Be the first to rate context-compression.
People also visit

canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy
context-compression FAQ
What problem does it solve?
Long agent sessions and codebases that exceed the context window.
What should compression optimise?
Tokens per task, including re-fetching costs when compression loses important information, rather than tokens per request.
What is anchored iterative summarisation?
A structured summary with fixed sections, updated by summarising only the newly truncated span and merging it in.
What is the drawback of opaque compression?
It cannot be inspected, so you cannot verify what was preserved.
How do I install it?
Run npx skills add https://github.com/sickn33/agentic-awesome-skills --skill context-compression.
Is it checked for security?
Its security audits show passes from Gen Agent Trust Hub, Socket and Snyk.
What are the best context-compression alternatives?
Popular alternatives to context-compression include implement, brand-guidelines and canvas-design. See all context-compression alternatives





