The Sphinx that makes you
understand your own code
Every PR is a learning moment. sphinx-ci generates a quiz from your actual diff — so you ship code you truly understand.
↓ Try a demo quizTry it yourself
3 questions generated by the Sphinx. Click an answer to see the result.
Question 1/3
In this PR, the new handlePayment() function catches errors but doesn't re-throw them. What's the impact?
Question 2/3
The diff adds a new API endpoint without any authentication middleware. What's the risk?
Question 3/3
The PR changes the default value of maxRetries from 3 to 0. What happens to existing users?
Click an answer to try — 0/3 answered
How does it work?
Four steps to protect your repos.
Sign in
Sign in with GitHub and configure sphinx-ci on the repos of your choice.
Add the workflow
Copy the GitHub Action file and add the secrets to your repo.
Comment /sphinx
On a PR, comment /sphinx. A quiz is automatically generated from the diff.
Pass the quiz
Answer questions about your code. Sufficient score = merge unlocked.
Why sphinx-ci?
A mirror, not a judge
Each question forces you to articulate what you understand — before it hits prod.
Fully customizable
Number of questions, passing score, attempts, language, trigger keyword — all configurable per repo.
Fail-open
If the service is unavailable, the PR is not blocked. 30-second timeout.
5 min setup
No GitHub App to install. One YAML workflow, two secrets, and you're set.
Contextual AI
Questions are based only on your PR diff. No generic questions.
Built for teams
One admin configures, all devs take the quiz. Works with personal repos and organizations.
Ready to truly understand what you push?
Free and open source. Set up in 5 minutes.

sphinx-ci
Every PR is a learning moment.