New advertisers: 50% off your first month with code FIRSTMONTHSee slots

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
View on GitHub

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 -y

Installs 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

Similar to Context Compression

More Memory & Context