Examples · claude code subagents examples
Claude Code subagents examples for real projects
Use subagents for code review, QA, research, security checks and focused implementation without losing project context.
Quick answer
Subagents are useful when one specialist lens improves the main task: review the diff, inspect security, test behavior, research docs or verify UX.
Best examples
Create subagents for review, QA, security, docs lookup, product copy and performance checks. Keep each one narrow enough to return actionable findings.
Failure mode
Too many subagents create noise. Use them when the task benefits from a distinct point of view, not for every file edit.
FAQ
When should I use a subagent?
Use one when a specialized review or research pass can catch issues the main implementation loop may miss.