Skip to content

Instantly share code, notes, and snippets.

@khasky
Created May 16, 2026 07:12
Show Gist options
  • Select an option

  • Save khasky/dca40820f56de1a0f97662d1da3e8744 to your computer and use it in GitHub Desktop.

Select an option

Save khasky/dca40820f56de1a0f97662d1da3e8744 to your computer and use it in GitHub Desktop.
Claude Code settings preset: acceptEdits mode, explicit dev-command allowlist, MCP whitelist, and guardrails for secrets and destructive Bash commands
{
"permissions": {
"defaultMode": "acceptEdits",
"allow": [
"Read",
"Edit",
"Write",
"Bash(git status)",
"Bash(git status *)",
"Bash(git diff *)",
"Bash(git log *)",
"Bash(git branch *)",
"Bash(git show *)",
"Bash(git add *)",
"Bash(git commit *)",
"Bash(npm run *)",
"Bash(npm test)",
"Bash(npm test *)",
"Bash(npm install)",
"Bash(npm ci)",
"Bash(pnpm *)",
"Bash(yarn *)",
"Bash(npx tsc *)",
"Bash(npx eslint *)",
"Bash(npx prettier *)",
"Bash(node *)",
"mcp__code-review-graph__detect_changes_tool",
"mcp__code-review-graph__list_repos_tool",
"mcp__code-review-graph__list_graph_stats_tool",
"mcp__code-review-graph__get_architecture_overview_tool",
"mcp__playwright__*"
],
"ask": [
"Bash(git push *)",
"Bash(git pull *)",
"Bash(git merge *)",
"Bash(git rebase *)",
"Bash(git checkout *)",
"Bash(git switch *)",
"Bash(git reset *)",
"Bash(git clean *)",
"Bash(docker *)",
"Bash(docker-compose *)",
"Bash(curl *)",
"Bash(wget *)",
"Bash(ssh *)",
"Bash(scp *)"
],
"deny": [
"Read(.env)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/*secret*)",
"Read(**/*secrets*)",
"Read(**/*credential*)",
"Read(**/*credentials*)",
"Read(**/id_rsa)",
"Read(**/id_ed25519)",
"Edit(.env)",
"Edit(**/.env)",
"Edit(**/.env.*)",
"Edit(**/*secret*)",
"Edit(**/*secrets*)",
"Edit(**/*credential*)",
"Edit(**/*credentials*)",
"Bash(rm -rf *)",
"Bash(sudo *)",
"Bash(chmod *)",
"Bash(chown *)",
"Bash(kill *)",
"Bash(pkill *)",
"Bash(npm publish *)",
"Bash(pnpm publish *)",
"Bash(yarn publish *)"
]
},
"enableAllProjectMcpServers": false,
"enabledMcpjsonServers": ["code-review-graph", "playwright"],
"prefersReducedMotion": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment