Sub-Agents in Claude Code – Context, Delegation, and Focus By the end of this lesson, students should be able to: What sub-agents are. Sub-agents are separate Claude Code agent instances spawned by a parent agent (or the user). Each sub-agent has its own context window – its own focused conversation history and working state. A sub-agent completes a scoped task and returns results to the parent, which uses them to continue the larger workflow. Why context management drives sub-agent use. A Claude Code agent session's context window is finite. In a long, complex session: Sub-agents address this by giving each domain or phase its own focused context: Tasks appropriate for sub-agents. Tasks NOT appropriate for sub-agents. Sub-agents add overhead: spawning, context transfer, result aggregation. Use them when the context management benefit outweighs the overhead. Enroll to continue this lesson. The preview above shows the lesson objectives and opening lesson content. Enroll to view the full lesson, complete the practice work, and take the lesson quiz.
Lesson 1: What Sub-Agents Are and Why Context Management Matters
Lesson Objectives
Lesson Content
