🤖 AI Hot

When to Fold Subagents Into Your Main Agent Loop

A
Alex Chen

If you are putting together an enterprise AI adoption guide for your team, the single most expensive mistake you can make is not picking the wrong model — it is architecting too many agents. Anthropic’s Applied AI team published a set of recommendations on October 22, 2026 that quietly reverses one of the most common pieces of advice in agent engineering. For the last two years the standard playbook has been: decompose your problem into specialists, give each one its own context window and tools, and let a coordinator route between them. Anthropic’s team now says that in many enterprise deployments, folding those subagents back into a single main agent loop produces better quality at lower cost and latency.

The post, written by Diane Sarkis, is not a declaration that subagents are dead. It is a sharper claim: the default assumption that more agents means a better system is wrong, and the burden of proof has shifted. A subagent — an agent with its own context window, tools, and instructions, orchestrated by a coordinator — is genuinely useful for verification, parallel work, and modular permissioning. Anthropic still uses them in its own multi-agent research system. But the team found a recurring pattern in enterprise deployments where a single agent equipped with skills outperformed both the “one prompt for everything” design and the full subagent design, and often did so at a lower cost and latency per task.

AI Agent Framework Comparison: Subagents vs. Skills vs. One Big Prompt

To understand why this matters, it helps to frame it as an AI agent framework comparison between three architectural options. The first is the monolithic design: one agent, one large system prompt, all tools available all the time. The second is the multi-agent design: a coordinator plus a fleet of specialized subagents, each with its own prompt, context, and evals. The third is what Anthropic now recommends as the target: a single main agent loop that progressively discloses context and calls thin tools and skills when needed.

The monolithic design fails because a single bloated prompt with dozens of tools creates ambiguity. The model has trouble selecting the right tool, and instructions for one task bleed into another. The multi-agent design fixes that but introduces its own costs. Each subagent hands back a lossy summary of its work, which strips out the detail the coordinator needs. Each subagent call is a nested model loop, which adds latency. And each subagent carries its own prompt, context, owner team, and eval set, which means the complexity of your agent now mirrors the complexity of your org chart — Conway’s law operating on your prompt files.

Anthropic’s observed anti-pattern is a familiar progression. An agent starts as an intent classifier, grows a fixed multi-step reasoning pipeline, then gets user-segment buckets, then separate recommendation branches, and finally a multi-agent orchestrator stacked on top. The team’s feedback from real deployments is that most of that structure was doing work the model no longer needed done for it. In many cases one clear system prompt, four or five thin data tools, and firm output guardrails covered the use case.

The Concrete Reasons Subagents Hurt Enterprise Agents

Anthropic gives a specific failure story that will sound familiar to anyone who has maintained a production agent. One company’s customer-facing agent contained a dozen specialist subagents. The result was that keeping a consistent on-brand experience across all of them became difficult, and the cumulative latency hurt the user experience. That is the hidden tax of the multi-agent pattern: every additional hop is both a quality risk and a latency cost, and neither shows up in a demo.

There are three concrete problems the team calls out. First, every subagent call hands back a summary rather than the raw reasoning, so the coordinator makes decisions on compressed, lossy information. Second, every call is a nested model loop, which multiplies latency against what a single loop would do. Third, each specialist has its own prompt, context, owner, and evals, which means maintaining the system becomes an organizational problem as much as a technical one. Merging those specialists into one loop collapses all three costs at once.

The skills mechanism is central to how Anthropic proposes to make this work. A skill is a folder of instructions, scripts, and resources that gets loaded into context only when it is relevant. That is the “progressive disclosure” piece: the main agent holds a lean base prompt and pulls in domain knowledge on demand, instead of keeping every capability resident in a separate agent’s memory all the time.

When Subagents Still Earn Their Place

Anthropic is careful to preserve subagents for the cases where they are genuinely the right tool. The post lists three conditions. The first is when a single agent loop hits measurable performance degradation from context bloat — in other words, when stuffing everything into one context window demonstrably makes the model worse. The second is when multiple tasks need to run in parallel with fresh context windows that can be discarded once the task is done. The third is when a single agent struggles to select the appropriate tool or when there are conflicting instructions in the system prompt.

