Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.332, 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 25 Nov 2026 00:26 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 25 Nov 2026 00:37 UTC.
Upstream edited
Recorded here
Lines+3added
Lines−1removed
From line
2,084
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits149to this page, all time
The whole hunk
from line 2084, 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 2084
20842084 | "org_config_required_unavailable"
20852085 | "org_config_refused"
20862086 | "sandbox_required_unavailable"
2087 | "config_file_invalid";
2087 | "config_file_invalid"
2088 | "sideload_flags_disabled";
20882089```
20892090
20902091Each value names one refusal:
from line 2113
21122113| `org_config_refused` | Anthropic refused to provide the organization's policies and managed settings for this sign-in, for example because the sign-in expired or was revoked, or the organization doesn't allow Claude Code for this account. Requires Agent SDK v0.3.293 or later |
21132114| `sandbox_required_unavailable` | [`failIfUnavailable`](#sandboxsettings) is on and the sandbox can't start. The text in `errors` ends with `Set sandbox.failIfUnavailable=false to allow unsandboxed execution.` Requires Agent SDK v0.3.314 or later |
21142115| `config_file_invalid` | `~/.claude.json` isn't valid JSON. Claude Code leaves the file unchanged, so a retry fails the same way until someone repairs it. `errors` names the file and says how to restore or repair it. See [Configuration error in \~/.claude.json](https://code.claude.com/docs/en/errors.md#configuration-error-in-claude-json). Requires TypeScript Agent SDK v0.3.318 or later and Claude Code v2.1.318 or later |
2116| `sideload_flags_disabled` | A flag or launch option violates managed [`disableSideloadFlags`](https://code.claude.com/docs/en/settings-reference#disablesideloadflags). Requires TypeScript Agent SDK v0.3.331 or later and Claude Code v2.1.331 or later |
21152117
21162118### `SDKSystemMessage`
21172119
from line 4677
46754677 id: string;
46764678 subject: string;
46774679 status: "pending" | "in_progress" | "completed";
4678 owner?: string;
4679 blockedBy: string[];
4680 }>;
4681};
4682```
4683
4684Returns a snapshot of all tasks in the current list.
4685
4686### ExitPlanMode
4687
4688**Tool name:** `ExitPlanMode`
4689
4690```typescript theme={null}
4691type ExitPlanModeOutput = {
4692 plan: string | null;
4693 isAgent: boolean;
4694 filePath?: string;
4695 hasTaskTool?: bool
4680 owner?: strin
No line in this hunk matches that.