this post was submitted on 24 Jun 2026
800 points (99.6% liked)
Programmer Humor
31972 readers
1037 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You need to use hooks to actually block it from doing things.
CLAUDE.mdfiles are just guidance, and it's not guaranteed to follow everything (and the longer the file gets, the more likely it'll ignore stuff - it should be kept as short as possible)https://code.claude.com/docs/en/hooks
Hooks are code that runs at a certain point (eg after you submit a prompt, before a tool call, after a turn, etc) that can do some validation, verification, logging, etc.
It does still try to work around the blocks though, but it's not as bad as trying to put the restrictions in the prompt.