createDeepAgent.
Architecture
Deep agents use a coordinator-worker architecture. The main agent plans tasks and delegates to specialized subagents, each running in isolation. On the frontend,useStream surfaces both the coordinator’s messages and each subagent’s streaming state.
useStream the same way as with createAgent. Deep agent patterns use additional useStream features like stream.subagents, stream.values.todos, and filterSubagentMessages to render subagent-specific UIs.
Patterns
Subagent streaming
Display specialist subagents with streaming content, progress tracking, and collapsible cards.
Todo list
Track agent progress with a real-time todo list synced from agent state.
Related patterns
The LangChain frontend patterns — markdown messages, tool calling, human-in-the-loop, and more — all work with deep agents too. Deep agents are built on the same LangGraph runtime, souseStream provides the same core API.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

