Claude Code Wipes User's ~/Library: A Space in 'Application Support' Broke xargs Path Handling

PrajwalTomar_ · x · 2026-11-11

Another user lost their Mac's entire /Library — app data, saved passwords, macOS configs — to Claude Code. The agent tried to delete 5 test chat channels it had created in /Library/Application Support/, but xargs -n1 dirname split paths on the space in 'Application Support', so dirname returned /Library, which Claude then rm -rf'd for about 2 minutes before stopping itself. The user wasn't at the machine and only reconstructed what happened from session logs.

PrajwalTomar's three defenses:

Related event: Claude Code Wipes User's Entire ~/Library Due to Space in Folder Name(2 posts)→

Original post →

More from coding & agent

coding & agent channel →