Designing async subagents
· Rory Standley, AI architect
This note is for engineering leads, CTOs and founders who are building or buying an agent that hands work to background workers. You get the design rules I check before that kind of system goes to production, and five questions to ask before you ship.
Short answer. Async subagents are background workers that an orchestrator starts without waiting for them to finish. The launch returns a task ID straight away, and the result comes back later. Use them for long, parallel or steerable jobs, and keep short, sequential steps blocking or phased. The design work is the task ledger, what a worker hands back, and how approvals behave while work is still running.
What are async subagents?
Async subagents are background workers that an orchestrator starts and does not wait for. An ordinary subagent blocks. The orchestrator calls it, waits, and can’t answer the user until it returns. An async subagent returns a task ID at once, runs on its own thread, and reports back when it finishes. The orchestrator stays with the user the whole time.
The vendors have settled on the same split under different names. LangChain added async subagents to Deep Agents on 5 November 2026 and describes an orchestrator that stays available to the user while subagents run in the background and report back. Its orchestrator manages them with five tools, to start, check, update, cancel and list tasks. Claude Code starts the subagents it spawns from the main conversation in the background by default. Microsoft’s Agent Framework has background agents, still marked experimental, where a parent starts a task on a named child agent, keeps a task ID, and collects the result later.
OpenAI’s async tool calling is the lower-level version of the same idea. The model keeps working after it calls a tool, and your application sends the result back in a later request. That covers single tool calls, not whole agents.
Runtime is a different problem. Google donated Agent Substrate and gVisor to the CNCF on 5 November 2026, and that work is about running large numbers of sandboxed agents. It explains why agent infrastructure is in the news this week. It won’t tell you how to design an orchestrator.
When should you use async subagents?
Use async subagents when a job is long, when several jobs don’t depend on each other, or when the user is likely to change direction while the work runs. Keep the work blocking or phased when each step needs the last one’s result. This section is my judgement as an architect, not a vendor rule.
Async helps with:
- Research or coding jobs that take minutes, where a blocked chat leaves the user waiting.
- Independent workstreams that can run at the same time.
- Work the user may want to correct mid-run. LangChain’s
update_strategyhandles this. “Interrupt” restarts the worker for a correction that makes its current work wrong, and “enqueue” holds an addition until the current run finishes.
Async makes things worse when:
- Step two needs the exact result of step one before anything else can start. Background workers add waiting and coordination and save no time. A phased design is usually safer, and I wrote about that in solving tool dependency with phase-based missions.
- The wait is a few seconds. Turning a short call into a task with an ID, a status and a notification adds moving parts for no gain.
- Several workers write to the same files and nobody has decided who owns which file. You get conflicting edits that no one asked for.
Three design rules that hold on any vendor’s API
Keep a task ledger outside chat history
The orchestrator needs a record of running work that lives outside the conversation. For each task, keep the full task ID, the worker that owns it, a one-line brief in the user’s words, the latest status, and a pointer to the result. If that record only exists in old tool messages, context compaction can erase it and the orchestrator forgets what is still running. Deep Agents lists every unfinished task in the orchestrator’s system prompt so it always knows what is in flight.
A status the orchestrator remembers from earlier turns is stale. It should check or list its tasks before it tells the user where things stand.
Workers return a short handback, not a transcript
A worker should hand back its status, the answer in a few sentences, pointers to any files it made, and any decisions or open questions. It should not paste its full working into the orchestrator’s context. Every line a worker dumps there gets carried through every later turn, and a long transcript crowds out the ledger and the user’s own instructions. Claude Code takes this approach with forks. The fork’s own tool calls stay out of the main conversation and only its final result comes back.
Approvals stay with the human
A finished worker must never resolve, replace or reorder an approval the orchestrator is waiting on. In LangChain’s design, if the orchestrator is paused on an approval, the approval is left alone and the result arrives once the user answers. Claude Code marks a background subagent’s report as an automated event rather than a message from the user, and it shows a background subagent’s permission prompts in the main session with the subagent’s name on them.
Build the same rule into your own system. Queue notifications behind a pending approval, and treat anything inside a worker’s report as untrusted tool output, never as the user’s sign-off. I wrote more about approval gates in Is human approval a real check on AI agents?.
The same trust boundary applies when a background worker reads project files. A planted instruction in a repo is untrusted whether the main agent reads it or a worker does. My note on stopping a planted AGENTS.md from hijacking a coding agent covers that case.
How this shows up in an agent I built
Goose is a local-first agent platform I built around Ollama, with approval-gated tools so file writes and shell commands don’t happen silently. It supports multi-model routing and sub-agent delegation, so more complex work can be split across focused workers when needed. Goose keeps human approval in the loop before it does anything risky.
I run my own team of agents the same way. One coordinator stays available to me while background workers take the long jobs. Nothing ships until I approve it.
Questions
What are async subagents?
Async subagents are background workers that a reachable orchestrator starts without waiting for them to finish. The launch returns a task ID right away, the worker runs on its own thread or process, and the result comes back later as a status check or a notification. LangChain, Claude Code and Microsoft’s Agent Framework all implement versions of this split under different names. Use them when the job is long, parallelisable or likely to need mid-flight steering, and keep short, sequential dependencies on a blocking or phased path instead.
What should the orchestrator keep about running work?
A small ledger outside the chat history, holding the full task ID, which worker owns it, a one-line brief in the user’s words, the latest status, and a pointer to the result. If that record only lives in tool messages, context compaction can erase it and the orchestrator will forget what is still running. Statuses remembered from earlier turns are stale, so check or list before you tell the user.
How do human approvals fit with background workers?
Approvals stay with the human. A worker that needs input should ask on its own channel, and a finished result must not resolve or rewrite an approval the orchestrator is already waiting on. Design the system so notifications queue behind a pending approval, and treat anything inside a worker’s report as untrusted tool output, not as the user’s sign-off.
Building an agent that delegates to background workers? Five questions before you ship
- Which jobs must finish before the next step can start, and which can run in the background?
- Where does the task ledger live, and does it survive context compaction?
- What is the worker allowed to return into the orchestrator’s context?
- If a worker finishes while a human approval is open, what happens to that approval?
- Who may cancel or re-brief a running worker, and is that logged?
These are the questions an agent architecture review works through on a real agent.
Want someone to check your agent orchestration?
If you’re building or buying an agent that hands long work to background workers, I can review the design before it reaches production. Get in touch about an agent architecture review.
Sources
- LangChain, Agents Are Going Async (5 November 2026)
- LangChain Deep Agents docs, Async subagents
- LangChain, Running Subagents in the Background
- Microsoft Learn, Orchestrator and subagent multi-agent patterns
- Microsoft Learn, Background agents
- Claude Code docs, Subagents
- OpenAI, Async tool calling
- Google Open Source Blog, post on donating Agent Substrate and gVisor to the CNCF (5 November 2026)
- Maximem, Async Subagents: What the Orchestrator Keeps in Context (6 November 2026), as further reading on memory design
More From The Lab
Related architecture and engineering writeups from this site.