Skip to content

Commit 6aef98b

Browse files
mokagioclaude
andcommitted
Add Claude Code deny rules for agent safety
Deny destructive and production-impacting commands: gem publishing, tag creation (triggers CI publish), force push, remote branch deletion, hard reset, and the interactive release task. Plain `git push` stays allowed for PR workflows. --- Generated with the help of Claude Code, https://claude.ai/code Co-Authored-By: Claude Code Opus 4.6 <noreply@anthropic.com>
1 parent e871c7d commit 6aef98b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.claude/settings.json

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

0 commit comments

Comments
 (0)