
Deep Agents Async Subagents: Keep Your Agent Responsive While Workers Run in the Background
Also available in Hindi: यह लेख हिंदी में पढ़ें
LangChain added async subagents to Deep Agents on 5 November 2026. A supervisor hands long jobs to background workers and stays free to talk to the user; results come back when the work finishes. It works in Deep Agents for Python and JavaScript and in Managed Deep Agents.
Why async
In a standard ReAct loop, each long tool call blocks the loop and every other task queues behind it. LangChain compares an async subagent to a task started with asyncio.create_task, or a Promise you have not awaited yet: the call returns at once and the result arrives later. Use it for long, parallel work or tasks you want to steer mid-flight; keep normal subagents when the supervisor should wait.
The five tools
start_async_taskstarts a subagent on its own thread and returns a task ID right away.check_async_taskreturns the status and, once finished, the result.update_async_tasksends a running task new instructions.cancel_async_taskstops it.list_async_taskslists every tracked task with its live status.
Task IDs live in a dedicated async_tasks state channel, so they survive when the supervisor compacts its message history.
Interrupt or enqueue follow-ups
update_strategy defaults to "interrupt", which restarts the subagent with the new instruction, good for "use Postgres instead". "enqueue" waits until the current run ends, good for "run the tests when you're done". It needs deepagents>=0.7.30 and is in beta.
How results come back
On an Agent Protocol server, finished subagents notify the supervisor. If it is idle, a co-deployed subagent wakes it; otherwise it gets the update at its next run. A subagent that needs approval shows as waiting, and the user answers on that subagent's own thread, because the supervisor cannot approve on the user's behalf.
Set it up
Self-hosted: define AsyncSubAgent specs with name, description and graph_id (add url for a remote server) and pass them to create_deep_agent. Locally, raise workers with langgraph dev --n-jobs-per-worker 10. In Managed Deep Agents, add "async": True to a subagent. If the supervisor keeps polling right after launch, tell it in the system prompt to return control to the user.
More on agent design: how to build an AI agent, best AI agent builders and DeepSeek Super Agent.
Sources
FAQ
Is it only for LangSmith?
No. Async subagents talk to any server that implements the Agent Protocol, including self-hosted ones.
Can I cancel a running subagent?
Yes, with cancel_async_task.
Are notifications stable?
No. Task notifications and the waiting status are in beta and may change.
Does it work in JavaScript?
Yes. LangChain says async subagents are available for Python and JavaScript.