What's changed
- Added
agent_idto theassistantandusermessages a subagent produces; it equals thetask_idon that subagent's task events and stays the same when the subagent is resumed - Added
parent_task_idtotask_startedevents andbackground_tasks_changedentries, naming the subagent task that launched a task - Added
run_idto background task events andorigin.runIdto task notifications, so a host can tell a resumed task's runs apart - Added typed
sectionsandnotesto theListAgentstool'stool_use_result, so hosts can list agents without parsing its text - Added
recipient_kindto SendMessagetool_useinputs on assistant messages, and their top-levelapproveis now always a boolean, so hosts no longer infer them from the raw input - Added two optional fields to the
ReadNotificationstool output:read_at, when the tool read the session's queued notifications, andarrived_aton 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_changedfor a finishing background task to arrive after that task'stask_updatedandtask_notification - Changed
canUseTooloptions to carrysuppressAlwaysAllowRule: truefor 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