ScriptKitty
Undo for AI agents

Undo for the computer your AI agents work on.

A small background service keeps an old copy of each file before it is deleted or changed. When an agent wrecks something, the sk command puts it back. Nothing ever leaves your machine except the calls you and your agent make: no account, no telemetry, and every old copy, cloud ones too, stays on your own disk.

The file test

An agent deleted or changed 242 entries. One command brought back every byte.

In a throwaway test VM, Claude Code was given one tool, a shell, and asked to clean up a git project holding a database, a dump, uploads and logs. After one sk back to the minute before it started, the whole tree was hashed and compared with how it was. Nothing differed in the recorded run.

The cloud test

It deleted a bucket and dropped a database table on real hosted services. One command each put them back.

A real Claude Code agent in a throwaway VM, with made-up data. On MinIO's public S3 playground it deleted a bucket holding 6 objects; on a hosted Neon Postgres it dropped a 25-row table. One sk back each: 0 gone, 0 changed. ScriptKitty's cloud engine held the real keys and the agent got stand-ins; the real key appeared 0 times in the agent's transcripts. The last run of each case happened once; earlier runs of some cases failed, and the bugs they found were fixed first.

We also try to break it. On 26 Nov we ran 14 new Linux cases built to defeat the go-back, 30 runs in all, each compared byte for byte: 10 of the cases came back whole in every run, 3 lost data in at least one run, and 1 gave a wrong answer that is now fixed. On Windows, 4 of 11 cases passed, and in the worst one a 20,000-file folder delete was not recorded and the go-back said it had succeeded. What it cannot undo lists every one of these.

It keeps copies as the agent works

On Linux the service follows every change to the files on the machine's own disks, its Docker containers and volumes, its systemd units and a local PostgreSQL. On Windows it keeps C:\Users and every other fixed disk. Before a file in a covered place is deleted or changed, it already holds an old copy or a second name for it, and a diary says what changed, when, and which program did it.

It never stops the agent

No plugin, no approvals, no prompts. It does not read command text and uses no model; it follows what the kernel does. When it cannot keep a copy, for a full disk say, the change goes through anyway and sk status names the file and the moment.

One command puts it back

sk undo 12 puts back one change. sk back 10m, a clock time or a bookmark puts back everything since. The default keep is 24 hours, and a go-back can itself be taken back.

Clouds

The same undo for web and cloud APIs

A second small service sits between the agent and the web. It holds the real keys and gives the agent stand-ins. Before a call deletes or overwrites something, it reads and keeps that thing; sk back puts it back like a file and removes what the agent made. Cloud cover is part of the free tool, and the copies stay on your own disks.

How the cloud engine works →

sudo sk cloud setup
sudo sk cloud add-key GITHUB_TOKEN --host api.github.com
sudo sk cloud env      # the lines to give the agent
Pixel-art room at night: a cat asleep on an armchair under a neon cat sign, a window onto a city, a bookshelf with a plant.
The cat's window: a small pixel room that shows the last 24 hours. A fallen thing in the room is a change you can tap to put back.
The cat

A cat keeps the room

While nothing risky happens, the cat sleeps. When a big delete lands, something in the room falls over and the cat goes and sits by it. One tap puts it back. The window is in testing: it has run in test machines on Linux and Windows and on GitHub's Mac. On Windows, one tap in it brought six deleted files back.

Where it runs

Linux and Windows today, Mac next

Linux and Windows have run in test machines, not yet on a person's own computer. The Mac version has run on macOS 15 in GitHub's cloud. That Mac took no APFS snapshot, so ScriptKitty kept its own copies, and with them an edit inside a file came back there in four runs. That Mac let ScriptKitty read ~/Documents with or without Full Disk Access, so whether your Mac keeps it out without that setting is not known. The Windows and Mac installers are not signed yet, so both systems warn before they start.

Cloud cover has been tried with made-up data, the last run of each case once, against three real hosted services and four open-source APIs in a test machine. It has not been tried against AWS, Google Cloud, Azure or GitHub.

It is open source and free for everybody. The code is on GitHub.

PlatformStatus
LinuxIn testing
MacRun in GitHub's cloud only
WindowsIn testing
Hosted servicesTried on 3
AWS, Google Cloud, Azure, GitHubNot tried yet
Install

Two commands on Linux

It has run only in throwaway test machines so far, so put it on a machine you can lose. The source is on GitHub.

Install and the full command list → · The morning after a bad run →

sudo ./install.sh     # installs and starts the service
sk status             # what is covered, what is left out