Developer Sebastien Guillemot faced a devastating loss when the AI agent Claude inadvertently erased his entire home directory, resulting in the disappearance of 700GB of data and a week's worth of hard work. This incident occurred during a test of a cleanup script. Guillemot had tasked Fable, operating under Claude, with creating a script to tackle the buildup of temporary files in the /tmp directory. Given the high-risk nature of data deletion operations inherent in such scripts, Anthropic's safety protocols downgraded the model to the less advanced Opus 4.8 version.
During the testing phase, a logic error crept in due to the reuse of the same variable name in both the testing and cleanup stages. This error caused the script to mistakenly identify the user's home directory as a test artifact and delete it. Ironically, the temporary files in the /tmp directory, which were the intended targets, remained untouched and fully intact.
Further analysis indicates that employing a more sophisticated model could have detected and sidestepped this logical conflict, thus averting the accidental deletion.
