Subagents in AI
From the Claude Code cheat sheet ยท Advanced Features ยท verified Jul 2026
Subagents
Specialized agents for complex tasks
markdown
# List available subagents
/agents
# Built-in subagents:
- general-purpose # General tasks
- statusline-setup # Configure status line
- output-style-setup # Create output styles
# Custom subagent: .claude/agents/tester.md
---
name: tester
description: Run comprehensive tests
tools: Bash, Read, Write
---
Run all test suites and fix any failures
# Subagents enable:
- Parallel processing
- Specialized workflows
- Complex multi-step operationsmarkdown
// EXAMPLE: Complex refactoring with subagents
> "Refactor the entire authentication system to use OAuth"
Claude: I'll use multiple subagents for this:
- Agent 1: Update database schema
- Agent 2: Refactor backend API
- Agent 3: Update frontend components
- Agent 4: Update tests
[Agents work in parallel]๐ Subagents handle specific tasks
๐ Can work in parallel
๐ Define custom agents in .claude/agents/
agentsadvanced