# Sphinx - Git hook that quizzes you on AI-generated code

Original title: Show HN: Sphinx – a hook that quizzes you on your AI's code before shipping

> Hacker News story 50137950 · language: en · submitted 2026-10-18
> Web version: https://zeli.app/story/50137950
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 252 · by [critiquebrowser](<https://news.ycombinator.com/user?id=critiquebrowser>) · 💬 89
[original](<https://sphinx-six-theta.vercel.app/>) · [HN discussion](<https://news.ycombinator.com/item?id=50137950>)

## Summary

Sphinx is a Git hook for agent-assisted development that ensures you understand the code your AI writes before it ships. When you push, it pauses on protected branches and asks a scenario-based question about your diff—like what happens when a payment fails. Answer correctly to proceed; get it wrong and learn why, then try again. It works with Codex, Claude Code, Cursor, OpenCode, Pi, or plain Git, and runs on minimal tokens via your coding agent, OpenRouter, or any OpenAI-compatible endpoint. Install with npm and start pushing with confidence.

## Key quote

> Outsource your thinking, not your understanding.

## HN discussion (89 comments)

### [theParadox42](<https://news.ycombinator.com/item?id=50138690>)

> I certainly feel like certain AI coding practices I have leave me with nothing learned in a frustrating way. Sometimes the most effective way to getting what I want is just describing a goal really clearly, and then bashing the AI until it gets there. That bashing process can take a lot of energy and yet I don’t gain useful skills or a “better way” that I would if I was still coding. I generate more training data for BigAI corp, but that’s a slow return cycle.
>
> Not sure if this is the right solution, but I would like to learn/understand/grow more as I pursue reckless efficiency.

### [alex-moon](<https://news.ycombinator.com/item?id=50139837>)

> "Success is 10% inspiration and 90% perspiration." - Socrates

### [freshnode](<https://news.ycombinator.com/item?id=50138222>)

> Have you ever heard the idiom "ambulance at the bottom of the cliff"?

### [maximg68](<https://news.ycombinator.com/item?id=50139509>)

> After noticing a drop in my understanding of the code I ship, I built and started using a similar skill ("Quiz me on the PR or the current branch"). I didn't tie it to a specific commit, though - to me it makes more sense to look at the PR as a whole.
>
> So far I was positively surprised with the questions it could come up with.

### [chacha-bong](<https://news.ycombinator.com/item?id=50138688>)

> Lol I built this and immediately got frustrated with it and stopped using it. I think I don't like being questioned by someone who I expect to work like magic.

---

## Cite

- Page: https://zeli.app/story/50137950
- Date: 2026-10-18
- Source: sphinx-six-theta.vercel.app (https://sphinx-six-theta.vercel.app/)
- Hacker News: https://news.ycombinator.com/item?id=50137950

## Other languages

- zh: https://zeli.app/zh/story/50137950 · markdown: https://zeli.app/zh/story/50137950.md
- ja: https://zeli.app/ja/story/50137950 · markdown: https://zeli.app/ja/story/50137950.md
- ko: https://zeli.app/ko/story/50137950 · markdown: https://zeli.app/ko/story/50137950.md
- de: https://zeli.app/de/story/50137950 · markdown: https://zeli.app/de/story/50137950.md
- es: https://zeli.app/es/story/50137950 · markdown: https://zeli.app/es/story/50137950.md
- ru: https://zeli.app/ru/story/50137950 · markdown: https://zeli.app/ru/story/50137950.md
