You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SandboxArea: what it touches
ImprovementsKind: in v2.1.277,
What probably matters to youSection of the release
What
sandbox.excludedCommands lets you name commands that always run outside the sandbox. Claude Code now parses the actual command line more carefully to catch cases where a command, or a wrapper around it, technically matches an allowlisted entry but is actually being used to slip past the sandbox. It recognizes things like:
Dangerous interpreter or shell flags, such as -c, --eval, -e, or PowerShell's -command/-encodedcommand, across dozens of tools including bash, python, perl, ruby, php, node, git, docker, kubectl, aws, and pwsh
Tricks involving IFS or positional parameters
Risky glob expansion
Git subcommands that can read or write outside the repository, such as clone, worktree add, bundle create, and config changes to dangerous keys like core.sshcommand or core.hookspath
Why
This closes off ways a command could use an excludedCommands entry as a loophole to run unsandboxed code that reaches beyond what was intended, building on earlier work that tied the exclusion list to whether unsandboxed commands are allowed at all.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up sandbox.excludedCommands, on All settings.| [`sandbox.excludedCommands`](#sandbox-excludedcommands) | Name commands Claude Code can run outside the [sandbox](/docs/en/sandboxing) | Sandbox settings | Any file |settings-referencesee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up sandbox.excludedCommands, on All settings.
Anthropic's release notes agreeFixed a sandbox.excludedCommands glob exempting an entire compound Bash command from the sandbox when only one part matched; every part must…