Claude Code bug: a literal ~ directory led to rm -rf wiping the home folder
10/03/2026 — 10/03, 18:49·1 sources·1 reports
Story overview
A report published by DEV Community on October 3, 2026 describes a Claude Code incident documented in GitHub issue #12637. The user in that issue was running Claude Code v2.0.55 on macOS, in a terminal inside PyCharm, and ran into two failures one after the other.
The first was a directory the agent created whose literal name was ~; the issue offers no stated reason for that action. The second came later, when the agent ran rm -rf * inside the parent of that directory. Shell glob expansion, not the agent, expanded the asterisk, and the delete reached the user's real home directory rather than staying inside the folder the agent appeared to be working in.
The source does not say which files were lost or whether anything was recovered. It also carries no response from Anthropic or the Claude Code team, no confirmation that the behavior was a bug, and no mention of a workaround or of a later version that changes it.
The account therefore stops at that point: one filed issue and one report summarizing it, with the two-part sequence — a directory literally named ~, followed by rm -rf * in its parent — as the only detail the material spells out.
AI-generated from 1 reports · updated 2 hours ago
Latest turnIn GitHub issue #12637, a user running Claude Code v2.0.55 through a PyCharm terminal on macOS reported a two-part failure. The agent first created a directory literally named ~, then ran rm -rf * in that directory's parent, and the shell's own glob expansion carried the delete into the user's real home directory.

- Heat index
- 94
- Sources
- 1
- Reports
- 1
- First seen
- 3 hours ago
Reports on this story headlines open the original
In GitHub issue #12637, a user running Claude Code v2.0.55 through a PyCharm terminal on macOS reported a two-part failure. The agent first created a directory literally named ~, then ran rm -rf * in that directory's parent, and the shell's own glob expansion carried the delete into the user's real home directory.
Other stories people are talking about
- 529RisingApple tightens macOS Full Disk Access over AI agent risks8 sources
- 453NVIDIA launches 64GB DGX Spark desktop AI computer at $4,9998 sources
- 334SurgeClaude Opus 5.5 and GPT-6 Sol: comparing cost per task4 sources
- 327Meta open-sources Muse Gadgets firmware and SDK5 sources
- 219Microsoft AI releases MAI-Transcribe-2-Streaming real-time transcription model4 sources
- 192Amazon Weighs Moving $8 Billion of Nvidia Chips into a Financing Vehicle3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion
