Subagents
Subagents
Subagents are specialized AI assistants that handle specific types of tasks. Claude will delegate tasks to an agent based on the agent's description. Subagents run within a single session and can only report back to the main agent.
Each subagent runs in its own: context window with a custom system prompt, specific tool access, independent permissions.
Claude Code includes several built-in subagents (always available): claude-code-guide (haiku), Explore (haiku), general-purpose (inherit), Plan (inherit), statusline-setup (sonnet).
Related: Built-In Subagents, Custom Subagents, Agentic Loop