Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.302

16 Oct 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

1 fixed3 changed

Release note

What's changed

  • Fixed structured output results delivering a response's output as structured_output when the API refused that response; the result is now an error with no payload

  • Changed an omitted permissionMode to start in default mode on third-party providers, with telemetry off or on a fresh install; pass permissionMode: 'auto' to keep auto mode

  • Changed fork subagents (subagent_type: "fork") to be on by default in SDK sessions, as in the terminal; run_in_background is still offered, and CLAUDE_CODE_FORK_SUBAGENT=0 turns them off

  • Updated to parity with Claude Code v2.1.302

Update

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

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.