@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
6 new5 changed
Release note
What's changed
Added
result_indexto result messages: the result's position in delivery order within the run, from 0Added
local_commandto the result message of a turn that ran a slash command without entering the model loop, carrying the command's nameAdded
hold_on_cache_impactto thereload_pluginscontrol request (Query.reloadPlugins({ holdOnCacheImpact: true })): holds a reload that would invalidate the session's prompt cacheAdded
resume_reasonto assistant, stream-event and result messages, set only on the automatic re-run of a turn a host restart interruptedAdded
kind(used, free, buffer, deferred) to each category in theget_context_usagecontrol response, matching the/contextresult'scontext_usagerowsAdded optional
defaultToNoandsuppressAlwaysAllowRulehints tocanUseTooloptions: the prompt should open on its decline option, or offer no persistent "always allow" choiceChanged
setModel()to confirm a model id the CLI doesn't know locally with the API the first time a session uses it, instead of refusing it as unrecognizedChanged
user_message_uuidon the automatic re-run of an interrupted turn to name that turn's last user promptChanged the
initializesuccess response to always includepending_permission_requests(empty when nothing is pending), so clients can tell that apart from an older CLIChanged the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be default tools only on Claude 3.x, Opus 4.0–4.7, Sonnet 4.0–4.6 and Haiku 4.5; elsewhere list them in
tools/allowedToolsUpdated to parity with Claude Code v2.1.268
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.268 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.268 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.268 # or bun add @anthropic-ai/claude-agent-sdk@0.3.268
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.