NewsCrawler.org

Building agents: when to fold subagents into your main agent loop

Anthropic's Applied AI team reports that enterprise agent deployments often improve when routers, planners, and domain subagents[1] are folded into the main agent loop. In comparisons across several enterprise deployments, a single agent with skills frequently outperformed both a one-prompt-for-everything design and a subagent design on quality, often at lower cost and latency per task. One company found that the dozen specialist subagents in its customer-facing agent made a consistent on-brand experience hard to maintain and added latency. The article ships with a migration kit that runs a guided workflow to identify patterns, evaluate alternatives, and verify the chosen approach, including a demo that can be tried on a mock system first.

Typical failure modes of team-built multi-agent setups include lossy context handoffs, subagent sprawl with hundreds of overlapping subagents and no owner, a "Frankenprompt" system prompt with conflicting rules, unvetted overly localized evals, and added latency — one customer saw a roughly 2x faster runtime with a single agent loop. The recommended alternative is progressive disclosure[2]: the agent sees short descriptions of skills and tools, which are fully loaded only when needed. Anthropic says it cut Claude Code's system prompt by over 80% this way, and notes that starting with Opus 4.5 models handle far more in a single loop than most teams expected — thinking cannot be turned off on Opus 5.5 and Fable 5.1, and recent models increasingly narrate their progress and check their work.

Subagents still make sense when a single loop degrades from context bloat, when tasks must run in parallel with fresh discardable context windows, or when one agent struggles with tool selection or conflicting instructions. The article warns that splitting agents by team or problem type copies the org chart (Conway's law[3]) and degrades information like a telephone game. The target design is one model and one context window running an open-ended tool loop, with turn and cost budgets and write gates set in the harness[4]; each turn the model emits a batch of tool calls, the harness runs them in parallel and returns raw results to the same model, and the loop stops when the model answers or hits a budget, with an optional verifier check.

Read the original claude.comDiscussion

Discussion

The comments are mostly links: one points to the guide itself, another notes the article was already discussed in a Reddit thread about Anthropic's October 22 guide on agents.

Sources

  • Claude

    Author: u/gwern

    "Building agents: When to fold subagents into your main agent loop", Anthropic ("a single agent with skills frequently outperformed both the one-prompt-for-everything design and the subagent design on quality, and often at a lower cost and latency per task")

  • claude.com

    Building agents: When to fold subagents into your main agent loop

    6 mentions3 communities2 countries

Earlier in this story

  1. Anthropic recommends folding subagents into a single main agent loop

The whole story · 2 →

Published: First seen: Читать по-русски

Open as a page