One turn through Deep Agents
architecture node:
User input:
Representation at this boundary
Source modules
Loop map
One pass — prompt in → input checkpoint → before-hooks → model node with the stack's wrappers armed → routing Sends → tools node → two subagent runs → one ToolMessage each → next super-step, checkpoint saved. The loop is LangChain's graph; the runtime counting its steps is LangGraph's.
A ceiling, not a budget —
recursion_limit 9,999 is stamped by LangChain's factory — and re-stamped by create_deep_agent — and enforced by Pregel as a super-step ceiling checked at the top of every tick. It raises GraphRecursionError only when no stop condition was reached; nothing in the deepagents package reads or decrements it.Two dependency pins under the package — every run crosses them: langchain==1.4.5 supplies
create_agent, the middleware classes, and the HITL implementation; langgraph 1.2.15 supplies Pregel, ToolNode, checkpointing, and interrupt(). Deep Agents' own contribution is the stack, the backends, and the assembly.