Put the Subagent Back in the Main Loop

Last month, I deleted three specialist subagents from an agent app I’m building.

It wasn’t even to save tokens. Mostly, that orchestrator-plus-three-subagents setup had become exhausting to maintain: every time I added a feature, I had to touch four places at once (the router’s classification rules, the subagent’s own prompt, the main agent’s prompt, and the handoff schema between them).

After deleting them, I ran our regression suite. Task completion didn’t drop, and end-to-end latency was roughly cut in half. Granted, that was just a quick personal read, not a rigorous A/B test.

Then on October 22, Anthropic’s Applied AI team published Building agents: When to fold subagents into your main agent loop. Reading it felt very familiar: turns out everyone is backing away from the same setup, and they actually brought test data to lay out the math.

Telephone game and lossy compression

The core point of Anthropic’s post fits in one sentence: split out fewer subagents, switch context and tools to on-demand loading, and you’ll often get better quality alongside lower cost and latency. (Though that conclusion doesn’t hold universally, and there are a few points I’m not completely sold on.)

It’s genuinely counterintuitive. When I first started building agent systems, “subagent” was practically synonymous with “decoupling” in my head: carve a messy system into single-responsibility specialists, each owning its own prompt, tools, and boundaries. Clean, right? That’s what thirty years of software engineering taught us to do.

The problem is that traditional software decomposition assumes modules exchange exact artifacts: function signatures, structured data, explicit interface contracts. Agents pass natural-language summaries to each other. Agent A finishes its part, summarizes a paragraph for Agent B, and B keeps going based on that summary. Every handoff is a round of lossy compression. You have no idea how much signal just vanished. Nothing throws an exception and nothing crashes; the final output just gets a little dumber.

Anthropic calls this the “telephone game,” and the description fits. The first node receives “the customer says their order status hasn’t updated in two days”; by the time it reaches the third agent, it has shrunk to “customer wants to check order.” The causal link between “past two days” and “status hasn’t updated” evaporated somewhere along the way.

How enterprises end up sprouting piles of subagents

If handoffs are so lossy, why are enterprise codebases full of subagents? The post’s breakdown of failure modes is sharp, because it’s less about technology and more about org charts.

Imagine a large company trying to build one unified agent entry point across all its product lines. Different capabilities belong to different teams, so the path of least resistance is obvious: each team wraps its own agent, and a platform team builds an orchestrator on top to stitch everyone together.

That path is the easiest one to present upward, and it creates problems from day one.

First, context steadily loses detail across handoffs. Next comes subagent sprawl: every team ships one, until you have hundreds of overlapping modules with no shared standards and nobody owning the boundaries. To compensate for all the context lost in transit, teams start cramming their own rules into the system prompt. Soon those rules contradict each other, and even the voice splits into competing personalities. The post calls this a “Frankenprompt.”

Evals fracture right alongside it. Each team maintains a private benchmark for its own subtask, pushing up metrics inside its own slice of the system while leadership stares at a pile of inflated local scores trying to make calls. Latency takes an even worse hit: every extra nesting layer means another model call, pure wall-clock time you can barely optimize away.

The post cites a real customer case: after tearing out a multi-agent framework and collapsing back into a single loop, runtime got twice as fast. That matches my own “roughly half the latency” check.

It’s Conway’s Law again: agent architectures grow into mirrors of the company org chart. Uncomfortable to hear, sure, but I’ve watched it happen across multiple projects, where system boundaries get drawn along reporting lines instead of context flow.

Why you can put them back now

Whether to split out subagents is actually a timestamped question.

Two years ago, you really couldn’t avoid it. Context windows were tight; stuffing seven or eight domains of knowledge into one agent wrecked attention and triggered bad tool calls. Back then people split out subagents out of necessity, not architectural elegance: the window simply couldn’t fit everything.

The post lists three variables that make collapsing back into a single loop viable today. I broadly agree, though they don’t carry equal weight.

First, shared context genuinely raises the ceiling. On long tasks, when raw outputs from earlier steps sit intact in the same window, the model can connect faint clues between step A and step C on its own. Under a subagent setup, the main agent only holds secondhand summaries, which mostly cuts off cross-step synthesis. I’ve felt this sharply in RAG apps: keeping raw recalled chunks right in context lets the model spot patterns you never explicitly told it to look for.

