feat: add auto-allow/deny rules mkdir #6

Merged
SethFalco merged 1 commit from mkdir-rules into main 2026-03-16 00:20:17 +00:00
SethFalco commented 2026-03-16 00:18:31 +00:00 (Migrated from gitlab.com)

I typically revoke commands that can write to disk, but I decided mkdir
could be an exception since it's in the realm of editing projects.

I wanted to make allow it to write the current working directory, but
not allowed to write outside of the current working directory. It will
default to ask, unless the user is in edit mode, in which case it'll
auto-approve similarly to how editing files is auto-approved.

This should've been done separately, but whatever. I also refactored all
hooks to share a "helpers.sh" file, which has some utilities and
repetitive boiler plate.

I typically revoke commands that can write to disk, but I decided mkdir could be an exception since it's in the realm of editing projects. I wanted to make allow it to write the current working directory, but not allowed to write outside of the current working directory. It will default to ask, unless the user is in edit mode, in which case it'll auto-approve similarly to how editing files is auto-approved. This should've been done separately, but whatever. I also refactored all hooks to share a "helpers.sh" file, which has some utilities and repetitive boiler plate.
SethFalco commented 2026-03-16 00:20:17 +00:00 (Migrated from gitlab.com)

mentioned in commit 68a53a267d

mentioned in commit 68a53a267d856c9f1af1dede9e7607df92a1867b
SethFalco (Migrated from gitlab.com) merged commit 68a53a267d into main 2026-03-16 00:20:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai/claude-config!6
No description provided.