The rename in one paragraph
In late 2025 Anthropic renamed the Claude Code SDK to the Claude Agent SDK to reflect that it is no longer just for writing code — it is a general autonomous-agent harness based on Claude Code's capabilities. New package names: claude-agent-sdk on PyPI, @anthropic-ai/claude-agent-sdk on npm. The old claude-code-sdk packages are migration history.
What survived, what changed
The architecture is the same — a Claude subprocess wrapped in a transport, with tools, sessions, MCP, and hooks. The Python option type changed from ClaudeCodeOptions to ClaudeAgentOptions. Default system prompt assumptions changed (the SDK no longer auto-injects Claude Code's system prompt; you must opt in via system_prompt={"type": "preset", "preset": "claude_code"}).
Migration as a search-and-replace
For code that ran on the old SDK, migration is mostly mechanical: replace package names, replace ClaudeCodeOptions with ClaudeAgentOptions, decide whether you want the Claude Code preset (yes for code-editing agents, no for fresh-persona agents). Pin the new version and run your tests.