Vibeleaderboard
← All Intel
Intel / repo

claude-agent-sdk-typescript v0.3.305

Source
github.com
Publisher
Anthropic
Author
ashwin-antTop Viber
Date

Context

The TypeScript Claude Agent SDK 0.3.305 lets developers run Claude Code from their own programs, and this release fixes two places where the program's instructions were not fully honoured. The more important one concerns setMcpServers, which an uses to hand the session its own servers. Previously, if the user's own settings contained a server with the same name, that server could replace the application's one later in the session. That way an embedded agent could end up talking to different tools than the developer configured, and the fix keeps the application's server in place. The same fix ships in Claude Code 2.1.305, which the release notes say the SDK is now at parity with.

The second fix is for startup(). When initializeTimeoutMs was passed as null, time spent in SessionStart or Setup hooks still counted against a 60-second limit. Null now behaves the same as leaving the option out. Relatedly, when startup() or prewarm() times out with no such running, the error now lists possible causes instead of steering people toward checking and network. The release also adds recommendations and fix fields to the behaviour windows in the get_usage response, which appear to be the SDK counterpart of the one-line fixes Claude Code 2.1.305 added to /usage.

Terms in this piece · Glossary
  • Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
  • Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
  • Authentication — The check that a presented credential matches the identity it claims.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from ashwin-ant
Recommended reads