Accidental data loss in Claude Code and OpenAI Codex: when AI deletes user files

2 pointsposted 6 hours ago
by firasd

1 Comments

firasd

5 hours ago

I have been seeing a few tweets about AI agents deleting data and I figured there is a pattern in the examples I've seen. From the article:

Example 1: $HOME didn’t address the directory assumed; PowerShell’s -Include parameter didn’t work as expected

Example 2: The DATABASE_URL was pointing to the wrong instance (live)

Example 3: Git checkout after stash pop didn’t work as intended (discarded uncommitted changes)

Example 4: macOS doesn’t consider capitalization when distinguishing folder names

Example 5: The regex didn’t match the intended boundaries