Context Compactor Automatically summarizes and compacts context when approaching token limits while preserving critical information. Quick Start Check if Compaction Needed Compact Context Preservation Strategy Compaction Process 1. Score Importance : Assign score to each message/content 2. Identify Critical : Mark must-preserve content 3. Summarize Middle : Compress can-summarize content 4. Discard Stale : Remove can-discard content 5. Validate : Ensure compacted context is coherent Token Budgets | Context Type | Limit | Action | |--------------|-------|--------| | < 50% | Normal | No action…