Delta Channels: Evolving our Runtime for Long-Running Agents
Blog post from LangChain
Deep Agents, built on the LangGraph runtime, leverages DeltaChannels to efficiently manage agent state checkpointing, significantly reducing storage requirements for long-running agents. Traditional checkpointing methods, which serialize a complete state snapshot at every step, lead to quadratic growth in storage, especially as agents accumulate extensive message histories and context. DeltaChannels, a new LangGraph primitive introduced in version 1.2, addresses this by storing only the incremental changes (deltas) at each step, while periodic full snapshots ensure manageable recovery costs. This innovative approach reduces storage from 5.3 GB to 129 MB for a coding agent running 200 turns, representing a 41× reduction. The introduction of DeltaChannels allows Deep Agents to maintain a comprehensive history of agent progress with minimal storage impact, making it an ideal solution for modern, long-running agents that require deep context management.