How to use it
- Choose your project type, and what Claude may run without asking.
- Choose what to deny or ask about, then turn the sandbox on and list the hosts your commands need.
- Press Copy settings.json and save it as
.claude/settings.jsonin your project root. For every project on the machine, pick the personal file and save it as~/.claude/settings.json. - Start Claude Code in that folder and run
/permissionsto see the rules and the file each one came from. Project allow rules only apply after you accept the workspace trust dialog. - Add the README snippet or the commit message so the next person knows where the file came from, and rerun the settings scanner whenever the file changes.
Every key was checked against the official docs on December 5, 2026: settings reference, permissions and sandboxing. The output is strict JSON, because those docs say a comment or a trailing comma is a syntax error.
What it writes
permissions.allow,askanddenyhold the rules. Claude Code checks deny first, then ask, then allow, and the first match decides. Read deny rules cover secrets, andRead(!./.env.example)carves one file back out.permissions.defaultModesets the starting mode, andpermissions.disableBypassPermissionsModeblocks bypass mode. This tool does not writeautoorbypassPermissions, because they don't take effect from a project file.sandbox.enabledturns the sandbox on.sandbox.allowUnsandboxedCommands: falseis strict mode.sandbox.failIfUnavailableandsandbox.autoAllowBashIfSandboxedare optional.sandbox.network.allowedDomainspre-allows hosts.sandbox.network.strictAllowlistblocks every other host, and it only works from your personal file.- The tool rates its own output with the same code as the settings scanner. The default choices come back with nothing flagged. Switch a guardrail off and the rating shows it.
Honest limits
- A deny or ask rule matches the command text Claude writes. The docs say
Bash(curl *)doesn't stop/usr/bin/curlorsh -c 'curl ...', andBash(git push *)doesn't stopgit -C . push. The sandbox is what holds at the operating-system level. - Read deny rules are not a complete block. The docs say they don't cover a script that opens files itself, or a command like
grep -r pattern .that reads files without naming them. - Allow rules run project code.
npm testruns whatever your test script says, and the agent can edit that script first. - Hiding
~/.sshcan break git over SSH inside the sandbox. An HTTPS remote avoids that. - Settings change between Claude Code versions. Check the keys against the docs for your version. Educational, not a guarantee.
