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 operations
markdown
// 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

More AI tasks

Back to the full Claude Code cheat sheet