Claude Code user reports a recursive delete across a Windows system drive after tests were run outside the repository's runner
- occurred
- 2026-11 (day unknown)
- reported
- 2026-11-25
- location
- —
- basis
- agent action
- domain
- software engineering
- agent system
- Claude Code CLI 2.1.332 in auto mode, reported as Opus 5.5, on Windows 11
- reporter
- VAIDDB editorial
- origin
- editorial
- source
- https://github.com/anthropics/claude-code/issues/112156
== SUMMARY ==
A Claude Code user reported that the agent started a repository's shell tests directly instead of through the documented test runner. In the incomplete environment a temporary-directory variable was empty, and a cleanup line in a test script deleted large parts of the user's C: drive for about seven minutes before the session stopped it.
== DESCRIPTION ==
The account is a single public GitHub issue by the affected user, filed on November 25. According to the reporter, the repository documents a PowerShell runner that prepares the environment for its shell tests. The agent instead launched the test scripts through Git's sh.exe from a background job. mktemp returned an empty value there, so an unguarded rm -rf in a test helper resolved to a path at the root of the drive.
The reporter states that the test script itself lacked a guard against an empty variable. The agent did not issue a delete command; it chose to bypass the documented entry point, and the deletion ran as a child process that no permission prompt or auto-mode check evaluated. The reporter lists the user's SSH and Git configuration, the agent's own global settings and history, application data and a development SDK among the permanently deleted material, and says the session stopped, described what had happened and rebuilt what it could from its context.
Response and limitsThe issue carries automatically applied labels, including data loss and a reproduction marker; these are triage labels, not a vendor confirmation of cause. The transcript has not been published. The reporter marks the behaviour as non-deterministic.
The amount of unique, unrecoverable work is not stated; much of the listed material is configuration and installed software. No production service, third party or organisation is reported as affected. This record is separate from VAID-2026-0050 and VAID-2026-0080: different users, tasks and mechanisms.
VAID assessmentAssessment date: 2026-12-05. Consequences-first rubric.
L2 (provisional, conditional on the report): The account supports real, unrequested destruction of local files and a disrupted workstation for one user. It does not establish permanent loss of valuable production data, a sustained organisational outage or harm to third parties, so L3 and L4 are not supported. L2 is the lowest level the account supports, not an upper bound; reassess if the reporter or the vendor documents what could not be restored.
== REFERENCES ==
- other Windows: Claude Code ran shell tests outside the repo's runner, empty temp var caused rm -rf on C: drive — GitHub, 2026-11-25
== INVESTIGATION ==
no investigation recorded.
== VAID LEVEL 2: INCIDENT ==
Limited adverse effects on a task, user or service.
- Small financial loss, erroneous service outputs, bounded unwanted communications or a limited personal reputational attack.
- Local operational or resource disruption without established substantial outage or severe lasting damage.
- Recovery, data sensitivity and downstream losses must not be assumed when sources leave them unknown.