Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Subagents in the SDK changedagent-sdk/subagents

Nearest release: v2.1.329, published 4 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 19 Nov 2026 23:07 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 19 Nov 2026 23:37 UTC.

Upstream edited
Recorded here
Lines+4added
Lines−6removed
From line 44 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 44, old and new numbered
/
lines
from line 44
4444 prompt="Review the authentication module for security issues",
4545 options=ClaudeAgentOptions(
4646 # Auto-approve these tools
47 allowed_tools=["Read", "Grep", "Glob", "Agent"],
47 allowed_tools=["Read", "Grep", "Glob", "Agent", "Bash(npm test *)"],
4848 agents={
4949 "code-reviewer": AgentDefinition(
5050 # description tells Claude when to use this subagent
from line 93
9393 prompt: "Review the authentication module for security issues",
9494 options: {
9595 // Auto-approve these tools
96 allowedTools: ["Read", "Grep", "Glob", "Agent"],
96 allowedTools: ["Read", "Grep", "Glob", "Agent", "Bash(npm test *)"],
9797 agents: {
9898 "code-reviewer": {
9999 // description tells Claude when to use this subagent
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. 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 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) |
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 |
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 only those. A code reviewer that should never edit files, for example, gets `["Read", "Grep", "Glob"]`
560 
561A tool you leave out isn't in the subagent's session at all: Claude works without it, with no permission prompt or error.
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"]`
562560 
563561This example creates a read-only analysis agent that can examine code but can't modify files or run commands.
564562 
Feedback