@anthropic-ai/claude-agent-sdk
0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed
Upgrading @anthropic-ai/claude-agent-sdk From 0.3.214 to 0.3.330
102 releases in betweennotes for 81
Reading releases, release notes and advisories…
- 5+
- changes to make
- 0
- advisories fixed
- 113+
- new
- 116+
- fixes
Counted from 81 of 102 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking0.3.327
- Breaking0.3.327
- Breaking0.3.311
- Deprecated0.3.327
- Deprecated0.3.326
Release by release
- New
Added a
system/informationalwarning, taggedsettings_not_in_effect, whensettingsor a user, project or local settings file fails validation and is not in effect - Fixed
Fixed Claude still waiting for a background agent that
stopTask()stopped just as it finished - Fixed
Fixed variables that a
SessionStarthook writes toCLAUDE_ENV_FILEnot reaching the Bash tool with thecontinueoption - Fixed
Fixed Google Cloud's Agent Platform sessions ignoring
fastModeinsettingswhen the model comes fromANTHROPIC_MODELor a settings file; such sessions now bill at the fast mode price - Fixed
Fixed the initialize response's
fast_mode_statedescribing the default model instead of the model the session runs - Fixed
Fixed a lost or swapped tool result from an SDK MCP server when a call overlapped a reconnect; while an earlier request is unanswered, a new one can carry an
idof 1,048,576 or more
- New
- New
Added a
system/informationalwarning, taggedmanaged_hooks_not_loaded, when hooks in managed settings fail to load - New
Added
permissions.workingDirectoriesExcludeto theSettingstype: paths, read only from--settingsand settings the host sends, that the working-directory read and write blocks treat as outside - Fixed
Fixed sessions bound with
SpareProcess.claim()ignoringautoCompactWindowfrom the folder's settings or the claim'ssettings - Fixed
Fixed retained memory when an in-process MCP server does not answer its start-up handshake
- Fixed
Fixed memory growth in long sessions that use
--replay-user-messages: the SDK no longer keeps echoes of its own tool results and permission answers - Fixed
Fixed an MCP server that a plugin started at launch staying connected after the plugin was disabled or uninstalled and
reload_pluginsran, in headless and SDK sessions - Fixed
Fixed
rewind_conversationremoving history under a message sent right after a model change: the request is now refused with "commands queued", and callers can send it again
- New
- New
Added
onFailuretomcp_toolhooks in theSettingstype: with"block", a hook whose call fails blocks the action it guards - New
Added
CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME: set it in theenvoption to stopresumeandcontinuefrom running a tool call that a hook deferred; settings can't set it - New
Added support for the policy plugin's
allowManagedModsOnlyoption in host-suppliedmanagedSettings; an admin's managed settings still win - Fixed
Fixed the
agentoption: an inline definition inagentsnow wins over a user, project, plugin or built-in agent of the same name for model, prompt and hooks - Fixed
Fixed the
agentoption: an agent from an agents directory now keeps its system prompt whensystemPromptis not set - Fixed
Fixed the model saying background agents were still running after an SDK interrupt had stopped them
- New
- Breaking
Changed
query(),startup()andprewarm()to refuse options that can't be sent to Claude Code, such as an agent with a circular or BigInt field. Fix the named option. - Breaking
Changed hook options to require arrays: a hook event's value and a matcher's
hooks. A Set, generator, plain object,trueor number is now refused. - Deprecated
Deprecated
createSdkMcpServer()servers in an agent'smcpServers: ignored with a warning, and other options apply. Move them to top-levelmcpServers, which gives the main session their tools. - Fixed
Fixed
task_startedsending Claude Code's own text, such as a task notification, aspromptwhen a background subagent is woken; such an event now has noprompt - Fixed
Fixed Claude reporting a background agent as still running when its permission request had waited on
canUseToolfor 30 seconds or more
- Breaking
- Deprecated
Deprecated sending
mcpServerson Claude Code's command line (today's default,'argv'): a future release defaults to'initialize'; apps running an older Claude Code must update it or set'argv' - New
Added
mcpServersDelivery: 'initialize': sendsmcpServersin the initialize request instead of on Claude Code's command line; needs the bundled Claude Code or newer - New
Added
getSessionInfo()to the/coreentry - New
Added
message_uuidtocancel_async_messageresponses, naming the dropped message
- Deprecated
- New
Added
archiveSession()andunarchiveSession(), and anarchivedfield on the sessions thatlistSessions()andgetSessionInfo()return - New
Added
refuseIfBusytoQuery.reloadPlugins()so a host can have a reload refused while the session is busy - New
Added
managed_locktoplugin_errorsentries onsystem/init, naming the managedenabledPluginsentry that dropped a plugin copy - New
Added a
system/informationalwarning, taggedhook_no_verdict, when aPreToolUsehook can't run or answer, or times out, without refusing its tool call - New
Added
invalid_config_fileto theconfig_file_invalidstartup failure result: the broken config file's path and its backup's path as fields - Fixed
Fixed deny rules (
disallowedTools,permissions.deny,always_deny) that name an in-process SDK MCP tool or its server, or match it with a glob, leaving it in Claude's tool list andsystem/init - Fixed
Fixed
supportedEffortLevelsin model info listing effort levels above the organization's effort cap or themaxEffortLevelsetting
- New
0.3.324nothing new or fixed in the note
- New
Added
machinePolicy.didNotLoad(alpha) toresolveSettings()'s result, which tells a host when a machine policy source may be there and did not load - New
Added
matchDeniedModels()(alpha), which tells a host which models adeniedModelslist blocks, by Claude Code's own entry rules - New
Added the periodic
tool_progressheartbeat while a turn waits on long-running hooks;tool_nameis the hook event,tool_use_idbeginshook-,parent_tool_use_idmay name no tool call - New
Added
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES: set to1to turn off subagent progress summaries even whenagentProgressSummariesistrue(available since 0.3.318)
- New
173 other lines we could not sort, mostly version bumps
- 0.3.330
Changed the TypeScript SDK's
query()to fail with an error whensettingsis a JSON string that doesn't parse - 0.3.330
Updated to parity with Claude Code v2.1.330
- 0.3.329
Improved memory use of idle SDK sessions: after 30 seconds idle, large tool result data that no model request reads is released, except while Remote Control is on
- 0.3.329
Changed the error when the macOS Keychain can't save a refreshed login:
erroris nowinvalid_request, notauthentication_failed, andapi_error_statusisnull, not 401 - 0.3.329
Updated to parity with Claude Code v2.1.329
- 0.3.328
Changed subagents to wait for their own subagents by default when
CLAUDE_CODE_FORK_SUBAGENT=0is set - 0.3.328
Changed a shell command rewritten by a
PermissionRequesthook: the rewrite's own permission check now decides the sandbox, so a sandbox-excluded rewrite runs outside it;canUseToolis unchanged - 0.3.328
Changed
resolveSettings()on Windows to re-read registry policy every 6 hours while none is set (was 30 minutes) - 0.3.328
Updated to parity with Claude Code v2.1.328
- 0.3.327
Reverted 0.3.326's fix for a tool result from an SDK MCP server being lost, or delivered to another call, after a reconnect
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.