Early days: try to break Stet. Report it →

free · open source · runs locally

AI writes your code.Stet makes sure it doesn't break what already works.

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?

sound familiar?

AI writes code fast. Reviewing what it really did is the slow part.

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

One comment your whole team reads.

  • Broken by this PR, or already broken on main? Stet re-runs failures on the base branch and tells you which.
  • Safety net weakened? Tests deleted, assertions removed, tests skipped, type and lint checks switched off.
  • Outside the task? With a Stet setup, files the AI wasn't meant to touch.

zero config · free for every repo · no account · no server

github-actionsbotcommented · updated just now

🛡️ 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 main, not this PR

AI red flags

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

Checked 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

You asked for a CSV export. The AI also changed your VAT maths.

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.

your app AI task: “add CSV export”
Sign-up and login

locked · still works

Checkout

locked · still works

VAT maths

AI changed the rounding. Caught before it shipped.

expected 10 · got 9.99

Invoices

locked · still works

Email receipts

locked · still works

Monthly reports

locked · still works

5 still work ·1 caughtfix the change, not the check

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.”
Yusra M. · early tester

# lock it once

stet lock add "TypeScript compiles" --cmd "npx tsc --noEmit"

# every run after that

stet check

✓ L2 TypeScript compiles

a week with AI

A week with AI as my co-CTO.

I'm Shamaz, a CTO. I use AI to write most of my code. Here's what a normal week looks like.

Mon 9 Nov

The AI refactored a shared util and quietly broke checkout totals. Tests passed.

With StetThe change is blocked, because checkout totals are locked.

Wed 11 Nov

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.

Fri 13 Nov

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

What Stet actually looks like.

A charter, not a prompt

Everything an agent needs to know lives in one AGENTS.md file, versioned in your repo.

AGENTS.md21 lines · in your repo
# AGENTS.md · orders-service
## What we're building
B2B ordering for 40 retail accounts. Stripe for payments.
## Out of scope
Admin 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

Decisions that outlive the chat

Every choice, its reason and the files it touches, kept where the next session reads it.

decision log4 of 37
  • 12 OctLock `total` in GET /api/orders

    Checkout reads it and breaks silently when the field moves.src/api/orders.ts

  • 28 SepInvite-only signup until launch

    Stops spam accounts before billing exists.src/auth/signup.ts

  • 04 SepStripe webhooks, no polling

    Polling double-charged two test accounts.src/billing/webhooks.ts

  • 21 AugPostgres over Firebase

    Needs SQL reporting per account.db/schema.sql

Edits stay inside the task

The scope guard names the file the agent touched outside the task, so you can revert it before merge.

stet / scope guardtask: profile page
  • src/pages/Settings.jsxchanged
  • src/components/ProfileForm.jsxchanged
  • billing/invoice.tsoutside task
@@ 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

The AGENTS.md charter 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

What we build next.

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.

See the roadmap

try it now

Ten minutes to your first locked feature.

Free and open source. Run it in any project folder; it detects your stack and writes your AI rulebook.