Releases: anthropics/claude-agent-sdk-python
Releases · anthropics/claude-agent-sdk-python
v0.1.63
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.114
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.63/
pip install claude-agent-sdk==0.1.63v0.1.62
New Features
- Top-level
skillsoption: Addedskillsparameter toClaudeAgentOptionsfor enabling skills on the main session without manually configuringallowed_toolsandsetting_sources. Supports"all"for every discovered skill, a list of named skills, or[]to suppress all skills (#804)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.113
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.62/
pip install claude-agent-sdk==0.1.62v0.1.61
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.112
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.61/
pip install claude-agent-sdk==0.1.61v0.1.60
New Features
- Subagent transcript helpers: Added
list_subagents()andget_subagent_messages()session helpers for reading subagent transcripts, enabling inspection of subagent message chains spawned during a session (#825) - Distributed tracing: Propagate W3C trace context (
TRACEPARENT/TRACESTATE) to the CLI subprocess when an OpenTelemetry span is active, connecting SDK and CLI traces end-to-end. Install withpip install claude-agent-sdk[otel]for optional OpenTelemetry support (#821) - Cascading session deletion:
delete_session()now removes the sibling subagent transcript directory alongside the session file, matching TypeScript SDK behavior (#805)
Bug Fixes
- Empty setting sources: Fixed
setting_sources=[]being silently dropped (treated as falsy), which caused the CLI to load default settings instead of disabling all filesystem settings. An empty list now correctly passes--setting-sources=to disable all sources (#822)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.111
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.60/
pip install claude-agent-sdk==0.1.60v0.1.59
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.105
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.59/
pip install claude-agent-sdk==0.1.59v0.1.58
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.97
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.58/
pip install claude-agent-sdk==0.1.58v0.1.57
New Features
- Cross-user prompt caching: Added
exclude_dynamic_sectionsoption toSystemPromptPreset, enabling cross-user prompt cache hits by moving per-user dynamic sections (working directory, memory, git status) out of the system prompt (#797) - Auto permission mode: Added
"auto"to thePermissionModetype, bringing parity with the TypeScript SDK and CLI v2.1.90+ (#785)
Bug Fixes
- Thinking configuration: Fixed
thinking={"type": "adaptive"}incorrectly mapping to--max-thinking-tokens 32000instead of--thinking adaptive. Thedisabledtype similarly now uses--thinking disabledinstead of--max-thinking-tokens 0, matching the TypeScript SDK behavior (#796)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.96
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.57/
pip install claude-agent-sdk==0.1.57v0.1.56
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.92
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.56/
pip install claude-agent-sdk==0.1.56v0.1.55
Bug Fixes
- MCP large tool results: Forward
maxResultSizeCharsfromToolAnnotationsvia_metato bypass Zod annotation stripping in the CLI, fixing silent truncation of large MCP tool results (>50K chars) (#756)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.91
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.55/
pip install claude-agent-sdk==0.1.55