PTS security notes / Free tools / Claude Code config generator

Claude Code config generator

Pick your project and how careful you want to be. You get a .claude/settings.json that lets Claude Code run your tests, keeps it away from secrets, blocks the risky commands and turns the sandbox on.

The tool

Runs in your browser. Nothing is uploaded. What you pick stays on this page. It is not sent, stored or logged. The page's Content-Security-Policy blocks network requests from scripts, and you can confirm that in view source.

Project
Where the file goes
Run without asking

Allow rules run project code, so read what your test script does first.

Keep secrets out of reach
Shell commands: curl and wget
Shell commands: rm -rf
Shell commands: git push

Choosing ask also denies force pushes.

Other guardrails
Sandbox

The sandbox limits what shell commands can reach at the operating-system level. Rules only match the text Claude writes.

Network hosts for the sandbox

Pre-allow the hosts your commands need. Anything else prompts, unless you turn on the strict option.

Your settings file

Save it as .claude/settings.json. It is plain JSON, so it has no comments.

Add a link back

JSON can't hold a comment, so put the credit in your README and your commit message instead.

How to use it

  1. Choose your project type, and what Claude may run without asking.
  2. Choose what to deny or ask about, then turn the sandbox on and list the hosts your commands need.
  3. Press Copy settings.json and save it as .claude/settings.json in your project root. For every project on the machine, pick the personal file and save it as ~/.claude/settings.json.
  4. Start Claude Code in that folder and run /permissions to see the rules and the file each one came from. Project allow rules only apply after you accept the workspace trust dialog.
  5. 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

Honest limits

Read more

Map what your agent can reach first

A config file only helps if it matches what your agent can actually reach. The free Agent Blast Radius Checklist walks you through that, with starter files you can use today.

Get the free checklist

Free on Gumroad. This site has no forms, cookies or trackers. Prefer a weekly note? Read the PTS newsletter on Substack.

More free tools

Tool checked December 5, 2026. Educational, not financial or legal advice.