Context Compression — Long Session Management Keep sessions productive by compressing completed work while preserving key decisions. Overview Long sessions (30+ turns) cause context degradation — the AI loses track of earlier work, repeats itself, or forgets decisions. Context compression proactively summarizes completed phases so the context window stays focused on active work. Token Impact: Recovers 5,000-15,000 tokens in long sessions by replacing verbose tool outputs with semantic summaries. --- When to Compress | Signal | Action | |---|---| | Session has 20+ turns | Consider proactive co…