Build frontends that visualize deep agent workflows in real time. These patterns show how to render subagent progress, task planning, streaming content, and IDE-like sandbox experiences from agents created withDocumentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-cbuipl-1779916257-33d1bcf.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
createDeepAgent.
Deep agents are most useful when the UI makes delegation visible. Instead of
showing a single opaque assistant bubble, the LangChain SDKs expose the
coordinator, subagent discovery, custom state, and sandbox-backed artifacts so
users can inspect how a long-running task is being decomposed and completed.
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, the v1 stream handle surfaces coordinator messages on the root stream and exposes subagent discovery snapshots for scoped subagent views.useStream the same way as with createAgent. Pass a type parameter for type-safe stream state. Deep agent patterns use stream.subagents, selector helpers such as useMessages(stream, subagent), and custom state values like stream.values.todos to render subagent-specific UIs.
What the SDK exposes
Deep agent UIs usually need more than the final answer. The frontend SDK gives you structured projections for the parts of the run users care about:| Projection | Use it for |
|---|---|
stream.messages | The coordinator conversation and final synthesis. |
stream.subagents | Live discovery of specialist workers, including status and task metadata. |
stream.values | Shared state such as todos, plans, report sections, sandbox metadata, or any custom key your agent writes. |
| Tool-call state | Rendering filesystem, search, browser, or domain tools as cards with progress and results. |
| Interrupts | Pausing delegated work for user approval or missing input without losing the run state. |
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.
Sandbox
Build an IDE-like UI with a file browser, code viewer, and diff panel backed by a sandbox.
Related patterns
The LangChain frontend patterns, including markdown messages, tool calling, and human-in-the-loop, all work with deep agents too. Deep Agents are built on the same LangGraph runtime, souseStream provides the same core API.
For lower-level graph visualizations, see the
LangGraph frontend patterns. They show how
to map graph nodes and state keys directly to UI components.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

