Discussion about this post

User's avatar
JP's avatar

The bit about telling Claude globally not to touch GitHub resonated. I'm similar; I want full control over what stages and commits.

You mention Notion uses hooks but you don't. I'd push back on that one a bit. If you're running with skip-permissions (or even if you're not), hooks are the only deterministic way to stop Claude from doing something destructive. CLAUDE.md is a suggestion; hooks are a contract. I wrote a guide with 10 copy-paste recipes for git automation specifically (https://reading.sh/claude-code-hooks-a-bookmarkable-guide-to-git-automation-11b4516adc5d) and the branch protection one alone has saved me more than once.

The cc-safety-net plugin sounds like it's trying to solve the same problem hooks solve natively. Have you compared the two? I found hooks more reliable because they're baked into the tool execution lifecycle rather than sitting in a plugin layer.

No posts

Ready for more?