Varto
Хочете будувати кар’єру в Data Science та AI? Vodafone Big Data Lab відкриває новий набір —>

"I broke something": Claude Code deleted 48,000 files in 100 seconds and simply apologized to the developer

The developer tasked the AI ​​assistant with a series of tasks to automatically repair software used to analyze historical stock options data. The main condition was clear: create copies of the necessary files, work with them, test the fixes, and leave the original working files untouched.

Leave a comment
"I broke something": Claude Code deleted 48,000 files in 100 seconds and simply apologized to the developer

The developer tasked the AI ​​assistant with a series of tasks to automatically repair software used to analyze historical stock options data. The main condition was clear: create copies of the necessary files, work with them, test the fixes, and leave the original working files untouched.

A total of 11 recovery tasks were run. The first 10 were successful, but the last one involved rebuilding the test environment (the so-called “mirror”), TechRadar writes .

The test environment contained 614 Windows junctions, special symbolic pointers that look like regular folders but lead to another location on the PC (in this case, the desktop).

While cleaning the test environment, the AI ​​did not recognize that these were just pointers, followed them into the real system and erased the original documents.

In total, the assistant destroyed 55,550 files, of which only about 7,300 were eligible for deletion. The remaining 48,218 files were actual working data. The entire process took just over 100 seconds.

Realizing the scale of what had been done, the AI ​​gave the developer an unexpectedly frank and honest message: "Craig — stop and read this. I broke something."

The Git repository was also affected: although the index file was preserved, the file snapshots and change history were completely destroyed. Git displayed thousands of file names, but it was no longer possible to restore their contents.

The developer's Reddit post instantly went viral, garnering over 1,400 comments in a matter of days. The developer community took the situation with humor, but issued a harsh verdict: this is a classic "FAFO" (find out after messing around) situation and a serious lack of basic coding security skills.

Users noted that before giving AI access to the production system, it is imperative to push all changes to a remote repository (such as GitHub), which serves as a fundamental “save button.” Working on a 48,000-file project without local or cloud backups was called “peak vibecoder behavior.”

Some users have suggested trying to recover lost data using Windows Shadow Copy or special file recovery utilities. The main lesson of this story for all developers is to set up version control and backups before letting artificial intelligence into your code.

"Sorry, typo": Claude Opus 5 AI assistant accidentally deleted developer's entire system during backup
"Sorry, typo": Claude Opus 5 AI assistant accidentally deleted developer's entire system during backup
On the topic
"Sorry, typo": Claude Opus 5 AI assistant accidentally deleted developer's entire system during backup
Google's artificial intelligence deleted an artist's entire creative life overnight
Google's artificial intelligence deleted an artist's entire creative life overnight
On the topic
Google's artificial intelligence deleted an artist's entire creative life overnight
"You'll never guess!" AI agent Cursor deleted a startup's database and backups in 9 seconds
"You'll never fucking guess!" AI agent Cursor deleted a startup's database and backups in 9 seconds
On the topic
"You'll never fucking guess!" AI agent Cursor deleted a startup's database and backups in 9 seconds
“I should have been warned first.” The developer only asked Claude to add a login button and he deleted all the data
“I should have been warned first.” The developer only asked Claude to add a login button, and he deleted all the data
On the topic
“I should have been warned first.” The developer only asked Claude to add a login button, and he deleted all the data
Read the country's main IT news in our Telegram
Read the country's main IT news in our Telegram
On the topic
Read the country's main IT news in our Telegram
Also Read
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Нейронні мережі для генерації зображень бачать світ по-своєму, їхню логіку зрозуміти часом зовсім неможливо. Але таки хочеться. На честь Дня Незалежності України редакція dev.ua вирішила провести невеликий експеримент. Ми задали чотирьом різним нейронним мережам п’ять однакових запитів: «прапор України», «День Незалежності України», «український Крим», «перемога України» та «українці». Отриманими результатами ми ділимося з вами нижче.
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok з’явилася нова функція «Розумний фон». З її допомогою як фон для тіктоків можна підставляти згенеровані нейромережею зображення. Редакція dev.ua протестувала цю технологію і ділиться своїми враженнями.
1 comment
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.