Workflow diagram and goals sketched on paper, like planning an orchestrator with background subagents
Photo by Kelly Sikkema on Unsplash · source · credits

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.

A supervisor launching researcher and coder subagents in the background while it keeps talking to the user
Based on LangChain's blog and docs. Illustration, not a screenshot.

The five tools

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

Table comparing the interrupt and enqueue update strategies in Deep Agents
From LangChain's async subagents docs. Illustration, not a screenshot.

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.

About the author

Suraj Kumar builds and edits AIUseFlow, a directory of AI tools for vibe coders, agent builders and creators. Guides like this one walk through a practical workflow with cited sources — not a news wire rewrite. How we rank tools.

Get the weekly stack

Rank movers and new AI tools for builders, once a week. Free, no spam, unsubscribe anytime.