Sub-Agents in Claude Code – Context, Delegation, and Focus By the end of this lesson, students should be able to: The complete delegation structure. An effective sub-agent task delegation has five components: Goal specification. Vague: "Review the authentication code." Specific: "Identify all places in The specific goal gives the sub-agent a precise success criterion. The vague goal produces a general "review" with no defined scope of findings. Output format specification. Standardized output format enables the parent to aggregate findings from multiple sub-agents without reformatting: Return your findings as a list in this format: If no issues are found, return: "No issues found in scope." When multiple sub-agents return findings in the same format, the parent can concatenate and sort without parsing. Background – what the sub-agent needs to know. Provide only project-specific context the sub-agent cannot get from CLAUDE.md alone: Stop conditions. 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 3: Delegating Tasks Effectively to Sub-Agents
Lesson Objectives
Lesson Content
src/auth/ where session tokens are stored or transmitted without encryption – return file, line number, and a description of the vulnerability."
– File: `[file path]` | Line: [line number] | Severity: [High/Medium/Low] | Issue: [one sentence]
