Equipping Claude Code
16. Subagents
Use subagents to parallelize complex tasks in Claude Code. Explore, Plan, and specialized agents.
1 min read
Subagents are isolated Claude instances with their own context. Useful for delegating heavy tasks without cluttering the main conversation.
Where to create: .claude/agents/name.yaml
Example — Code explorer agent
.claude/agents/explorer.yaml
name: explorer
description: Explora a codebase e gera relatorios de arquitetura
model: claude-sonnet-4-20250514
instructions: |
Voce e um explorador de codigo. Quando ativado:
1. Navegue pela estrutura de diretorios
2. Identifique patterns, dependencias e pontos de entrada
3. Gere um relatorio Markdown com:
- Arvore de diretorios resumida
- Stack identificada
- Dependencias principais
- Pontos de atencao
4. Salve o relatorio em docs/architecture-report.md
allowed_tools:
- Read
- Glob
- Grep
- Bash(ls)
- WritePremium Content
Unlock all 19 sections of the Claude Code Guide with lifetime access.
$57· Lifetime
What's included:
- 19 detailed sections, from setup to workflow
- Lifetime access with updates
- Practical examples and ready-to-use configs
- Bilingual support (PT-BR and EN)