The Research Report
Claude Code's Custom Subagents Turn One Agent Into a Team
Anthropic shipped Claude Code v1.0.60 on July 25, 2025. The version number looks small. The change is not.
For the first time, developers can define custom subagents inside Claude Code. Each subagent gets its own context window, its own system prompt, and its own set of allowed tools. The main agent delegates work to them. They do the work. They return a summary. The main conversation stays clean.
This is the supervisor-worker pattern, built natively into the coding agent. No hacks. No subprocess orchestration. No duct tape.
What shipped
The release introduced the /agents command. Type it in any Claude Code session and you can create a subagent in seconds. A subagent is just a Markdown file with YAML frontmatter. You define a name, a description, a list of allowed tools, and a system prompt. That is the entire specification.
Claude Code ships with three built-in subagents:
- Explore - Read-only codebase search and analysis. Cannot write or edit files.
- Plan - Research agent for plan mode. Gathers context before presenting a plan.
- General-purpose - Full tool access for complex multi-step tasks.
You can use the built-ins or write your own. Project-specific agents live in .claude/agents/. User-level agents live in your home directory and work across projects. Both are just text files.
Why isolated context windows matter
This is the core innovation. Every subagent runs in its own context window. The main conversation does not see what the subagent did. The subagent does not see the main conversation's history.
Before this release, spawning helper agents in Claude Code meant passing the entire conversation context to each one. A 50,000-token conversation spawned across four agents burned 200,000+ tokens. Each agent got your debugging history, your tangential research, your unrelated code discussions. Everything. Whether the agent needed it or not.
The new architecture filters context to what the task requires. A security review agent analyzing bash commands gets 500 tokens of relevant context. Not your entire afternoon of trial and error.
One developer reported roughly 70% token reduction compared to the old subprocess approach. Each subagent carries about 13K tokens of overhead. That is not trivial. But it beats inheriting 50K tokens of conversation history by a wide margin.
The savings compound as conversations grow longer. What became prohibitively expensive at the one-hour mark now scales. You can run specialized agents throughout a development cycle without watching your token quota evaporate.
How delegation works
Claude uses each subagent's description to decide when to delegate. Write a clear description and Claude routes correctly. Write a vague one and it guesses wrong.
You can also force delegation by name. Tell the main agent to use a specific subagent and it complies. This gives you direct control when the automatic routing misses.
The flow looks like this:
- You submit a task to the main agent
- The main agent acts as a router, picking the right subagent
- The subagent works in its own context with its own tools
- The subagent returns a summary to the main agent
- The main agent reviews and continues
Up to 10 subagents can run concurrently. The main agent coordinates. You stay in charge.
Tool permissions: the right scope for each job
Each subagent gets a defined set of tools. A research agent gets read-only access. An implementation agent gets write and edit permissions. A documentation agent gets read access plus write access to docs only.
This prevents accidents. Your code explorer cannot delete files. Your test runner cannot modify source code. Your security analyzer cannot push to git.
Tool scopes also enforce discipline. When you define a subagent, you are forced to think about what that agent actually needs. That act alone makes your workflow cleaner.
Real-world use cases
Developers started using subagents within hours of the release. The patterns that emerged:
Large-scale refactoring. One developer processing 300+ files delegated each file to a subagent. Each file got its own context. Histories never mixed. The main session looped over the file list and dispatched. Claude Code launched five subagents in parallel without being asked. Processing sped up. Token usage sped up too.
Research-first development. A research agent analyzes the codebase and creates a specification. An engineer agent receives that specification plus relevant code patterns. A QA agent gets the implementation plus test requirements. A documentation agent writes the docs. Each handoff includes only what the next stage needs.
Security review pipelines. A security agent gets bash commands and function signatures. Not your debugging session from last Tuesday. It reviews. It flags issues. It returns a report. The main agent decides what to fix.
Codebase exploration. The built-in Explore agent searches and analyzes without touching files. It keeps exploration results out of your main conversation. Your context stays focused on the task at hand.
The trade-offs
Subagents are not free. Each one carries overhead. Parallel execution burns tokens faster per wall-clock minute. One developer hit the Pro plan usage limit in 15 minutes with five parallel subagents. Sequential processing took 30 minutes but stayed within limits.
The math is simple. Parallelism means more agents running at once. More agents means more tokens per minute. Your quota drains proportionally.
Context filtering helps. But the 13K per-agent overhead is real. For small tasks, spawning a subagent costs more than doing the work inline. The benefit shows on complex, multi-step work where context pollution would otherwise kill productivity.
What this means for multi-agent coding
Claude Code's subagents represent a shift from single-agent coding to distributed AI development. The patterns echo microservices architecture. Isolated components. Scoped permissions. Clear interfaces between agents.
The implications go beyond Claude Code. Every major coding agent tool now faces the same question: how do you manage multiple specialized agents without context bloat? Anthropic's answer is native, simple, and text-file-based. Define an agent in Markdown. Delegate by description. Isolate by default.
Developers are already asking what comes next. Should agents communicate through something richer than summary handoffs? Should they get a shared board? A message queue? Will multi-agent patterns recapitulate the history of software engineering practices?
Those questions will take time to answer. What is clear today: Claude Code v1.0.60 made multi-agent coding practical. Not theoretical. Not experimental. Practical. The subagents are here. They work. They save tokens. They keep context clean.
The version bump looked incremental. The architecture is not.