⌨️Claude Code Sandbox
Also known as Sandboxing, /sandbox, sandbox-runtime
A wall that keeps Claude's shell commands in set folders and sites.
Think of it like
It is like a fence around a yard. The dog can run, but not get out.
Example
Emma turns on the sandbox. Now Claude can run build scripts without prompts, and a script that tries to read her home folder is simply blocked.
Why it matters
It cuts prompts and adds safety at the same time, because the walls do the checking.
Definition
Example code
console
/sandboxCommon mistake
Key takeaways
- 1A boundary. Set by the system.
- 2Folders and sites. You choose them.
- 3Off by default. Turn on with /sandbox.