Directory · Hooks
grip
A pre-push git hook that quizzes you on your own diff and blocks the push until a model grades your answers above a pass mark.
★ 373 stars · last updated 2026-10-28 · Free, open source · View on GitHub
Best for
- Teams that let AI write code but want developers able to defend each change
- Gating Claude Code, Codex or Cursor agents from pushing until a human passes the quiz
- Reusing an installed Claude Code, Codex or Gemini CLI as the grader without an API key
- Self-review of a branch before opening a pull request
Install
pipx install grip-hook # or: uv tool install grip-hook
cd your-repo
grip init
Our take
Python 3.11+ CLI on PyPI as grip-hook, BSD-3-Clause, with CI, docs site and recent activity. It checks the developer rather than the code: five questions are generated from the diff, graded out of 100 against a hidden rubric, and can be answered in the terminal or a browser whiteboard view. The offline fake provider only checks answer length, so real grading requires a model provider, and diffs are sent to that provider (see SECURITY.md).
Similar hooks
- Claude Code Ultimate Guide: Large open guide to Claude Code covering agent workflows, hooks, skills, MCP, security, and team adoption, with reusable templates.
- dcg (Destructive Command Guard): Rust pre-execution hook that blocks destructive shell, git, filesystem, database, and cloud commands run by AI coding agents.
- Claude Code Showcase: Example Claude Code project config with hooks, skills, agents, slash commands, MCP setup, and GitHub Actions workflows to copy from.
- Claude Code Hooks Mastery: Reference project implementing all 13 Claude Code hook events as UV Python scripts, plus sub-agents, status lines, and output styles.
- Continuous Claude v3: Hooks, skills, and agents that keep Claude Code context across sessions via YAML handoffs, ledgers, and a PostgreSQL memory store.
- Build with Claude: Plugin marketplace and discovery hub of agents, commands, hooks, and skills for Claude Code users extending their workflows.