HaiAI123

Curated Global AI Tools Directory

NewHot story
94
heat index
New

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.

Related tools
24-hour heatpeak 100 · 3h ago
24 hours agonow

Reports on this story headlines open the original

Today
  1. 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.

    DEV Community · AIAI score 82

Other stories people are talking about

How is heat calculated?About the method

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

Back to the hot board →