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".

Original post →

More from coding & agent

coding & agent channel →