Breaking Changes
- Skill name validation in
ClaudeAgentOptions.skills: Skill names containing parentheses, commas, control characters, wildcards (*,:*), leading/, surrounding whitespace, or surrogate code points now raiseValueErrorat connect time.skills=["plugin:*"]andskills=["*"]should be replaced withskills="all"or aSkill(...)rule inallowed_tools. Names with leading whitespace or/previously built rules that could never match (silently disabling the skill) and now raise explicitly (#1145)
Bug Fixes
- Validated skill names to prevent
--allowedToolsinjection: Skill names fromClaudeAgentOptions(skills=[...])were passed unchecked into the CLI's--allowedToolsvalue, which splits on commas and spaces. A crafted name could inject extra permission rules. The transport now validates each name and rejects delimiter-carrying or malformed values (#1145)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.221
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.129/
pip install claude-agent-sdk==0.2.129