
Context Compression
Structured summaries that preserve session intent, file changes, decisions, and next steps across long agent sessions.
- skills.sh installs
- 644
- GitHub stars
- 18.4K
- last updated
- May 26, 2026
What it does
- Covers anchored iterative, opaque, and regenerative full-summary strategies, plus trigger selection and probe-based evaluation
- Includes a mandatory-section summary template with Session Intent, Files Modified, Decisions Made, Current State, and Next Steps
- Enforces artifact-trail preservation by recording full file paths, modified function names, and error identifiers in each cycle
- Designed for long-running coding agents that lose track of modified files or re-fetch content after compression
Install
$ npx -y skills add muratcankoylan/agent-skills-for-context-engineering --skill context-compression -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Context Compression Strategies
When agent sessions generate millions of tokens of conversation history, compression becomes mandatory. The naive approach is aggressive compression to minimize tokens per request. The correct optimization target is tokens per task: total tokens consumed to complete a task, including re-fetching costs when compression loses critical information.
When to Activate
Activate this skill when:
- Agent sessions exceed context window limits
- Codebases exceed context windows (5M+ token systems)
- Designing conversation summarization strategies
- Debugging cases where agents "forget" what files they modified
- Building evaluation frameworks for compression quality
- Creating durable handoff summaries that preserve decisions, files, risks, and next actions
Details
- Repository
- github.com/muratcankoylan/agent-skills-for-context-engineering
- Categories
- Memory & Context, Agent Workflow & Planning
- License
- MIT
- First seen
- Jun 11, 2026
More from muratcankoylan/agent-skills-for-context-engineering
All 17- Context Optimization506
- Filesystem Context404
- Multi Agent Patterns356
- Memory Systems354
- Tool Design313
- Context Degradation300
- Evaluation283
- Context Fundamentals272
- Harness Engineering207
- Latent Briefing205
- Project Development203
- Advanced Evaluation199
- Hosted Agents176
- Bdi Mental States171
- Context Engineering Collection
- Context Engineering Collection4.5K
Similar to Context Compression
More Memory & Context
filesystem-contextmuratcankoylan/agent-skills-for-context-engineering404 installsFilesystem-backed overflow storage for agent context, with on-demand loading instead of static prompt inclusion.
proactive-agenthalthelobster/proactive-agent15.3K installsAgent architecture that anticipates needs, survives context loss, and self-improves through a write-ahead log.
context-engineering-collectionmuratcankoylan/agent-skills-for-context-engineering4.5K installsCollection of context-engineering, harness, and multi-agent skills for building and debugging production agent systems.
context-engineeringaddyosmani/agent-skills75.6K installsStructured context curation that feeds agents the right information at the right time to improve output quality.
session-persistruvnet/ruflo775 installsSave, list, restore, inspect, and delete agent sessions through MCP session tools and lifecycle hooks.
handoffmattpocock/skills1.1M installsCompact handoff document that lets a fresh agent resume a conversation without re-reading it.