Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Agent SDK reference - TypeScript changedagent-sdk/typescript

Nearest release: v2.1.299, published an hour 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 14 Oct 2026 01:27 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 14 Oct 2026 01:37 UTC.

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

The whole hunk

from line 1117, old and new numbered
/
lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 1117
11171117| `initialPrompt` | No | Auto-submitted as the first user turn when this agent runs as the main thread agent |
11181118| `maxTurns` | No | Maximum number of agentic turns (API round-trips) before stopping |
11191119| `background` | No | Run this agent as a non-blocking background task when invoked |
1120| `omitClaudeMd` | No | Run this agent without the user, project, and local CLAUDE.md files when it runs as a subagent; managed policy files still load. Use it for agents that take everything they need from the Agent tool prompt. Ignored when this agent runs as the main thread agent. Requires TypeScript Agent SDK v0.3.271 or later |
1120| `omitClaudeMd` | No | Leave the user, project, and local CLAUDE.md files out of this agent's initial context; managed policy files still load. Use it for agents that take everything they need from the Agent tool prompt. Ignored when this agent runs as the main thread agent. Requires TypeScript Agent SDK v0.3.271 or later |
11211121| `memory` | No | Memory source for this agent: `'user'`, `'project'`, or `'local'` |
11221122| `effort` | No | Reasoning effort level for this agent. Accepts a named level or an integer |
11231123| `permissionMode` | No | Permission mode for tool execution within this agent. The [subagent inheritance rules](/docs/en/agent-sdk/permissions#available-modes) decide when it applies. See [`PermissionMode`](#permissionmode) |
from line 5285
52855285 hook_id: string;
52865286 hook_name: string;
52875287 hook_event: string;
5288 uuid: UUID
5288 uuid: UUID;
5289 sess
Feedback