DictionaryContext Management See it in actionConversation cost tool
Compaction
Shrinking a long conversation into a short summary so the AI can keep working, like condensing meeting notes.
Definition
When a session nears its token limit, the assistant summarizes critical details, such as architectural decisions and unresolved bugs, while discarding redundant tool outputs. This reclaims context budget without losing essential information.
Example
Near the limit, the agent writes 'Chose Postgres; retry-loop bug still open', drops the old logs, and keeps going.