Skip to content

Commit 9b4a173

Browse files
committed
chore: expand allowed commands and enhance safety rules in Claude settings
- Added numerous Bash commands and WebFetch domains to the allow list. - Introduced new safety rules to deny potentially destructive commands like force pushes and recursive deletions. - Enabled the "safety-net" plugin for additional safeguards.
1 parent de359aa commit 9b4a173

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

.claude/settings.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,81 @@
11
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(pnpm run:*)",
5+
"Bash(pnpm install)",
6+
"Bash(pnpm add:*)",
7+
"Bash(pnpm remove:*)",
8+
"Bash(pnpm ls:*)",
9+
"Bash(pnpm exec:*)",
10+
"Bash(npm run:*)",
11+
"Bash(npx tsc:*)",
12+
"Bash(npx jest:*)",
13+
"Bash(npx eslint:*)",
14+
"Bash(NODE_ENV=test npx jest:*)",
15+
"Bash(chmod:*)",
16+
"Bash(git checkout:*)",
17+
"Bash(git add:*)",
18+
"Bash(git commit:*)",
19+
"Bash(git push:*)",
20+
"Bash(git pull:*)",
21+
"Bash(git status:*)",
22+
"Bash(git log:*)",
23+
"Bash(git diff:*)",
24+
"Bash(git branch:*)",
25+
"Bash(git fetch:*)",
26+
"Bash(git merge:*)",
27+
"Bash(git rebase:*)",
28+
"Bash(git stash:*)",
29+
"Bash(git show:*)",
30+
"Bash(git remote:*)",
31+
"Bash(gh pr:*)",
32+
"Bash(gh issue:*)",
33+
"Bash(tree:*)",
34+
"Bash(grep:*)",
35+
"Bash(cat:*)",
36+
"Bash(find:*)",
37+
"Bash(ls:*)",
38+
"Bash(pwd)",
39+
"Bash(which:*)",
40+
"Bash(echo:*)",
41+
"Bash(head:*)",
42+
"Bash(tail:*)",
43+
"Bash(wc:*)",
44+
"Bash(sort:*)",
45+
"Bash(uniq:*)",
46+
"Bash(mkdir:*)",
47+
"Bash(cp:*)",
48+
"Bash(mv:*)",
49+
"Bash(source ~/.nvm/nvm.sh)",
50+
"Bash(nvm use:*)",
51+
"Bash(docker:*)",
52+
"Bash(docker-compose:*)",
53+
"WebFetch(domain:*.daily.dev)",
54+
"mcp__github__*",
55+
"Read",
56+
"Glob",
57+
"Grep",
58+
"Edit",
59+
"Write",
60+
"Task",
61+
"TodoWrite"
62+
],
63+
"deny": [
64+
"Bash(rm -rf /)",
65+
"Bash(rm -rf /*)",
66+
"Bash(sudo:*)",
67+
"Bash(chmod 777:*)",
68+
"Bash(npm install -g:*)",
69+
"Bash(pnpm add -g:*)",
70+
"Bash(git push --force:*)",
71+
"Bash(git push -f:*)",
72+
"Bash(git reset --hard:*)",
73+
"Bash(shutdown:*)",
74+
"Bash(reboot:*)",
75+
"Bash(mkfs:*)",
76+
"Bash(dd if=:*)"
77+
]
78+
},
279
"hooks": {
380
"PreToolUse": [
481
{
@@ -31,5 +108,8 @@
31108
]
32109
}
33110
]
111+
},
112+
"enabledPlugins": {
113+
"safety-net@cc-marketplace": true
34114
}
35115
}

0 commit comments

Comments
 (0)