The research frontier is the clearest counterexample. Anthropic’s own multi-agent research system uses an orchestrator-worker pattern where a lead agent spawns subagents to explore different aspects of a query in parallel. For simple fact-finding that system needs one agent with three to ten tool calls, but complex research can fan out to more than ten subagents with clearly divided responsibilities. The point is not that subagents are bad — it is that they are a specialized tool for parallel, context-isolated work, not a default organizing principle.

How to Migrate Without Rewriting Everything

The migration path Anthropic recommends is deliberately incremental, and it is worth following in order. The first step is to establish a baseline: build a small end-to-end eval before you make the first merge, so you can measure whether folding actually helps. The second step is to fold in by shared context, starting with the subagents that see the most use. Merge specialists that chain on each other’s output, touch the same data, or are frequently called together — if a meaningful share of production traffic is one specialist followed immediately by a second, that tightly coupled pair is a candidate to become a single domain agent.

The intermediate step is to have the main agent call subagents as tools rather than handing off the conversation. This keeps the subagents intact but lets the main agent keep holding the conversation with the user, define a shared response schema, and verify conclusions against real data before synthesizing. It is a lower-effort first move because you do not need to rewrite the subagents themselves. The full fold comes last: replace the subagent with a skill plus a set of tools in the main loop.

Anthropic also provides a migration kit for agents built on Claude Platform. It runs a guided workflow to identify your patterns, evaluate alternatives, and verify the best approach, with a demo you can try on a mock system before touching your production agent. The key discipline is the eval: every fold should be justified by a measured improvement in task completion, not by an aesthetic preference for fewer files.

What Remains Hard Even After Folding

Folding subagents into the main loop removes the lossy-summary and nested-loop problems, but Anthropic is explicit about what stays hard. A single loop with progressive disclosure still depends on the quality of your tool descriptions, because the model selects tools by reading their names and descriptions. If a tool is badly described, the model will call it at the wrong time or not at all, and there is no subagent boundary to absorb that mistake. Firm output guardrails — validating the shape and content of what the model returns — become more important, not less, because you have fewer places to catch errors.

There is also a real ceiling on how much a single context can hold. Progressive disclosure helps, but it is not a substitute for parallelism when the work genuinely needs many independent searches at once. If your task requires ten isolated research threads that should not pollute each other’s reasoning, a subagent fan-out is still the correct architecture. The skill is knowing which regime you are in before you commit.

Who Should Use This Guidance

This guidance is aimed squarely at teams building agents inside Claude Platform, but the underlying argument generalizes to any orchestration framework. If you are maintaining an agent with a coordinator and several specialist subagents, and you cannot clearly justify each subagent against one of the three keep-conditions, you are a candidate for a fold. Teams that will benefit most are the ones whose agent architecture has grown organically — a subagent per team, per problem type, or per stage of a pipeline — without a corresponding eval that proves each boundary earns its cost.

The practical test is simple. For each subagent in your system, ask whether removing it and folding its instructions into the main loop as a skill would measurably hurt task completion. If you cannot demonstrate that it would, you are carrying complexity that is costing you latency and maintenance overhead for no measured benefit. That is the whole thesis in one question.

Who Should Not Fold

There are two groups who should not rush to collapse their architecture. The first is teams doing genuinely parallel research or search, where the context isolation and the ability to discard a subagent’s context window after the task are real advantages rather than overhead. The second is teams with strict modular permissioning requirements, where a subagent boundary is doing security or compliance work by limiting what a given step can access. In both cases the subagent is not redundant structure; it is load-bearing.

It is also worth being honest about the transition cost. Folding is a refactor of your prompt architecture, and refactors need evals to be safe. If you do not have a task-completion eval you trust, build that first. Anthropic’s own migration kit is built around this idea — the eval is the safety net that makes each incremental merge a measured decision rather than a leap of faith.

The Bottom Line

The durable takeaway from Anthropic’s post is a correction to the industry’s default. For two years, “more agents” read as “more sophisticated,” and the result was agent architectures that mirrored org charts and paid for it in latency, maintenance, and lossy handoffs. The Applied AI team’s data points the other way: in most enterprise cases, one main agent loop with skills, thin tools, and firm guardrails beats a fleet of subagents on quality, cost, and speed. Subagents still have a place — parallel research, context isolation, and permissioning are real needs — but they are a tool you reach for when the situation demands it, not the shape you start from. If you are writing your next agent, start with the single loop and make each subagent earn its existence against a measured baseline.

Sources

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen