Problem
Does AI code review catch regressions? What AI reviewers see, and what they can't
TL;DR
- An AI reviewer sees the diff and some context. It does not run your code.
- Regressions are behaviour changes, often in code the diff only touches indirectly.
- Running tests on the PR and on main, and flagging weakened tests, catches what review can't.
What an AI reviewer actually looks at
AI reviewers are good and getting better: they pull in repository context, read related files and flag likely bugs. But they all work from the code as text. They predict what the code will do; they don't execute it.
Where regressions hide
- Shared helpers. The agent "simplifies" a formatter used in twelve places. The diff looks clean; three callers now behave differently.
- Data shapes. A field is renamed in one serializer. Nothing in the diff shows the consumer that breaks.
- Weakened tests. The agent can't make a test pass, so it loosens an assertion. The diff of a test file rarely gets the same scrutiny as product code.
- Already-broken main. A failure on the branch may predate the PR. Without comparing, nobody knows whose fault it is.
The fix: run it, twice
The reliable way to catch a regression is to run the code. Stet runs your tests and type checks on the pull request, re-runs anything that fails on the base branch, and labels each failure:
❌ Test suite passes (apps/web/): broken by this PR
⚠️ Test suite passes (backend/): already failing on the base, not this PR
And it scans the diff for the safety net being weakened: assertions removed (counted before and after), tests skipped or focused, @ts-ignore, as any, eslint-disable, # type: ignore.
Use both
AI review and execution are complements. Let the AI reviewer judge the code; let Stet tell you, with no AI involved, what the change actually broke. Add Stet in two clicks.
FAQ
Can AI code review catch regressions?
Sometimes. AI reviewers can spot likely bugs in the diff, but they don't run your code, so behaviour changes in code the diff touches indirectly, and failures that were already on main, are easy to miss.
How do I catch regressions in AI-written pull requests?
Run your tests on the PR and on the base branch and compare, and flag tests that were deleted, skipped or weakened. Stet does both and posts the result as one PR comment.
Does Stet use AI?
No. Stet runs your own commands and uses fixed patterns on the diff, so the same input always gives the same result.
See what your AI change really did, on every PR
Stet posts one comment on every pull request: what broke vs main, tests deleted, weakened or skipped, checks switched off, files outside the task. Free and open source, zero config, nothing leaves your CI. Plus a CLI and MCP server for Claude Code, Cursor and Codex.
Add to GitHub in 2 clicks · npx stet-cli init · Install · Setup guide · GitHub