github anthropics/claude-agent-sdk-python v0.2.153

4 hours ago

New Features

  • snapshot option for system prompts: Added a snapshot field to SystemPromptPreset and a new SystemPromptCustom typed dict. When snapshot is True, the session keeps the system prompt recorded on its first request, improving prompt-caching behavior across resumed sessions. When False, the prompt is rebuilt on every request, useful for iterating on append text. Requires CLI 2.1.257+ (#1268)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.273

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

pip install claude-agent-sdk==0.2.153

Don't miss a new claude-agent-sdk-python release

NewReleases is sending notifications on new releases.