Why this matters now
Anthropic staff member Daisy Hollman announced the variable on 2026-10-27, and Anthropic's permission modes docs now carry a full section for it. The announcement landed one day before this post, so most existing guides about the skip permissions flag still describe the old behavior. Under that old behavior, the flag removed routine prompts and still stopped for recognized removals of critical paths, such as a home directory or a filesystem root. The new variable removes that stop in bypassPermissions mode. That changes the risk in a concrete way. A mistaken removal no longer waits for a human answer, and in a terminal session the old two minute countdown that ended in a denial is gone for those commands. Readers who copy an old setup guide will miss this change, and readers who copy the new variable without the setup in this guide will run it with no safety net at all.
What changed, in plain terms
Claude Code has a mode called bypassPermissions, started with the flag --dangerously-skip-permissions. The mode removes routine permission prompts. Before v2.1.311, it still prompted for recognized rm and rmdir removals that target critical paths, and no allow rule or hook approval could clear that prompt. The new variable changes one thing. In bypassPermissions mode, Bash rm and rmdir commands that the critical path check flags now run with no prompt. The docs add two limits worth reading carefully. The change applies only in bypassPermissions mode itself, and it covers what the critical path check flags in the Bash and Monitor tools. That scope includes commands Claude Code cannot fully parse, which also run with no prompt once the variable is set. Deny rules are separate from this change, and a deny rule still blocks in every mode, including bypassPermissions. Managed settings can also impose their own limits.
What you need
You need Claude Code v2.1.311 or later, a terminal session, and a project copy you can throw away. A disposable git worktree gives you that copy. A container or virtual machine gives you stronger isolation, and Anthropic's docs list bypassPermissions as a mode for isolated containers and virtual machines only. Keep cloud keys and SSH keys out of the disposable copy. If your normal workflow keeps secrets in the project directory, read the PromptStaging guide on masking secrets before an agent sees them, and clean the copy first. You also need a way to check your work after the run, which is the git status command in the steps below.
How to set it up safely
- Check the version you actually run. Run
claude --versionin your terminal. If the version is below v2.1.311, update through your normal install method and check again. The variable has no effect on older versions. - Make a disposable copy of the project. From the project directory, run
git worktree add ../agent-scratch -b agent/scratchand then move into it withcd ../agent-scratch. Rungit status --shortand confirm the output is empty, so you start from a clean copy. - Confirm the copy holds nothing you cannot lose. A deletion inside the worktree removes files from that copy. It does not remove files from your main checkout, which is the point of the extra copy. Remove secrets and credentials from the copy before you start the agent.
- Start Claude Code for this session only. In the same terminal, run the variable and the flag together on one command line:
CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS=1 claude --dangerously-skip-permissions
Setting the variable on the command line keeps it in that shell session. Do not add it to ~/.bashrc, ~/.zshrc, or any other shell profile. A profile entry would turn the bypass on for every later terminal, including terminals where you do ordinary work.
- Read the startup notice before you give the agent any task. Anthropic's docs say Claude Code prints a line at startup in this setup. The line you want reads that the variable is set, so dangerous rm commands can run without a prompt. If the line says the variable has no effect in this session, stop and work through the failure section below. Do not assume the bypass is on, and do not assume it is off, until you have read that line.
- Test on files that do not matter. Ask the agent to remove a test directory inside the worktree first, then run
git status --shortand confirm the change is limited to that test directory. A short test like this tells you more than a second reading of any guide, because it shows what the session actually does with a removal. - Close the session and start clean. When the work is done, close that terminal and open a fresh one for normal work. Run
printenv CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONSin the fresh terminal. An empty result means the variable is gone. If the command prints1, find where it is set, such as a shell profile, and remove it there.
How CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS changes the prompt
The variable only changes the critical path removal prompt, and only inside bypassPermissions mode. It does not change plan mode, so a session in plan mode still prompts as before. It does not clear deny rules, and it does not clear ask rules that name a command. It also does not move the variable into a settings file. Anthropic's docs say Claude Code reads the variable from the launch environment only and ignores it in a settings file env block. That detail catches people who try to store the setting with the rest of their Claude Code config. Store nothing. Type it per session, read the startup line, and close the terminal when you finish.
What to do if it fails
Start with the startup line, since it names the problem. A line that says the variable has no effect in this session means removals keep their usual prompt or denial for the whole session. Anthropic's docs list the common causes, and each one has a different fix.
If the session is not in bypassPermissions mode, switch to that mode or start again with the flag in step 4. If the session runs in the VS Code extension chat panel or the desktop app, start claude in a terminal instead. If you placed the variable in a settings file env block, remove it there and set it in the shell that starts claude. If claude started from inside another session, such as from a Bash tool call or a hook, start it from your own shell instead. If a deny or ask rule covers Bash, Edit, or Read, remove that rule and restart claude. If the session is a background session, an agent team session, or a session a remote control server created, it starts without the variable, so start a session from your own shell.
If removals still prompt after the startup line says the variable is set, check for a rule or hook that answers permission prompts, and check managed settings for your organization. In that case, run the removal yourself in your shell rather than fighting the session config, and treat the prompt as a sign that a control you set is still working.
Frequently asked questions
No. The variable only affects the critical path `rm` and `rmdir` prompt, and only in bypassPermissions mode. You still need the mode itself, started with `--dangerously-skip-permissions` or the matching permission mode setting. Outside that mode, the variable changes nothing.
No. Anthropic's docs say Claude Code reads it from the launch environment only and ignores it in a settings file env block. Set it in the shell that starts `claude`, on the command line for that session, and check the startup line to confirm it reached the session.
Use a terminal session. Anthropic's docs list the VS Code extension chat panel and the desktop app among the sessions where the variable has no effect, and say to start `claude` in a terminal instead. A session that starts without the variable keeps the usual prompt or denial for the whole session.
A deny rule still blocks in every mode, including bypassPermissions. Managed settings can also impose limits of their own. The variable removes the critical path prompt, and it does not remove those controls. That is why a deny rule is worth setting for paths you never want an agent to remove, even in a disposable copy.
No. A profile entry would apply it to every terminal you open, including terminals where you are not running an agent at all. Anthropic's docs make the same point from the other side. If you see the startup line and you did not set the variable, find where it is set, such as a shell profile, and remove it.
Conclusion
CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS is a small setting with a large effect, because it removes the last human pause before a critical path removal in bypassPermissions mode. The safe way to use it is narrow. Run Claude Code v2.1.311 or later, work in a disposable copy, set the variable for one terminal session only, read the startup line, and test on files that do not matter. A developer who follows that sequence gets the unattended run they wanted, with the damage limited to a copy they can rebuild. Close the terminal when the run ends, confirm the variable is gone in a fresh terminal, and review the worktree diff before anything from that session reaches a main branch.
For the secrets side of the same setup, see the PromptStaging guide on masking API keys before a coding agent sees them. That guide covers the step this post only names, which is keeping credentials out of any directory an agent can read.