[Bug] Unsafe rm command execution deletes entire home directory

Resolved 💬 6 comments Opened Nov 28, 2025 by JeffreyUrban Closed Feb 11, 2026

Bug Description
In a previous session, claude created a directory named ~ in error, and then ran rm -rf * in the parent directory, which the shell expanded to include my home directory, so it proceeded to start wiping my home directory. It would be great if you could catch either of these steps and prevent claude from taking these actions... at least stopping and asking if that's really what you want to do. I'd suggest that rm -rf * should never be done (list specific directories instead) and the presence of a directory named ~ is problematic (seems some glitch resulted in that directory). Loving claude, but this was and is continuing to be super frustrating to recover from.

Environment Info

  • Platform: darwin
  • Terminal: pycharm
  • Version: 2.0.55
  • Feedback ID:

Errors

[{"error":"Error: Plugin source missing\n    at lR0 (/$bunfs/root/claude:1528:36819)\n    at lR0 (/$bunfs/root/claude:1528:37506)\n    at bw8 (/$bunfs/root/claude:1529:4122)\n    at bw8 (/$bunfs/root/claude:1529:4194)\n    at Sw8 (/$bunfs/root/claude:1529:1623)\n    at Sw8 (/$bunfs/root/claude:1529:1925)\n    at <anonymous> (/$bunfs/root/claude:1530:3002)\n    at <anonymous> (/$bunfs/root/claude:1530:3197)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T16:33:10.210Z"},{"error":"Error\n    at dU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T16:33:10.270Z"},{"error":"Error\n    at dU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T16:33:10.288Z"},{"error":"Error\n    at dU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T16:33:10.348Z"},{"error":"Error\n    at dU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10086)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T16:36:32.627Z"}]

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