Deep Agents: Context Engineering for Long-Horizon Tasks in LangChain
The world of AI agents is evolving rapidly: from linear LangChain pipelines to LangGraph graphs and further to ready-made environments like Deep Agents. Deep Agents is a library that gathers middleware, tools, and prompts around the basic ReAct loop for managing context in multi-step tasks. It adds planning, file tools, subagents, history summarization, and other mechanisms, but at a cost — a steep increase in the system prompt (from 35 to 6215 tokens) on an empty request.
LangChain
Moonshot AI
Anthropic



