Insights · Code review

AI-generated code: only approve what you can explain, and leave a trail when you skip the check

Published

By Ithaca

Approving AI-generated code without being able to explain what it does is a rubber stamp, not a review. Whoever signs off needs to be able to say how the change behaves when something goes wrong. And skipping that check needs to leave a record.

The starting point is Sphinx, an open-source project under the MIT license (unrelated to the documentation generator of the same name), presented on Hacker News on 18 October 2026. It is a git hook that asks questions about the diff before the push. It appears here as an example of a mechanism, not as a tool recommendation. The descriptions are summarized from the project's README.

What the hook does, according to the project

  • It pauses the push. On a push to a protected branch, made by a person or by a coding agent, Git waits while Sphinx asks the person to predict what the change will do. A wrong answer gets an explanation and a new scenario; a right one goes through.
  • It asks about behavior. Failure modes and invariants, not file or function names. Looking at the code is allowed.
  • It uses a separate reviewer. The questions come from another model, which reads the commit with read-only Git tools and does not see the conversation that produced the code.
  • It allows skipping, with a record. The check can be skipped once or turned off for the repository. Skipping never counts as passing, and every skip or shutoff is recorded.

What it does not promise

The README itself warns that the tool is training, not a security boundary. Anyone with local access, a coding agent included, can bypass hooks. Passing does not prove who wrote the code or that the person understood it without help, and the examiner is a language model, which can be wrong. The current version covers only local commits and pushes, not web merges, required CI checks or deploys. According to the project, it tests understanding rather than auditing the code.

That is why a quiz on the diff does not replace tests, review or security checks. It tries to measure something else: whether the person about to approve understood what they are approving.

Supervision is not a rubber stamp

In our reading, with coding agents writing most of the diff, the risk is not only the bug that slips through. It is the PR that shows a reviewer when nobody on the team can explain what went in.

The question that separates a review from a rubber stamp fits any PR, with or without a tool: what does this change do when a dependency fails, the same message arrives twice or the data comes back empty? Whoever cannot answer has not finished reviewing. The agent can write the code and the PR description; the explanation has to sit with whoever signs off.

Skipping the check needs to leave a trail

A mandatory check has exceptions; the README itself gives an urgent production fix as an example of a reason to turn it off. In our reading, recording every skip, as Sphinx does according to the project, is minimum traceability: it does not prevent the mistake, but the decision to skip does not disappear.

On Ithaca's platform, the record covers the whole session: every coding agent session keeps the request, steps, model, cost, result and authorship (what to record in each session). Months later, it is still possible to know who decided what.

The other end: testing the AI reviewer

Sphinx tests the person. A post on TabNews from October 17 (in Portuguese) proposes testing the machine: before trusting an AI PR reviewer, run it on old PRs whose outcome the team knows and note what it lets through. The author presents the procedure as a proposal, not as the result of a test that was run.

How a team with agents writing most of the code organizes review in layers, with human approval by risk level, is in the note on AI code review.

Where the platform fits

On the agentic development platform, everything is reviewed by people before it goes to production, from Ithaca's team or the client's depending on the project, whatever the risk. As the article on vibe coding and agentic engineering puts it, someone on the team needs to be able to explain what went in, and a person, not the agent, answers for the change. Human supervision and traceability are Ithaca's rule at autonomy level 4, where the platform operates.

Want coding agents with human reading before production and every session recorded? Request a free assessment

Frequently asked questions

Does a quiz on the diff replace code review or tests?

No. Sphinx's README says the tool is training, not a security boundary, and that it tests understanding rather than auditing the code. Tests, review and security checks are still needed.

What is a rubber-stamp approval in code review?

It is an approval given without the approver having understood the change: the process records a review that did not happen.

Does a tool like this send code outside the company?

In Sphinx's case, yes, according to the README: the reviewer model's provider receives the changed code, related files and the answers; .env files and private keys are left out by default. Check first what the company's model policy allows to be sent.

Sources

Start with what weighs most on your backlog.

Tell us what is stuck. After the NDA and access to the code, the agents read the system with your team and show where to start.

Phone is optional. How we use your data, including to measure our ads: Privacy policy.