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 8 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 05:54 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 06:07 UTC.

Upstream edited
Recorded here
Lines+6added
Lines−4removed
From line 77 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 77, old and new numbered
/
lines
from line 77
7777 
7878Built-in subagents are registered by default in interactive sessions. You can restrict them with a deny rule or an environment variable:
7979 
80* To block a specific built-in type, add it to `permissions.deny` as shown in [Disable specific subagents](#disable-specific-subagents).
81* To prevent Claude from delegating to any subagent, deny the `Agent` tool itself with [`permissions.deny`](https://code.claude.com/docs/en/permissions#tool-specific-permission-rules).
80* To stop Claude from starting a specific built-in subagent with the [Agent tool](https://code.claude.com/docs/en/tools-reference.md#agent-tool-behavior), add a deny rule as shown in [Disable specific subagents](#disable-specific-subagents).
81* To stop Claude from starting any subagent with the Agent tool, add the tool name `Agent` to the [`permissions.deny`](https://code.claude.com/docs/en/permissions#tool-specific-permission-rules) array.
8282* To remove only the built-in `Explore` and `Plan` subagents, set [`CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS=1`](https://code.claude.com/docs/en/env-vars). Claude reads and explores files directly instead of delegating to them. Requires Claude Code v2.1.198 or later.
8383* In [non-interactive mode](https://code.claude.com/docs/en/headless.md) and the [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md), set [`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1`](https://code.claude.com/docs/en/env-vars) to remove all built-in types and supply only your own.
8484 
from line 529
529529>
530530> In version 2.1.63, the Task tool was renamed to Agent. Existing `Task(...)` references in settings and agent definitions still work as aliases.
531531 
532This example names `worker` and `researcher` as the subagent types for the `coordinator` agent:
533 
532534```yaml theme={null}
533535---
534536name: coordinator
from line 539
537539---
538540```
539541 
540This is an allowlist: only the `worker` and `researcher` subagents can be spawned. If the agent tries to spawn any other type, the request fails and the agent sees only the allowed types in its prompt. To block specific agents while allowing all others, use [`permissions.deny`](#disable-specific-subagents) instead.
542To block specific agents while allowing all others, use [`permissions.deny`](#disable-specific-subagents) instead.
541543 
542544To allow spawning any subagent without restrictions, use `Agent` without parentheses:
543545 
from line 758
756758 
757759#### Disable specific subagents
758760 
759You can prevent Claude from using specific subagents by adding them to the `deny` array in your [settings](https://code.claude.com/docs/en/settings-reference.md#permission-settings). Use the format `Agent(subagent-name)` where `subagent-name` matches the subagent's name field.
761To stop Claude from starting specific subagents with the [Agent tool](https://code.claude.com/docs/en/tools-reference.md#agent-tool-behavior), add a rule for each to the `deny` array in your [settings](https://code.claude.com/docs/en/settings-reference.md#permission-settings). Use the format `Agent(subagent-name)` where `subagent-name` matches the subagent's name field.
760762 
761763```json theme={null}
762764{
Feedback