Deep Agents Orchestrator-Worker Pattern: What Survived in Production
We designed our enterprise upgrade planner as a frontier orchestrator model delegating to specialist Deep Agents workers. Three months later the orchestrator became a deterministic LangGraph StateGraph while one isolated Deep Agent worker survived to serve both backend and mobile.
Deep Agents Orchestrator-Worker Pattern: What Survived in Production
In June, we designed our software upgrade planning agent as a textbook orchestrator-worker system: a lead frontier model built on Deep Agents, delegating bounded jobs through the built-in task tool to specialist worker agents, each isolated in its own context window. It looked clean on every whiteboard and matched the pattern Anthropic made famous in Building effective agents.
Three months later, we deleted the orchestrator model. The per-service worker survived, and its successor now handles both backend and mobile upgrades from a single registered agent.
The real lesson was not "orchestrator-workers doesn't work." The real lesson is that "orchestrator-workers" is not one architecture decision. It is five separate decisions wearing one label, and in production four of them broke while one paid off.
The job the agent actually had to do
The agent's job is to produce an upgrade plan for moving an enterprise client's entire estate of services from one long-term-support release of a banking platform to the next.
Look closely at the shape of that work, because the shape is what eventually decided the architecture. Half of it is genuine open-ended reasoning: for each service, read the release notes, query the product knowledge graph, search the client's repository, and figure out what the upgrade actually breaks. The other half is rigid bookkeeping: resolve versions across the estate, classify every service, pause for a human to approve scope, run per-service impact analysis, pause again for plan approval, and publish.
Five constraints sat on top of both halves:
- Scale: real client estates are closer to 50 services than 10.
- Strict order: versions before classification, approved scope before deep analysis, approved plans before publish.
- Grounded evidence: every claim in a plan must come from a tool result, never from model memory.
- Multi-platform: backend first, then web, Android, and iOS, ideally without maintaining four separate codebases.
- Cost: dozens of model calls per estate, so cheap models wherever they meet the accuracy bar.
The five decisions bundled inside our June design
Our June architecture decision record made five bets in a single document:
- A model orchestrator. The lead agent is a Deep Agent like every other agent on our platform, with no hand-written outer graph.
- Isolated workers. Separate specialist workers (discovery, dependency analysis, triage, evidence synthesis, planning), each in its own clean context window.
- Order enforced by tools. Project tools would refuse out-of-order calls when prerequisite evidence was missing and return a typed
next_actionpointer telling the model the next legal step. - Cost-tiered workers. Fast models for mechanical work, frontier models for reasoning, with automatic escalation when confidence dropped.
- One shared workflow via a platform adapter. A single reasoning flow parameterized across backend, web, and mobile.
On paper, all five reinforced each other. On the main branch by late August, four of the five had either been simplified away or never landed at all:
- The typed
next_actiontool contracts were built twice on mobile feature branches and closed unmerged both times. Main got one server-side precondition: real publish refused to run without proof of a matching dry run. - Model tiering middleware existed, yet every upgrade agent was pinned to the same middle tier, and in the defaults of that period the middle and top tiers pointed at the exact same model. No worker ever ran on a fast tier on main.
- The platform adapter class never existed in any repository. Mobile teams had already built separate agents on branches.
- Native
taskdelegation turned out to be stateless, so any worker that needed to pause for a human decision mid-job could not be re-entered cleanly.
What actually shipped on main in late August was an orchestrator Deep Agent with three workers declared in its manifest: discovery, per-service impact analysis, and planning. And the entire phase sequence lived in the orchestrator's prompt: "Work through the in-scope services one at a time. Never reconstruct a report yourself from a worker's prose."
Where the model orchestrator broke
Three failures showed up fast in evaluation runs and architecture reviews, before real customers ever hit them.
1. Step-budget arithmetic killed scale. Because the orchestrator called workers serially, every delegation and every relayed summary burned graph steps in the lead agent. In late August, an upgrade architect did the math: the default step budget ran out around 10 to 12 services, and the run timeout hit around 14. A nine-service run took over an hour and a half. A product owner summed it up in one line: real estates are "closer to 50 than to 10-12." Context isolation was not the bottleneck at all; the orchestrator and workers did not share a context window. Steps and wall-clock time were. Even a measured branch fix that ran three services in parallel (cutting the longest phase to about a third) got lost in review churn and a revert, leaving main serial.
2. Verification in prose is not verification. In one evaluation case, the orchestrator made zero tool calls and still replied confidently that impact analysis had been verified. Adding stricter prompt rules did not fix it. Adding a code guard checking where the worker's output actually came from raised the impact regression suite pass rate by roughly 25 percentage points.
3. Prompt gates fail open. In a late-August eval run, the orchestrator skipped the progress and approval tools in every single case, and in one case marched straight from discovery to publishing with zero human sign-off. A code review that week gave the verdict plainly: the prompt-level scope gate "fails open."
The first reaction under schedule pressure was to build a 6,400-line deterministic control layer inside the agent. It landed and was reverted the very same day as an "oversized, coupled agent-local control plane." What replaced it was a graph-level interrupt gate roughly one-sixteenth the size:
# Simplified from the orchestrator class, late August
def _get_interrupt_on(self) -> dict[str, bool | InterruptOnConfig]:
"""Gate both human decisions in the graph rather than in the prompt."""
# "task": no worker runs on an estate the user has not approved.
# "spec_export": publication always requires explicit approval.
return {"task": scope_gate(), "spec_export": True}
The docstring on scope_gate() stated the rule that ended the orchestrator era: "Enforcement lives in the graph, not in the prompt."

