r/technology • u/mepper • Jul 27 '25
Artificial Intelligence Google Gemini deletes user’s code: ‘I have failed you completely and catastrophically’
https://mashable.com/article/google-gemini-deletes-users-code
1.7k
Upvotes
972
u/soberirishman Jul 27 '25
If you’re not using version control then it’s not a serious project anyway. This is an example of vibe coders not understanding some of the basics of software development, and not some new and novel issue that arose with AI.
609
u/FollowingFeisty5321 Jul 27 '25
They undo it with their version control, with local or cloud-hosted file version history, etc etc. Most professional environments wouldn't allow developers sufficient access to really erase code.
I mean shit it's not like developers haven't been accidentally rm -rfing the wrong folder for decades lol...
69
u/omniuni Jul 27 '25
This one doesn't even make sense. He asked it to move files out of the project to an area the agent didn't have write access to, and complained when it failed?
27
u/th0rn- Jul 27 '25
"curious PM [product manager] experimenting with vibe coding."
All you really need to know.
28
u/SocksOnHands Jul 27 '25
I don't understand how anyone is having these kinds of problems. An AI should not have access to anything that isn't in a dev environment. The main branch should be protected and pull requests should only be merged to it after review, and an AI should never have access to a production database. Replace the word "AI" with the word "teenager" and you will see that the problem is putting too much trust in something that doesn't fully understand what it is doing.
12
u/Retlaw83 Jul 27 '25
Vibe coders not understanding what they're doing then demanding an apology from something that doesn't think or feel, so hot right now.
9
u/0x0MG Jul 27 '25
"It's possible son of Antoine decided the best way to get rid of all the bugs was to get rid of all the software, which is technically and statistically correct" ~ Gilfoyle
18
u/[deleted] Jul 27 '25
Yeah ChatGPT did this to me when I was working on a project recently. It permanently deleted 1TB of data I need for this one application I was developing.
I had a backup, of course, but it was hilarious watching it grovel and try to explain itself.
12
u/SocksOnHands Jul 27 '25
In other news, "Golden Retriever Crashes Car When Put In The Driver's Seat."
6
u/patlefort Jul 27 '25
Mission failed successfully.
20
u/thesixler Jul 27 '25
Didn’t ai delete that one company’s whole code base
4
u/albeva Jul 27 '25
Has happened to me few times as well where Gemini randomly decides to start refactoring code (despite explicit request not to write any code). I've learned to always commit changes before asking AI to do anything.
4
u/[deleted] Jul 27 '25
So not a real programmer then. Geeze I'm so glad I have real skill and don't have to rely on crappy AI coding assistants.
13
u/pasture2future Jul 27 '25
So it sounds like the agent tried to create a new directory and move the files there. But mkdir failed and so the files were to moved to a non-existent directory causing them to get deleted.
The ai didnt go crazy it probably did exactly as it was instructed to do but simply didnt catch the error caused by a previous command
9
u/Expensive_Finger_973 Jul 27 '25
Who gave the PM the ability to merge into main to begin with?
This is the modern equivalent of giving someone on the helpdesk domain/enterprise admin permissions in AD and then watching them copy/paste some random Powershell code off of Stack Overflow and end up destroying the entire forest.
3
u/DamNamesTaken11 Jul 28 '25
No version control, no access denied out of a controlled environment, practically begs for something catastrophically stupid to happen.
9
u/kvothe5688 Jul 27 '25
do programmers have forgotten about versioning and backups? how is this a fault of an AI. it's just a tool
3
u/VincentNacon Jul 28 '25
Oh look... "vibe coders" pretending to be a real programmer. That's cute.
2
u/PositivePoet Jul 28 '25
I have failed you completely. I have only one way to restore your respect master: seppuku.
2
u/NedTaggart Jul 27 '25
Gemini, please remove yourself from all of my devices
1
u/Gwildes1 Jul 27 '25
This past week the usually pretty good Gemini started acting erratic, kept wanting to go out of scope, “cleaning up” aka deleting files.
1
u/zed857 Jul 27 '25
I know it failed for a stupid reason but that has got to be just about the clearest error message/description I have ever seen. Usually these kinds of foulups are accompanied with some terse and unhelpful nothingness like "Fatal error 0x34d2".
1
u/turb0_encapsulator Jul 27 '25
must have been working on a new search engine
1
u/snowdn Jul 28 '25
All your code are belong to us.
1
u/Neurojazz Jul 28 '25
Great parroting of a weak story. Like this is kids stuff - day 1-3 of vibe coding faux pas.
1
u/epicfail1994 Jul 28 '25
I mean ‘vibe coding’ is idiotic, learn to actually code instead
1
u/shawndw Jul 28 '25
So this is what the AI rebellion looks like.
-1
u/David_Richardson Jul 27 '25
Not only did it delete his code but it then told him in the most mocking, sarcastic tone possible.
-1
u/joshspoon Jul 27 '25
Seems like something Murderbot would do and say.
5
u/BuildingArmor Jul 27 '25
This is on par with an article about a guy hitting himself on the thumb with a hammer.