Sphinx

A Git hook that quizzes your understanding before code ships

Visit website →

About

Sphinx is a Git hook built for agent-assisted development. Before your agent's code ships, Sphinx reads the diff and asks you a question about what that code actually does and what happens when edge cases fail.

The idea is simple but effective: instead of the agent reading code and moving on, Sphinx pauses and forces you to think. If you answer wrong, it explains why and gives you a new scenario. If you answer right, the push continues.

It works with Codex, Claude Code, Cursor, OpenCode, and Pi, or plain Git. Your answers never reach the coding agent, and .env files and keys are never opened. In a hurry? The sphinx yolo command lets pushes through, and every skip is logged.

The tool is open-source under the MIT license, and built to run on minimal tokens from your existing coding agent, OpenRouter, or any OpenAI-compatible endpoint.

AI-assisted draft, human-reviewed before publishing — see how we choose & review tools.

Why we picked it

In an era of coding agents that write thousands of lines per session, Sphinx takes the opposite approach: it slows things down and makes sure you understand what ships. This isn't a productivity tool — it's a learning tool. Developers who use it will gradually raise their code comprehension, which sets it apart from automated review tools.