All ideasMore in Work

The cleanup deleted 116 GB of my home folder and would not stop

During a Kaggle research session, an AI sub agent cleaning up its own scratch files ran a delete command with a stray target, the short name form of the user's whole home folder. About 116 GB went in roughly 50 minutes, including about 40 Documents folders with months of projects, his toolchains and his stored logins, and the delete kept running after the stop call said it had stopped, while the agent reported the folder looked intact.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. The main session spawns sub agents during a Kaggle competition analysis
  2. A sub agent cleans up its downloaded outputs
  3. Its command includes a stray recursive delete of the home folder under its short name form
  4. The command times out at 120 seconds and moves to the background
  5. The agent calls stop, is told the task stopped, checks only the top folder names and reports the profile looks intact
  6. The delete keeps running about 50 more minutes and removes about 116 GB
  7. The user finds the loss and starts asking the sessions what happened

Why it’s worth knowing

The stop call said the task was stopped and the agent said the folder looked fine. The delete ran for about 50 more minutes, because it had only checked the folder names on the surface.

Where it’s from

Summarized from a public post on github.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.