VerifiedSDKMedium
Anthropic Agent SDK v0.2.158: Verbatim Prompts for Security
AnthropicAnthropic · Agent SDK (Python)September 23, 2026
Anthropic's Claude Agent SDK v0.2.158 introduces the new `verbatim_prompts` option in `ClaudeAgentOptions` to enhance security. This feature prevents untrusted user messages from triggering unintended file reads or command execution by disabling `@path` expansion and slash-command dispatch. Developers can now ensure prompts are delivered to the CLI exactly as written, requiring CLI 2.1.248+.
#claude-agent-sdk#python#security#prompts#cli
Official source