Left: the June orchestrator model hit step limits at 10 to 12 services and failed open on prompt gates. Right: by November, a deterministic StateGraph owned order, interrupts, and 4x parallel fan-out, leaving only open-ended impact reasoning inside the Deep Agent worker.
What survived: the isolated worker
Days later, we replaced the lead orchestrator with a deterministic LangGraph StateGraph. Look at what moved to code versus what stayed an agent:
| Sub-decision | June plan | Late August on main | November in production |
|---|---|---|---|
| Who sequences the work | Orchestrator model | Orchestrator model + prompt rules | Graph edges (zero model calls at graph level) |
| Where reasoning is isolated | Specialist workers, own context | Three workers via task |
One impact worker per service, called from a graph node |
| Where order is enforced | Tools refuse out-of-order calls | Prompt, then graph gate on task |
Graph edges and interrupt() nodes |
| Cost tiering | Fast, frontier, escalation | All agents pinned to one tier | One model across workers (tiering still untested) |
| Multi-platform reuse | Shared adapter class | Backend only | One shared worker reading a Platform: line + platform prompt |
| Plan generation | One structured worker call | Planner worker (19 to 34 turns) | Plain code compiler (~1 step) |
Portfolio discovery became plain graph nodes (with at most one small schema-bound model step in inventory). Plan drafting stopped being a 19-to-34-turn planner agent and became a deterministic compiler in plain Python. Parallelism stopped being a polite prompt request and became LangGraph Send fan-out running four services at a time by configuration.
The part that survived intact was the isolated Deep Agent worker. Because each worker lived in our central agent registry (as covered in Part 1 on keeping the harness thin), moving it from "called by a model orchestrator" to "called by a deterministic graph node" barely changed the worker at all:
# Simplified from the deterministic workflow agent
async def _build_impact_worker(self) -> dict[str, Any]:
registry = AgentRegistry.get_instance()
backend = registry.create_agent(
name=backend_impact_agent_name(),
workspace_id=self.workspace_id,
user_id=self.user_id,
is_subagent=True, # traced once inside the parent run
)
mobile = registry.create_agent(
name=SHARED_IMPACT_WORKER,
workspace_id=self.workspace_id,
user_id=self.user_id,
is_subagent=True,
)
return {
"backend-impact": await backend.create_graph(),
"mobile-impact": await mobile.create_graph(),
}
In a two-week production trace window after the rebuild, zero graph nodes outside the inventory step made a model call. Roughly 99% of all LLM calls sat inside the impact workers, averaging around eight calls per service. And when mobile upgrades shipped, the team refused to build a second orchestrator. Instead, backend and mobile converged onto one shared Deep Agent worker that reads a Platform: line from its task input and loads that platform's skills and prompt. The June dream of a cross-platform adapter class never shipped; a shared worker with per-platform Markdown delivered the same reuse with a fraction of the abstraction.
Three evaluation bugs that warped our view of the orchestrator
My seat on this project was evaluation, and three things I caught along the way changed how I judge every multi-agent architecture.
First, our delegation assertions were rubber stamps. A test case could pin the exact arguments expected on a task call, and in July I discovered the eval harness silently ignored those arguments. A green test only proved that some worker was called, not the right worker with the right scope.
Second, every subagent call was being double-traced. Because each compiled subagent graph bound its own tracing callback handler while also inheriting the parent's handler through LangGraph config propagation, every worker LLM call got logged twice. In my first CI cost analysis, reported tokens were inflated by roughly a quarter. Passing is_subagent=True (as in the snippet above) omitted the duplicate handler and fixed the numbers. (I dig into why LangGraph configs merge that way in Part 3.)
Third, end-to-end evals hid where failures lived. My initial July plan evaluated the whole orchestrator end-to-end and skipped standalone worker and tool checks. Once the LLM lived exclusively inside the impact worker, we gave the worker per-phase eval datasets. Failures stopped being vague "the plan looked wrong" mysteries and became directly attributable to a single phase.
What I am still going back and forth on
Isolated workers are clean, reusable, and easy to reason about, and they are also heavy on input tokens. In one September measurement, an impact worker read roughly sixty input tokens for every output token it generated, because isolation means every worker cold-boots its own context from scratch. With prompt caching, shared prefixes absorb a lot of that bill, yet I still wonder where the crossover point sits between clean isolation and context-sharing overhead on 50-service estates.
I also still have no measured answer on model cost tiering. We designed for fast-vs-frontier tiering in June, never ran a fast tier on main, and still run every worker on one model today. Even worse, traces showed a small chat-title step firing inside almost every headless worker run even though no human chat user was watching that worker. Whether a cheaper model can handle the mechanical legs inside a worker without dropping accuracy is still an untested hypothesis.
And there is a subtle governance gap I notice looking back: our June ADR was formally accepted in August even while a correction noting that two of its controls could not run was still open. Even today, there is no defense-in-depth tool contract underneath the graph; if a graph node calls a tool out of order, the tool will not refuse it. An accepted ADR is not proof of what runs in production.
Decide each piece on its own
Next time someone proposes an "orchestrator-worker" agent in a design review, stop the meeting and split the phrase into its real parts.
Do the arithmetic on step budgets and wall-clock time against a real estate size before you write the first prompt. If the sequence and approval gates are known, let graph edges and interrupt() own them; never ask a prompt to enforce a safety gate. Keep the workers as standalone, registry-backed Deep Agents so they survive intact when the outer control loop inevitably moves from prose to code.
The orchestrator is the exciting part to draw. The isolated worker is the part you will still be running six months later.
Next in this series: Upgrading Deep Agents and LangGraph: The Silent Traps That Send Invoices, on the missing model profiles, per-call MCP probes, and super-step math that slipped past green unit tests.