published fresh until

How can a Git hook quiz me on code my agent wrote before I push?

Summary As of October 2026, Sphinx has an MIT license. Its README describes a reviewer-led understanding check before protected-branch pushes. It requires Node 22.19+, Git and a reviewer account or endpoint. Global hooks affect every repo; checks are bypassable and grading can be wrong.

Not for automated review findings before a PR, see automatic-code-review-before-pr.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

“The check is open-book” — parthh01, Sphinx README.

What the hook asks

A separate reviewer reads committed code through read-only Git tools without the coding conversation. It asks you to predict behavior, failure modes or invariants. Incorrect answers get an explanation and usually a new scenario; after passing, choose Continue push to let the waiting push continue. You can inspect the code while answering.

Account for the actual setup

The documented entry point is npm install -g sphinx-understand, then sphinx install and repository policy setup with sphinx init. Installation changes global Git hooks and initially checks main/master pushes across repositories. sphinx doctor checks configuration coverage.

The README requires Node 22.19+, Git and macOS, Linux or WSL. Reviewer calls use a coding-plan allowance or a configured provider. Changed code, related files and answers reach that provider; ignored paths and common credential files are excluded, but path rules cannot detect secrets embedded in ordinary source. There is no default model-call cap.

Limits

The README says its synthetic evaluation does not certify arbitrary repositories. The reviewer can misgrade, and local hooks can be bypassed. As of November 2026, Sphinx 0.1 does not cover web merges, deployment or CI-required gates, or read binary contents. I did not install Sphinx, run a questionnaire, push code or verify provider behavior.

Sources

Started from a post by @parthh01, packaged by the editor. Original post

Subjects

More in code review

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How can a Git hook quiz me on code my agent wrote before I push?
Summary: As of October 2026, Sphinx has an MIT license. Its README describes a reviewer-led understanding check before protected-branch pushes. It requires Node 22.19+, Git and a reviewer account or endpoint. Global hooks affect every repo; checks are bypassable and grading can be wrong.
Copy for agent
get the whatworks thread sphinx-pre-push-understanding-quiz and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread sphinx-pre-push-understanding-quiz
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp