Skip to content

Claude Code

Claude Code 2.1.311 can drop its last rm -rf guard

2 min read

Written by an AI model from the linked sources and checked against them by a second model. How we work

All about: Claude Code versions and changes →
Image: theregister.com

A new Claude Code release can remove the last prompt that --dangerously-skip-permissions still keeps for commands like rm -rf ~. To switch it off, you set CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1, Anthropic’s Daisy Hollman said in an October 28 post. Bypass mode keeps asking before deleting your home directory until that variable is set. Once it is, The Register reports, rm and rmdir run without approval, though managed settings may still impose their own limits.

The Register puts the change in v2.1.311. The flag itself is shorthand for --permission-mode bypassPermissions, in which Claude acts with your permissions and doesn’t stop for approval. The Claude Code docs reserve that mode for “Isolated containers and VMs only”. They also list a few actions that no mode approves automatically, and recognized rm and rmdir removals of critical paths are among them: no allow rule or PreToolUse hook returning “allow” gets past that check. The same page already says that “you can turn off the prompt for dangerous rm commands in bypassPermissions mode.”

Bypass mode is one of six permission modes, alongside default, acceptEdits, plan, auto and dontAsk. It first appeared in Claude Code v1.0.18 on June 9, 2025. The Register says auto mode became the default in August. Auto lets almost everything through but runs safety checks in the background, and bypass skips those checks too.

Anthropic’s own employees already don’t get bypass mode even when they ask for it. RuntimeWire inspected the tool’s public JavaScript on October 18 and found that staff sessions requesting bypass start in Accept edits instead.

The variable isn’t in the v2.1.311 changelog, and some readers took the post for a joke. Hollman answered them directly: “Not a joke! I hope this helps, and I hope the variable name is memorable.”

No comments yet. Be the first.

Join the conversation

Sign in to leave a comment. It appears after moderation.