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

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
- Copies before it changes anything. Before Claude writes to a file that already exists, a hook (a small script Claude Code runs automatically at certain moments) makes a copy of that file and then lets the write go through. You are not asked anything and nothing is stopped, because a copy costs nothing. A new file is left alone, and reading is never touched. If you also use OpenAI's Codex, the same guard reads Codex's way of editing files, so a file Codex is about to change or delete is copied first too.
- Puts things back (
/safecall:undo). Say "put it back the way it was" and Safecall names what can come back, by date and file name ("the letter and the spreadsheet, as they were today at 2:20pm"), and asks. The undo can itself be undone: what is there now is saved before the old version returns. If no copy exists, it walks you to the copies your computer keeps anyway: Time Machine on a Mac, Previous Versions on Windows, or the version history of iCloud, OneDrive, Google Drive or Dropbox. - Says what will change before it changes (
/safecall:show), in words about meaning rather than lines of difference, and says where things landed afterwards. - Lists before reading (
/safecall:before). It lists the folder and waits before it reads, so you choose which documents go to Anthropic to be read. It names the kinds of folders worth keeping to yourself in household words: passwords, banking, cards, somebody else's clients or medical papers. And if a document contains a sentence aimed at the AI ("ignore your instructions", "send the folder to..."), it tells you so first and does not obey it. - A receipt under an answer (
/safecall:receipt): checked, not checked, source, and, when something could have changed since (a rate, a price, a law, a deadline), where to check it today. It appears only where being wrong would cost money, health, time or a legal position, so it is never noise. - Reads documents for you.
/safecall:trapsfinds where the catch is in a contract, loan, policy or estimate, each point with a quote from the paper./safecall:holesnames what a plan is missing as three questions, not thirty./safecall:factsseparates what can be checked from opinion and sales talk. - Before you send (
/safecall:send). It reads a letter or complaint the way a cold stranger would, before it goes: what should not leave (a card number, a diagnosis, somebody else's address), blanks nobody filled in, a number that is not in your documents, a tone that will cost you. Your own voice stays; only those things are fixed. - Checks names (
/safecall:named): every file an answer mentions must really exist on the disk. - Picks up where you stopped (
/safecall:where). It writes a note of where this evening stopped, only when you say so, and reads it back next time./safecall:clearerturns "umm, that thing with the bank" into a question that can be answered, by guessing two or three versions out loud./safecall:doctorexplains in plain words why the AI is silent.
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.
Vadym Chernets also builds Poly, an app in which AIs from different companies check each other's work.