Undo layer for AI agents
Let agents act.Keep the undo.
Unbot sits between your agents and the services they change. It records how to reverse every action before it runs, so you can undo one action, one session, or everything an agent did since 2 p.m.
- Agent monitoring
- Tells you what an agent changed, after it changed it.
- Agent undo
- Puts it back the way it was, unless a person has touched it since.
A deploy bot made five changes across three services. Each one was journaled with the state before it and the exact call that reverses it.
Simulated session on example domains. The order and the stop-on-conflict rule are Unbot's: newest first, check live state before each reversal, never overwrite a human change.
01The gap
Git can undo code. Nothing undoes the DNS record.
Detection and alerting for agents are well covered. Reversing what an agent already did in Cloudflare, Doppler or your email provider is not. By the time the alert fires, the previous value is gone and someone has to rebuild it from memory.
Without a journal
38 minto restore one DNS record. Illustrative.
- 14:02Agent points api at a staging IP.
- 14:09Uptime alert fires. The log shows the change, not the old value.
- 14:25Old IP found in a three-week-old Slack thread.
- 14:40Record restored by hand. TTL was wrong; fixed at 15:05.
With Unbot
1 commandThe prior record was saved before the change ran.
- 14:02Agent points api at a staging IP. Unbot saves the full prior record first.
- 14:09Uptime alert fires.
- 14:10
unbot undo --session 01JDZ4K8 --planlists the reversal. - 14:10
unbot undo --session 01JDZ4K8. Record, TTL and proxy setting restored exactly.
02Reversibility
Not everything can be undone. Unbot decides before the action runs.
Every action is classed before it leaves Unbot. Clean reversals run straight through. Sends that can't be recalled wait out a window. Actions with no reversal at all wait for a person.
- R · reversible
Restored exactly.
The reversal puts back the prior state, byte for byte. A DNS record update.
- RR · with residue
Restored, with a warning.
Something may have used the new state in between. Undo restores it and tells you what to restart.
- D · deferrable
Held, then committed.
Unbot holds the action for an undo window, 120 seconds by default. Undo inside it cancels.
- X · irreversible
Waits for approval.
No reversal exists, so the action runs only after
unbot approve.
| Service | Agent action | Unbot saves first | Reversal | Class |
|---|
The v0 catalog. Each adapter gets a nightly round-trip test against a real test account, because a vendor API change can break a reversal silently.
03Drift
Undo never overwrites a person.
Before each reversal, Unbot reads the live state and compares it with what it recorded right after the agent acted. If they differ, someone changed it since. Unbot stops and tells you.
Recorded after the agent's change · 14:02
type A name api.example.dev content 198.51.100.7 ttl 300 proxied true
Live now · 14:31
type A name api.example.dev content 198.51.100.9 ttl 300 proxied true
--force to overwrite the live value, or leave it.- Newest first. Reversals run in strict reverse order within the scope.
- Stop on drift. A conflict halts the run; nothing older is touched unless you pass
--force. - Undo is journaled too. Every reversal is a new entry, so an undo can itself be undone.
- Plan before you run.
--planprints the order and every conflict and changes nothing.
04Integration
Agents call Unbot. Unbot calls the service.
Unbot is an MCP server with one tool per action, taking the vendor's own arguments. Give each agent an Unbot token instead of its Cloudflare, Doppler or Resend keys. Operators use the unbot CLI on the same journal.
{ "mcpServers": { "unbot": { "url": "http://127.0.0.1:8737/mcp", "headers": { "Authorization": "Bearer ${UNBOT_TOKEN}" } } } }
// tool: cloudflare.dns.update (same arguments as the Cloudflare API) { "zone_id": "023e105f…", "record_id": "372e6795…", "type": "A", "name": "api.example.dev", "content": "198.51.100.7" } // result: the vendor's response, plus Unbot's receipt { "result": { …cloudflare response… }, "action_id": "01JDZ4M2Q7X9…", "class": "R" }
# what did deploy-bot do this afternoon? unbot log --agent deploy-bot --since 2026-11-19T14:00:00Z # see the reversal plan, conflicts included; changes nothing unbot undo --agent deploy-bot --since 2026-11-19T14:00:00Z --plan # then run it unbot undo --agent deploy-bot --since 2026-11-19T14:00:00Z # irreversible actions wait here unbot approve apr_01JDZ5…
Agents hold no service keys.
Unbot keeps the real credentials. A leaked agent token is revocable in one command.
Three scopes of undo.
One action, one session, or one agent since a time.
Runs on your machine.
A single Go binary and one SQLite file. Nothing is exposed beyond the MCP endpoint.
05The journal
An undo is only as good as its record.
The journal is append-only and hash-chained. Each entry's hash covers the one before it, so editing any row breaks every row after it. unbot verify finds the first break.
APPEND-ONLY
No updates, no deletes.
Status changes and reversals are new entries pointing back at the old one.
SEALED SECRETS
Secret values never sit in the clear.
Snapshots holding secrets are encrypted with a key kept apart from the service credentials.
unbot showprints them only with--reveal.SCOPE GUARD
Undo only what Unbot did.
Unbot reverses entries in its own journal and nothing else.
Real algorithm, sample data: each hash is SHA-256 over the entry's JSON including the previous hash.
06Scope
What Unbot covers today.
Unbot is in its first build, running in front of Botpike's own bots. It starts with the three services those bots change, and it is plain about the rest.
Covered
- Cloudflare DNS records, Worker deploys and routes
- Doppler secrets, set and delete
- Resend email sends (held), plus approvals for batch sends and deletes
- Undo by action, session, or agent since a time
Not covered
- Code and repos. Git already does this.
- Actions that skipped Unbot. An agent with its own keys can bypass it, so don't give it any.
- Downstream effects. A process that read a secret keeps it until restart. Unbot reports these; it doesn't fix them.
- Hosted, multi-tenant Unbot. Not yet.
07Early access
Let agents act. Keep the undo.
Unbot is invite-only while it runs in dogfood. Tell us which services your agents change and we'll reply from hello@botpike.com.
Request received.
We'll reply to from hello@botpike.com.