Build AI Agent Teams with Claude Code Track
Module 2 of 8
Building Your First Subagent
The .claude/agents/ directory, YAML frontmatter, tool restrictions, foreground vs background, and the built-in subagent types.
16 min read
What You'll Learn
- Set up the .claude/agents/ directory and create a subagent definition file with proper YAML frontmatter
- Configure subagent fields including name, description, tools, model, permissionMode, and maxTurns
- Explain the built-in subagent types (Explore, Plan, General-purpose) and when to use each one
- Build and test a working code reviewer subagent from scratch
Unlock All Free Modules
Enter your email to continue learning. You'll get access to all all modules across every track, completely free.
All modules freeNo credit card required
No spam, unsubscribe anytime. Privacy Policy