[DOCS] Inconsistent casing: prose uses snake_case `allow_unsandboxed_commands` but setting key is camelCase
Resolved 💬 4 comments Opened Jan 24, 2026 by coygeek Closed Feb 27, 2026
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://platform.claude.com/docs/en/agent-sdk/python
Section/Topic
"Permissions Fallback for Unsandboxed Commands" warning section (near the end of the Sandbox Configuration section)
Current Documentation
The warning text uses snake_case:
Ifpermission_modeis set tobypassPermissionsandallow_unsandboxed_commandsis enabled, the model can autonomously execute commands outside the sandbox without any approval prompts.
But the actual setting key (documented in settings.json and the sandboxing page) uses camelCase:
"allowUnsandboxedCommands": false
What's Wrong or Missing?
The documentation mixes camelCase (the actual setting key) with snake_case (in the warning prose). This creates ambiguity:
- Users reading the warning may try to use
allow_unsandboxed_commandsas the setting key - The actual key is
allowUnsandboxedCommands(camelCase) - Using the wrong key in settings.json will silently fail (the setting won't be recognized)
This is particularly confusing because:
- Python conventions favor snake_case
- The SDK Python parameters use snake_case (e.g.,
permission_mode) - But JSON settings use camelCase (matching the underlying configuration format)
Suggested Improvement
Standardize the prose to match the actual setting key:
Ifpermission_modeis set tobypassPermissionsandallowUnsandboxedCommandsis enabled, the model can autonomously execute commands outside the sandbox without any approval prompts.
Or add a clarifying note:
Note: Sandbox settings keys use camelCase (e.g., allowUnsandboxedCommands) to match the JSON configuration format, even when referenced in Python documentation.
Impact
High - Prevents users from using a feature
Additional Context
- Mirror location:
platform.claude.com/docs/en/agent-sdk/python.md(line ~2382) - Related documentation: https://code.claude.com/docs/en/settings (sandbox settings reference)
- Related documentation: https://code.claude.com/docs/en/sandboxing
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