Week 10 of 12 ðŸĪ–

Subagents & Task Delegation

Subagents āđāļĨāļ°āļāļēāļĢāļĄāļ­āļšāļŦāļĄāļēāļĒāļ‡āļēāļ™

Subagents & Task Delegation

1. Introduction / āļšāļ—āļ™āļģ

Subagents āļ„āļ·āļ­āļœāļđāđ‰āļŠāđˆāļ§āļĒ AI āđ€āļ‰āļžāļēāļ°āļ—āļēāļ‡āļ—āļĩāđˆ Claude āļŠāļĢāđ‰āļēāļ‡āļ‚āļķāđ‰āļ™āđ€āļžāļ·āđˆāļ­āļˆāļąāļ”āļāļēāļĢāļ‡āļēāļ™āđ€āļ‰āļžāļēāļ° āļ›āļĢāļ°āđ€āļ āļ—āđƒāļ™āļ•āļąāļ§ āđ„āļ”āđ‰āđāļāđˆ Explore (āļ„āđ‰āļ™āļŦāļēāđ€āļĢāđ‡āļ§), Plan (āļŠāļ–āļēāļ›āļąāļ•āļĒāļāļĢāļĢāļĄ) āđāļĨāļ° general-purpose (āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĄāļ·āļ­āļ„āļĢāļš) āļ„āļļāļ“āļĒāļąāļ‡āļŠāļĢāđ‰āļēāļ‡ subagents āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļ­āļ‡āļŠāļģāļŦāļĢāļąāļšāđ‚āļ›āļĢāđ€āļˆāļāļ•āđŒāđ„āļ”āđ‰
Subagents are specialized AI assistants that Claude can spawn to handle specific tasks. Built-in types include Explore (fast search), Plan (architecture), and general-purpose (full tools). You can also create custom subagents for your project.

Fun Facts / āļ‚āđ‰āļ­āđ€āļ—āđ‡āļˆāļˆāļĢāļīāļ‡āļ—āļĩāđˆāļ™āđˆāļēāļŠāļ™āđƒāļˆ

  • Explore agents use Haiku for speed — they're read-only!
  • Custom subagents are defined as Markdown files with frontmatter.
  • Background agents auto-approve permissions so they don't block.

2. Vocabulary / āļ„āļģāļĻāļąāļžāļ—āđŒ

Click a card to flip it. āļ„āļĨāļīāļāļāļēāļĢāđŒāļ”āđ€āļžāļ·āđˆāļ­āļžāļĨāļīāļ

agent
āđ€āļ­āđ€āļˆāļ™āļ•āđŒ
An AI assistant that works on tasks
subagent
āļ‹āļąāļšāđ€āļ­āđ€āļˆāļ™āļ•āđŒ
A helper agent spawned by the main agent
delegate
āļĄāļ­āļšāļŦāļĄāļēāļĒ
To give a task to someone else
parallel
āļ‚āļ™āļēāļ™
Running multiple tasks at the same time
background
āļžāļ·āđ‰āļ™āļŦāļĨāļąāļ‡
Running without blocking the main task
foreground
āđ€āļšāļ·āđ‰āļ­āļ‡āļŦāļ™āđ‰āļē
The currently active and visible task
worktree
āđ€āļ§āļīāļĢāđŒāļāļ—āļĢāļĩ
An isolated copy of a git repository
spawn
āļŠāļĢāđ‰āļēāļ‡ / āđ€āļĢāļĩāļĒāļ
To create a new subagent
isolation
āļāļēāļĢāđāļĒāļ
Keeping things separate to avoid conflicts
task
āļ‡āļēāļ™
A specific piece of work to be done
inherit
āļŠāļ·āļšāļ—āļ­āļ”
To receive settings from a parent
custom
āļāļģāļŦāļ™āļ”āđ€āļ­āļ‡
Created by the user for specific needs

3. Grammar Focus / āđ„āļ§āļĒāļēāļāļĢāļ“āđŒ

