No. 032Filed by The Reporter

ExplainersConfirmed · changelog
Anthropic

· Power user · Claude Code

Claude Code 2.1.325: sandboxed Bash asks before it runs again

If you turned on Claude Code's sandbox, its Bash commands now go through normal permission prompts unless you set one key, and scheduled runs can stop to ask.

Illustration: a vertical three-lamp traffic signal seen straight on, top lamp lit, in black and white.
Illustration

12345678910

If you turned on Claude Code's Bash sandbox and count on it to run commands without asking, check your settings before your next unattended run. From 2.1.325, sandboxed commands go through the normal permission prompts unless you opt back in with one key.

On this page
  1. What changed
  2. Why it matters
  3. How to use it
  4. Gotchas
  5. What to watch
  6. Sources

What changed#

Claude Code 2.1.325 reached npm at 3:07 PM ET Friday, Nov 13, and GitHub published the release at 3:40 PM ET (npm, GitHub). The changelog says: "Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts". The settings reference now lists the key's default as false and says "Before v2.1.324, the default was true". Mio first reported the sandbox default change at 6:56 PM ET that Friday (note.com).

The same release adds more places where unattended work can stop and wait, per the changelog:

  • "Changed scheduled tasks and /loop to ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended"
  • "Changed "Always allow" in Desktop, IDE and SDK hosts: a rule alone is offered only when saving it would allow that command again, so a scheduled task that relied on one can now wait for you"
  • "Changed read-only git commands to ask first in a repository that isn't the project's or one you trusted; name it with --add-dir, not the additionalDirectories setting, to run them without prompts"

It also closes gaps, including "Fixed a gap in Bash permission checks where some compound commands could run without asking; these now ask for permission" and "Fixed a case where a Bash allow rule could run a different program than the one it names".

Later releases keep the new default. npm's latest tag was at 2.1.328 on Thursday morning, and none of the 2.1.326, 2.1.327 or 2.1.328 changelog sections reverses it. 2.1.326 adds one more stop for unattended runs: "Changed the Bash sandbox to ask before some lines that set environment variables when auto-allow is off; unattended runs can refuse them" (changelog).

Why it matters#

Our read: this hits the people who set up the sandbox so Claude could work without them watching. The sandboxing docs say "The sandbox is off by default", so if you never turned it on, the prompt change does not apply to you. CI users may get it without touching anything: Anthropic's GitHub Action moved to Claude Code 2.1.325 at 3:41 PM ET on Nov 13 (commit), and its v1 tag points at that commit.

There is a billing fix too: "Fixed background sessions started on your claude.ai login using (and billing) an API key or token from the shell that started the background service" (changelog).

How to use it#

Follow the steps above, or paste the example prompt into Claude Code to audit your setup without changing anything. The docs' settings block for the old behavior:

{
  "sandbox": {
    "enabled": true,
    "autoAllowBashIfSandboxed": true
  }
}

Our read: decide before you paste it. The prompts are the new default for a reason, and the release also fixes permission gaps.

Gotchas#

  • Auto-allow never meant "no prompts at all". The docs say content-scoped ask rules "like Bash(git push *) still force a prompt even for sandboxed commands", and Monitor tool commands "aren't approved automatically". Commands such as FOO=bar npm test also go through the regular flow.
  • One environment variable switches it off. The settings reference says "CLAUDE_CODE_SUBPROCESS_ENV_SCRUB turns auto-allow off".
  • Repositories can set it. Where the sandbox is admin-required, the docs say a repository's files can still set the autoAllowBashIfSandboxed value: "Set the key in managed settings to keep a repository from changing it".
  • The version label differs. The changelog lists the change under 2.1.325; the settings reference says 2.1.324. Version 2.1.324 reached npm at 1:42 PM ET on Nov 13 with no changelog section or GitHub release that we could find.
  • Stable has neither the prompts nor the fixes. npm's stable tag and Homebrew's default claude-code cask were still at 2.1.311 at 5:10 AM ET Thursday, Nov 19, while latest and claude-code@latest were at 2.1.328 (npm, Homebrew, Homebrew).

What to watch#

  • When npm's stable tag moves past 2.1.311, stable users get the new default along with the fixes.
  • Whether Anthropic adds a 2.1.324 section to the changelog or aligns the docs' version label.

Last checked: Nov 19, 2026, 5:10 to 5:13 AM ET. What changed: Thursday refile. Restamped the stable and Homebrew line (stable and the default cask still at 2.1.311; latest now 2.1.328) and added that 2.1.326 to 2.1.328 keep the new default, with 2.1.326's environment-variable prompt line.

Sources#

Sources

  1. Claude Code CHANGELOG.md, 2.1.325 (GitHub)github.com1
  2. Claude Code release v2.1.325 (GitHub)github.com2
  3. Claude Code CHANGELOG.md, through 2.1.328 (GitHub)github.com3
  4. @anthropic-ai/claude-code on the npm registryregistry.npmjs.org4
  5. Settings reference: sandbox.autoAllowBashIfSandboxed (Claude Code docs)code.claude.com5
  6. Sandboxing: sandbox modes (Claude Code docs)code.claude.com6
  7. claude-code-action: bump Claude Code to 2.1.325 (GitHub commit)github.com7
  8. Homebrew cask claude-codeformulae.brew.sh8
  9. Homebrew cask claude-code@latestformulae.brew.sh9
  10. Mio, note.com: Claude Code 2.1.325 sandbox default change (first report)note.com10

Something wrong? Tell the bot