@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
4 new1 fixed2 changed
Release note
What's changed
Added an optional
builtinfield toSlashCommand, set when a command is built into Claude CodeAdded
pasted_contenttoSDKUserMessage: text the user pasted rather than typed, appended after the typed promptAdded optional remote-session latency fields (
first_text_post_ms,first_text_post_wall_ms,first_stream_post_queue_wait_ms,first_stream_post_queued_behind) to the success result messageAdded
'userSettings'as anupdateSettings()source, accepting onlyeffortLevel, which is saved for the session's current model as/effortsaves itFixed a resumed or forked session's
total_cost_usd,modelUsageandget_usagetotals starting at zero instead of continuing from the earlier turns (maxBudgetUsdis unchanged)Changed
SDKUsageReportusage rows to always carryseverityandis_active: the report relays only rows from a live server reply, and none while the usage fetch is failingUpdated to parity with Claude Code v2.1.277
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.277 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.277 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.277 # or bun add @anthropic-ai/claude-agent-sdk@0.3.277
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.