deepagents — what reaches the model context (and what is offloaded)

deepagents — what reaches the model context (and what is offloaded) A data-flow diagram generated by Archify. 01 / Inputs 02 / Intercept + state 03 / Compact + offload 04 / Per-call request 05 / Model User input · HumanMessage · 01 / Inputs · > 50k tok evicted User input HumanMessage > 50k tok evicted Raw tool result · any size · 01 / Inputs Raw tool result any size Memory + skills · AGENTS.md, SKILL.md · 01 / Inputs Memory + skills AGENTS.md, SKILL.md messages log · full, never rewritten · 02 / Intercept + state · checkpointed messages log full, never rewritten checkpointed Filesystem MW · offload > 20k tok · 02 / Intercept + state Filesystem MW offload > 20k tok private state · memory · skills cache · 02 / Intercept + state private state memory · skills cache Summarization · event: cutoff + summary · 03 / Compact + offload · 85% trigger Summarization event: cutoff + summary 85% trigger Backend files · results · history · 03 / Compact + offload Backend files results · history Effective view · [summary] + tail · 04 / Per-call request Effective view [summary] + tail System prompt · + skills + memory · 04 / Per-call request System prompt + skills + memory Chat model · one request · 05 / Model Chat model one request append ToolMessage stub + preview full text over budget evicted span summary + tail load once every call messages system Legend primary data async batch data store data flow