Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.292

6 Oct 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

6 new1 fixed3 changed

Release note

What's changed

  • Added agent_id to the assistant and user messages a subagent produces; it equals the task_id on that subagent's task events and stays the same when the subagent is resumed

  • Added parent_task_id to task_started events and background_tasks_changed entries, naming the subagent task that launched a task

  • Added run_id to background task events and origin.runId to task notifications, so a host can tell a resumed task's runs apart

  • Added typed sections and notes to the ListAgents tool's tool_use_result, so hosts can list agents without parsing its text

  • Added recipient_kind to SendMessage tool_use inputs on assistant messages, and their top-level approve is now always a boolean, so hosts no longer infer them from the raw input

  • Added two optional fields to the ReadNotifications tool output: read_at, when the tool read the session's queued notifications, and arrived_at on each notification, when it reached the session

  • Fixed subagents with a declared auto permission mode having their tool calls decided by the auto-mode classifier instead of the canUseTool callback when auto mode is unavailable

  • Changed background_tasks_changed for a finishing background task to arrive after that task's task_updated and task_notification

  • Changed canUseTool options to carry suppressAlwaysAllowRule: true for connector tools that an organization set to require approval, so hosts can hide their "always allow" choice

  • Updated to parity with Claude Code v2.1.292

Update

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

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.