Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.286, published under an hour after 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 30 Sep 2026 17:02 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 30 Sep 2026 17:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
262
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits70to this page, all time
The whole hunk
from line 262, old and new numbered
/
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 262
262262| `summary` | `string` | Display title: custom title, most recent prompt, auto-generated summary, or first prompt |
263263| `lastModified` | `number` | Last modified time in milliseconds since epoch |
264264| `fileSize` | `number \| undefined` | Session file size in bytes. Only populated for local JSONL storage |
265| `customTitle` | `string \| undefined` | User-set session title (via `/rename`) |
265| `customTitle` | `string \| undefined` | The session's custom title when one is set, for example with `--name`, `/rename`, a hook's `sessionTitle` output, or [`renameSession()`](#renamesession). Otherwise the AI-generated session title, if the session has one |
266266| `firstPrompt` | `string \| undefined` | First meaningful user prompt in the session |
267267| `gitBranch` | `string \| undefined` | Git branch at the end of the session |
268268| `cwd` | `string \| undefined` | Working directory for the session |
from line 1147
11471147 | "bypassPermissions" // Bypass permission checks; explicit ask rules still prompt
11481148 | "plan" // Planning mode - explore without editing
11491149 | "dontAsk" // Don't prompt for permissions, deny if not pre-approved
1150 | "auto"; // Model classifier approves or denies permission prompts
1150 | "auto"; // A model classifier reviews actions such as shell commands and network requests
11511151```
11521152
11531153### `CanUseTool`
from line 5491
54915491
54925492### `SandboxNetworkConfig`
54935493
5494Network-specific configuration for sandbox mode. These settings apply to sandboxed Bash commands when `enabled` is `true` in the parent [`SandboxSettings`](#sandboxsettings). They do not restrict the WebFetch tool, which uses [permission rules](/docs/en/permissions#webfetch) instead.
5495
5496```typescript theme={null}
5497type SandboxNetworkConfig = {
5498 allowedDomains?: string[];
5499 deniedDomains?: string[];
5500 strictAllowlist?: boolean;
5501 allowM
5494Network-specific configuration for sandbox mode. These settings apply to sandboxed Bash commands when `enabled` is `true` in the parent [`SandboxSettings`](#sandboxsettings). They do not restrict the WebFetch tool, which uses [permis
No line in this hunk matches that.