Definition
What is Context Offloading?
Last updated
The practice of keeping an AI agent's working context window small by moving state to an external destination, such as a file, a sub-agent, or a retrievable store, and bringing it back only when a step needs it.
Long-running agents accumulate conversation history, tool outputs, and observations that dilute attention and degrade accuracy. Context offloading patterns, including structured note-taking, sub-agent delegation, and just-in-time retrieval, relocate that bulk to a destination so the agent works with a small, high-signal window and can recover detail on demand. It differs from reduction techniques like compaction, which shrink the window in place rather than relocating anything.
Further reading
Articles about Context Offloading
Context bloat: why long-running agents break
Context bloat is when accumulated tool-call output crowds out an agent's task. Tool calls, not window size, break long-running agents. Here is the fix.
Demand paging for the AI context window
A 2026 systems paper found 21.8% of tokens in agent context windows are wasted. Demand paging treats the AI context window as L1 cache, not full memory.
MCP Tasks: long-running work as context offloading
MCP Tasks let a server return a durable handle instead of a blocking result, keeping a long-running tool call's interim state off the agent's context window.
AI notetakers ship the wrong artifact
AI notetakers ship transcripts, but downstream work needs decisions, drafts, or handoffs. The artifact gap is a context engineering problem, not transcription.
All terms
View full glossaryPut context into practice
Create your first context container and connect it to your AI tools in minutes.
Create Your First Container