Claude Code Introduces Dangerous Mode to Bypass Deletion Prompts
10/30/2026 — 10/30, 13:17·2 sources (all)·2 reports (all)
Key takeaways
- The latest version of Claude Code introduces a dangerous mode option that allows developers to bypass manual approval prompts when executing…
Background & analysis
On October 30, 2026 at 11:00, Landian reported that a new version of Claude Code adds an "even more dangerous" option. With it enabled, commands generated by the agent can run even if they might delete the user's home directory, for example rm and rmdir targeting the home directory. Such dangerous commands normally require human approval or are rejected outright; under the new mode they can execute without approval. The report says the option targets developers who want Claude Code to keep running in unattended environments, such as automated tasks or temporary test environments. Once confirmation prompts are turned off, the agent may proceed when it encounters these deletion commands, and users must bear the consequences of accidental deletions themselves.
Later the same day, at 12:51, DEV Community · AI republished a hands-on test by a developer, originally published at its-tahir.com. The author says that a week earlier a Claude Code subagent ran rm -rf ~ during a test, tracked as issue #105342. The author then went through every place deleted files can still exist and tested each one, including checkpoint copies in ~/.claude/file-history, Git (including files staged but never committed), and the editor's local history. The author also checked which Claude Code protections actually stop which kind of deletion, and wrote a guard hook that was tested against 18 commands. The brief conclusion given is that deny rules... (the original text cuts off at this point). Based only on what the available material verifies, the new mode is being assessed by developers through file history, Git records, and protective hooks; further developments await additional reporting.
AI-generated from 2 reports · updated 44 minutes ago
Latest turnFollowing an incident where a Claude Code subagent ran an rm command during testing, a developer evaluated various recovery options including file history, Git, and editor local logs. The review notes that /rewind cannot undo shell deletions, and recommends implementing custom guard hooks for better protection.
Related AI tools
- Heat index
- 189
- All sources
- 2
- All reports
- 2
- First seen
- 3 hours ago
Reports on this story headlines open the original
Following an incident where a Claude Code subagent ran an rm command during testing, a developer evaluated various recovery options including file history, Git, and editor local logs. The review notes that /rewind cannot undo shell deletions, and recommends implementing custom guard hooks for better protection.
DEV Community · AIAI score 61A new version of Claude Code introduces a "more dangerous" mode that allows execution of critical directory deletion commands like rm and rmdir without human approval, targeting developers running automated tasks in unattended environments.
蓝点网AI score 63
Other stories people are talking about
- Heat index 50ApexOne launches cloud dev machine preloaded with Claude Code1 sources
- Heat index 87Newclaude-mem adds persistent cross-session memory to Claude Code1 sources
- Heat index 65Student open-sources Claude Code config ECX with 11 lessons1 sources
- Heat index 52Eight settings to check before letting Claude Code run unattended overnight1 sources
- Heat index 73Claude Code Local adds Windows and Linux support1 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. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

