Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.273

15 Sep 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

3 new2 fixed1 changed

Release note

What's changed

  • Added a usage_report sibling (SDKUsageReport: session totals, the plan's usage rows as the server sends them, extra usage) on the assistant message that delivers a headless /usage result

  • Added reason: "worker_restart" to task_notification messages when a background task was stopped by a worker process restart

  • Added a one-line transcript notice when the SDK host's Stop or SessionStart hook callback times out, shown once until the host answers again

  • Fixed a Stop, SubagentStop or SessionStart hook callback that exceeds its timeout being reported as a hook failure and discarding other hooks' decisions; it now counts as no decision

  • Fixed the browser SSE transport dropping the live slash-command list update (system/commands_changed)

  • Updated to parity with Claude Code v2.1.273

Update

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

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.