Sphinx
A Git hook that helps developers verify code before
Developer ToolsOpen sourceOpen source · verified#git#ai-coding#developer-tools
Listed by the ProductPerch team from Hacker News · not launched here yet
What is Sphinx?
Sphinx is a Git hook designed for agent-assisted development. It pauses pushes on protected branches and asks the developer a question about what the proposed code change actually does. The tool runs locally using Node.js and connects to your existing coding agent, OpenRouter, or any OpenAI-compatible endpoint to generate review questions from the diff.
When you push code, Sphinx intercepts the request and presents a scenario-based question. You answer directly in the terminal. If your answer is incorrect, the tool explains why and lets you try again. Once you demonstrate understanding, the push continues. Your answers are processed locally and never sent to the coding agent, keeping environment variables and API keys secure.
The package includes a yolo mode that allows pushes to bypass the check while logging every skip. It supports plain Git workflows and integrates with tools like Codex, Claude Code, Cursor, OpenCode, and Pi. The project is released under the MIT license and requires Node version 22.19 or newer.
Sphinx features
- Pauses git push on protected branches to verify code understanding
- Generates scenario questions from code diffs using local AI endpoints
- Processes answers locally without sending data to coding agents
- Supports plain Git workflows and major AI coding assistants
- Includes a logged bypass mode for urgent deployments
- Requires Node 22.19+ and installs globally via npm
Who uses Sphinx and for what
- Verifying edge case handling in webhook retry logic before merging
- Checking understanding of AI-generated payment processing code
- Ensuring developers grasp complex refactors before pushing to main
- Integrating security checks into existing AI-assisted coding workflows
- Validating error handling scenarios in distributed system updates
Sphinx FAQ
Is Sphinx free?
Yes, Sphinx is available under the MIT license and can be installed for free via npm. The website does not mention any paid tiers.
Does Sphinx work on Mac?
Yes, Sphinx supports macOS, Linux, and WSL. It requires Node version 22.19 or newer to run.
What is Sphinx used for?
Sphinx is used as a Git hook for agent-assisted development. It pauses code pushes to ask developers questions about their changes, ensuring they understand the code before it ships.
Is Sphinx open source?
Yes, the source code is publicly available on GitHub under the MIT license.
Does Sphinx share my answers with the AI agent?
No, your answers are processed locally and never reach the coding agent. Environment variables and API keys are also kept secure during the process.
Can I skip the verification step?
Yes, you can use the sphinx yolo command to let pushes through. Every time you skip the check, the action is logged.
Comments (0)
Comments and upvotes open when this product launches on ProductPerch.
More Developer Tools launches
Monitor Laravel scheduled tasks and queues

Free product launch platform for indie makers
PloyzOpen source
The open-source cloud on servers you rent