Urgent.News

What's breaking now, across thousands of outlets.

AI

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

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.

Sphinx 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.

In 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.

Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at sphinx-six-theta.vercel.app →

More in AI

ZeroTrace: An Air-Gapped, Zero-Day Behavioral SOC Copilot

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle What I Built Modern cybersecurity threats are evolving rapidly, but advanced security monitoring and Endpoint…

  • ZeroTrace is an AI-powered, local-first cybersecurity tool
  • Focuses on behavioral threat analysis and AI-assisted triage
  • Offers per-server subscriptions and managed incident triage services

More from Sunday 18 October →