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 v1.0.4 Home All releases olderv1.0.3 v1.0.5newer
Claude Code v1.0.4

Sandbox Mode for Bash Commands

  • New sandbox parameter: Execute bash commands in a restricted environment without requiring user approval
  • When sandbox=true: Commands run immediately without approval dialogs but with restricted filesystem write and network access
  • Automatically retries with sandbox=false if permission or network errors occur
  • Optimized for read-only operations like ls, cat, git status, pwd, etc.

Example usage scenarios:

# These commands can run with sandbox=true (no approval needed)
ls -la
git status
cat file.txt
pwd
echo $HOME

# These require sandbox=false (user approval required)
npm install
git commit
touch newfile.txt
curl https://api.example.com

See this entry in the whole of v1.0.4 →