How Deep Agents Manages Context: Offloading and Summarization
The longer an agent runs, the more instructions and tool results pile into its context window, and the worse its reasoning tends to get. That's context rot. This video walks through two context engineering techniques the Deep Agents harness ships out of the box: offloading, which keeps large tool results and long messages out of context while saving them to a virtual file system, and summarization, which compacts the conversation once token usage crosses a threshold (85% by default).
You'll see where the 20,000 token offloading threshold kicks in, why token usage can overshoot 85% before summa