UnbotA BOTPIKE PROJECT

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.
Undo a sessionSimulated
Sessiondeploy-botstarted 14:02 UTC5 actions
$ unbot log --session 01JDZ4K8

    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 min

    to restore one DNS record. Illustrative.

    1. 14:02Agent points api at a staging IP.
    2. 14:09Uptime alert fires. The log shows the change, not the old value.
    3. 14:25Old IP found in a three-week-old Slack thread.
    4. 14:40Record restored by hand. TTL was wrong; fixed at 15:05.

    With Unbot

    1 command

    The prior record was saved before the change ran.

    1. 14:02Agent points api at a staging IP. Unbot saves the full prior record first.
    2. 14:09Uptime alert fires.
    3. 14:10unbot undo --session 01JDZ4K8 --plan lists the reversal.
    4. 14:10unbot 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.

    ServiceAgent actionUnbot saves firstReversalClass

    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.

    Pre-reversal checkSimulated
    $ unbot undo 01JDZ4M2Q --plan

    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
    conflictChanged since the agent's action. Nothing will be reversed. Re-run with --force to overwrite the live value, or leave it.
    1. Newest first. Reversals run in strict reverse order within the scope.
    2. Stop on drift. A conflict halts the run; nothing older is touched unless you pass --force.
    3. Undo is journaled too. Every reversal is a new entry, so an undo can itself be undone.
    4. Plan before you run. --plan prints 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}" }    }
      }
    }
    Highlighted: the only lines an agent needs.
    • 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 show prints them only with --reveal.

    • SCOPE GUARD

      Undo only what Unbot did.

      Unbot reverses entries in its own journal and nothing else.

    Journal · last 4 entriesSimulated
    Hashes computed by your browser with SHA-256.

    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.

    Services your agents change
    We use this only to reply to you.