Developer builds grip, a git hook that makes Claude quiz you before every push
A developer posting on r/ClaudeAI as /u/NthOfHisName released grip, a free, open-source Python git pre-push hook that reads a diff, asks five questions about it and grades the answers, holding the push back below a pass mark. The tool uses an existing Claude Code install as its model, so no API key is required, and includes a /grip chat skill plus a gate that stops Claude itself from running git push until the quiz is passed. The author says the newest mode renders the change as a browser whiteboard with pinned questions, inspired by Mitchell Hashimoto's "whiteboard defense" post, and that the motivation was months of pushing Claude-written code he could not fully explain to teammates.
The post describes a workflow meant to make developers account for AI-written code before it ships, a concern the author ties to pushing pull requests he could not explain when teammates asked why a given approach was chosen.
| After a few months of Claude Code doing most of my typing, I noticed something uncomfortable: my PRs looked fine, but if a teammate asked me "why this approach?" I had to go read my own code first. So I built grip, a git pre-push hook. It reads your diff, asks five questions about it, and grades your answers. Below the pass mark, the push waits. The Claude part: The newest mode draws your change as a whiteboard in the browser and pins the questions on it, inspired by Mitchell Hashimoto's "whiteboard defense" post. Free, open source, Python: github.com/guilyx/grip Try it offline first if you're curious: pipx install grip-hook, then grip quiz --provider fake in a test repo. Curious if anyone else has a ritual for this, or if you just trust the tests. submitted by /u/NthOfHisName [link] [comments] |