Second, progressive disclosure breaks the capacity bottleneck. This is the most directly reusable idea in the whole post. The mechanism is straightforward: at startup, the agent only sees a compact directory of skills and tools, loading the full instructions only when it actually needs one. What stays resident in context shrinks from “complete domain manuals” down to “a table of contents for domain manuals,” one or two orders of magnitude smaller.

One number in the post made me pause: by moving skills and tools to on-demand loading, they cut Claude Code’s system prompt by over 80% on newer models.

Third, and most important in my view: the models themselves got much stronger. Starting around Opus 4.5, the complexity a model can sustain inside a single loop far exceeds what most engineering teams expect. Newer models know how to track their own progress and double-check their own results; all that rigid orchestration glue we used to hardcode now mostly gets in the way.

Which means outer harness complexity should shrink as models improve, not grow. The article puts its finger right on it: plenty of times a new model looks underwhelming only because legacy multi-agent routers and handoff protocols have its hands tied behind its back.

Don’t overcorrect: three cases that still warrant splitting

Most social-media shares of the article slapped sensational headlines on it, making it sound like “subagents are dead.” The actual post draws three clear criteria, and all three are measurable engineering signals rather than taste:

  1. A single loop shows measurable performance degradation due to context bloat;
  2. Multiple subtasks need to run in parallel, and their intermediate context can be thrown away once finished;
  3. A single agent can no longer pick tools reliably, or system-prompt instructions genuinely conflict and cannot be reconciled.

They frame this as “splitting along context boundaries”: only spin something out when the work barely needs to talk to the rest of the system and returns a compact final result. If that condition doesn’t hold, splitting by question category or department will almost certainly drag you straight back into the telephone game.

How to walk it back safely

The migration path they lay out is pragmatic; nobody is telling you to rewrite everything from scratch on Monday morning.

Step one is always building evals. You can’t skip this; even ten golden examples is enough to start. A central team owns end-to-end suite metrics while product teams maintain small eval sets for their own skills. While you’re still on an orchestrator, watch routing accuracy; once folded into the main loop, shift to checking whether the right skill got loaded and the right tool got called.

When it’s time to make changes, there are three moves, ordered from smallest blast radius to largest:

  • Merge: Least invasive. Look at production traces: if traffic almost always calls A immediately followed by B, they’re already tightly coupled. Just collapse them into one.
  • Subagent as a tool: Leave the existing subagent untouched, and let the main agent invoke it via a tool call so control stays with the main agent. Upside: zero rewrite to get a baseline. Downside: every old flaw remains, including separate prompts to maintain, a lossy summary, and an extra latency hop on every call.
  • Fold in: Biggest surgery. Break the subagent’s prompt into an on-demand skill, expose its APIs as plain tools, move one over at a time, and run before-and-after comparisons on every single move.

In the “fold in” section, the article calls out a sneaky trap that stuck with me.

When they tested folding a customer-support example back into the main loop, latency dropped and the aggregate score looked great, yet one legacy test case that used to pass 100% of the time suddenly failed. Digging in, they found the culprit: the main agent already had an order-lookup tool, and once folded together it got “too smart and too efficient.” It checked the order status itself and replied straight to the user, skipping the mandatory handoff to the shipping specialist to pull the “estimated delivery date.”

That’s the nastiest kind of bug. Nothing crashes and the logs stay clean. The agent simply got more capable, handled the whole thing itself, and skipped a required business-process step. If you only glanced at the aggregate eval score (which might even have ticked up two points), you’d merge that straight to main.

Even trickier: because model outputs are nondeterministic, this regression only reproduced once every two runs.

So their rule is firm: before refactoring, turn common production call chains and mandatory business rules into explicit test cases, and run every test case multiple times. Looking back at how I deleted those three modules and shipped after running each case once, I just got lucky.

The real friction is team ownership, not code

On the surface this guide is about architecture, but the real undercurrent is team ownership, and in any real company, changing ownership is ten times harder than changing code.

Under the old model, every product team ships a standalone agent. That agent is their deliverable, their KPI, their turf.

