What are subagents?
Custom subagents in Claude Code are specialized AI assistants that can be invoked to handle specific types of tasks. They enable more efficient problem-solving by providing task-specific configurations with customized system prompts, tools and a separate context window.
Subagents are pre-configured AI personalities that Claude Code can delegate tasks to. Each subagent:
• Has a specific purpose and expertise area
• Uses its own context window separate from the main conversation
• Can be configured with specific tools it’s allowed to use
• Includes a custom system prompt that guides its behavior
When Claude Code encounters a task that matches a subagent’s expertise, it can delegate that task to the specialized subagent, which works independently and returns results. (View Highlight)