Skip to content

Commit 78a971d

Browse files
authored
Add Claude Code deny rules for agent safety (#695)
2 parents e871c7d + 91d4e45 commit 78a971d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.claude/settings.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git tag list)"
5+
],
6+
"deny": [
7+
"Bash(gem push*)",
8+
"Bash(gem signin*)",
9+
"Bash(git tag*)",
10+
"Bash(git push --tags*)",
11+
"Bash(git push origin --tags*)",
12+
"Bash(git push -f*)",
13+
"Bash(git push --force*)",
14+
"Bash(git push origin -f*)",
15+
"Bash(git push origin --force*)",
16+
"Bash(git push origin --delete*)",
17+
"Bash(git push origin :*)",
18+
"Bash(git reset --hard*)",
19+
"Bash(git clean*)",
20+
"Bash(git checkout -- .)",
21+
"Bash(git restore .)",
22+
"Bash(rake new_release*)",
23+
"Bash(bundle exec rake new_release*)"
24+
]
25+
}
26+
}

0 commit comments

Comments
 (0)