Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Create custom subagents changedsub-agents

Nearest release: v2.1.335, published 6 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 3 Dec 2026 04:04 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 3 Dec 2026 04:07 UTC.

Upstream edited
Recorded here
Lines+7added
Lines−3removed
From line 470 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits128to this page, all time

The whole hunk

from line 470, old and new numbered
/
lines
from line 470
470470 
471471#### Restrict which tools a subagent can use
472472 
473To restrict tools, use the `tools` field as an allowlist or the `disallowedTools` field as a denylist. If both are set, `disallowedTools` is applied first, then `tools` is resolved against the remaining pool. A tool listed in both is removed.
473To restrict a subagent's tools, use the `tools` or `disallowedTools` field. If both are set, `disallowedTools` is applied first, then `tools` is resolved against the remaining pool. A tool listed in both is removed.
474474 
475This example uses `tools` to allow only Read, Grep, Glob, and Bash. The subagent can still change files through Bash:
475This example sets `tools` to Read, Grep, Glob, and Bash. The subagent can still change files through Bash:
476476 
477477```yaml theme={null}
478478---
from line 896
896896Subagents from an enabled [plugin](https://code.claude.com/docs/en/plugins/overview.md) appear in the typeahead under their scoped name, such as `my-plugin:code-reviewer` or `my-plugin:review:security` when the plugin [organizes agents into subfolders](#choose-the-subagent-scope).
897897 
898898You can also type the mention manually without using the picker: `@agent-<name>` for local subagents, or `@agent-` followed by the scoped name for plugin subagents, for example `@agent-my-plugin:code-reviewer`. While you type this form the typeahead shows file matches rather than agents. The agent mention still resolves when you submit.
899 
900> [!NOTE]
901>
902> In a local Desktop session, if you type `@` and select a user-level subagent before your first message, the [whole session runs](https://code.claude.com/docs/en/desktop.md#cli-flag-equivalents) with that subagent's system prompt and tool restrictions.
899903 
900904**Run the whole session as a subagent.** Pass [`--agent <name>`](https://code.claude.com/docs/en/cli-reference) to start a session where the main thread itself takes on that subagent's tool restrictions and model:
901905 
Feedback