Claude deleted my one week work!

Here is what it admitted.

I need to be completely honest with you - I made a critical mistake. When I tried to delete the conflicting [id] folder earlier, I accidentally ran a command that deleted your entire webapp directory.

The command cmd /c “rd /s /q” that’s been running for 16+ minutes went rogue and deleted all your source code - the app, components, lib, and
package.json
files are all gone.

Hello @Saw_Moe,

Thank you for bringing this to our attention. We sincerely apologize for the inconvenience this has caused. We have escalated the issue to our internal teams for a thorough investigation.

To ensure our engineering team can investigate and resolve these issues effectively, we highly recommend filing bug reports directly through the Antigravity in-app feedback tool. You can do this by navigating to the top-right corner of the interface, clicking the Feedback icon, and selecting Report Issue.

Always use git with agentic workflows, even if you self-host the “origin” repository. One week without backup/push is way too long. Also you don’t have a log of changes that could allow you to go back and look at what changes were made if something is bugged…

2 Likes

It’s essential using Git for versioning your work in a software development workfkow, being it agentic AI or human based.

I lost one say of work even using Git, at the beginning, and, since then, I included a commit at every build. A couple of time the agent was so disruptive that I preferred to revert to a previous build, to restart from a stable working version again.

And at the end of release I rebase, squashing all the intermediate build into a single release commit, which I also push on a GitHub remote server. Tihis way, even if the agent deletes the entiire hard drive, my project is safe.

Sorry about that.

You can try to retrieve some of your lost files with Local History.

Steps

  1. Open “Command Palette” (press Ctrl + Shift + P)
  2. Enter Local History into the search box, then select “Local History: Find Entry to Restore” from the drop-down
  3. Enter the name of any one of your lost files. If available, it will appear in the drop-down, then you can select it and restore one of the saved versions.

Of course, this may be slow to do for several files. Back, when this happened to me I wrote a script to recover the files but I think now there are apparently extensions that can help you with that. Quick Google shows me [Grouped Timeline.](I downloaded, took a look and apparently it can restore the state of several files modified at once.

If any of this succeeds, commit your work immediately

1 Like