Agent SDK reference - Python changedagent-sdk/python
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+2added
Lines−2removed
From line
1,147
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits93to this page, all time
The whole hunk
from line 1147, old and new numbered
/
from line 1147
11471147| :- | :- | :- |
11481148| `description` | Yes | Natural language description of when to use this agent |
11491149| `prompt` | Yes | The agent's system prompt |
1150| `tools` | 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) |
1150| `tools` | No | Array of tool names available to this agent. If omitted, inherits every [tool available to subagents](https://code.claude.com/docs/en/sub-agents.md#available-tools) |
11511151| `disallowedTools` | 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 |
11521152| `model` | No | Model override for this agent. Accepts an alias such as `"sonnet"`, `"opus"`, `"haiku"`, or `"inherit"`, or a full model ID. When you omit it, Claude Code picks the model in the [subagent model order](https://code.claude.com/docs/en/sub-agents.md#choose-a-model) |
11531153| `skills` | No | List of skill names to preload into the agent's context at startup. Unlisted skills remain invocable through the Skill tool |
11541154| `memory` | No | Memory source for this agent: `"user"`, `"project"`, or `"local"` |
1155| `mcpServers` | No | MCP servers available to this agent. Each entry is a server name or an inline `{name: config}` dict |
1155| `mcpServers` | No | MCP servers to add to any that this agent inherits. Each entry is a server name or an inline `{name: config}` dict |
11561156| `initialPrompt` | No | Auto-submitted as the first user turn when this agent runs as the main thread agent |
11571157| `maxTurns` | No | Maximum number of agentic turns before the agent stops |
11581158| `background` | No | Run this agent as a non-blocking background task when invoked |
No line in this hunk matches that.