The AI refactored a shared util and quietly broke checkout totals. Tests passed.
With StetThe change is blocked, because checkout totals are locked.
Early days: try to break Stet. Run it on a real repo with your agent, then tell me what failed. Report it →
free · open source · runs locally
Stet keeps AI agents inside the task while they work. Say which files a task may touch and lock what already works: anything outside that is blocked before it's committed. Works with Claude Code, Cursor, Codex and ChatGPT.
Not an AI code reviewer: the same rules, checked the same way, every time. How is it different from CodeRabbit?
1+export function tokens(dark: boolean) {2+ return {3+ bg: dark ? "#0E1116" : "#FFFFFF",4+ text: dark ? "#F4F4EF" : "#0E1116",5+ accent: "#FFF01F",6+ };7+}
sound familiar?
01
It changed files you didn't ask about.
You asked for a CSV export. The PR also “tidied” a shared helper, a config file and someone else's component.
02
It broke something that worked last week.
The new feature works. Login doesn't. You find out from a customer, not from the PR.
03
It made the tests pass by weakening them.
An assertion removed, a test skipped, a @ts-ignore added. Green checks, real bug.
04
You can't tell if it was the AI or main.
Something fails on the branch. Was it already broken on main, or did this change do it? Nobody knows, so nobody trusts the PR.
Stet checks all four on every pull request and posts one plain-English comment, so the reviewer sees what matters in ten seconds. No AI in the check: the same rules, the same answer, every time.
on every pull request
zero config · free for every repo · no account · no server
🛡️ Stet: ⚠️ 3 things to look at
Compared with main @ 4f2a91c · 7 files changed
Tests and type checks
AI red flags
apps/web/src/cart.test.ts: 3 assertions removed (7 → 4)backend/tests/test_orders.py: test skippedChecked by Stet: free, open source, runs in your CI and sends nothing anywhere. Add it to a repo in 2 clicks
what it looks like
Each feature that works is locked with a command that proves it. After the AI is done, stet check runs them all and shows exactly what broke, before it ships.
locked · still works
locked · still works
AI changed the rounding. Caught before it shipped.
expected 10 · got 9.99
locked · still works
locked · still works
locked · still works
from an early tester
“I was getting a lot of TypeScript errors when moving new files into the web app. Sometimes they were missed and the app crashed on a random click. So I ran a type check and locked that behaviour. Now Stet runs it every time and makes sure there are no compilation errors.”
# lock it once
stet lock add "TypeScript compiles" --cmd "npx tsc --noEmit"
# every run after that
stet check
✓ L2 TypeScript compiles
what's new
v0.10.0 · 29 Nov 2026
stet study "reconciliation" maps the routes, files, flow diagram, tests and gaps into a living doc your team and your AI both use.
Repo study →v0.9.1 · 29 Nov 2026
Snapshot locks save an export, a route list or mapped data as the approved output. If the AI changes it, stet check shows exactly what moved.
Snapshot locks →a week with AI
I'm Shamaz, a CTO. I use AI to write most of my code. Here's what a normal week looks like.
The AI refactored a shared util and quietly broke checkout totals. Tests passed.
With StetThe change is blocked, because checkout totals are locked.
New chat, and I re-uploaded my src folder and re-explained why we chose Postgres over Firebase.
With StetEvery tool reads the latest repo and the decision log.
Asked for a profile page fix; the AI also "tidied" billing.
With StetThe scope guard flags edits outside the task before merge.
what it looks like
Everything an agent needs to know lives in one AGENTS.md file, versioned in your repo.
# AGENTS.md · orders-service## What we're buildingB2B ordering for 40 retail accounts. Stripe for payments.## Out of scopeAdmin UI, mobile apps, multi-currency invoicing.## Never do- No new database tables without a decision entry- No API keys in client code- Do not rename public API fields## Decisions- Postgres over Firebase · Nov 2025 · SQL reporting- Stripe webhooks only, no polling · Sep 2025## Locked behaviours- GET /api/orders returns `total` (checkout reads it)- Prices are integer cents, never floats- Invoice rounding: 2dp, half-up
Every choice, its reason and the files it touches, kept where the next session reads it.
Checkout reads it and breaks silently when the field moves.src/api/orders.ts
Stops spam accounts before billing exists.src/auth/signup.ts
Polling double-charged two test accounts.src/billing/webhooks.ts
Needs SQL reporting per account.db/schema.sql
The scope guard names the file the agent touched outside the task, so you can revert it before merge.
@@ src/pages/Settings.jsx- export function Settings() {+ export function Settings({ user }) {return <ProfileForm user={user} />;@@ billing/invoice.ts- const rate = 0.20;+ const rate = 0.19;
1 file outside this task: billing/invoice.ts. Revert it, or restate the task before merging.
free template
Plain markdown you paste into your repo. It works with Claude Code, Cursor, Codex and any tool that reads AGENTS.md — no account, no lock-in.
roadmap
Now
Stet layer
Guardrails on the tools you already use.
Next
Handoff pack
One click hands the project over properly.
Later
Stet Studio
The cockpit for building with AI.
try it now
Free and open source. Run it in any project folder; it detects your stack and writes your AI rulebook.