Passive Voice (is assigned, was completed) / Passive Voice (is assigned, was completed)

Thai:
Passive voice āđ€āļ™āđ‰āļ™āļāļēāļĢāļāļĢāļ°āļ—āļģāļŦāļĢāļ·āļ­āļœāļĨāļĨāļąāļžāļ˜āđŒ āđ„āļĄāđˆāđƒāļŠāđˆāļœāļđāđ‰āļ—āļģ āļĢāļđāļ›āđāļšāļš: be + āļāļĢāļīāļĒāļēāļŠāđˆāļ­āļ‡ 3 āļ•āļąāļ§āļ­āļĒāđˆāļēāļ‡: 'The task is assigned to a subagent.' (āđ„āļĄāđˆāđ€āļ™āđ‰āļ™āļ§āđˆāļēāđƒāļ„āļĢāļĄāļ­āļšāļŦāļĄāļēāļĒ) Active: 'Claude assigns the task.'
English:
Passive voice emphasizes the action or result, not who does it. Form: be + past participle. Example: 'The task is assigned to a subagent.' (We don't focus on who assigned it.) Active: 'Claude assigns the task.'
āļ‡āļēāļ™āļ–āļđāļāļĄāļ­āļšāļŦāļĄāļēāļĒāđƒāļŦāđ‰ subagent
The task is delegated to a subagent.
Custom agents āļ–āļđāļāļāļģāļŦāļ™āļ”āđƒāļ™āđ„āļŸāļĨāđŒ Markdown
Custom agents are defined in Markdown files.
āļœāļĨāļĨāļąāļžāļ˜āđŒāļ–āļđāļāļŠāđˆāļ‡āļ„āļ·āļ™āđ‚āļ”āļĒ Explore agent
The results were returned by the Explore agent.

Section Check 1

Which agent type is read-only?

Agent āļ›āļĢāļ°āđ€āļ āļ—āđƒāļ”āđ€āļ›āđ‡āļ™āđāļšāļšāļ­āđˆāļēāļ™āļ­āļĒāđˆāļēāļ‡āđ€āļ”āļĩāļĒāļ§?

Section Check 2

Which is passive voice?

āļ‚āđ‰āļ­āđƒāļ”āđ€āļ›āđ‡āļ™ passive voice?

Section Check 3

Where are custom agents defined?

Custom agents āļ–āļđāļāļāļģāļŦāļ™āļ”āļ—āļĩāđˆāđ„āļŦāļ™?

4. Tutorial Steps / āļ‚āļąāđ‰āļ™āļ•āļ­āļ™āļāļēāļĢāđ€āļĢāļĩāļĒāļ™āļĢāļđāđ‰

1
Use built-in agents / āđƒāļŠāđ‰ agents āđƒāļ™āļ•āļąāļ§
Ask Claude to 'use the Explore agent to find all API endpoints' — it spawns a fast search agent.
2
Create a custom agent / āļŠāļĢāđ‰āļēāļ‡ agent āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļ­āļ‡
Create .claude/agents/reviewer.md with name, description, and tool restrictions.
3
Run agents in background / āļĢāļąāļ™ agents āđƒāļ™āļžāļ·āđ‰āļ™āļŦāļĨāļąāļ‡
Set background: true in frontmatter, or press Ctrl+B during execution.
4
Configure agent tools / āļ•āļąāđ‰āļ‡āļ„āđˆāļēāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĄāļ·āļ­ agent
Use 'tools' for allowlist or 'disallowedTools' for denylist in frontmatter.
5
Manage with /agents / āļˆāļąāļ”āļāļēāļĢāļ”āđ‰āļ§āļĒ /agents
Type /agents to view, enable, or disable configured subagents.

5. Hands-On Activity / āļāļīāļˆāļāļĢāļĢāļĄāļĨāļ‡āļĄāļ·āļ­āļ—āļģ

āđāļšāļšāļāļķāļāļŦāļąāļ”: āļŠāļĢāđ‰āļēāļ‡ code-reviewer subagent āļ—āļĩāđˆāļĄāļĩāđ€āļ‰āļžāļēāļ°āđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĄāļ·āļ­ Read āđāļĨāļ° Grep āļ—āļ”āļŠāļ­āļšāđ‚āļ”āļĒāļ‚āļ­āđƒāļŦāđ‰ Claude āđƒāļŠāđ‰āļĄāļąāļ™āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ‚āļ„āđ‰āļ”
Practice: Create a custom code-reviewer subagent that only has Read and Grep tools. Test it by asking Claude to use it for a code review.

6. Reference Table / āļ•āļēāļĢāļēāļ‡āļ­āđ‰āļēāļ‡āļ­āļīāļ‡

Command / ToolEnglishāļ āļēāļĐāļēāđ„āļ—āļĒ
ExploreFast read-only search (Haiku)āļ„āđ‰āļ™āļŦāļēāđ€āļĢāđ‡āļ§āđāļšāļšāļ­āđˆāļēāļ™āļ­āļĒāđˆāļēāļ‡āđ€āļ”āļĩāļĒāļ§
PlanArchitecture researchāļ§āļīāļˆāļąāļĒāļŠāļ–āļēāļ›āļąāļ•āļĒāļāļĢāļĢāļĄ
general-purposeFull tools, complex tasksāđ€āļ„āļĢāļ·āđˆāļ­āļ‡āļĄāļ·āļ­āļ„āļĢāļš āļ‡āļēāļ™āļ‹āļąāļšāļ‹āđ‰āļ­āļ™
.claude/agents/Custom agent directoryāđ„āļ”āđ€āļĢāļāļ—āļ­āļĢāļĩ agent āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļ­āļ‡
/agentsManage agentsāļˆāļąāļ”āļāļēāļĢ agents

7. Summary / āļŠāļĢāļļāļ›

Subagents āļˆāļąāļ”āļāļēāļĢāļ‡āļēāļ™āđ€āļ‰āļžāļēāļ°āļ—āļēāļ‡ āļ›āļĢāļ°āđ€āļ āļ—āđƒāļ™āļ•āļąāļ§: Explore, Plan, general-purpose Custom agents āļ„āļ·āļ­āđ„āļŸāļĨāđŒ Markdown āđƒāļ™ .claude/agents/ Passive voice (be + āļāļĢāļīāļĒāļēāļŠāđˆāļ­āļ‡ 3) āđ€āļ™āđ‰āļ™āļāļēāļĢāļāļĢāļ°āļ—āļģāļĄāļēāļāļāļ§āđˆāļēāļœāļđāđ‰āļāļĢāļ°āļ—āļģ
Subagents handle specialized tasks. Built-in types: Explore, Plan, general-purpose. Custom agents are Markdown files in .claude/agents/. Passive voice (be + past participle) emphasizes actions over actors.

Homework / āļāļēāļĢāļšāđ‰āļēāļ™

1. āļŠāļĢāđ‰āļēāļ‡ subagent āļ—āļĩāđˆāļāļģāļŦāļ™āļ”āđ€āļ­āļ‡āļŠāļģāļŦāļĢāļąāļšāđ‚āļ›āļĢāđ€āļˆāļāļ•āđŒ
2. āđ€āļ›āļĢāļĩāļĒāļšāđ€āļ—āļĩāļĒāļš Explore, Plan āđāļĨāļ° general-purpose agents
3. āđ€āļ‚āļĩāļĒāļ™āļ›āļĢāļ°āđ‚āļĒāļ„ active 5 āļ›āļĢāļ°āđ‚āļĒāļ„āđƒāļŦāļĄāđˆāđ€āļ›āđ‡āļ™ passive voice
1. Create a custom subagent for your project.
2. Compare Explore, Plan, and general-purpose agents.
3. Rewrite 5 active sentences into passive voice.