Playbook
Using CodeRabbit and Stet together: AI review plus guardrails on every PR
TL;DR
- CodeRabbit reads the diff and gives an AI opinion; Stet runs the code and gives fixed-rule facts.
- They don't overlap much, so the two comments don't repeat each other.
- Install CodeRabbit as a GitHub app and Stet as a workflow; both appear on the same PR.
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.
| CodeRabbit | Stet | |
|---|---|---|
| Reads the diff | Yes, with AI | Yes, with fixed patterns |
| Runs your tests | No | Yes, on the PR and on main |
| "Already failing on main" vs "broken by this PR" | No | Yes |
| Catches weakened tests | Sometimes, if the model notices | Always: removed assertions, skips, .only, @ts-ignore |
| Files outside the task | No | Yes, with a scope |
| Same input, same answer | Not guaranteed | Always |
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
- 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.
- Then read the AI review for design and logic.
- 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