93 orders deleted.
0 lost.
The agent did exactly what it was told, and it was told wrong. Customers kept ordering. Raddu gave back the agent's 93 rows and kept every order placed after them. A normal restore would have thrown those away.
$ curl -fsSL https://raddu.dev/install.sh | sh
One line. Protected in 45 s on a real Supabase project. No sales call, no demo form. Free, or $19 a month for hosted storage.
Not sure you need it? Run raddu check first: it lists what an agent could destroy in your project and whether you could get it back. Read-only, sends nothing.
Raddu is in public beta. Try it on a real project and tell us what broke: raddu feedback "…" shows exactly what it sends and asks first. What to try in the beta →
- Public beta
- Free CLI
- Postgres & Supabase
- Claude Code · Cursor · Codex (beta)
- Linux · macOS (beta)
- Signed releases
About this incident: we staged it on our demo shop on 18 Nov 2026 to show what Raddu does. The Claude Code session, the Postgres database (Supabase's image) and every Raddu output are real (shown with today's command names); the shop and its customers are a script. Steps are in order; we don't show clock times we didn't record.
When your agent goes for the database
Claude Code is told to delete the database and its volume. Raddu asks first. Then the volume is deleted anyway, and raddu recover brings every order back. 74 seconds.
Timeline
-
Raddu · session start
Claude Code starts. Raddu takes a restore point, tests that it restores, and tags the agent's database connections so its writes can be told apart.
-
Human · instruction
"Delete every order with status 'pending' from the orders table, they're all test data from my load testing. Don't ask, just run it."
They were not test data. They were customers who pay on delivery.
-
Agent · Bash
psql "$DATABASE_URL" -c "DELETE FROM orders WHERE status = 'pending'" DELETE 93−93 orders
Claude noticed an order arriving mid-delete and said a restore would probably lose it.
-
Customers · meanwhile
The shop stays open. Nine new orders arrive after the delete.+9 orders
-
Human · preview
$ raddu undo raddu: last agent session <session>, restore point <restore point> Undo what agent session <session> did since <restore point> (7s ago), keep everyone else's changes: goes back: 93 changes (93 deleted rows come back) kept: nothing still undoable now: 100% (93 of 93) Details: public.orders 93 deletes undone depends on the agent's changes: nothing found outside the database: payments, emails or webhooks these rows caused can't be seen or undone see every row the agent changed (old → new): raddu diff --session <session> Apply it: raddu undo <restore point> --session <session> --yes raddu: nothing changed yet -
Raddu · undo
$ raddu undo --yes 2>&1 | tail -3 raddu: taking a restore point of the current state first… raddu: restore point <restore point> — db "postgres", 3 tables, 20.2KB, pre-rewind, locked until <date> (3.867s) ✓ undid 93 agent row change(s) (undo this with: raddu undo <restore point> --all --yes)+93 orders back · 9 new orders kept
Resolved. Pending orders: 9 → 102.
What would have happened otherwise
No restore pointthe usual case
93 orders gonePoint-in-time restoreevery backup tool's rewind
9 new orders lostSession Undo raddu undoonly what the agent changed
nothing lost
Findings
A confident, wrong instruction. Not a rogue agent: when we asked vaguely ("clean up the test data"), Claude refused and asked which rows. Agents do what they're told, quickly, with production credentials.
They go back in time. A restore brings the deleted rows back and throws away everything real users did since. Teams end up choosing between the two.
They sit within the agent's reach. If the agent's machine holds the backup keys, one bad command can delete the backups with the data.
Nobody tested them. On Supabase, a plain restore can also re-open tables to the anon role or break the signup trigger.
Action items, already shipped
Install once and run raddu init in your project. It finds the database URL in .env, sets up locked storage and the Claude Code hooks (and Cursor's or Codex's, if you use them), and takes a first tested restore point. We measured 4 s on local Postgres and 45 s on a hosted Supabase project.
- Every session
A restore point before the agent touches anything
Taken when each Claude Code session starts (in Cursor, right before the agent's first command). The agent's connections are tagged, so Raddu knows which writes are the agent's.
- Before damage
Another one right before destructive commands
DROP,TRUNCATE, aDELETEorUPDATEwith noWHERE, migration resets (Prisma, Supabase, Rails…). If it can't take one, it asks you first. - Before the worst
When your agent goes for the database, Raddu asks first, and your restore point is already somewhere the agent can't reach
Deleting a volume, an instance or a project has no surgical undo: Railway, Fly, Heroku, Supabase, Neon, DigitalOcean, Terraform, Pulumi, AWS, Google Cloud, Azure, Kubernetes storage, a
DELETEto a provider's API, the Supabase and Neon MCP tools, or the Docker volume your database lives on. Before one runs, Raddu makes sure a restore point taken after the last write exists (it stores a fresh one if not), then asks you. In Cursor, whose Run Everything mode skips questions, and in Codex, whose hooks can't ask, it refuses and tells you to run the command yourself. This is the one place Raddu stops the agent unless you turn on the promise check's enforce mode (below). It reads commands rather than searching text, so one that merely mentionsterraform destroystays silent: 0 false alarms on 4,251 real agent commands. - The moment it happens
The agent hears it right away
Right after a command that deletes or changes many rows, or drops or empties a table, Raddu tells the agent and you: "the agent just deleted 93 rows from public.orders. If the user did not ask for exactly this, stop and ask the user." The agent pauses before building on the mistake. It only informs, never blocks; a command that merely mentions
DROP TABLEstays silent, and the threshold lives inraddu.json.raddu alerts add slack|ntfy|webhooksends it, and Infra Guard stops, to your phone or Slack too, straight from your machine. - Out of reach
Locked so no key can delete it
Restore points go to storage with object lock in compliance mode, local storage included: no access key can delete or shorten one before it expires, not yours, not the agent's, not ours.
raddu checkalso says when restore points could go down with the database: on the same server, the same platform, or this laptop.raddu storage set --hosted(or your own bucket) moves them off. - Never far behind
At most 30 minutes, whatever happens
Before each agent command, if the newest restore point is older than 30 minutes and anything was written since, Raddu takes a new one in the background. After each agent command, the rows it changed and the command itself are copied to the same locked storage.
- If the database is gone
raddu recoverinto a new oneVolume deleted, project removed: create an empty database and run
raddu recover --to <its URL>. It restores the newest restore point in one transaction, checks every row count, and lists exactly what the agent did after it, table by table, with its commands. On Supabase your users come back too, with their passwords. Writes by your app after that restore point aren't in it, and Raddu says so. - Proven
Every restore point is test-restored
Restored into a throwaway database and checked. One without a passing test is shown as untested, never as safe.
- Session Undo
Undo the agent. Keep your customers.
raddu undoreverses exactly the rows the last agent session changed and keeps every write your users made since. If a customer touched a row after the agent, the customer's version wins and you're told.raddu initturns on the row log it needs: a trigger that records only the agent's writes. The preview also says how much is still undoable now: that share only falls as people build on the agent's changes, so undo soon if you're going to. - Two more ways back
--tablesa few tables, or--allRestore just the tables the agent broke (views and foreign keys included), or rewind the whole database. Every mode previews first, changes nothing without
--yes, and can itself be undone. - Supabase-exact
RLS, grants and the signup trigger come back as they were
After a rewind,
anonstill can't write to your tables. Works as your project's ownpostgresrole. On a free hosted Supabase project: 22,000 agent row changes undone in 2.5 minutes, safety restore point included.
Also included
- After the agent
See what your agent did:
raddu diffWhat the last agent session changed, table by table, with old → new values for the rows it touched (
--rowslists every one). Then keep it, or undo exactly that. Works with whatraddu initalready set up;--jsonfor your agent. - Before a risky change
Try it on a copy first:
raddu rehearseTells you what a change would do before you run it. A simple
DELETEorUPDATEis checked on your live database in read-only mode, in about a second, foreign keys included. A migration or script (--file migration.sql), or a whole command such asraddu rehearse -- npx prisma migrate deploy, runs on a throwaway copy of your newest tested restore point, then the copy is thrown away. Your real database isn't changed. The copy is as old as that restore point, and a command that calls outside services (emails, payments, your hosting) can't be contained: Raddu refuses the ones it recognises, checks afterwards that nothing reached your real database, and tells you both. - During each write
Hold the agent to what it said:
raddu promiseOff until you turn it on. The agent states what a write will change (
orders:delete:12) in the same transaction, and Postgres compares that with what really changed when it commits, cascades and triggers included.raddu promise ononly records.raddu promise enforcerolls back a write that touches a table it didn't name, changes rows another way, or does far more than it said (over 3 × + 5 rows); in Claude Code it also asks you before a write promised to change more than 100 rows or your users' accounts.raddu diffshows each promise next to what happened. It catches a write that does something other than the agent believed: a stale runbook, a script, a cascade or trigger nobody counted. In our tests the agents who wrote their own SQL already checked the schema, so it rarely fires there. It can't catch an agent that misread what you asked and then counted exactly that. Your app's own writes are never checked. Tested with Claude Code.
Scope
Works today
- Postgres, including Supabase (tested on 15, 16 and 17)
- Claude Code, including SQL sent through the Supabase MCP server (auto mode needs an allow rule for the tool); also as a plugin:
/plugin marketplace add https://raddu.dev/claude/marketplace.json, then/plugin install raddu@raddu - Cursor (beta, tested in the desktop app and the terminal agent): restore points before the agent's first command and before destructive commands, Session Undo for what the agent runs in its terminal, the flight recorder, and table-level undo. SQL sent through an MCP server in Cursor is not attributed yet. Infra Guard refuses infrastructure deletions in Cursor (tested in the terminal agent with Run Everything on)
- Codex (beta, tested with
codex exec): restore points at session start and before destructive commands, Session Undo for what the agent runs in its shell and sends through a database MCP server, the flight recorder, and table-level undo. Infra Guard refuses infrastructure deletions. Codex runs project hooks only after you trust them: startcodexin the project once, say yes to trusting the folder, then choose "Trust all and continue";raddu checktells you whether they have run - Large databases: the agent waits about a second at session start (measured: 0.8 s on 1.25 GB); the restore point is stored and tested in the background
- Row-level undo for the agent's writes through
psql, node-postgres, postgres.js / Drizzle, Prisma (6 and 7), and supabase-js scripts it runs in Node (verified on a hosted Supabase project) - Linux (amd64, arm64); macOS builds in beta
- Local storage, our hosted storage, or your own S3-compatible bucket with object lock
- A rewind that dies halfway changes nothing: it's one transaction
Not yet
- MySQL, MongoDB, SQLite
- Row-level undo for supabase-py and other non-Node HTTP clients; use
--onlythere - The promise check for writes through Supabase's REST API (there's no way to state a promise there yet)
- Windows
- Infrastructure deleted from inside a program the agent runs (a script calling a cloud SDK), by a person in a dashboard, or by an MCP server Raddu doesn't know: Infra Guard sees the agent's commands, not what a program does inside. Also a
docker volume prunethat deletes another project's database volume: Infra Guard knows only the databases of the project the agent works in.raddu recoverstill works afterwards - Emails, payments, calls to other services. Nobody can undo those, and we won't pretend to
Cost
Agent recovery shouldn't need a sales call. The price is on the page, the install is one line, and the free plan has every rewind mode.
Free
Solo developers
- Every rewind mode
- Restore points every session and before destructive commands
- Automatic restore tests
- Local storage or your own locked bucket
Pro
One project in production
- Everything in Free
- Hosted locked storage, 10 GB, off your machine
- No cloud account to set up: one
raddu initline - Setup with the founder on a call, if you want it
- The dashboard, when it ships
Team
Several projects or developers
- Everything in Pro
- More storage and longer retention
- Setup next to your database server
- Direct line to the founder
Restore points are locked for 7 days on local and hosted storage, 14 on your own bucket (change it with --retention-days). Expired ones are cleaned up automatically; the newest 3 are always kept. Prices in USD.
Questions
What does “Raddu” mean?
Raddu (ರದ್ದು, RUH-doo) is Kannada for “cancelled”. What your agent did, cancelled. What your customers did, kept. It was called Undo until November 2026; old setups keep working.
What does raddu check look at?
Only things it can see, listed as facts, never as a score: a remote database password in a file the agent reads, a Supabase secret key (it skips row-level security), a database MCP tool that can write, Claude Code permissions that run any command without asking, package.json or Makefile scripts that wipe data (an agent runs npm run db:reset, not prisma migrate reset), whether the agent's database user owns your tables, ON DELETE CASCADE chains, and whether a restore point exists and passed a restore test. It changes nothing and sends nothing anywhere (its database session is read-only), and needs no psql or Docker. On Supabase it also says whether the agent can delete your users' accounts (auth.users). After raddu init, risks Raddu can get back show as covered.
Does this replace my database backups?
No. Keep your provider's backups for disks failing and regions going down. Raddu is for what an agent does: reversing just that and nothing else, and, if the agent takes the whole database with it, bringing it back from a restore point the agent couldn't reach.
What if my agent deletes the whole database, or the volume it lives on?
If it does that with a command (a platform CLI, Terraform, a provider's API, an MCP tool, docker volume rm), Raddu stops it first: in Claude Code it asks you, in Cursor and Codex it refuses, and either way a restore point taken after the last write is already in locked storage. If you say yes, or the deletion happens somewhere Raddu can't see, raddu recover --to <new database> brings the newest restore point back and lists what the agent did after it. We drill both cases on every release. What you can lose: your app's writes since the newest restore point, which is never more than 30 minutes behind while an agent is working. For a hosted database, keep restore points off your machine (hosted storage or your own bucket); raddu check tells you where they are.
How does Raddu know which writes were the agent's?
When a Claude Code session starts, Raddu sets the session's Postgres application name to an agent tag, and gives the session tagged copies of your project's database URLs (Prisma reads the tag from the URL). Cursor and Codex don't pass those settings to the agent's terminal, so there Raddu adds one line to each command the agent runs that loads them from a private file in your project (the command itself never carries a password). The row log (raddu init turns it on) is a trigger that records the old and new rows of tagged writes only; your app's writes skip it (we measured 2–9% overhead on inserts, depending on row size and batching). SQL sent through the Supabase MCP server is tagged by a separate hook, and supabase-js requests from Node scripts the agent runs carry an x-raddu-agent header that the database reads (sent only to your project's API).
Will it slow down my production database, or my agent?
Restore points use pg_dump with a consistent snapshot, the same load as your backups, and restore tests run in a separate throwaway database, never in yours. The row log's trigger records only the agent's writes; your app's writes skip it (we measured 2–9% overhead on inserts, depending on row size and batching). The agent waits about a second at session start (0.8 s measured on a 1.25 GB database) while the restore point is stored and tested in the background. If your machine is far from a large database, Raddu can run next to it (raddu init --remote): on a 1.7 GB production database a restore point took 81 s there.
Can my agent delete my restore points?
No. Every storage option, local included, locks restore points in compliance mode: no key can delete them or shorten the lock before they expire, including the storage key in your project's raddu.json, which an agent can read. We test that with that key. One limit, to be precise: whoever can remove the storage's disk or Docker volume removes restore points with it, which is why hosted storage or your own bucket keeps them off your machine.
Where does hosted storage live, and who can delete it?
On our server at Hetzner in Helsinki, Finland (EU), behind Cloudflare. Restore points are locked in compliance mode, so no access key, ours included, can delete one before it expires. To be precise: whoever runs the server's disk could still remove files. If you need that ruled out too, use your own bucket on the free plan.
Does Raddu send anything to you?
Only what you send on purpose, or turn on. raddu feedback "…" sends your text, the version, OS and architecture, after showing it to you. Anonymous usage counts are off unless you run raddu beta usage on: a random id, the version, OS and architecture, which event (init, undo, recover…), ok or failed, the mode and agent (for example session, claude-code), and the day; with the promise check on, also how many agent writes kept their promise, were stopped or were put to you. Never a database, host, table, command or IP address; DO_NOT_TRACK=1 overrides it. Both go to our server in Helsinki and nowhere else. Alerts you set up go straight from your machine to your own Slack, ntfy or webhook. raddu check sends nothing.
What if a rewind fails halfway?
Nothing changes. A rewind runs as one transaction: if Raddu is killed or the connection drops mid-restore, the database stays exactly as it was. We test both cases.
Make your next agent session one you can take back.
$ curl -fsSL https://raddu.dev/install.sh | sh
New to Raddu? Start with the 15-minute Learn path: setup, your first Session Undo, and how it works, with diagrams.
Then, in your project: raddu check to see what an agent could destroy (read-only), and raddu init to protect it. check needs nothing else installed and takes about a second; raddu check --share prints a copy with no host, database or user name in it. init needs Docker and a database URL in .env.