Tools

Undo Button for Claude Code: Back Up Your Files Before AI Changes Them

Claude Code undo for non-programmers: a free plugin that copies each file before the AI changes it, puts it back on request, and says what was not checked.
View on GitHubgithub.com/vadimchernets/safecall
A folder of documents with one file lit up: a copy slips into a drawer of copies kept 14 days just before the AI's pen touches it, and a big Put it back button restores the original. Under an answer where being wrong would cost something, a short receipt says what was checked, what was not checked, and the source.
Swipe to see the whole diagram, or tap to open it

If you are not a programmer and you have a folder of your own documents, letting an AI agent into that folder takes some nerve. Two worries come up again and again: what if it deletes or ruins my files, and what if it says something confident and wrong and I act on it. Safecall is a free, open-source plugin for Claude Code, Anthropic's AI assistant that works with the files on your computer, written for exactly that person. Its promise is short: nothing is written before a copy exists, nothing is read before you have seen the list of what it will read, and no answer ends without saying what nobody checked.

Why you need it

Claude Code has its own rewind feature. It belongs to the session: it follows the edits Claude makes through its own file tools, and its saved states are swept away about 30 days after the session. Files changed by a command, such as a deletion or a move, are outside it (Claude Code docs). That is why "claude code undo", "claude code rewind not working" and "claude code deleted my files" are among the things people type into Google.

Safecall adds a second, independent way back: real copies of your files in a folder of their own, which you can open like any other folder, and which come back when you say so in plain words. You do not have to remember to make them. A small guard does it before every rewrite of an existing file, and when the work turns from reading to changing, Safecall copies the files it is about to touch, so they are covered whatever tool later changes them.

What it does

At the start of each session, Safecall also tells Claude the real date and time of your computer, so it does not wish you good night at ten in the morning, and reminds it where you stopped last time. Claude answers in your own language.

A concrete example

You ask Claude to tidy your notes file for the tax advisor. As it starts to rewrite notes.txt, Safecall quietly saves the original into ~/.safecall/copies/, a folder outside your documents where nobody mistakes it for clutter, and Claude tells you in one line that a copy exists. When you see the result, you decide the old wording was better. You write "put it back", Safecall shows which file will return and from what time, and after your yes the original is back.

Files whose names mention a password or a key get special care: a copy of a secret would be a second secret, so instead of copying them Safecall asks you before the change. It recognises such names in English, Spanish, Portuguese, Russian and Ukrainian. Copies older than 14 days remove themselves, at most 20 are kept per folder, files over 5 MB are left out and one copy never exceeds 50 MB, so the copies never fill your disk.

How to start

You need Claude Code and Python 3 (3.8 or newer). Python is the free programming language Safecall's small scripts run on; most Macs with Apple's Command Line Tools and most Linux computers already have it, and on Windows it is one command: winget install -e --id Python.Python.3.12 --scope user. Until Python is there, the session runs as usual and Safecall says in one line that it starts working the moment Python arrives, with no restart needed. Safecall makes no network calls, has no account and no key; everything it writes is on your own disk, and its hooks run on Mac, Linux and Windows, with or without Git Bash.

Install it from the Poly plugins catalogue by typing these two lines into Claude Code:

/plugin marketplace add https://raw.githubusercontent.com/vadimchernets/poly-a1-plugins/main/.claude-plugin/marketplace.json
/plugin install safecall@poly-a1

The first line adds the catalogue by its link, with no git and no GitHub account (Claude Code 2.1.224 or later). If poly-a1 is already there, the second line is enough. Then, in /plugin, open Marketplaces, choose poly-a1 and turn on auto-update, so new versions reach you by themselves. After that, just talk: "take a look at my documents", "what's the catch here", "check this before I send", "put it back the way it was".

Where it comes from

Safecall is written by Vadym Chernets and released under the Apache-2.0 licence, with automated tests and behaviour checks run against several AI models, and a Zenodo archive (DOI 10.5281/zenodo.23107729); the current version is 0.1.11, from 14 October 2026. It pairs well with two siblings: Nightcall, for leaving Claude Code working through the night, and Pocketcall, for leaving the computer working while you go out with your phone. The code, tests and the full list of commands are at github.com/vadimchernets/safecall.

View safecall on GitHub

Vadym Chernets also builds Poly, an app in which AIs from different companies check each other's work.

All tools · All papers and notes