When to Compact
Use compaction when a conversation has become long or close to its context limit to avoid unexpected interactions pruning. In the conversation input bar, the circular context indicator shows the current context usage percentage. Compaction is controlled by the user. When usage is high enough (33%), the tooltip offers a Compact now button. When usage is high (70%) a warning message is displayed to the user to invite them to compact. When usage is very high (80%) compaction is required before sending new user messages.How to Compact
- Open the conversation.
- Click the new context usage indicator in the input bar.
- Click Compact now.
- Wait for the “Compacting context…” marker to finish.
What Changes
After a successful compaction, future agent messages receive:- The compaction summary.
- Messages after the compaction marker.
Notes and Limitations
- The latest agent’s model is used to perform the compaction.
- Compaction summaries are generated by an LLM, so they can omit details.
- Failed or in-progress compaction messages are ignored by model rendering.
- Compaction generally take between 10s and 1mn depending on the size of the context to compact.