Skip to content

Releases: anthropics/claude-agent-sdk-python

v0.1.48

07 Mar 00:22

Choose a tag to compare

Bug Fixes

  • Fine-grained tool streaming: Fixed include_partial_messages=True not delivering input_json_delta events by enabling the CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING environment variable in the subprocess. This regression affected versions 0.1.36 through 0.1.47 for users without the server-side feature flag (#644)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.71

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.48/

pip install claude-agent-sdk==0.1.48

v0.1.47

06 Mar 01:30

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.70

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.47/

pip install claude-agent-sdk==0.1.47

v0.1.46

05 Mar 00:37

Choose a tag to compare

New Features

  • Session history functions: Added list_sessions() and get_session_messages() top-level functions for retrieving past session data (#622)
  • MCP control methods: Added add_mcp_server(), remove_mcp_server(), and typed McpServerStatus for runtime MCP server management (#620)
  • Typed task messages: Added TaskStarted, TaskProgress, and TaskNotification message subclasses for better type safety when handling task-related events (#621)
  • ResultMessage stop_reason: Added stop_reason field to ResultMessage for inspecting why a conversation turn ended (#619)
  • Hook input enhancements: Added agent_id and agent_type fields to tool-lifecycle hook inputs (PreToolUseHookInput, PostToolUseHookInput, PostToolUseFailureHookInput) (#628)

Bug Fixes

  • String prompt MCP initialization: Fixed an issue where passing a string prompt would close stdin before MCP server initialization completed, causing MCP servers to fail to register (#630)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.69

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.46/

pip install claude-agent-sdk==0.1.46

v0.1.45

03 Mar 17:21

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.63

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.45/

pip install claude-agent-sdk==0.1.45

v0.1.44

26 Feb 01:18

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.59

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.44/

pip install claude-agent-sdk==0.1.44

v0.1.43

25 Feb 06:49

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.56

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.43/

pip install claude-agent-sdk==0.1.43

v0.1.42

25 Feb 03:33

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.55

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.42/

pip install claude-agent-sdk==0.1.42

v0.1.41

24 Feb 06:56

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.52

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.41/

pip install claude-agent-sdk==0.1.41

v0.1.40

24 Feb 02:00

Choose a tag to compare

Bug Fixes

  • Unknown message type handling: Fixed an issue where unrecognized CLI message types (e.g., rate_limit_event) would crash the session by raising MessageParseError. Unknown message types are now silently skipped, making the SDK forward-compatible with future CLI message types (#598)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.51

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.40/

pip install claude-agent-sdk==0.1.40

v0.1.39

19 Feb 23:44

Choose a tag to compare

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.49

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.39/

pip install claude-agent-sdk==0.1.39