Tip Of AI
Discover what you can do with AI
Sphinx is a free and open source Git hook designed for agent assisted software development. It checks code changes before they are pushed to protected branches by asking the developer questions about what the code does, especially when failures, retries, or unexpected scenarios occur. The tool is intended to strengthen understanding rather than replace human responsibility for reviewing generated code. Sphinx can work with Codex, Claude Code, Cursor, OpenCode, Pi, plain Git, OpenRouter, and OpenAI compatible endpoints. It is designed to use minimal tokens and can be installed globally with npm using the sphinx understand package. The installation command connects Git with coding agents and allows the user to select a review model. Sphinx pauses a push, presents questions based on the code diff, explains incorrect answers, and continues only after the developer demonstrates understanding. It does not send answers to the coding agent, and it avoids opening environment files and keys. A yolo mode allows pushes to proceed while logging skipped checks. The tool requires Node 22.19 or later and supports macOS, Linux, and WSL. Sphinx is released under the MIT license and is available through GitHub and npm.