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.300, published 2 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 14 Oct 2026 16:42 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 17:07 UTC.

Upstream edited
Recorded here
Lines+2added
Lines−0removed
From line 1,102 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 1102, 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 1102
11021102 skills?: string[];
11031103 initialPrompt?: string;
11041104 maxTurns?: number;
1105 autoCompactWindow?: number;
11051106 background?: boolean;
11061107 omitClaudeMd?: boolean;
11071108 memory?: "user" | "project" | "local";
from line 1123
11221123| `skills` | No | Array of skill names to preload into the agent context |
11231124| `initialPrompt` | No | Auto-submitted as the first user turn when this agent runs as the main thread agent |
11241125| `maxTurns` | No | Maximum number of agentic turns (API round-trips) before stopping |
1126| `autoCompactWindow` | No | Lower the [auto-compact window](/docs/en/sub-agents#subagent-auto-compact-window) for this agent when it runs as a subagent, to a token count from `100000` to `1000000`. Requires TypeScript Agent SDK v0.3.296 or later |
11251127| `background` | No | Run this agent as a non-blocking background task when invoked |
11261128| `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 |
11271129| `memory` | No | Memory source for this agent: `'user'`, `'project'`, or `'local'` |
from line 5268
52665268 
52675269Claude Code prepends a notice to every task notification it sends to the model, except deliveries stamped with the [`scheduled-trigger` subkind](#task-notification-subkinds), which carry an assigned-task framing instead. The notice states that no human input has occurred, so the model doesn't treat the notification as a user instruction or approval.
52685270 
5269To detect a task-notification turn, check `origin.kind === "task-notification"` on the [`SDKUserMessage`](#sdkusermessage) or [`SDKResultMessage`](#sdkresultmessage) rather than matching on the notice text. Read `subkind` from the same field if you need to know what raised it. Before v2.1.205, Claude Code left the notice off notifications that arrived while the session was idle.
5270 
5271### `SDKToolUseSummaryMessage`
5272 
5273Summary of tool usage in a conversation.
5274 
5275```typescript theme={null}
5276type SDKToolUseSummaryMessage = {
5277 type: "tool_use_summary";
5278 summary: string;
5279 preceding_tool_use_ids: str
5271To detect a task-notification turn, check `origin.kind === "task-notification"` on the [`SDKUserMessage`](#sdkusermessage) or [`SDKResultMessage`](#sdkresultmessage) rather than matching on the notice text. Read `subkind` from the same field if you need to know what raised it. Before v2.1.205, Claude Code left the
Feedback