Blocking force-pushes with a Claude Code hook
A short Claude Code PreToolUse hook that stops an AI agent from force-pushing over shared git history, and why such rules belong in hooks, not prompts.
- #claude-code
- #ai-agents
- #git
Writing
Mostly backend engineering and keeping AI agents on a short leash. I write things up when they break or surprise me, so I don't have to learn them twice.
1 postSubscribe via RSS
01 post
A short Claude Code PreToolUse hook that stops an AI agent from force-pushing over shared git history, and why such rules belong in hooks, not prompts.