Skip to content

Commit 6de18bc

Browse files
committed
permissions: deny deletion commands (rm / git rm / find-delete / find-exec-rm)
Closes the gap surfaced after PR #248's over-scoped §18 deletion: earlier sessions could invoke rm and git rm directly, which risked silent loss of work if a pattern was mistyped. The agent now must ask before any deletion path. Aligns with the existing `git reset --hard` and `git branch -D` denials already present. Added to deny list: Bash(rm:*) Bash(git rm:*) Bash(find:* -delete:*) Bash(find:* -exec rm:*) (rm -rf and rm -fr were already denied.) https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
1 parent c86b9b0 commit 6de18bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.claude/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717
"Bash(git branch -D:*)",
1818
"Bash(git branch --delete:*)",
1919
"Bash(git reset --hard:*)",
20+
"Bash(rm:*)",
2021
"Bash(rm -rf:*)",
2122
"Bash(rm -fr:*)",
23+
"Bash(git rm:*)",
24+
"Bash(find:* -delete:*)",
25+
"Bash(find:* -exec rm:*)",
2226
"mcp__github__merge_pull_request",
2327
"mcp__github__delete_file",
2428
"mcp__github__enable_pr_auto_merge",

0 commit comments

Comments
 (0)