Comparison
Stet vs CodeRabbit: is Stet an AI code reviewer?
Short answer: no. CodeRabbit is an AI reviewer that reads your pull request and gives its opinion. Stet is a set of rules you define, checked the same way every time, that stops an AI agent leaving the task while it is still working. Many teams would use both.
TL;DR
- CodeRabbit reviews what the agent already did: AI comments on bugs, security and quality at the pull request.
- Stet stops the agent while it works: files outside the task's scope, broken locked behaviours and PRs in the wrong format are blocked before they are committed.
- CodeRabbit is a hosted, per-seat product. Stet is a free, open-source CLI that runs on your machine and sends no code anywhere.
What each one does
| CodeRabbit | Stet | |
|---|---|---|
| Job | AI code review: summaries, line-by-line comments, suggested fixes | Guardrails: scope, locked behaviours and PR format, enforced |
| How it decides | AI models read the change and judge it | Rules you wrote: a glob list, a command that must pass, a template |
| Same input, same answer? | Not guaranteed | Always |
| When it acts | Mainly at the pull request (also IDE and CLI reviews) | While the agent works and before each commit, then again in CI |
| Task scope ("only touch these files") | Not its focus | Core feature: stet scope set + stet guard |
| Where your code goes | Their cloud service | Nowhere: local CLI, no account |
| Price | Per seat, with a free tier | Free, MIT licence |
The difference in one example
You ask Claude Code to add a CSV export. It adds the export, and also "tidies" a shared date helper and edits a failing test so it passes.
- With an AI reviewer, you open a PR and get comments. A good reviewer may notice the helper change and the weakened test, or it may not. Either way, the agent already did it and someone has to unpick it.
- With Stet, the task's scope is
src/export/**. When the agent commits, the hook blocks both the helper change and the edited test as out of scope, and tells it exactly what to revert or how to widen the scope on purpose. That happens before a PR exists.
stet scope set "Add CSV export" --allow "src/export/**,tests/export/**"
# … the agent works …
git commit
✗ src/lib/dates.ts out of scope
stet: commit blocked. If that was on purpose: stet scope add "src/lib/**"
When to use which
- Use an AI reviewer when you want a second pair of eyes on quality, security and style across every PR.
- Use Stet when agents write a lot of your code and the problem is that they wander: edits outside the task, regressions in things that already worked, tests quietly changed, PR descriptions in their own format.
- Use both and they don't overlap much: Stet keeps the agent on the task, the reviewer comments on what is left.
Comparing other approaches too (rules files, tests, agent permissions)? See Guardrails for AI coding: approaches compared.
FAQ
Is Stet an AI code reviewer?
No. Stet doesn't judge your code. It checks rules you set: which files a task may change, which behaviours must keep passing, and the PR format. It gives the same pass or fail every time.
Can I use Stet and CodeRabbit together?
Yes. Stet stops the agent leaving the task before commit; an AI reviewer then comments on the pull request. They solve different problems.
Does Stet send my code anywhere?
No. Stet is a local CLI and MCP server. It has no account and doesn't upload code.
Put guardrails on your AI coding agent
Stet is a free, open-source CLI and MCP server for Claude Code, Cursor, Codex and Copilot. It runs locally: no account, your code never leaves your machine.
npx stet-cli init · Install · Setup guide · GitHub