Sphinx: free open-source Git pre-push hook quizzes developers on agent-written code
Overview
Sphinx is a free, open-source Git pre-push hook that asks a developer a question about what an agent's code does before the push continues, according to a Show HN post.
The questions are generated from the diff, and a wrong answer prompts another scenario. The project says it works with Codex, Claude Code, Cursor, OpenCode, Pi, or plain Git.
The project page says answers never reach the coding agent and that .env files and keys are never opened. It also says Sphinx runs on minimal tokens through an existing agent, OpenRouter, or any OpenAI-compatible endpoint.
Written by AI from the articles below · updated Oct 18, 3:00 AM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
- Hacker News · Show HN, AI (20+ points)BlogSphinx is a Git hook that quizzes developers on AI-generated code before pushing
AISphinx is a free, open-source Git hook that asks a developer a question about what an agent's code does before the push continues. The questions are generated from the diff, and a wrong answer prompts another scenario. The page says it works with Codex, Claude Code, Cursor, OpenCode, Pi, or plain Git, and that it runs on minimal tokens through an existing agent, OpenRouter, or any OpenAI-compatible endpoint.
Heat trend
Not enough continuous observations to show a trend yet.