An assistant can shorten a long conversation by replacing older turns with a summary or keeping only selected details. Some systems store the original messages separately and retrieve them when a later question needs the exact wording.
Shorter inputs can reduce repeated work and leave more space for new information. Compression can also drop constraints, exact values or earlier decisions, so preserving a way to recover important details is useful.
ELI5
Context compression is like taking notes on a long meeting so you can get back to work without reading the entire transcript again.
For example, an assistant helping plan a trip can keep the dates and budget in a short note, then look up the original messages if it needs the exact hotel address.
Is compression always lossless?
No. A summary often discards details, and the original is recoverable only if the system retains it and can find it again.
How does compression differ from simply truncating the input?
Truncation cuts text at a limit. Compression tries to preserve useful information even when it shortens or removes the original text.

