Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.283

25 Sep 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

1 new1 fixed3 changed

Release note

What's changed

  • Added plugin_errors to the SDKSystemMessage type (system/init), including path for a --plugin-dir entry that did not load

  • Fixed getSessionMessages() returning, and forkSession() copying, a rewound-away branch when the newest branch ends at a meta row or a local command's rows

  • Changed stream-json output to include warnings and notices raised during a turn as system/informational messages; it previously dropped them

  • Changed the set_max_thinking_tokens control request: omitting max_thinking_tokens now leaves the session's thinking budget unchanged; send null to reset it to the session default

  • Updated to parity with Claude Code v2.1.283

Update

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

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.