Claude Code ships with built-in subagent types. I find each one has a clear home, so here's how to map them to tasks:
Bash handles terminal operations: running scripts, installing packages, executing commands.
Explore is optimized for fast codebase search. Use it when you need to find files, trace call chains, or understand structure.
general-purpose handles research, multi-step reasoning, and tasks that don't fit a narrow category.
Plan is for architecture and design work. Use it when you need a structured plan before writing code.