Sphinx: a Git hook that quizzes you on AI-written code before push
Sphinx is a Git hook[1] that pauses git push on selected branches and quizzes the developer on AI-written code; once the questions are passed, the waiting push resumes. A separate reviewer model that took no part in the conversation that produced the code reads the commit and the related code, asking about actual behavior, failure cases and conditions that must be met rather than function names — for example, whether a job runs twice if a worker dies after finishing the task but before sending its completion response to the queue. The format is open-book, with answers given while looking at the code and diff[2], and a wrong answer brings an explanation followed by a new scenario. Checks can be skipped, with each skip recorded; the branch to check, the commit or push moment, the number of questions and the focus between design intent and implementation details are all configurable. Sphinx works with Claude Code, Codex, Cursor, OpenCode, Pi and plain Git, accepts answers in a browser or terminal, and reviews code through existing Claude Code or Codex subscriptions, OpenRouter or an OpenAI-compatible API[3], with usage costs from the chosen model; it requires Node.js 22.19 or newer on macOS, Linux and WSL[4] and is MIT-licensed.
Read the original github.comDiscussion on GeekNews
Discussion
A single comment jokes '…solve this for me', alluding to handing the quiz questions to an AI to answer.
Sources
-
KRGeekNews KO
Sphinx - AI가 작성한 코드를 이해했는지 푸시 전에 퀴즈로 확인하는 도구


