Claude Subagents
Claude Subagents are specialized assistants inside one Claude Code session. Official docs say to use one when a side task would flood the main transcript with search hits, logs, or file dumps you will not need again. The subagent works in its own context window with a custom system prompt, tool access, and permissions, then returns a summary. Define a custom subagent when you keep spawning the same kind of worker.
Docs distinguish subagents from larger parallelism: background agents / agent view for many independent sessions, cross-session messaging, and agent teams. Do not treat the old "256K windows and 90%+ gains" line as current first-party spec. Use the live subagent guide.
Key Features
- Isolated context: Research stays out of the parent thread.
- Custom prompt, tools, permissions: Restrict what a worker can touch, including MCP scope.
- Built-in types: Docs still describe built-in subagents plus user-defined ones.
- Persistent memory option: Frontmatter can enable memory for repeat workers.
- Single-session scope: For many sessions on one screen, use agent view, not more subagents.
Use Cases
- Codebase explore that would otherwise dump hundreds of files into chat.
- Constrained implementers that may edit only a directory.
- Review workers that return findings without keeping the raw diff in the parent.
Pricing
Subagents consume the same Claude Code session and model usage. Extra workers cost extra tokens. There is no separate subagent SKU. Recheck claude.com/pricing.
Getting Started
- Read Create custom subagents.
- Add a subagent file in the scope the docs describe (project or user).
- Give it a tight tool list before you let it edit.
- If you need many parallel checkouts, switch to worktrees or agent view.
Frequently Asked Questions
Is this a multi-agent product?
It is workers inside one session. Teams and background agents are separate official features.
Can I pin a model per subagent?
Yes. The configure section includes choosing a model.
90% faster?
That was earlier marketing in our old entry. Official docs now talk about context savings, not a single percentage.
Alternatives
- Claude Skills: Reusable procedures, optionally run inside a subagent.
- Claude Code: Agent view and teams for bigger parallelism.
- Codex CLI: OpenAI's own subagent/session model.
Tips
- Return summaries only. If the parent needs the file, the worker failed.
- Preload a skill into a subagent instead of pasting a novel into its prompt.
- Recheck built-in names. Anthropic has been renaming explore/plan workers.
Conclusion
Subagents keep Claude Code's main thread readable. Start from the subagent docs, isolate one research job, then add permissions.
Comments
No comments yet. Be the first to comment!
Related Tools
Claude Skills
code.claude.com/docs/en/skills
Claude Code skills are SKILL.md packages that extend the agent on demand. Custom slash commands merged into skills; follows the Agent Skills standard.
Claude Code
code.claude.com/docs/en/overview
Anthropic's agentic coding tool for terminal, IDE, desktop, and browser. Reads the repo, edits files, runs commands, and connects MCP, skills, and hooks.
Claude Plugins
code.claude.com/docs/en/discover-plugins
Versioned Claude Code bundles of skills, agents, hooks, and MCP. Install from the official marketplace with /plugin or enabledPlugins.
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
Claudesidian: Transform Obsidian into an AI-Powered Second Brain
Discover Claudesidian, an open-source project that perfectly integrates Obsidian with Claude Code. Built-in PARA method, custom commands, and automated workflows for a complete idea-to-implementation solution.
Stop Cramming AI Assistants into Chat Boxes: Clawdbot Picked the Wrong Battlefield
Clawdbot is convenient, but putting it inside Slack or Discord was the wrong design choice from day one. Chat tools are not for operating tasks, and AI isn't for chatting.