What's changed
- Fixed structured output results delivering a response's output as
structured_outputwhen the API refused that response; the result is now an error with no payload - Changed an omitted
permissionModeto start indefaultmode on third-party providers, with telemetry off or on a fresh install; passpermissionMode: '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_backgroundis still offered, andCLAUDE_CODE_FORK_SUBAGENT=0turns 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