Follow the article’s advice, and product teams no longer ship standalone agents; they contribute skills and tools. A small central team guards end-to-end quality and the main system prompt, gating every new skill, tool, and eval before release; product teams still own their skills and assign DRIs to track quality.

It makes sense technically, but it feels awkward organizationally. Going from “we own an independent agent” to “we contributed a Markdown file and three functions to the main loop” sounds uncomfortably close to being demoted and absorbed.

Anthropic clearly knows how hard that is to sell, so their answer is to keep skill-maintenance friction as low as possible, even using skills to manage skills. Tools like /skill-creator draft and audit skills automatically, while /skill-doctor tracks how many tokens each skill burns, how often it triggers, and flags zombie skills nobody uses anymore. Whether better tooling actually soothes a product team’s bruised ego is anyone’s guess.

On tool design specifically, though, two practical ideas are worth adopting right away:
First, cap the tool count. Once tool definitions climb past 30 to 50, tool-selection accuracy starts slipping, so group tools around user intent instead of blindly mapping one backend API to one tool.
Second, push permission checks inside the tool itself. Let each tool decide what the current caller can view or modify, returning a plain natural-language error to the model when access is denied. That lets one single loop serve users across permission tiers. We hit this exact problem ourselves: early on, out of laziness, we cloned three separate agents by user role, and then suffered through syncing every business-logic tweak across three copies.

A few places where I’m not completely sold

As satisfying as the post is, three real-world headaches get brushed past a little too lightly.

First, it assumes your workload is mostly serial and benefits from shared context.
Plenty of real workloads don’t look like that. If your job naturally fans out across a dozen tracks at once (scanning a hundred code files simultaneously, or testing ten independent hypotheses in parallel), then a subagent’s core value is throughput, not summarization. The post tosses a brief nod at “research frontier” tasks, barely a sentence. I worry that teams running heavy concurrent workloads will read this, blindly rip out their subagents, and only realize their mistake when production throughput craters.

Second, progressive disclosure isn’t a free lunch: its hidden tax is trigger rate.
Once you break a long prompt into on-demand skills, whether the model picks the right skill at the right moment hinges completely on a few lines of description. You saved context tokens, sure, at the cost of the model occasionally failing to load the skill at all. The post waves at this as “requiring engineering discipline,” yet evaluating whether a description triggers reliably is far murkier than tuning a classic prompt, with no standard metric to borrow. My own crude rule of thumb: write skill descriptions as “when to use me” (trigger conditions), not “what I am” (feature overview). The gap in real-world trigger rate between those two is huge.

Third, and the steepest barrier of all: it makes evals sound way too easy.
Every architectural win in the post rests on already having a solid eval suite. Anyone who has tried to build end-to-end task-completion evals inside a tightly coupled internal system (where you can’t easily replay requests or simulate real users) knows how hard that is. Their suggestion is “log timestamps of key events and replay state offline,” which genuinely works, provided you’ve already built full-funnel telemetry across the entire stack.

To move back to a single loop safely, you first need to measure the system you already have. Building that measurement layer often costs far more engineering effort than deleting a few subagents. I’ve watched too many teams stall right here: everyone agrees on the architectural theory, nobody has a credible eval number to settle the room, and the whole refactor turns into endless arguments.

Closing thought

The one passage from the entire post worth taping to your monitor sits right at the end:

As models evolve, our understanding of how to best use them and guidance around best practice evolve as well. That makes any one architecture less important than the principle behind it: measure, change one thing at a time, and keep what holds up.

Wait six months for the next generation of models, and the verdict on subagents might flip all over again.

They also open-sourced a companion toolkit, anthropics/single-agent-loop-kit, wiring architecture auditing, baseline runs, merging, folding in, and ongoing health checks into a Claude Code skill that pauses after each step to show results and ask for confirmation before moving on. It even ships with a customer-support sample you can run end-to-end in ten minutes, and setting KIT_MODEL=fake lets you dry-run the whole pipeline without spending a dime.

Still, as the repo’s own README points out: if you don’t already have legacy subagents sitting around, you don’t need the kit at all. Just build a single loop from scratch and save yourself the trouble.