Download Latest Version v0.1.58 source code.tar.gz (177.6 kB)
Email in envelope

Get an email when there's a new version of Claude Code SDK Python

Home / v0.1.57
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-09 911 Bytes
v0.1.57 source code.tar.gz 2026-04-09 177.6 kB
v0.1.57 source code.zip 2026-04-09 229.7 kB
Totals: 3 Items   408.2 kB 0

New Features

  • Cross-user prompt caching: Added exclude_dynamic_sections option to SystemPromptPreset, 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 the PermissionMode type, 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 32000 instead of --thinking adaptive. The disabled type similarly now uses --thinking disabled instead 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/

:::bash
pip install claude-agent-sdk==0.1.57
Source: README.md, updated 2026-04-09