What's changed
- Added support for Claude Sonnet 4.6
- Added
task_startedsystem message to the SDK stream, emitted when subagent tasks are registered - Fixed
Session.stream()returning prematurely when background subagents are still running, by holding back intermediate result messages until all tasks complete - Improved memory usage for shell commands that produce large output — RSS no longer grows unboundedly with command output size
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.45
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.45
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.45
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.45