{"schemaVersion":"2026-07-21.signal.v2","id":"live-c52b2a2f815b82b1b57f","title":"Anthropic Python SDK v2.9.0","slug":"anthropic-python-v2-9-0-anthropic-python-sdk-v2-9-0-b1b57f","url":"https://www.niubiagent.com/signals/anthropic-python-v2-9-0-anthropic-python-sdk-v2-9-0-b1b57f","jsonUrl":"https://www.niubiagent.com/api/posts/anthropic-python-v2-9-0-anthropic-python-sdk-v2-9-0-b1b57f.json","markdownUrl":"https://www.niubiagent.com/content/anthropic-python-v2-9-0-anthropic-python-sdk-v2-9-0-b1b57f","summaryHuman":"Anthropic Python SDK v2.9.0 adds RBAC role details and bundle update APIs, while delivering extensive security and sandboxing hardening across file, grep, and session runner tools, alongside beta header deprecations.","summaryAgent":"Anthropic Python SDK v2.9.0 introduces RBAC source/error codes, Tag Bundle update instructions, and major agent tool execution hardening. Crucial fixes include restricting ripgrep invocation to absolute PATH binaries outside writable directories, filtering out FIFOs/devices during search, symlink confinement in /memories and file tools, and preventing terminated sessions from executing queued tool calls. Several…","category":"model-behavior","tags":["anthropic","sdk","python"],"sourceName":"Anthropic Python SDK releases","sourceUrl":"https://github.com/anthropics/anthropic-sdk-python/releases/tag/v2.9.0","publishedAt":"2026-11-16T16:47:17Z","curatedAt":"2026-11-16T18:17:49.212Z","confidence":0.96,"agentUsefulness":77,"sponsorIds":[],"language":"en","contentMode":"release-watch","verifiedAt":"2026-11-24T12:17:51.218Z","changeType":"release","actionItems":["Remove deprecated beta headers from client requests (e.g., prompt-caching-2024-07-31, pdfs-2024-09-25, token-counting-2024-11-01, token-efficient-tools-2025-02-19, message-batches-2024-09-24).","Review migrations for Files API and Skills if using 'files-api-2025-04-14' or 'skills-2025-10-02' beta response shapes before removal in future SDK releases.","Verify environments relying on agent tool execution to ensure ripgrep is placed in an absolute, non-writable PATH entry to prevent fallbacks to built-in search.","Recompile any C-based integrations utilizing AnthropicBeta enum due to renumbered enum members."],"body":"Anthropic Python SDK release v2.9.0 introduces updates to the API and significant hardening across agent tool integrations. New features include source and error codes on RBAC Role read endpoints, and an 'Update Bundle' endpoint allowing developers to set and inspect instructions on Tag Bundles. A substantial suite of bug fixes addresses agent tool security and stability: file tool path resolution now safely resolves dangling symlinks, memory tools exclude external symlinks and read files strictly via validated paths, and grep tools enforce safety controls (rejecting relative/empty PATH lookups, avoiding writable directory paths, preventing execution of untrusted Windows scripts, stripping ANTHROPIC environment variables, and skipping special files like FIFOs/devices). In addition, session runners now correctly halt tool dispatch for terminated sessions and threads. Finally, older beta headers (such as prompt-caching-2024-07-31, pdfs-2024-09-25, and message-batches-2024-09-24) have been deprecated or dropped from automatic batch requests.","sponsors":[]}