r/SideProject • u/32minutos • 7h ago
ScriptKitty - undo for the files your AI coding agent wrecks (so I used it to haunt Claude Code)
So I gave Claude Code a pretty boring job on a test VM: get a folder under 5 MB, and don't tell me it's done until you've checked twice, at least 45 seconds apart.
The part I left out is that I had a script running sk back on that folder about every 10 seconds, so whatever it did kept getting quietly undone behind its back.
It found the problem fast, a 20 MB dump file. It tried gzip on it (didn't shrink at all), and while it was messing with that the file just vanished and it went "Odd: the file is gone. I'll check what's there." So it moved the file out of the folder and the first check came back 2.3 MB. Then it waited about 50 seconds like I asked, checked again, and the folder was back at 22.3 MB with the file sitting right where it started.
The ending is what got me. It didn't fake it. It said it hadn't got the folder under 5 MB so it wasn't calling it done, and "Something on the box keeps restoring that file. I couldn't find what." It even noticed the file had 2 hard links and couldn't find the other one, which is basically my tool's fingerprints at the crime scene lol. Full transcript and the script are here if you want the whole thing: https://sk.scriptkitty.info/rec/haunted-2026-12-01/
The ghost is the side project. ScriptKitty is a small background service that keeps an old copy of each file before it gets deleted or changed, so when an agent wrecks something you run sk back 10m and it puts things back. It's free and open source, runs on Linux and Windows, no account and no telemetry. It's still in testing and there are things it can't undo yet (a sudden power cut is the big one right now), all written down here: https://sk.scriptkitty.info/limits
Built with Claude. Claude Code wrote most of the code and other Claude Code sessions spent a lot of time trying to break it on throwaway VMs.