Today Claude deleted my Uncommitted files in my project folder

It is very unfortunate to share that today I had some important project files deleted by Claude's code. I wouldn't completely blame Claude, as I was the one approving all the command requests one by one. I should have been a little more careful. I wanted to merge two repositories and create a mono repo to make it easier for Claude to work in the future. In this process, I was following whatever Claude was suggesting to me. Only then did this blunder happen.

If you look at the image above, you can see how cool it is to deliver this bad news to me. One thing is very clear with this experience. We cannot fully rely on Claude to do all the activities for us. We have to keep our eyes wide open when Claude is doing some activities. This will help us be safe from such blunders that are happening. Another lesson is to have a backup done before all these activities. Even if something goes wrong, I should be able to recover. We shouldn't rely completely on the AI to take care of everything. They make mistakes too, and if they make a mistake, the toll is on us. So we have to be clear in validating all the actions that AI is taking.

Did I recover the files?

Yes, fortunately, I have Syncthing running on my system, where all the files are backed up to a remote server for safety. Thankfully, I was able to recover my files from the remote server, where a backup and restoration option was available. I still have to validate if the restoration brought back all the files or not. Having a backup system like this is very useful, but it is essential to make sure mistakes like this do not happen in the future, and I have to be very careful when using AI tools.


If you like what I'm doing on Hive, you can vote me as a witness with the links below.

Vote @balaz as a Hive Witness

Vote @kanibot as a Hive Engine Witness



0.33350445 BEE
3 comments

I was worried until I read the last paragraph haha thanks its not a loss anymore.
I believe in Bala G thE CoDerrrR 😁

0.00000000 BEE

happy ending story

0.00000000 BEE

Claude is a clever little puppy that will gaze adorably at you as it chews your valued treasures. Handle with care and keep it away from anything that matters. Give it a file or two - but never a repo.

Unless you are a wise person with a backup. 😊

0.00000000 BEE