Packages

@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.1.36 to 0.3.330

320 releases in betweennotes for 166

Reading releases, release notes and advisories…

  1. 0.1.36yours
  2. 36 releases
  3. 0.2.0major
  4. 118 releases
  5. 0.3.142breaking
  6. 146 releases
  7. 0.3.311breaking
  8. 13 releases
  9. 0.3.327breaking
  10. 2 releases
  11. 0.3.330target
8+
changes to make
0
advisories fixed
163+
new
157+
fixes

Counted from 166 of 320 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
  • Breaking0.3.142
  • Breaking0.3.142
  • Breaking0.3.142
  • Deprecated0.3.327
  • Deprecated0.3.326

Release by release

  1. 0.3.330

    20 Nov 20261 new · 5 fixes
    • New

      Added a system/informational warning, tagged settings_not_in_effect, when settings or 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 SessionStart hook writes to CLAUDE_ENV_FILE not reaching the Bash tool with the continue option

    • Fixed

      Fixed Google Cloud's Agent Platform sessions ignoring fastMode in settings when the model comes from ANTHROPIC_MODEL or a settings file; such sessions now bill at the fast mode price

    • Fixed

      Fixed the initialize response's fast_mode_state describing 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 id of 1,048,576 or more

  2. 0.3.329

    19 Nov 20262 new · 5 fixes
    • New

      Added a system/informational warning, tagged managed_hooks_not_loaded, when hooks in managed settings fail to load

    • New

      Added permissions.workingDirectoriesExclude to the Settings type: paths, read only from --settings and settings the host sends, that the working-directory read and write blocks treat as outside

    • Fixed

      Fixed sessions bound with SpareProcess.claim() ignoring autoCompactWindow from the folder's settings or the claim's settings

    • 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_plugins ran, in headless and SDK sessions

    • Fixed

      Fixed rewind_conversation removing history under a message sent right after a model change: the request is now refused with "commands queued", and callers can send it again

  3. 0.3.328

    18 Nov 20263 new · 3 fixes
    • New

      Added onFailure to mcp_tool hooks in the Settings type: with "block", a hook whose call fails blocks the action it guards

    • New

      Added CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME: set it in the env option to stop resume and continue from running a tool call that a hook deferred; settings can't set it

    • New

      Added support for the policy plugin's allowManagedModsOnly option in host-supplied managedSettings; an admin's managed settings still win

    • Fixed

      Fixed the agent option: an inline definition in agents now wins over a user, project, plugin or built-in agent of the same name for model, prompt and hooks

    • Fixed

      Fixed the agent option: an agent from an agents directory now keeps its system prompt when systemPrompt is not set

    • Fixed

      Fixed the model saying background agents were still running after an SDK interrupt had stopped them

  4. 0.3.327

    Migration needed17 Nov 20262 fixes
    • Breaking

      Changed query(), startup() and prewarm() 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, true or number is now refused.

    • Deprecated

      Deprecated createSdkMcpServer() servers in an agent's mcpServers: ignored with a warning, and other options apply. Move them to top-level mcpServers, which gives the main session their tools.

    • Fixed

      Fixed task_started sending Claude Code's own text, such as a task notification, as prompt when a background subagent is woken; such an event now has no prompt

    • Fixed

      Fixed Claude reporting a background agent as still running when its permission request had waited on canUseTool for 30 seconds or more

  5. 0.3.326

    Deprecation16 Nov 20265 new · 4 fixes
    • Deprecated

      Deprecated sending mcpServers on 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': sends mcpServers in the initialize request instead of on Claude Code's command line; needs the bundled Claude Code or newer

    • New

      Added getSessionInfo() to the /core entry

    • New

      Added message_uuid to cancel_async_message responses, naming the dropped message

  6. 0.3.325

    13 Nov 20265 new · 2 fixes
    • New

      Added archiveSession() and unarchiveSession(), and an archived field on the sessions that listSessions() and getSessionInfo() return

    • New

      Added refuseIfBusy to Query.reloadPlugins() so a host can have a reload refused while the session is busy

    • New

      Added managed_lock to plugin_errors entries on system/init, naming the managed enabledPlugins entry that dropped a plugin copy

    • New

      Added a system/informational warning, tagged hook_no_verdict, when a PreToolUse hook can't run or answer, or times out, without refusing its tool call

    • New

      Added invalid_config_file to the config_file_invalid startup 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 and system/init

    • Fixed

      Fixed supportedEffortLevels in model info listing effort levels above the organization's effort cap or the maxEffortLevel setting

  7. 0.3.324nothing new or fixed in the note

  8. 0.3.323

    12 Nov 20265 new · 8 fixes
    • New

      Added machinePolicy.didNotLoad (alpha) to resolveSettings()'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 a deniedModels list blocks, by Claude Code's own entry rules

    • New

      Added the periodic tool_progress heartbeat while a turn waits on long-running hooks; tool_name is the hook event, tool_use_id begins hook-, parent_tool_use_id may name no tool call

    • New

      Added CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES: set to 1 to turn off subagent progress summaries even when agentProgressSummaries is true (available since 0.3.318)

248 other lines we could not sort, mostly version bumps
  • Changed the TypeScript SDK's query() to fail with an error when settings is a JSON string that doesn't parse

    0.3.330
  • Updated to parity with Claude Code v2.1.330

    0.3.330
  • 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: error is now invalid_request, not authentication_failed, and api_error_status is null, not 401

    0.3.329
  • Updated to parity with Claude Code v2.1.329

    0.3.329
  • Changed subagents to wait for their own subagents by default when CLAUDE_CODE_FORK_SUBAGENT=0 is set

    0.3.328
  • Changed a shell command rewritten by a PermissionRequest hook: the rewrite's own permission check now decides the sandbox, so a sandbox-excluded rewrite runs outside it; canUseTool is 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.328
  • 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

    0.3.327

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.