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

Subagents in the SDK changedagent-sdk/subagents

Nearest release: v2.1.334, 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 2 Dec 2026 01:25 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 2 Dec 2026 01:37 UTC.

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

The whole hunk

from line 140, old and new numbered
/
lines
from line 140
140140| :- | :- | :- | :- |
141141| `description` | `string` | Yes | Natural language description of when to use this agent |
142142| `prompt` | `string` | Yes | The agent's system prompt defining its role and behavior |
143| `tools` | `string[]` | No | Array of allowed tool names; listing one doesn't [pre-approve](https://code.claude.com/docs/en/agent-sdk/permissions.md#allow-and-deny-rules) it. If omitted, inherits every [tool available to subagents](https://code.claude.com/docs/en/sub-agents.md#available-tools) |
143| `tools` | `string[]` | No | Array of tool names available to this agent; listing one doesn't [pre-approve](https://code.claude.com/docs/en/agent-sdk/permissions.md#allow-and-deny-rules) it. If omitted, inherits every [tool available to subagents](https://code.claude.com/docs/en/sub-agents.md#available-tools) |
144144| `disallowedTools` | `string[]` | No | Array of tool names to remove from the agent's tool set. MCP server-level patterns are also accepted: `mcp__server` or `mcp__server__*` removes every tool from that server, and `mcp__*` removes every MCP tool from any server |
145145| `model` | `string` | No | Model override for this agent. Accepts an alias such as `'fable'`, `'opus'`, `'sonnet'`, `'haiku'`, `'inherit'`, or a full model ID. `'inherit'` uses the model of the agent that spawned this one. When you omit `model`, Claude Code picks the model in the [subagent model order](https://code.claude.com/docs/en/sub-agents.md#choose-a-model) |
146146| `skills` | `string[]` | No | List of skill names to preload into the agent's context at startup. At most the [first 32 distinct names](https://code.claude.com/docs/en/sub-agents.md#preload-skills-into-subagents) in the list are preloaded. Unlisted skills remain invocable through the Skill tool |
147147| `memory` | `'user' \| 'project' \| 'local'` | No | Memory source for this agent |
148| `mcpServers` | `(string \| object)[]` | No | MCP servers available to this agent, by name or inline config |
148| `mcpServers` | `(string \| object)[]` | No | MCP servers to add to any that this agent inherits, by name or inline config |
149149| `initialPrompt` | `string` | No | Auto-submitted as the first user turn when this agent runs as the main thread agent. Ignored when the agent is invoked as a subagent |
150150| `maxTurns` | `number` | No | Maximum number of agentic turns before the agent stops. When the agent reaches the limit, Claude Code returns its output marked as partial, and you can [resume the agent](#resume-subagents) to continue. The partial marking requires Claude Code v2.1.246 or later |
151151| `autoCompactWindow` | `number` | No | Lower the [auto-compact window](https://code.claude.com/docs/en/sub-agents.md#subagent-auto-compact-window) for this agent when it runs as a subagent, to a token count of `100000` or more. Requires TypeScript Agent SDK v0.3.296 or later. The Python SDK's [`AgentDefinition`](https://code.claude.com/docs/en/agent-sdk/python#agentdefinition) doesn't have this field |
from line 556
556556Use the `tools` field to limit what a subagent can do:
557557 
558558* **Omit `tools`**: the subagent gets every [tool available to subagents](https://code.claude.com/docs/en/sub-agents.md#available-tools)
559* **List tools**: the subagent gets those. With [`memory`](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) enabled, it also gets Read, Write, and Edit. A code reviewer that shouldn't edit files, for example, gets `["Read", "Grep", "Glob"]`
559* **List tools**: the subagent gets those. With [`memory`](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) enabled, it also gets Read, Write, and Edit. For a code reviewer that shouldn't edit files, list `["Read", "Grep", "Glob"]`
560560 
561561This example creates a read-only analysis agent that can examine code but can't modify files or run commands.
562562 
Feedback