Using CodeRabbit and Stet together: AI review plus guardrails on every PR

By Shamaz Khan · 29 Nov 2026 · 5 min read

TL;DR

Two different questions

An AI reviewer answers "is this good code?": naming, logic, edge cases, security smells. Stet answers "did this change break or weaken anything that worked?": tests and locks on the branch vs on main, tests deleted or skipped, checks switched off, files outside the task.

CodeRabbitStet
Reads the diffYes, with AIYes, with fixed patterns
Runs your testsNoYes, on the PR and on main
"Already failing on main" vs "broken by this PR"NoYes
Catches weakened testsSometimes, if the model noticesAlways: removed assertions, skips, .only, @ts-ignore
Files outside the taskNoYes, with a scope
Same input, same answerNot guaranteedAlways

Setup

CodeRabbit installs as a GitHub app from the Marketplace. Stet installs as a workflow file; add it in two clicks at getstet.dev/add or commit this:

name: Stet
on:
  pull_request:
    types: [opened, synchronize, reopened]
permissions:
  contents: read
  pull-requests: write
jobs:
  stet:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: stet-dev/stet-action@v2

On the next PR you'll see CodeRabbit's review comments on the lines and one Stet comment at the bottom:

## 🛡️ Stet: ⚠️ 3 things to look at
Compared with main @ 4f2a91c · 7 files changed

Tests and type checks
✅ Test suite passes (apps/web/)
✅ TypeScript compiles (apps/web/)
⚠️ Test suite passes (backend/): already failing on the base, not this PR

AI red flags
⚠️ apps/web/src/cart.test.ts: 3 assertions removed (7 → 4)
⚠️ backend/tests/test_orders.py: test skipped

How reviewers use both

  1. Read the Stet comment first. If it says broken by this PR or shows red flags, send it back before anyone spends time on style.
  2. Then read the AI review for design and logic.
  3. If Stet says a failure was already on main, don't block the PR on it; fix main separately.

FAQ

Can I use CodeRabbit and Stet on the same repo?

Yes. CodeRabbit is a GitHub app that comments on lines; Stet is a GitHub Action that posts one summary comment. They run independently on the same pull request.

Do they duplicate each other?

Very little. CodeRabbit gives AI opinions on the code; Stet runs your tests on the PR and on main and flags weakened tests with fixed rules.

Which should I add first?

If agents write a lot of your code, add Stet first: it is free, takes two clicks and catches regressions an AI reviewer can't see because it doesn't run the code.

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

Related