commit-quiz
github.com/cristopheer96/commit-quiz- Category
- Developer Tools
- Rank
- No. 5184Tools index
Previous survey · No. 4446 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Software Testing & Quality
- GitHub
- 1 stars
- Date
About
A pre-commit hook that quizzes developers on their staged diff to confirm they read AI-generated changes before committing. It sends the diff to an AI command line tool the user already has, generates four statements (two true, two false), and aborts the commit with a real summary if the answer is wrong. It fails open when the model is unavailable, so it does not block commits.
At a glance
commit-quiz adds a pre-commit hook that asks questions about the staged diff. It is worth trying if your team wants a reminder to read agent-generated changes before committing them.
Good fit
Developers who use a supported AI CLI and want a comprehension check on larger changes.
Consider something else when
Skip it if staged code cannot be sent to a model provider or you need an enforceable code-review gate.
Start here
Use a disposable repo with a synthetic diff above the configured line threshold. Try a wrong answer and see whether the explanation sends you back to the relevant change.
Cost and requirements
The hook uses an existing AI CLI and its account. The README says it sends a truncated staged diff, including paths, to that provider. Provider charges or usage limits apply.
Limits to know
The hook can let the commit proceed when it cannot generate or present the quiz. A correct answer does not establish code quality. The behavior was reviewed from documentation.
Related work
- Sonah (complement)
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.