Skip to content

Releases: anthropics/claude-agent-sdk-python

v0.2.139

Choose a tag to compare

@github-actions github-actions released this 14 Aug 22:35

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.233

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

pip install claude-agent-sdk==0.2.139

v0.2.138

Choose a tag to compare

@github-actions github-actions released this 13 Aug 23:44

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.232

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

pip install claude-agent-sdk==0.2.138

v0.2.137

Choose a tag to compare

@github-actions github-actions released this 12 Aug 21:11

New Features

  • ConversationResetMessage for conversation reset events: The SDK now surfaces the CLI's conversation_reset frame as a ConversationResetMessage dataclass, letting applications detect when a /clear or other transcript-discarding flow resets the conversation mid-session. Includes new_conversation_id, uuid, and session_id fields. This widens the Message union — code that exhaustively matches with assert_never will need updating (#1196)
  • Message origin on UserMessage and ResultMessage: New origin: MessageOrigin | None field on UserMessage and ResultMessage surfaces why a turn was initiated — distinguishing application-submitted prompts ("human") from background-task notifications, scheduled triggers, peer messages, and other session-injected turns. New exported types: MessageOrigin, MessageOriginKind, TaskNotificationOriginSubkind (#1199)
  • resume_session_at / resume_drops_turn options for truncating resume: ClaudeAgentOptions now supports resume_session_at (fork a session at an earlier transcript entry) and resume_drops_turn (validate that only entries from a specific turn are discarded). Enables safe rewind-to-before-last-prompt without silently dropping unobserved messages (#1198)

Bug Fixes

  • Seed settings.json into temp config dir on SessionStore resume: Resuming from a SessionStore now copies settings.json and cowork_settings.json into the temporary config directory, preserving apiKeyHelper auth, user hooks, env vars, and permissions. Previously, hosts authenticating solely via apiKeyHelper would fail with "Not logged in" on resume (#1197)
  • Improved error messages for failed resume: When the CLI rejects a resume (e.g. nonexistent session or resume_drops_turn guard failure), pending control requests like initialize() now receive the actual error text instead of a generic "Command failed with exit code 1" (#1198)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.229

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

pip install claude-agent-sdk==0.2.137

v0.2.136

Choose a tag to compare

@github-actions github-actions released this 11 Aug 20:10

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.228

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

pip install claude-agent-sdk==0.2.136

v0.2.135

Choose a tag to compare

@github-actions github-actions released this 10 Aug 23:20

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.227

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

pip install claude-agent-sdk==0.2.135

v0.2.134

Choose a tag to compare

@github-actions github-actions released this 08 Aug 03:01

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.226

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

pip install claude-agent-sdk==0.2.134

v0.2.133

Choose a tag to compare

@github-actions github-actions released this 08 Aug 01:26

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.225

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

pip install claude-agent-sdk==0.2.133

v0.2.132

Choose a tag to compare

@github-actions github-actions released this 07 Aug 04:15

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.224

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

pip install claude-agent-sdk==0.2.132

v0.2.131

Choose a tag to compare

@github-actions github-actions released this 06 Aug 01:06

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.223

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

pip install claude-agent-sdk==0.2.131

v0.2.130

Choose a tag to compare

@github-actions github-actions released this 04 Aug 22:53

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.222

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

pip install claude-agent-sdk==0.2.130