Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save khasky/1287faf8006d0efe97497436246c03e9 to your computer and use it in GitHub Desktop.
Claude Code settings preset: acceptEdits mode with full Bash allowed, plus ask/deny guardrails for dangerous, network, Git, publish, and secrets-related actions
{
"permissions": {
"defaultMode": "acceptEdits",
"allow": [
"Read",
"Edit",
"Write",
"Bash"
],
"ask": [
"Bash(git push *)",
"Bash(git reset *)",
"Bash(git clean *)",
"Bash(git rebase *)",
"Bash(git checkout *)",
"Bash(git switch *)",
"Bash(curl *)",
"Bash(wget *)",
"Bash(ssh *)",
"Bash(scp *)",
"Bash(docker *)"
],
"deny": [
"Read(.env)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/id_rsa)",
"Read(**/id_ed25519)",
"Edit(.env)",
"Edit(**/.env)",
"Edit(**/.env.*)",
"Bash(rm -rf *)",
"Bash(sudo *)",
"Bash(chmod *)",
"Bash(chown *)",
"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