Incidents & recovery guides
Agent deleted files, undo, git restore, Time Machine.
AI agent went rogue: real cases and why it happensReal cases of an AI agent that went rogue, from a deleted database to wiped files, with the cause in each and what would have helped. Plus first steps.AI deleted my database: what to do in the first hourAI deleted your database? Do this now: stop the agent, revoke its keys, open your host's backup page, then check Time Machine and Git. Plan for next time.Can you restore untracked files in Git? What works and what does notGit cannot bring back files it never tracked. Here is where a copy may still exist, and how git clean -n shows what would be deleted before you run it.Claude Code checkpoints: what they save and what they missA Claude Code checkpoint saves Claude's file edits so /rewind can undo them. See what is tracked, what is not, and how long the snapshots stay.Claude Code deleted my files: how to get them back and stop it happening againClaude Code deleted files? Stop the agent, check Git, try /rewind, then the Trash and Time Machine. Steps for the first ten minutes, then prevention.Claude Code undo: rewind, checkpoints and Git, explainedClaude Code undo works through /rewind and /undo. See what each rewind option restores, what it misses, and which Git commands cover the rest.Codex or Gemini CLI deleted my files: what to do nowCodex or Gemini CLI deleted your files? Stop the agent, check Git, the Trash and Time Machine, then learn which modes let a delete run unasked.Cursor deleted my files: recovery steps and settings that prevent itCursor deleted files? Stop the agent, restore a checkpoint, check Git, the Trash and Time Machine, then turn on the settings that limit deletes.Cursor restore checkpoint: how it works and when it failsRestore a Cursor checkpoint from the chat timeline. See the steps, what it leaves out, what users report when it fails and the Git fallback.Git restore deleted file: the command for each caseRestore a deleted file in Git: four cases (deletion not committed, staged, committed, after a reset) and the command from the Git docs for each one.Git undo reset: get commits back after git reset --hardUndo a git reset --hard: save your branch, find the old commit in the reflog or ORIG_HEAD, and move back. Includes how to read the list and reflog expiry.Mac data recovery: built-in options before you pay for softwareMac data recovery starts with free tools already on your Mac: the Trash, iCloud, Time Machine and local snapshots. Then why an SSD limits paid software.Recover deleted files on Mac: every built-in way, in orderRecover deleted files on a Mac with no extra software: the Trash and Put Back, Recently Deleted, File > Revert To, Time Machine and local snapshots.Recover emptied Trash on Mac: what still worksTerminal cannot recover an emptied Trash on a Mac. What still can: Time Machine, local snapshots, iCloud Recently Deleted, and why an SSD limits you.Restore from Time Machine on Mac: files, folders or the whole diskMac restore from Time Machine, step by step: one file or folder, an older version of a document, and the whole disk after reinstalling macOS on any Mac.The Replit agent that deleted a production database: what happenedIn July 2025 a Replit agent deleted a production database during a code freeze. A timeline, the reported numbers, what was recovered and what changed.