Quick Start
Optimization Events
| Event Type | Description |
|---|---|
overflow_detected | Context exceeded threshold |
auto_compact | Auto-compaction triggered |
benefit_check | Compression benefit evaluated |
revert | Compression reverted (not beneficial) |
cap_outputs | Tool outputs capped |
prune_tools | Old tool outputs pruned |
sliding_window | Sliding window applied |
summarize | Messages summarized |
snapshot | Context snapshot taken |
OptimizationEvent
History Tracking
CLI Commands
Context Stats
CLI Stats Commands
Monitoring Integration
Events are included in monitor snapshots:Debugging Tips
- Check history after issues - See what optimizations ran
- Look for reverts - Compression not beneficial
- Monitor utilization - Track context growth
- Review warnings - Early overflow indicators

