Sphinx - Git hook that quizzes you on AI-generated code
Show HN: Sphinx – a hook that quizzes you on your AI's code before shipping
Sphinx is a Git hook for agent-assisted development that ensures you understand the code your AI writes before it ships. When you push, it pauses on protected branches and asks a scenario-based question about your diff—like what happens when a payment fails. Answer correctly to proceed; get it wrong and learn why, then try again. It works with Codex, Claude Code, Cursor, OpenCode, Pi, or plain Git, and runs on minimal tokens via your coding agent, OpenRouter, or any OpenAI-compatible endpoint. Install with npm and start pushing with confidence.
Outsource your thinking, not your understanding.