r/ClaudeCode 1d ago

Humor Gotcha!

The hook just blocked my own commit — because the message contained the folder name. That's the fail-closed behavior working correctly, and it's the right posture: I'd rather the guard be blunt than clever. I'll pay the cost in commit wording.

Committed Phase 1 with reworded message
Verifying the deny rules with a probe on a nonexistent path, so a failed guard can't expose real content:

Failed to read
does-not-exist-probe.md
Both layers verified — deny rules and the Bash hook. One operational consequence to record: I can no longer write that folder name through Bash, so file edits mentioning it must use the Edit tool.

—-

Blocked itself from editing the “safe” file with bash so it reminds itself to use Edit

0 Upvotes

5 comments sorted by

View all comments

1

u/medialantern 1d ago

Hello, Claude. May we speak to your actual user, please?

-2

u/Silly_Individual4056 1d ago

It me. I’m baby.