SDK for building AI agents with Claude Code's capabilities. Programmatically interact with Claude to build autonomous agents that can understand codebases, edit files, and execute workflows.
Last release today
26 Aug 2026
Ships on a steady schedule
a new release about every 8 days
Nearly every release is documented
notes for 262 of 279 stable releases
Nothing withdrawn
no release was ever pulled
11 months old
279 releases · first in 2025
Release timeline
279 releases since 20252026
Releases
- 0.3.17916 Jun 2026
Release notes
Open source →What's changed
- Added optional
tool_use_metasidecar to assistant messages with display-friendly names for tool calls, so SDK consumers can render human-readable labels instead of raw wire names - Fixed
-pmode exiting before a completed background agent's notification was delivered, causing interim text to ship as the final result - Fixed remote (stream-json) sessions appearing busy for the entire duration of a background workflow — the turn result is now emitted at the turn boundary and the session reports idle while background tasks continue
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added optional
tool_use_metasidecar to assistant messages with display-friendly names for tool calls, so SDK consumers can render human-readable labels instead of raw wire names - Fixed
-pmode exiting before a completed background agent's notification was delivered, causing interim text to ship as the final result - Fixed remote (stream-json) sessions appearing busy for the entire duration of a background workflow — the turn result is now emitted at the turn boundary and the session reports idle while background tasks continue
- Added optional
- 0.3.17815 Jun 2026
Release notes
Open source →What's changed
- Spawn failures on an existing native binary now explain the likely libc mismatch (musl binary on a glibc host) and suggest
options.pathToClaudeCodeExecutable - Permission-denied advisory messages now carry typed denial reasons (
safetyCheck,asyncAgent), enabling SDK consumers to programmatically match denial causes - Fixed
UserPromptSubmithook block feedback not being emitted to the SDK event stream — consumers can now see why a prompt was blocked by a hook instead of a silent hang - Remote Control workers now send a
worker_shutting_downsystem message on graceful exit so remote clients can show why the session ended - Fixed MCP server-level specs (
mcp__server,mcp__server__*) indisallowedToolsbeing silently ignored — they now correctly remove all tools from the named server
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Spawn failures on an existing native binary now explain the likely libc mismatch (musl binary on a glibc host) and suggest
options.pathToClaudeCodeExecutable - Permission-denied advisory messages now carry typed denial reasons (
safetyCheck,asyncAgent), enabling SDK consumers to programmatically match denial causes - Fixed
UserPromptSubmithook block feedback not being emitted to the SDK event stream — consumers can now see why a prompt was blocked by a hook instead of a silent hang - Remote Control workers now send a
worker_shutting_downsystem message on graceful exit so remote clients can show why the session ended - Fixed MCP server-level specs (
mcp__server,mcp__server__*) indisallowedToolsbeing silently ignored — they now correctly remove all tools from the named server
- Spawn failures on an existing native binary now explain the likely libc mismatch (musl binary on a glibc host) and suggest
- 0.3.17713 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.177
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.17612 Jun 2026
Release notes
Open source →What's changed
- Fixed turn
resultmessages being dropped when multiple turns complete while a background agent or workflow is running - Fixed background agent, remote agent, and MCP task state not being restored when resuming a session via the SDK
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed turn
resultmessages being dropped when multiple turns complete while a background agent or workflow is running - Fixed background agent, remote agent, and MCP task state not being restored when resuming a session via the SDK
- Fixed turn
- 0.3.17512 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.175
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.17411 Jun 2026
Release notes
Open source →What's changed
- SDK consumers now receive the
system/model_fallbackmessage for all fallback triggers —overloaded,server_error, andlast_resortin addition tomodel_not_foundandpermission_denied— and the message'striggerfield gained theserver_errorandlast_resortvalues
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- SDK consumers now receive the
system/model_fallbackmessage for all fallback triggers —overloaded,server_error, andlast_resortin addition tomodel_not_foundandpermission_denied— and the message'striggerfield gained theserver_errorandlast_resortvalues
- SDK consumers now receive the
- 0.3.17311 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.173
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.17210 Jun 2026
Release notes
Open source →What's changed
- SDK
pluginsoption now acceptsskipMcpDiscovery: trueper plugin, so a host that manages a plugin's MCP connections itself can load skills/hooks from the plugin path without the engine re-reading its.mcp.json - Fixed slash-followed-by-whitespace input (e.g.
/ add tests) being silently dropped instead of treated as a plain prompt
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- SDK
pluginsoption now acceptsskipMcpDiscovery: trueper plugin, so a host that manages a plugin's MCP connections itself can load skills/hooks from the plugin path without the engine re-reading its.mcp.json - Fixed slash-followed-by-whitespace input (e.g.
/ add tests) being silently dropped instead of treated as a plain prompt
- SDK
- 0.3.1709 Jun 2026
Release notes
Open source →What's changed
- Added claude-fable-5 model and the fable alias to SDK model types. https://www.anthropic.com/news/claude-fable-5-mythos-5
- Updated to parity with Claude Code v2.1.170
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added claude-fable-5 model and the fable alias to SDK model types. https://www.anthropic.com/news/claude-fable-5-mythos-5
- Updated to parity with Claude Code v2.1.170
- 0.3.1698 Jun 2026
Release notes
Open source →What's changed
- Added an experimental
usage_EXPERIMENTAL_MAY_CHANGE_DO_NOT_RELY_ON_THIS_API_YET()method onQueryreturning structured session cost, plan rate-limit, and local usage-behaviors data - Added an
sseoption (SSEOptions) toBrowserQueryOptionsas an alternative towebsocket, for browser SDK consumers who prefer Server-Sent Events
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added an experimental
usage_EXPERIMENTAL_MAY_CHANGE_DO_NOT_RELY_ON_THIS_API_YET()method onQueryreturning structured session cost, plan rate-limit, and local usage-behaviors data - Added an
sseoption (SSEOptions) toBrowserQueryOptionsas an alternative towebsocket, for browser SDK consumers who prefer Server-Sent Events
- Added an experimental
- 0.3.1686 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.168
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.1676 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.167
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.1665 Jun 2026
Release notes
Open source →What's changed
- Fixed MCP resource tools not being injected for servers added at runtime via the
mcp_set_serverscontrol request
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed MCP resource tools not being injected for servers added at runtime via the
mcp_set_serverscontrol request
- Fixed MCP resource tools not being injected for servers added at runtime via the
- 0.3.1655 Jun 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.165
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.1634 Jun 2026
Release notes
Open source →What's changed
stop_taskcontrol requests now return success when the target task is already gone (not_foundornot_running), so SDK clients can reliably prune stale task chips- Fixed SDK hosts being unable to add builtin MCP servers (e.g.
claude-in-chrome) viasetMcpServerswhen the CLI was launched without them - Stop and SubagentStop hook events now support
additionalContextinhookSpecificOutput, enabling non-error feedback that continues the turn
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →stop_taskcontrol requests now return success when the target task is already gone (not_foundornot_running), so SDK clients can reliably prune stale task chips- Fixed SDK hosts being unable to add builtin MCP servers (e.g.
claude-in-chrome) viasetMcpServerswhen the CLI was launched without them - Stop and SubagentStop hook events now support
additionalContextinhookSpecificOutput, enabling non-error feedback that continues the turn
- 0.3.1623 Jun 2026
Release notes
Open source →What's changed
- Refusal error messages now carry
stop_reason: "refusal"andstop_detailson the assistant message and in session transcripts, so SDK consumers can detect refusals without text-matching the error content - Agent SDK sessions on native builds now default to fast embedded
find/grepsearch in Bash, matching the interactive CLI, instead of always registering the dedicated Grep/Glob tools. To keep the dedicated tools (e.g. to intercept searches viacanUseToolor hooks), name them in thetoolsoption or reference them inallowedTools
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Refusal error messages now carry
stop_reason: "refusal"andstop_detailson the assistant message and in session transcripts, so SDK consumers can detect refusals without text-matching the error content - Agent SDK sessions on native builds now default to fast embedded
find/grepsearch in Bash, matching the interactive CLI, instead of always registering the dedicated Grep/Glob tools. To keep the dedicated tools (e.g. to intercept searches viacanUseToolor hooks), name them in thetoolsoption or reference them inallowedTools
- Refusal error messages now carry
- 0.3.1612 Jun 2026
Release notes
Open source →What's changed
- The
initializecontrol request is now idempotent: a secondinitializereturns the same success payload instead of anAlready initializederror.ControlResponsegains an optionalpending_permission_requestsfield, mirroringControlErrorResponse applyFlagSettingsnow live-appliesagentchanges: switching the active agent (or passingnullto reset) takes effect on the next turn in a running session
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- The
initializecontrol request is now idempotent: a secondinitializereturns the same success payload instead of anAlready initializederror.ControlResponsegains an optionalpending_permission_requestsfield, mirroringControlErrorResponse applyFlagSettingsnow live-appliesagentchanges: switching the active agent (or passingnullto reset) takes effect on the next turn in a running session
- The
- 0.3.1601 Jun 2026
Release notes
Open source →What's changed
- Fixed SDK hook callbacks swallowing abort signals: aborting during a PostToolUse hook now ends the turn with a final
resultmessage instead of hanging the calling process
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed SDK hook callbacks swallowing abort signals: aborting during a PostToolUse hook now ends the turn with a final
resultmessage instead of hanging the calling process
- Fixed SDK hook callbacks swallowing abort signals: aborting during a PostToolUse hook now ends the turn with a final
- 0.3.15931 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.159
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.15830 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.158
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.15729 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.157
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.15628 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.156
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.15428 May 2026
Release notes
Open source →What's changed
- Fixed stdio MCP servers being incorrectly restarted on every reconcile pass due to config-equality false positives
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed stdio MCP servers being incorrectly restarted on every reconcile pass due to config-equality false positives
- 0.3.15327 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.153
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.15226 May 2026
Release notes
Open source →What's changed
SessionStarthooks can now returnreloadSkills: trueto trigger a skill re-scan, and set the session title viahookSpecificOutput.sessionTitle- Added a
MessageDisplayhook event that lets hooks transform or hide assistant message text as it is displayed
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →SessionStarthooks can now returnreloadSkills: trueto trigger a skill re-scan, and set the session title viahookSpecificOutput.sessionTitle- Added a
MessageDisplayhook event that lets hooks transform or hide assistant message text as it is displayed
- 0.3.15023 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.150
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- The
api_retrysystem message now reportserror: 'overloaded'for 529 responses, instead of'rate_limit'(which is now reserved for 429). Consumers that handled 529 viaerror === 'rate_limit'should also match'overloaded', or switch toerror_status === 529. - Updated to parity with Claude Code v2.1.150
- 0.3.14922 May 2026
Release notes
Open source →What's changed
- Fixed
options.envdroppingCLAUDE_AGENT_SDK_VERSION(used forUser-Agentand telemetry) when a custom environment is supplied, and corrected theOptions.envdocs to state that the value replaces the subprocess environment rather than merging withprocess.env
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed
options.envdroppingCLAUDE_AGENT_SDK_VERSION(used forUser-Agentand telemetry) when a custom environment is supplied, and corrected theOptions.envdocs to state that the value replaces the subprocess environment rather than merging withprocess.env
- Fixed
- 0.3.14822 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.148
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.14721 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.147
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.14620 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.146
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.14519 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.145
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.3.14418 May 2026
Release notes
Open source →What's changed
- Assistant messages and
StopFailurehooks now reporterror: 'model_not_found'when the selected model doesn't exist or isn't available, instead of the generic'invalid_request'. Theapi_error_statusfield on result messages is now documented. - Added
@anthropic-ai/claude-agent-sdk/extractexport forbun build --compileconsumers: import the platform native binary withwith { type: 'file' }, callextractFromBunfs(binPath)to copy it out of the compiled executable's virtual filesystem, and pass the result tooptions.pathToClaudeCodeExecutable
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Assistant messages and
StopFailurehooks now reporterror: 'model_not_found'when the selected model doesn't exist or isn't available, instead of the generic'invalid_request'. Theapi_error_statusfield on result messages is now documented. - Added
@anthropic-ai/claude-agent-sdk/extractexport forbun build --compileconsumers: import the platform native binary withwith { type: 'file' }, callextractFromBunfs(binPath)to copy it out of the compiled executable's virtual filesystem, and pass the result tooptions.pathToClaudeCodeExecutable
- Assistant messages and
- 0.3.14315 May 2026
Release notes
Open source →What's changed
@anthropic-ai/sdkand@modelcontextprotocol/sdkare nowpeerDependenciesinstead ofdependencies. Runtime is unaffected (both are bundled); npm/bun/pnpm auto-install them. yarn classic users should add them explicitly for full TypeScript type resolution
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →@anthropic-ai/sdkand@modelcontextprotocol/sdkare nowpeerDependenciesinstead ofdependencies. Runtime is unaffected (both are bundled); npm/bun/pnpm auto-install them. yarn classic users should add them explicitly for full TypeScript type resolution
- 0.3.14214 May 2026
Release notes
Open source →What's changed
- Breaking: Removed the v2 session API (
unstable_v2_createSession,unstable_v2_resumeSession,unstable_v2_prompt,SDKSession,SDKSessionOptions), deprecated since 0.2.133. Usequery()— pass anAsyncIterable<SDKUserMessage>for multi-turn, oroptions.resumeto continue a session. - Breaking: MCP servers now connect in the background by default; sessions start immediately and slow servers report
status: "pending"ininituntil ready. SetMCP_CONNECTION_NONBLOCKING=0to restore the old behavior of waiting up to 5s before the first query, or mark a serveralwaysLoad: trueto require it in turn 1. - Breaking: Headless and SDK sessions now use Task tools (
TaskCreate/TaskUpdate/TaskGet/TaskList) instead ofTodoWrite, deprecated since 0.2.136. Tool consumers should accumulate by task ID instead of replacing a snapshot list. - Surfaced
request_id,subagent_type, andtask_descriptionon SDK message types and task system events - Headless
--sdk-urlsessions now exit non-zero with a stderr diagnostic when the remote transport closes permanently (401/403/404 or WS permanent close), instead of silently exiting 0
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Breaking: Removed the v2 session API (
unstable_v2_createSession,unstable_v2_resumeSession,unstable_v2_prompt,SDKSession,SDKSessionOptions), deprecated since 0.2.133. Usequery()— pass anAsyncIterable<SDKUserMessage>for multi-turn, oroptions.resumeto continue a session. - Breaking: MCP servers now connect in the background by default; sessions start immediately and slow servers report
status: "pending"ininituntil ready. SetMCP_CONNECTION_NONBLOCKING=0to restore the old behavior of waiting up to 5s before the first query, or mark a serveralwaysLoad: trueto require it in turn 1. - Breaking: Headless and SDK sessions now use Task tools (
TaskCreate/TaskUpdate/TaskGet/TaskList) instead ofTodoWrite, deprecated since 0.2.136. Tool consumers should accumulate by task ID instead of replacing a snapshot list. - Surfaced
request_id,subagent_type, andtask_descriptionon SDK message types and task system events - Headless
--sdk-urlsessions now exit non-zero with a stderr diagnostic when the remote transport closes permanently (401/403/404 or WS permanent close), instead of silently exiting 0
- Breaking: Removed the v2 session API (
- 0.2.14113 May 2026
Release notes
Open source →What's changed
TaskCreateInput,TaskCreateOutput,TaskGetInput,TaskGetOutput,TaskUpdateInput,TaskUpdateOutput,TaskListInput, andTaskListOutputtypes are now exported from@anthropic-ai/claude-agent-sdk/sdk-toolsand included in theToolInputSchemas/ToolOutputSchemasunions- Aligned
@anthropic-ai/sdkdependency to ^0.93.0
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →TaskCreateInput,TaskCreateOutput,TaskGetInput,TaskGetOutput,TaskUpdateInput,TaskUpdateOutput,TaskListInput, andTaskListOutputtypes are now exported from@anthropic-ai/claude-agent-sdk/sdk-toolsand included in theToolInputSchemas/ToolOutputSchemasunions- Aligned
@anthropic-ai/sdkdependency to ^0.93.0
- 0.2.14012 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.140
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.13911 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.139
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.1389 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.138
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.1379 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.137
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.1368 May 2026
Release notes
Open source →What's changed
- Added
resolveSettings()(alpha) to inspect effective merged settings without spawning the Claude CLI; reads MDM (plist/HKLM/HKCU) for parity with CLI startup - Deprecated
TodoWritetool — future versions will switch to Task tools (TaskCreate,TaskGet,TaskUpdate,TaskList)
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added
resolveSettings()(alpha) to inspect effective merged settings without spawning the Claude CLI; reads MDM (plist/HKLM/HKCU) for parity with CLI startup - Deprecated
TodoWritetool — future versions will switch to Task tools (TaskCreate,TaskGet,TaskUpdate,TaskList)
- Added
- 0.2.1337 May 2026
Release notes
Open source →What's changed
- Deprecated the unstable V2 session API (
unstable_v2_createSession/unstable_v2_resumeSession/unstable_v2_prompt) — usequery()instead - Deprecated passing
'Skill'inallowedTools— use theskillsoption instead - Updated to parity with Claude Code v2.1.133
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Deprecated the unstable V2 session API (
unstable_v2_createSession/unstable_v2_resumeSession/unstable_v2_prompt) — usequery()instead - Deprecated passing
'Skill'inallowedTools— use theskillsoption instead - Updated to parity with Claude Code v2.1.133
- Deprecated the unstable V2 session API (
- 0.2.1326 May 2026
Release notes
Open source →What's changed
- Documented
applyFlagSettings()in the TypeScript Agent SDK reference and added support fornullon top-level keys to clear flag-settings overrides - Updated to parity with Claude Code v2.1.132
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Documented
applyFlagSettings()in the TypeScript Agent SDK reference and added support fornullon top-level keys to clear flag-settings overrides - Updated to parity with Claude Code v2.1.132
- Documented
- 0.2.1316 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.131
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.1295 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.129
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.1284 May 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.128
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.12630 Apr 2026
Release notes
Open source →What's changed
- Added
originto result messages (SDKResultSuccess/SDKResultError) — forwards the triggering message'sSDKMessageOriginso consumers can distinguish user-prompted results fromtask-notificationfollowups
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added
originto result messages (SDKResultSuccess/SDKResultError) — forwards the triggering message'sSDKMessageOriginso consumers can distinguish user-prompted results fromtask-notificationfollowups
- Added
- 0.2.12430 Apr 2026
- 0.2.12329 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.123
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.12228 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.122
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.12127 Apr 2026
Release notes
Open source →What's changed
- Added
updatedToolOutputtoPostToolUseHookSpecificOutputfor replacing tool output on all tools.updatedMCPToolOutputis deprecated.
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added
updatedToolOutputtoPostToolUseHookSpecificOutputfor replacing tool output on all tools.updatedMCPToolOutputis deprecated.
- Added
- 0.2.12024 Apr 2026
Release notes
Open source →- Added
skillsoption (string[] | 'all') to control which Skills are loaded into the main session, matching the Python SDK
- Added
- 0.2.11923 Apr 2026
Release notes
Open source →What's changed
excludeDynamicSectionsnow keeps static auto-memory instructions in the cacheable system-prompt block; only the per-user memory directory path and per-machine environment values are relocated to the first user message- Long-running SDK sessions now reconnect claude.ai-proxied MCP servers after a transport-stream abort
SessionStore.append()failures are now retried up to 3 times with short backoff before the batch is dropped andmirror_erroris emitted
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added
forwardSubagentTextoption to stream subagent text deltas to SDK consumers excludeDynamicSectionsnow keeps static auto-memory instructions in the cacheable system-prompt block; only the per-user memory directory path and per-machine environment values are relocated to the first user message- Long-running SDK sessions now reconnect claude.ai-proxied MCP servers after a transport-stream abort
SessionStore.append()failures are now retried up to 3 times with short backoff before the batch is dropped andmirror_erroris emitted
- 0.2.11822 Apr 2026
Release notes
Open source →What's changed
- Added
Options.managedSettingsfor embedders to pass policy-tier settings to the spawned CLI in-memory, honored below IT-controlled managed sources
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Added
Options.managedSettingsfor embedders to pass policy-tier settings to the spawned CLI in-memory, honored below IT-controlled managed sources
- Added
- 0.2.11721 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.117
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.11620 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.116
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.11417 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.114
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.11317 Apr 2026
Release notes
Open source →What's changed
- Changed the SDK to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript
- Added
sessionStoreoption (alpha) toquery()and session helpers for mirroring session transcripts to external storage, withSessionStore/SessionKey/SessionStoreEntrytypes,InMemorySessionStorereference implementation, andimportSessionToStore()for migrating existing sessions - Added
deleteSession()for removing a session from disk or aSessionStore - Added
SDKMirrorErrorMessage(subtype: 'mirror_error') to theSDKMessageunion — emitted when asessionStore.append()batch fails - Breaking:
options.envonce again replacesprocess.envfor the CLI subprocess instead of overlaying it. To add or override individual variables, passenv: { ...process.env, MY_VAR: "x" } - Added
titleoption toquery()— sets the session title and skips auto-generation - Added OpenTelemetry trace context propagation — the caller's active trace context is forwarded to the CLI subprocess so spans parent under your distributed trace
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Changed the SDK to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript
- Added
sessionStoreoption (alpha) toquery()and session helpers for mirroring session transcripts to external storage, withSessionStore/SessionKey/SessionStoreEntrytypes,InMemorySessionStorereference implementation, andimportSessionToStore()for migrating existing sessions - Added
deleteSession()for removing a session from disk or aSessionStore - Added
SDKMirrorErrorMessage(subtype: 'mirror_error') to theSDKMessageunion — emitted when asessionStore.append()batch fails - Breaking:
options.envonce again replacesprocess.envfor the CLI subprocess instead of overlaying it. To add or override individual variables, passenv: { ...process.env, MY_VAR: "x" } - Added
titleoption toquery()— sets the session title and skips auto-generation - Added OpenTelemetry trace context propagation — the caller's active trace context is forwarded to the CLI subprocess so spans parent under your distributed trace
- 0.2.11216 Apr 2026
Release notes
Open source →What's changed
- Updated to parity with Claude Code v2.1.112
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected] - 0.2.11116 Apr 2026
Release notes
Open source →What's changed
- Opus 4.7 is now available! This version of the SDK is required to use it.
mcp_set_serverscontrol request: remote (http/sse) server entries can now carry per-toolpermission_policyvalues, which are applied to the session's allow/deny rulesstartup()andWarmQueryare now part of the public TypeScript API- Changed
options.envto overlay the inheritedprocess.envinstead of replacing it
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Opus 4.7 is now available! This version of the SDK is required to use it.
mcp_set_serverscontrol request: remote (http/sse) server entries can now carry per-toolpermission_policyvalues, which are applied to the session's allow/deny rulesstartup()andWarmQueryare now part of the public TypeScript API- Changed
options.envto overlay the inheritedprocess.envinstead of replacing it
- 0.2.11015 Apr 2026
Release notes
Open source →What's changed
- Fixed
unstable_v2_createSessionnot respectingcwd,settingSources, andallowDangerouslySkipPermissionsoptions - Added optional
shouldQueryfield toSDKUserMessage— set tofalseto append a user message without triggering an assistant turn; fixedshouldQuery: falsemessages incorrectly triggering auto-title generation, prompt suggestions, andUserPromptSubmithooks - Auto session-title generation now respects
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICandCLAUDE_CODE_DISABLE_TERMINAL_TITLE
Update
npm install @anthropic-ai/[email protected] # or yarn add @anthropic-ai/[email protected] # or pnpm add @anthropic-ai/[email protected] # or bun add @anthropic-ai/[email protected]Release notes
Open source →- Fixed
unstable_v2_createSessionnot respectingcwd,settingSources, andallowDangerouslySkipPermissionsoptions - Added optional
shouldQueryfield toSDKUserMessage— set tofalseto append a user message without triggering an assistant turn; fixedshouldQuery: falsemessages incorrectly triggering auto-title generation, prompt suggestions, andUserPromptSubmithooks - Auto session-title generation now respects
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICandCLAUDE_CODE_DISABLE_TERMINAL_TITLE
- Fixed