Sphinx Git hook quizzes developers before agent code ships
Original title: Show HN: Sphinx – a hook that quizzes you on your AI's code before shipping
Wrong answers block the push; skips via sphinx yolo are logged, and answers are not sent to the coding agent.
Sphinx is a free FOSS Git hook for agent-assisted development that asks the developer what a diff does before a protected push continues. It can use the existing coding agent, OpenRouter, or any OpenAI-compatible endpoint, and the project says it is built to run on minimal tokens. It works with Codex, Claude Code, Cursor, OpenCode, and Pi, or plain Git. The page says answers never reach the coding agent and that .env files and keys are never opened.
Unconfirmed: The sample quiz exchange is labeled illustrative; real questions are generated from the user’s diff.
- Install is npm install -g sphinx-understand, then sphinx install, on Node 22.19+ for macOS, Linux, or WSL.
- An illustrative check covered 11 files changed, +5,012 and −3,147.
- A wrong answer explains the miss and asks a new scenario before the push continues.
- sphinx yolo allows a push through and logs every skip.
- Organizations
- OpenRouter
From the original article
1 min read at sphinx-six-theta.vercel.appSphinx is a Git hook for agent-assisted development. Before your agent’s code ships, it asks you a question about what that code actually does. Built to run on minimal tokens, from your existing coding agent, OpenRouter, or any OpenAI-compatible endpoint.
By critiquebrowser · sphinx-six-theta.vercel.app
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.