Commit 6de18bc
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_01SbYsmmbPf9YQuYbHZN52Zh1 parent c86b9b0 commit 6de18bc
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments