Skip to content
Claude·Indexed by this site · Originally published· Tools →

Anthropic's guide to building agents: when to merge subagents into the main agent loop

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

AI summary

Anthropic's applied AI team, based on a comparison of multiple enterprise deployments, says that a single agent with skills often outperforms both the single-prompt and subagent-orchestration designs in quality, and often has lower cost and latency per task. One customer compared a multi-agent framework with a single-agent loop and measured the latter to run about 2 times faster. The article summarizes common failure modes of building agents in large organizations as subagent proliferation, conflicting system prompts, overly localized evaluation, and latency, advocates progressive context disclosure through skills and tool search, and mentions that Claude Code cut its system prompt by more than 80% for stronger models. On migration, it recommends first building end-to-end evaluations, then merging domain subagents by shared context, turning them into tool calls, or rewriting them as skills and MCP tools, along with releasing a migration kit and skills such as /claude-api build-eval, prompt-audit, hillclimb, and cost-optimize. The article also lists cases where subagents should still be kept, such as context bloat causing performance degradation, the need to process tasks in parallel, or a single agent having difficulty selecting the right tools.

Read originalclaude.com