Sessions
Context & compaction
The agent holds the whole session in mind as you work. That memory has a limit — and compaction keeps it from getting in your way.
The context window#
Everything in a session — messages, tool calls, and their results — fills a context window. A meter in the header shows how much room is left before the session compacts on its own.
Compaction#
Compaction summarizes earlier history into a compact form, freeing space while keeping the thread going. It becomes available once a session reaches 50% of the window, and runs automatically when the window fills. Compacting keeps replies fast and costs down — and your media and files are untouched.