Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.284

28 Sep 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

2 new4 fixed3 changed

Release note

What's changed

  • Added a renamed skill's directory name to its SlashCommand aliases when the name is plain and Claude Code ships no command by that name

  • Added applied.ultracodeAvailable and applied.ultracodeRequested to getSettings(): whether this session can run Ultracode, and whether it is requested, independent of whether it is in effect

  • Fixed forkSession() copies reading back the wrong history when cut at a progress row or fork briefing after a rewind, or when the session was compacted with some messages kept

  • Fixed getSessionMessages() leaving out messages from other agents, sessions and channels that the CLI transcript shows

  • Fixed { decision: 'block' } returned by Elicitation and ElicitationResult hook callbacks being ignored; it now declines the MCP elicitation

  • Fixed query() closing stdin before a follow-up turn woken by a finished background agent, which failed that turn's hooks, canUseTool and SDK MCP calls with "Stream closed"

  • Changed the first turn to still wait up to 2s for connecting MCP servers named in allowedTools or by an mcp_tool hook, even with CLAUDE_CODE_MCP_STARTUP_WAIT_MS set to 0

  • Changed applyFlagSettings({ ultracode: true }) to keep the current effort level instead of switching to xhigh; an effortLevel that changes the level without ultracode turns Ultracode off

  • Updated to parity with Claude Code v2.1.284

Update

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

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.