Releases: anthropics/claude-agent-sdk-python
Releases · anthropics/claude-agent-sdk-python
Release list
v0.2.125
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.217
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.125/
pip install claude-agent-sdk==0.2.125v0.2.124
Bug Fixes
- Refused batch script CLI spawning on Windows: Blocked spawning
.bat/.cmdCLI scripts (including npm'sclaude.cmdshim) on Windows to prevent command injection via cmd.exe metacharacter re-parsing (BatBadBut / CVE-2024-27980 class). Windows users relying on the npm shim should switch to the native installer, an explicitclaude.exepath, or a platform wheel that bundles the CLI (#1127) - Windows cmd.exe metacharacter rejection:
resumeandsession_idvalues containing cmd.exe metacharacters (& | < > ^ % ! ") or newlines now raiseValueErroron Windows, preventing injection even if a cmd.exe hop is reintroduced. POSIX behavior is unchanged (#1127) - Dash-prefixed
extra_argsvalue binding:extra_argsnow uses--flag=valueform when the value starts with-, preventing a dash-leading value from being misinterpreted as a separate CLI flag (#1127)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.216
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.124/
pip install claude-agent-sdk==0.2.124v0.2.123
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.215
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.123/
pip install claude-agent-sdk==0.2.123v0.2.122
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.214
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.122/
pip install claude-agent-sdk==0.2.122v0.2.121
Bug Fixes
- Fixed argv flag injection via
resumeandsession_idoptions:--resumeand--session-idare now passed as single=-joined argv tokens (e.g.--resume=<value>) so that a dash-prefixed value is never misinterpreted as an independent CLI flag (#1123)
Internal/Other Changes
- Hardened build scripts against command injection via
CLAUDE_CLI_VERSION: Added version validation (_cli_version_validation.py) and eliminated shell interpolation indownload_cli.pyandupdate_cli_version.pyso that a malformed version string cannot inject shell or Python code during builds (#1117) - CI now lints and typechecks
scripts/alongsidesrc/andtests/ - CI CLI install steps now fail properly when
curlerrors (addedshell: bashforpipefail) - Updated bundled Claude CLI to version 2.1.212
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.121/
pip install claude-agent-sdk==0.2.121v0.2.120
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.211
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.120/
pip install claude-agent-sdk==0.2.120v0.2.119
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.210
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.119/
pip install claude-agent-sdk==0.2.119v0.2.118
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.209
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.118/
pip install claude-agent-sdk==0.2.118v0.2.117
Bug Fixes
- Escaped untrusted fields in Slack issue notification workflow: Fixed the Slack notification workflow to properly escape issue titles and usernames using
jqinstead of bash substitution, preventing malformed JSON payloads and mrkdwn injection from specially crafted issue titles (#1116)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.208
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.117/
pip install claude-agent-sdk==0.2.117v0.2.116
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.207
- Fixed CI workspace trust so Claude Code honors project-scoped permission grants in checkout directories (#1085)
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.116/
pip install claude-agent-sdk==0.2.116