Compaction
Summarizing older messages so a long-running session can continue inside a fixed context window. The goal is to preserve intent while reducing token usage.
Compaction is lossy — detail is permanently discarded, not stored elsewhere. Automatic compaction is something you generally want to avoid; it means your session outgrew its context window and the system had to guess what to throw away. Better to structure work so it finishes before that point.