{
  "id": 15350844,
  "title": "Show HN: Sphinx – a hook that quizzes you on your AI's code before shipping",
  "url": "https://urgent.news/2026/10/18/show-hn-sphinx-a-hook-that-quizzes-you-on-your-ais-code-before",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-18T04:33:49.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://sphinx-six-theta.vercel.app/"
  },
  "original_language": "en",
  "account": "Sphinx is a Git hook designed to assist developers in understanding the implications of the code their AI agent generates before the code is shipped. It is compatible with various coding agents such as OpenRouter, OpenAI-compatible endpoints, and models like Codex, Claude Code, Cursor, OpenCode, and Pi. The hook pauses the Git process on protected branches and presents the developer with a question about the functionality of the code once it has been generated.\n\nSphinx securely handles sensitive information by not transmitting the developer's answers to the coding agent or exposing .env files and keys. Should the developer make a mistake or need to test different scenarios, they can simply answer incorrectly and learn from the feedback. Conversely, answering correctly allows the push to continue uninterrupted.\n\nIn situations where time is of the essence, the developer can use the \"sphinx yolo\" command, which allows the push to proceed immediately while still logging each skip. To set up Sphinx, the developer runs \"sphinx install,\" which connects the Git repository to their chosen coding agent and prompts them to specify which model should review the code changes. For further details, the developer can consult the Sphinx documentation.",
  "summary": null,
  "key_points": [
    "Sphinx is a Git hook to review AI-generated code before shipping",
    "Compatible with OpenRouter, OpenAI, and various AI coding models",
    "Pauses Git on protected branches, asks developer about code functionality"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}