Packages

@anthropic-ai/claude-agent-sdk

0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed

Your version

0.3.329

19 Nov 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

2 new5 fixed3 changed

Release note

What's changed

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

  • 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 sessions bound with SpareProcess.claim() ignoring autoCompactWindow from the folder's settings or the claim's settings

  • Fixed retained memory when an in-process MCP server does not answer its start-up handshake

  • 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 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 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

  • 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

  • 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

  • Updated to parity with Claude Code v2.1.329

Update

npm install @anthropic-ai/claude-agent-sdk@0.3.329
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.329
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.329
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.329

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.