Subagents in the SDK changedagent-sdk/subagents
Nearest release: v2.1.326, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 16 Nov 2026 21:01 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 16 Nov 2026 21:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−4removed
From line
207
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits31to this page, all time
The whole hunk
from line 207, old and new numbered
/
from line 207
207207
208208### Automatic invocation
209209
210Claude automatically decides when to invoke subagents based on the task and each subagent's `description`. For example, if you define a `performance-optimizer` subagent with the description "Performance optimization specialist for query tuning", Claude will invoke it when your prompt mentions optimizing queries.
210Claude automatically decides when to invoke subagents based on the task and each subagent's `description`. For example, a `performance-optimizer` subagent with the description "Performance optimization specialist for query tuning" fits a prompt about optimizing queries.
211211
212212Write clear, specific descriptions so Claude can match tasks to the right subagent.
213213
214214### Explicit invocation
215215
216To guarantee Claude uses a specific subagent, mention it by name in your prompt:
216To ask for a specific subagent, mention it by name in your prompt:
217217
218218```text theme={null}
219219"Use the code-reviewer agent to check the authentication module"
220220```
221
222This bypasses automatic matching and directly invokes the named subagent.
223221
224222### Forked subagents
225223
No line in this hunk matches that.