@anthropic-ai/claude-agent-sdk
0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed
0.3.330 is the newest release of 0.3.x.
In short
7 fixed4 changed
Release note
What's changed
Fixed
canUseToolgetting the app's own PreToolUse hook reason indecisionReasonwhen another hook also askedFixed a PreToolUse hook's
askbeing lost when another hook'sdeferfinished first and could not be honoredFixed every hook being dropped when one event in the
hooksoption is set toundefinedFixed
WarmQuery.query()with a string prompt hanging afterstartup()withresumewhen the resumed session finished a turn of its own before the prompt was sentFixed
setMcpServersclosing a folder's.mcp.jsonor local-scope MCP server when passed an in-process server of the same name, in sessions bound withSpareProcess.claim()Fixed
reloadSkills(),reloadPlugins()andsystem/initdropping project skills, commands or agents that a worktree lacks after Claude entered itFixed sessions hanging on save, and
importSessionToStore()never rejecting, when memory ran out while a transcript was being readImproved
resumeandcontinueon the bundled Claude Code binary:initializeis read during boot, so start-up work is less likely to run before your hooks are registeredChanged queued subagent reports in auto mode to share one model call: each keeps its own message and result, and all but the last end in an empty
resultwithnum_turns: 0Changed an SDK MCP server named
claude-in-chrometo follow the organization's Claude in Chrome policy: where the policy denies it, the server is not connectedUpdated to parity with Claude Code v2.1.321
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.321 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.321 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.321 # or bun add @anthropic-ai/claude-agent-sdk@0.3.321
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.