What is Sphinx?
TL;DR: A Git hook that asks a comprehension question about agent-written code before it is pushed.
Sphinx is a Git hook for agent-assisted development. When you or your coding agent push to a protected branch, it pauses the push and asks a question about what the diff actually does, and the push continues once the answer is judged correct. It is free and open source under the MIT license, and it can use your existing coding agent, OpenRouter, or any OpenAI-compatible endpoint as the reviewer model.
Best for: Developers who use coding agents and want a comprehension check before agent-written code reaches protected branches.
Sphinx key features
- Pauses pushes on protected branches for a comprehension question
- Reviewer reads the diff without the coding agent's chat history
- Works with Codex, Claude Code, Cursor, OpenCode, Pi, or plain Git
- Skips with sphinx yolo are logged
- Installs with npm; supports OpenRouter and OpenAI-compatible endpoints
Use cases
- Checking understanding of agent-written changes before they reach main
- Reviewing error-handling and retry behavior in webhook or payment code
👍 Pros
- Free and open source under the MIT license
- Answers are not sent to the coding agent, and .env files and keys are not opened
👎 Cons
- Requires Node 22.19 or later
- sphinx yolo lets pushes bypass the check
Sphinx FAQ
- What is Sphinx?
- Sphinx is a Git hook for agent-assisted development. When you or your coding agent push to a protected branch, it pauses the push and asks a question about what the diff actually does, and the push continues once the answer is judged correct. It is free and open source under the MIT license, and it can use your existing coding agent, OpenRouter, or any OpenAI-compatible endpoint as the reviewer model.
- Is Sphinx free?
- Sphinx uses a Open source pricing model (verified Nov 28, 2026).
- Does Sphinx have an API?
- As of Nov 28, 2026, Sphinx does not offer a public developer API.
- Does Sphinx support Chinese, and is it available in China?
- Sphinx does not support Chinese, and it has unverified availability in mainland China.
- What are the best alternatives to Sphinx?
- Popular alternatives to Sphinx include OpenHands, Graphite, E2B, Warp.
Reviews
No reviews yet. Be the first to share your experience.