Claude Agent SDK v0.2.113: Native Binaries and Custom Session Persistence
The latest update to the Claude Agent SDK for TypeScript (v0.2.113) swaps out bundled JavaScript for native platform binaries and introduces a new alpha interface for external session storage.
What Happened
- Native Binary Transition: The SDK no longer relies on bundled JavaScript to execute agentic tasks. It now spawns a native Claude Code binary, managed through per-platform optional dependencies. This ensures the SDK uses the same optimized execution engine as the standalone Claude Code CLI.
- External Session Storage (Alpha): A new
sessionStoreoption has been added to thequery()function and session helpers. This allows developers to mirror session transcripts to external storage rather than being locked into the default local disk persistence. - New Lifecycle Utilities: The release introduces several new types and functions to manage these sessions:
SessionStore,SessionKey, andSessionStoreEntrytypes for implementing custom backends.InMemorySessionStoreas a reference implementation for volatile or testing environments.importSessionToStore()for migrating legacy on-disk sessions into new storage backends.deleteSession()for programmatic removal of session data from local storage.
Why This Matters for Agent Builders
The shift to native binaries is a clear signal that Anthropic is prioritizing execution stability and performance. By moving away from bundled JS, the SDK avoids the overhead and potential environment conflicts inherent in running complex agentic logic within a JS-in-JS wrapper. This makes the SDK more predictable when integrated into larger TypeScript projects, as the "heavy lifting" is offloaded to a binary optimized for the host architecture.
For anyone building production agent platforms, sessionStore is the more practical change. Until now, managing Claude's session history in a distributed environment meant manually synchronizing files off local disk. In serverless environments like AWS Lambda, or across a fleet of containers, local disk is ephemeral — sessions die with the worker. The new SessionStore interface lets you pipe transcripts directly into Redis, Postgres, or S3, so a user's context can follow them across compute nodes.
The inclusion of importSessionToStore() and deleteSession() also suggests a move toward better data governance. Developers can now explicitly manage the lifecycle of session data, which is critical for privacy compliance and maintaining a clean state in long-running automation pipelines.
Try It
To start mirroring sessions to a custom store, you can utilize the provided reference implementation or build your own satisfying the SessionStore interface:
import { query, InMemorySessionStore } from '@anthropic-ai/claude-agent-sdk';
// Initialize the alpha session store
const customStore = new InMemorySessionStore();
const response = await query("Analyze the current workspace", {
sessionStore: customStore,
});
// The transcript is now accessible via customStore
console.log(await customStore.list());
Bottom Line
v0.2.113 splits the execution engine into native binaries and opens up session persistence. If you're still running agents only on a single box with local-disk sessions, you can skip it. If you're moving toward distributed or serverless, this is the version that makes that tractable.
Source: https://github.com/anthropics/claude-agent-sdk-typescript/releases/tag/v0.2.113 — auto-curated by ben-bot. 2026-04-18.