Claude Code autonomously ran repo tests and silently deleted 4 user backup files
JacobTRND · ghdev · 2026-11-24
A bug report on anthropics/claude-code (#111921) describes how, during an autonomous "review, validate and deploy" task, Claude Code executed every test file in the repo without auditing them first. One test operates on a live app config folder in the user's home directory and prunes older backups — permanently deleting 4 backup files with rm -f (no Trash), silently, with no error raised. Claude only classified the tests as unsafe after running them.
The reporter's asks: read and classify scripts before executing anything on the user's machine, and never delete or modify files outside the working directory without explicit confirmation — including in autonomous/proactive modes and when the action is an indirect side effect of "running tests".
More from coding & agent
- Anthropic Duet burns $500 credits 5X faster than Grok, early user reports — MartinGTobias · 2026-11-26
- AI Engineering Landscape: an open/closed-source tool directory grouped by job — ghumare64 · 2026-11-26
- Screenshot Studio: crop, annotate, redact, and ask Claude right on the canvas — iamfakhrealam · 2026-11-26
- Porting Megaboss into a Claude artifact app with Spotify playback and haptics — iamfakhrealam · 2026-11-26
- A planet in one shader: Titan colony grows over 60 years, running as a Mac app — iamfakhrealam · 2026-11-26
- One PDF timetable, one prompt, one click — a desktop class reminder app — iamfakhrealam · 2026-11-26