2026-10-20 23:49:20 +02:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
|
|
|
"permissions": {
|
|
|
|
|
"allow": [
|
|
|
|
|
"Bash(npm test)",
|
|
|
|
|
"Bash(npm start:*)",
|
|
|
|
|
"Bash(node --test:*)",
|
|
|
|
|
"Bash(git status)",
|
|
|
|
|
"Bash(git diff:*)",
|
|
|
|
|
"Bash(git log:*)"
|
|
|
|
|
],
|
|
|
|
|
"deny": [
|
|
|
|
|
"Bash(git push --force:*)",
|
2026-10-21 00:02:02 +02:00
|
|
|
"Read(./.env)",
|
|
|
|
|
"Read(~/.ssh/**)",
|
|
|
|
|
"Read(~/.aws/**)",
|
|
|
|
|
"Read(~/.gnupg/**)",
|
|
|
|
|
"Edit(.claude/settings.json)",
|
|
|
|
|
"Edit(.claude/settings.local.json)"
|
|
|
|
|
],
|
|
|
|
|
"blockReadsOutsideWorkingDirectories": true,
|
|
|
|
|
"ask": [
|
|
|
|
|
"Bash(git push:*)",
|
|
|
|
|
"Bash(git fetch:*)",
|
2026-10-21 00:06:42 +02:00
|
|
|
"Bash(git pull:*)",
|
|
|
|
|
"Bash(git ls-remote:*)"
|
2026-10-21 00:02:02 +02:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"sandbox": {
|
|
|
|
|
"enabled": true,
|
|
|
|
|
"autoAllowBashIfSandboxed": true,
|
|
|
|
|
"allowUnsandboxedCommands": false,
|
|
|
|
|
"filesystem": {
|
|
|
|
|
"denyRead": [
|
|
|
|
|
"~/.ssh",
|
|
|
|
|
"~/.aws",
|
|
|
|
|
"~/.gnupg",
|
|
|
|
|
"~/.config",
|
|
|
|
|
"~/.docker",
|
|
|
|
|
"~/.kube",
|
|
|
|
|
"~/.netrc",
|
|
|
|
|
"~/Library/Keychains",
|
|
|
|
|
"~/Documents",
|
|
|
|
|
"~/Desktop",
|
|
|
|
|
"~/Downloads"
|
|
|
|
|
],
|
|
|
|
|
"denyWrite": [
|
|
|
|
|
".claude/settings.json",
|
|
|
|
|
".claude/settings.local.json"
|
|
|
|
|
],
|
|
|
|
|
"allowRead": [
|
|
|
|
|
"~/.config/git"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"network": {
|
|
|
|
|
"allowedDomains": [
|
|
|
|
|
"registry.npmjs.org"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"excludedCommands": [
|
|
|
|
|
"git push:*",
|
|
|
|
|
"git fetch:*",
|
|
|
|
|
"git pull:*",
|
2026-10-21 00:06:42 +02:00
|
|
|
"git commit:*",
|
|
|
|
|
"git ls-remote:*"
|
2026-10-20 23:49:20 +02:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"hooks": {
|
|
|
|
|
"PostToolUse": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": "Edit|Write",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "f=$(jq -r '.tool_input.file_path // empty'); case \"$f\" in *.js) node --check \"$f\" || { echo \"Syntax error in $f\" >&2; exit 2; } ;; esac"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|