Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.24 Home All releases olderv2.0.23 v2.0.25newer
Claude Code v2.0.24

Auto-Allow Bash Commands in Sandbox Mode

What: When sandboxing is enabled and you're in "accept edits" mode, safe bash commands now execute automatically without permission prompts.

How to use:

# Enable the sandbox with auto-allow feature
claude --configure
# Select "Sandbox BashTool, with auto-allow in accept edits mode"

# Now when you ask Claude to create files/directories, commands like
# mkdir, touch, mv, cp execute automatically when sandboxed

Details:

  • Only activates when all conditions are met: sandbox enabled, auto-allow feature enabled, command is sandboxable, and user is in "acceptEdits" mode
  • Safe commands like mkdir, touch, rm, rmdir, mv, cp, sed are pre-approved in acceptEdits mode
  • User-defined deny/ask rules are still respected
  • Commands can be excluded via sandbox.excludedCommands configuration
  • Falls back to standard permission prompting if conditions aren't met
  • Evidence: hL0() function at lines 206586-206604 and TN6() decision logic at line 206562 in pretty-v2.0.24.js

See this entry in the whole of v2.0.24 →