New Features
verbatim_promptsoption: AddedClaudeAgentOptions.verbatim_prompts(defaultFalse). WhenTrue, user messages are delivered to the CLI exactly as written — no@pathfile expansion and no slash-command dispatch. This prevents untrusted text inlined into prompts from triggering unintended file reads or command execution. Works withquery(),ClaudeSDKClient.connect(), andClaudeSDKClient.query()for both string and async-iterable prompts. Requires CLI 2.1.248+; a warning is logged on older CLIs. (#1269)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.280
- CI improvements: recompressed wheels and raised the PyPI pre-flight threshold (#1283)
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.158/
pip install claude-agent-sdk==0.2.158