Context Compression Strategies

•
38k
•

Optimizes AI agent context management by using structured summarization to reduce token consumption while preserving critical technical details.

This skill provides advanced strategies for managing million-token conversation histories in Claude Code and other agentic systems. By moving beyond naive compression, it focuses on 'tokens-per-task' optimization, ensuring that critical information like file modifications, architectural decisions, and error states are preserved through structured, anchored iterative summarization. It is essential for developers working on massive codebases or long-running debugging sessions where maintaining an accurate 'artifact trail' is the difference between project success and AI hallucination.

主な機能

01Anchored Iterative Summarization for incremental context updates
02Probe-based evaluation to measure functional compression quality
03Artifact trail preservation to prevent agents from 'forgetting' changes
04Three-phase workflow for navigating 5M+ token codebases
05Structured summary templates tracking file modifications and session intent
0637,717 GitHub stars

ユースケース

01Navigating and refactoring massive enterprise codebases with millions of tokens
02Building and benchmarking AI agent memory retention for complex workflows
03Managing long-running debugging sessions that exceed standard context limits