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.238, published 10 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+8added
Lines−1removed
From line 401 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 401, 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 401
401401| Property | Type | Default | Description |
402402| :-------------------------------- | :------------------------------------------------------------------------------------------------------- | :------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
403403| `abortController` | `AbortController` | `new AbortController()` | Controller for cancelling operations |
404| `additionalDirectories` | `string[]` | `[]` | Additional directories Claude can access |
404| `additionalDirectories` | `string[]` | `[]` | Additional directories Claude can access. The SDK passes each entry to Claude Code as `--add-dir`, so with the `project` setting source Claude Code also [loads the directory's skills, commands, and subagents](/docs/en/permissions#additional-directories-grant-file-access-not-configuration) |
405405| `agent` | `string` | `undefined` | Agent name for the main thread. The agent must be defined in the `agents` option or in settings |
406406| `agents` | `Record<string, [`AgentDefinition`](#agentdefinition)>` | `undefined` | Programmatically define subagents |
407407| `agentProgressSummaries` | `boolean` | `false` | When `true`, generate one-line progress summaries for subagents and forward them on [`task_progress`](#sdktaskprogressmessage) events via the `summary` field. Applies to foreground and background subagents |
from line 2222
22222222 | {
22232223 hookEventName: "PostToolUse";
22242224 additionalContext?: string;
2225 /**
2226 * Short note about this tool call's result for the auto mode
2227 * permission classifier. Capped at 2000 characters, shared across
2228 * all hooks that respond to the same call; honored on synchronous
2229 * hook responses only. Don't copy untrusted tool output into it.
2230 */
2231 classifierContext?: string;
22252232 updatedToolOutput?: unknown;
22262233 /** @deprecated Use `updatedToolOutput`, which works for all tools. */
22272234 updatedMCPToolOutput?: unknown;
from line 4228
42214228```typescript theme={null}
42224229type McpServerStatus = {
42234230 name: string;
4224 status: "connected" | "failed" | "needs-auth" | "pending" | "disabled";
4225 serverInfo?: {
4226 name: string;
4227 version: string;
4228 };
4229 error?: string;
4230 config?: McpServerStatusConfig;
4231 scope?: string;
4232 tools?: {
4233 name: string;
4234 description?: string;
4235 annotations?: {
4236 readOnly?: boolean;
4237 destructive?: boolean;
4238 openWorld?: boolean;
4239 };
4240 }[];
4241};
4242```
4243 
4244### `
4231 status: "connected" | "failed
Feedback