Sub-agents are one of the most practical ways to get more out of longer Claude Code sessions. Sub-agents let you delegate tasks to isolated assistants that do their work separately and return just the information you need — keeping your main context window clean and your conversations focused.
In this course, learn how sub-agents work — what happens when Claude Code spins up a separate context window, how inputs flow in, and how summaries come back. Discover how to create custom sub-agents, using the /agents command to build sub-agents tailored to your workflow, from code reviewers to documentation generators. Find out how to design effective sub-agents — patterns that make sub-agents reliable, including structured output formats, obstacle reporting, and limiting tool access. Learn when to use them (and when not to) by reviewing practical guidance on where sub-agents help the most and the common anti-patterns to avoid. By the end of this course, you’ll be prepared to break complex work into focused pieces, build sub-agents that finish on time and report back clearly.






