Claude Code: How Does the Permission System Work?
# Claude Code’s permission system provides fine-grained control over what operations can execute.
Claude Code’s permission system provides fine-grained control over what operations can execute.
Claude Code’s permission system provides fine-grained control over what operations can execute. Understanding it is essential for both security and workflow efficiency. See also Enterprise Deployment for managed settings that enforce permissions organization-wide.
Covered here: the permission tiers, the permission modes, the syntax of permission rules, additional directories, and sandbox mode.
Permission Tiers
In Manual mode (default), tools fall into two tiers. Interactive sessions start in auto mode, where a classifier reviews actions in place of most of these prompts (see Permission Modes).312488
Read-only tools (auto-approved inside the working directories):
Read- Read file contentsGlob,Grep- File and content search; absent by default on macOS, Linux, and WSL, where Claude searches through Bash with embedded versions ofbfsandugrep310LSP- Code intelligence (go-to-definition, find references, hover docs)17
LSP Tool capabilities (v2.0.74+): The LSP tool provides IDE-like code intelligence:
- Go-to-definition: Jump to where a symbol is defined
- Find references: List all usages of a symbol across the codebase
- Hover docs: Get type information and documentation for any symbol
- Works with TypeScript, Python, Go, Rust, and other languages with LSP support
- Stays inactive until you install a code intelligence plugin for your language (you install the language server binary yourself)310
Modification and network tools (require approval):
Edit- Modify existing filesWrite- Create new filesBash- Execute shell commands (a built-in set of read-only commands runs without asking)WebFetch- Fetch URL contents (a built-in set of documentation domains is preapproved)WebSearch- Search the webNotebookEdit- Modify Jupyter notebooks
The first time one of these tools runs, Claude Code prompts for approval. Choosing “Yes, and don’t ask again” lasts until the session ends for file edits, and is saved for the repository (in .claude/settings.local.json at the repository root) for a Bash command, a WebFetch domain, or WebSearch.312
EndConversation tool (v2.1.214). Claude Code carries the same conversation-ending ability Claude has had on claude.ai since 2025, as the built-in EndConversation tool. Claude uses it in two situations only: when you keep sending abusive messages after it has given a clear warning, and when you ask it to end the session and then confirm. General frustration, profanity, or a task going badly do not qualify, and Claude declines a request for harmful content instead of ending the session. After it fires the session is locked: start a new session or run /clear to continue.187190487
Permission Modes
| Mode | Behavior | Use Case |
|---|---|---|
default / manual, labeled “Manual” |
Prompt on first use of each tool | Manual approval; the starting mode for claude -p and the Agent SDK when no mode is set (v2.1.302+)224272555 |
acceptEdits |
Auto-approves file edits and common filesystem commands (mkdir, touch, rm, rmdir, mv, cp, sed) inside the working directories; other Bash commands prompt488 |
Iterating on code you’re reviewing |
auto (v2.1.85+) |
A classifier reviews actions before they run | The built-in starting mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283+); claude -p and Agent SDK runs with no mode set start in Manual (v2.1.302+)223225272555 |
plan |
Claude reads, explores with shell commands (classifier-reviewed where auto mode is available, read-only commands otherwise) and writes a plan; edits stay blocked until you approve it | Exploring a codebase before changing it |
dontAsk |
Reads and pre-approved tools run; anything that would prompt is denied | Locked-down CI and scripts313 |
bypassPermissions |
Skips permission prompts, except for the actions no mode auto-approves | Isolated containers and VMs only313 |
The default mode is labeled “Manual” (v2.1.200+). The label spans the CLI, --help, VS Code, and JetBrains; the config value is default, and --permission-mode manual and "defaultMode": "manual" are accepted as aliases. AskUserQuestion dialogs do not auto-continue by default: a subagent that asks a question waits for your answer, and you opt into an idle timeout via /config.
claude -p and the Agent SDK start in Manual (v2.1.302+). A claude -p or Agent SDK run with no permission mode configured starts in default; --permission-mode auto selects auto, and permissions.defaultMode applies. Calls that need approval are denied unless an allow rule, a hook, a canUseTool callback, or --permission-prompt-tool approves them.272273555
HIPAA organizations and the one-time offer. Terminal and VS Code sessions in an organization with the HIPAA configuration start in auto mode (v2.1.326+), and disableAutoMode turns that off. When your ~/.claude/settings.json sets a defaultMode other than auto, sessions keep starting in that mode, and on Pro, Max, Ultra, and Team plans and in sessions that do not fetch feature flags Claude Code asks once whether to change the setting to auto mode; if you decline, the setting stays.226230415527538555
The interactive default covers every plan and provider (v2.1.283+). To keep Manual, set permissions.defaultMode to "default" in ~/.claude/settings.json, a project’s .claude/settings.json, or managed settings; an "auto" value in a project’s settings files does not take effect.223224 The v2.1.284 release notes state the default “on every plan and provider”, and the permission-modes docs date it to v2.1.283.224225555 Auto mode’s prompt before a read outside the working directories offers Yes, but ask again next time, which allows that one read and keeps asking about later ones (v2.1.284+).225
What the default covers. It applies to new sessions: a defaultMode you set yourself stays in place unless you accept the one-time question about switching, and a default your organization manages is unchanged. Auto mode “routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment.”200489
Anthropic’s stated case for the default: in a 1,053-tester study, auto mode caught 89% of dangerous commands against 13.6% for human review, and users approve 97% of permission prompts anyway, which is what makes manual review weak in practice. The classifier’s token overhead is not billed on Pro, Max, Ultra, and Team.489 Switching back is one Shift+Tab (or the desktop mode dropdown); pin a different default with defaultMode in settings; org admins can disable auto mode entirely with the disableAutoMode managed setting. For what auto mode does not promise, and the researcher-demonstrated bypass that prompted Anthropic to say so, see Auto Mode.
Code-execution config files are now prompted even under acceptEdits (v2.1.160). acceptEdits auto-approves ordinary edits, but as of v2.1.160 it stops and prompts before writing files that can grant silent command execution: shell startup files (.zshenv, .zlogin, .bash_login), ~/.config/git/, and build-tool configs (.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/, and similar). The reasoning is that an edit to any of these turns the next shell, install, or commit into an execution vector — so they get a deliberate gate even in a trusted-project mode that otherwise waves edits through. This is the same threat model as the existing .claude/, .git/, and .vscode/ write protections, extended to the wider class of “edit-becomes-execution” files.262
Auto Mode (v2.1.85+): A safer replacement for --dangerously-skip-permissions. A classifier reviews actions before they run, checking that each matches user intent and is safe. Where server-side review is on, Anthropic’s servers perform those checks as part of the session’s own model requests, at no charge; otherwise Claude Code sends separate classifier requests, which go to Claude Sonnet 5 by default (v2.1.210+).122184314
How it works:
- Read-only actions and file edits in your working directory are auto-approved without that review, except writes to protected paths
- Custom allow/deny rules resolve first
- Everything else goes to the classifier for evaluation
- If blocked, Claude tries an alternative approach automatically
Auto-blocked by default: curl | bash, force pushes, production deploys/migrations, mass cloud deletions, IAM/permission changes, sending sensitive data externally.123415
Circuit breaker: 3 consecutive blocks or 20 total in a session pauses back to manual prompting.123
# Enable at startup
claude --permission-mode auto
# Or cycle into it during a session
Shift+Tab # From auto, the first press goes to Manual (default); the cycle then runs
# Manual → acceptEdits → plan → auto (optional modes such as bypassPermissions slot in after plan)
Auto mode no longer requires opt-in (v2.1.152), works on Bedrock/Vertex/Foundry without an env flag (v2.1.207), became the out-of-the-box default on Pro/Max/Team on August 14, 2026, and is the built-in starting mode for interactive sessions on every plan and provider since v2.1.283-284.264182200223225
YOLO Mode (v2.0.68+): For fully autonomous operation without any safety classifier, use the --dangerously-skip-permissions flag. The flag approves file edits, bash commands, and tool calls without asking; only the short list of actions no mode auto-approves (critical-path removals among them) still prompts or is denied. The word “dangerous” is intentional, and the docs reserve the mode for isolated containers and VMs. Auto Mode is the recommended alternative for most use cases.53313
claude --dangerously-skip-permissions
Set mode via CLI:
claude --permission-mode auto # or acceptEdits, plan, dontAsk, bypassPermissions
Toggle during session:
Shift+Tab # Cycles through modes
In settings.json:
{
"permissions": {
"defaultMode": "acceptEdits"
}
}
Scope restriction on defaultMode (v2.1.257): a project’s .claude/settings.json or .claude/settings.local.json can no longer set defaultMode: "bypassPermissions" – the value is ignored there, as "auto" already was. The docs now spell out the rule: the permissions.defaultMode values auto and bypassPermissions “don’t take effect from project or local settings” – set them in user or managed settings, or per session with --permission-mode. A cloned repository therefore cannot ship a settings file that starts sessions with permissions bypassed. (The example above uses acceptEdits, which any scope may set.)208240
Permission Rules Syntax
Fine-grained rules control specific operations. Rules are evaluated by type: deny first, then ask, then allow. The first match in that order decides, and neither a rule’s position in its list nor its specificity changes that.312
Bash command patterns:
{
"permissions": {
"allow": [
"Bash(npm run build)",
"Bash(npm run test*)",
"Bash(git commit:*)",
"Bash(make:*)"
],
"deny": [
"Bash(rm -rf:*)",
"Bash(sudo:*)",
"Bash(curl *)",
"Bash(wget *)"
]
}
}
* matches any text: Bash(npm run test *) allows npm run test and npm run test --watch (the space before * is part of the rule, and the older :* suffix means the same thing), while Bash(npm run test*), with no space, also allows npm run test:unit and npm run test:integration. A rule with no * matches one exact command, and each command gets its own rule.312
Important limitation: a rule matches the command text, not the program. * can go at the start, middle, or end of a rule, but a rule that tries to constrain arguments is fragile: Bash(curl http://github.com/ *) won’t match curl -X GET http://github.com/..., because the options come before the URL. Denying the whole command with Bash(curl *) stops the form Claude usually writes and not /usr/bin/curl ... or sh -c 'curl ...', so a deny rule is not a security boundary around the program. When the block has to hold, use the sandbox, whose deniedDomains and strict allowlist refuse a connection from a sandboxed command in every permission mode, and set sandbox.allowUnsandboxedCommands to false so a command the sandbox blocked cannot be retried outside it (see Sandbox Mode), or use a PreToolUse hook that inspects the command.312391492
Put the * after the subcommand. Claude Code matches everything before the first * as written, so those words are what limit the rule: Bash(git log *) allows only git log commands, while in Bash(git * main) the * stands in for the subcommand and every option before it. That includes -c, which makes git run a program you name, so Bash(git * main) also approves git -c core.fsmonitor=<script> diff main. As of v2.1.246 Claude Code warns at startup about an allow rule with a wildcard before the subcommand, whether it lives in a settings file, managed settings, or an --allowedTools/--settings value; the fix is the exact value you mean, Bash(git checkout main) in place of Bash(git * main).246244
What file deny rules cover on Bash commands. Read(...) and Edit(...) deny rules cover input redirects (< file) and reader commands such as tac and egrep (v2.1.257+). They do not cover file paths hidden in arbitrary command arguments, such as --ignore-revs-file=.env, -f.env, or git grep operands: a v2.1.259 extension to those was withdrawn in v2.1.260 after it denied npm run build under a Read(./**/build/**) rule. For a Bash line the checker cannot analyze, such as one using env -C or eval, a deny rule prompts and does not deny (time -p make build prompts), and blockReadsOutsideWorkingDirectories prompts and does not skip.208209213214
Related rules that hold today (v2.1.268-273):213214
- v2.1.268: deny and ask rules on the symlinked system directories (
/etc,/tmp,/varon macOS;/binon Linux) now apply when a path is spelled by its real location, and Bash commands no longer ignore deny rules written on a symlinked spelling. - v2.1.269:
Edit()deny rules and the write-path check now cover the file a Bashteecommand writes, aBash(tee:*)allow rule no longer covers destinations outside the working directories, and a deny or ask rule starting with!applies only within the settings source that wrote it (a bare!negation is ignored). - v2.1.271 fixes the checker itself: the file
fmt,column, and similar commands read is checked even when it follows an option the checker does not recognize; files a wildcard expands to are checked when the wildcard sits in a pattern or option value (for examplegrep -v dir/* file); shell variable-declaration flags can no longer misrepresent the command being run; and commands with two directory changes, a subshell, or acd+gitchain no longer skip the prompt underpermissions.blockReadsOutsideWorkingDirectoriesin bypass and auto mode. - v2.1.273: an unanalyzable Bash command no longer skips the prompt under
permissions.blockReadsOutsideWorkingDirectories, a subshell hiding a dangerousrmno longer skips confirmation in bypass mode, and a memory directory chosen by a repository’s settings is no longer loaded, recalled, or indexed under that setting.
Writes are judged where they land, not how they are spelled (v2.1.280+). A write through a symlinked path is judged by its destination, not by its in-tree spelling. Verbatim from the release notes: “Fixed writes through a symlinked path being judged by their in-tree spelling: the prompt names where the write lands, and acceptEdits, allow rules and auto mode no longer approve one landing outside.” Three consequences:
acceptEditsapproves only edits that land inside the project. A symlink in the tree does not carry an approved-looking edit outside it without a prompt.- An
Edit(src/**)-style allow rule does not travel through a link. The rule has to match where the bytes land, so asrc/vendor -> /etcstyle link stops laundering the path. - The prompt names the landing path. When a write does prompt, it shows where the write lands. If a prompt shows a destination you did not expect from the path Claude typed, that is a symlink telling you the truth, not a rendering bug.
The general rule is now consistent across reads and writes: the permission checker resolves the path before it decides. If you have been relying on a deny rule written against a symlinked spelling, or an allow rule that a link quietly widened, re-read both against real destinations.217
Shell writes follow (v2.1.287). A shell write through a symlink committed to the repository, landing on a sensitive file or outside the working tree, now names where it lands and waits for a person, including on lines with a ~ target. Whole-tool Bash allow rules and allowing hooks now prompt for, rather than run, shell writes to files Claude Code’s file tools refuse outright, such as the Anthropic profile store and the host credentials file. The same release fixes a dangerous rm, such as one on / or the home directory, losing its always-ask safeguard when the command also redirected output to a ~ or wildcard path.229
More prompts, fewer free passes (v2.1.288-292). These releases move several commands from “runs” to “asks”:
- v2.1.288: a dangerous
rm, such as one on/or the home directory, inside abash -corsh -cscript no longer runs without a prompt in bypassPermissions mode or under a shell allow rule. PreToolUse and PermissionRequest hooks that fail to match, or a tool input that cannot be serialized to JSON, now block the call instead of skipping the hooks.231 - v2.1.290:
pyrightis no longer treated as read-only and asks first; more forms ofpsask; read-only commands such asrgorgit grepwhose arguments the shell would still expand as wildcards prompt; and permission rules and safety checks now apply to a tool call after a PreToolUse hook rewrites its input.232 - v2.1.292 (security): PreToolUse hook approvals and auto mode could bypass the permission prompt for file reads from network (UNC) paths; that is fixed.233
Rules from v2.1.323 through v2.1.330. More commands ask before they run.527
- v2.1.323: a “don’t ask again” rule that looks like it holds a secret, or that would be saved to a
settings.local.jsongit tracks, lasts for the session only. A start-up warning flags Bash allow rules with a*in a variable’s value, such asBash(PORT=* npm run dev). Fixes: deny and ask rules missed some commands run throughsudo,env, and similar wrappers; an attached-wildcard rule such asBash(ls*)skipped the prompt in some cases; Write and Edit could write to a path under aReaddeny rule. - v2.1.325: read-only git commands ask first in a repository that is not the project’s or one you trusted; name the repository with
--add-dir, not theadditionalDirectoriessetting, to run them without prompts. “Always allow” in Desktop, IDE, and SDK hosts offers a rule alone only when saving it would allow that command again. Fixes: some compound commands could run without asking, and a Bash allow rule could run a different program than the one it names. - v2.1.326: some
cpandmvcommands ask first, some tool calls in bypass permissions mode ask or are denied where no one can be asked, and the file tools refuse writes to Claude Code’s sign-in files. Auto mode ignores wildcard shell allow rules that name no program or start with$HOME. - v2.1.327: path checks refuse some symbolic links,
permissions.blockReadsOutsideWorkingDirectoriesasks about more Bash commands in bypass and auto modes, and Bash commands whose variables expand to very long text are denied. - v2.1.330: more
rmcommands aimed at the root, home, a top-level folder, or the working folder ask for approval; where nobody can answer, they are refused.
File operation patterns:
{
"permissions": {
"allow": [
"Edit(src/**)",
"Read(docs/**)"
],
"deny": [
"Read(.env*)",
"Read(secrets/**)",
"Edit(.git/**)",
"Edit(node_modules/**)"
]
}
}
Path syntax:
- Relative paths:
Edit(src/**)- relative to working directory - Relative to the settings source:
Edit(/build/**)- the primary working directory for project and local settings,~/.claude/for user settings (use//pathfor a filesystem-absolute path) - True absolute:
Edit(//tmp/**)- starts with// - Home directory:
Read(~/.zshrc)
Single-segment dir/** allow rules match only <cwd>/dir (v2.1.214+). An allow rule like Edit(src/**) matches only the src directory directly under the working directory, not vendor/src/ or packages/foo/src/. For any-depth matching, write the rule as Edit(**/src/**). deny and ask rules match at any depth. An allow rule written in the single-segment form for a deeper directory shows up as permission prompts, not as an error, so check your allow rules for it. Hook if: conditions have the same cwd scoping (see Matchers).187
Use Edit(path)/Read(path), not Write(path)/NotebookEdit(path)/Glob(path) (v2.1.210). Claude Code now shows a startup warning for permission rules written against Write(path), NotebookEdit(path), or Glob(path). The canonical forms are the two rule families that actually gate file access: Edit(path) covers all file-writing tools (Write and NotebookEdit included), and Read(path) covers file-reading tools (Glob included). Migrate any legacy rules to silence the warning and keep the intent explicit.184
“Always allow” saves at the repository root (v2.1.211). Permission rules created via the “Always allow” prompt option are now written at the repository root rather than the current worktree, so an approval you grant in one worktree persists across sessions and across every worktree of that repo — no more re-approving the same command in each parallel checkout.185
A file-tool (*) allow rule covers the working directories only. With an Edit(*), Write(*), or NotebookEdit(*) allow rule, the tool is pre-approved only in the working directories. To pre-approve paths outside them too, write the bare tool name, such as Edit or Read. Writes to protected paths and reads from network paths still are not pre-approved. Do not use the (*) form to keep a tool inside the working directories: versions before v2.1.317 treat the rule as the bare name, and the docs say later versions can too if Anthropic turns the working-directory limit off.557
Parenthesis paths and malformed patterns fail safe (v2.1.260+). Edit/Write/Read rules whose path contains parentheses, such as a Next.js route group like Edit(src/app/(admin)/**), apply, in the Bash sandbox too. A file deny rule with an uncompilable pattern (an unclosed [, for example) guards the literal path it spells. The settings error for a rule like Edit(C:\dir\(name)\**), where \( reads as an escaped parenthesis rather than a path separator, suggests an unambiguous spelling. A rule with text after the closing parenthesis (Bash(ls) x) is reported as an invalid setting.209
MCP tool patterns:
{
"permissions": {
"allow": [
"mcp__github",
"mcp__database__query",
"mcp__myserver__*"
],
"deny": [
"mcp__dangerous_server",
"mcp__untrusted__*"
]
}
}
Use wildcard syntax mcp__server__* to allow or deny all tools from a specific MCP server.31 Wildcard syntax is useful for quickly enabling all tools from trusted servers or blocking entire servers from untrusted sources.
Server names match whole (v2.1.299). An allow rule such as mcp__a reaches only the server named a; it does not allow a server named a__b or a_. Write mcp__<server>__* with the server’s whole normalized name. The same holds for a subagent’s tools: list, and deny and ask rules for a server whose normalized name contains a double underscore apply. The permissions docs require a literal, glob-free mcp__<server>__ prefix on allow globs.268269
As of v2.1.166, deny and ask rules also accept a glob in the tool-name position: a bare "*" matches every tool and "mcp__*" matches every MCP tool on every server. A tool matched by a glob deny is removed from Claude’s context, and because deny rules are evaluated before allow rules, no allow rule brings it back, so use a glob deny only for tools you want gone. Allow rules accept a tool-name glob only after a literal mcp__<server>__ prefix; an unanchored allow glob such as "*" or "mcp__*" is skipped and approves nothing.260416
Parameter-level matching — Tool(param:value) (v2.1.178):
Beyond the tool name, a rule can match a tool’s input parameters, with * as a wildcard on the value:
{
"permissions": {
"deny": [
"Agent(model:opus)"
]
}
}
In deny, Agent(model:opus) refuses an Agent call that asks for the Opus tier by passing model: "opus": the call itself is denied, not merely discouraged in a prompt. The rule compares the literal value Claude sends, so it does not match a full model ID such as claude-opus-5-5, and a parameter the call omits is never matched: a subagent started with no model on the call runs on the model its definition, CLAUDE_CODE_SUBAGENT_MODEL, or the main conversation gives it, and Agent(model:*) does not catch it either. Parameter rules work in deny and ask, not allow. This extends permission control from “which tool” down to “how it’s called,” as a rule on the call’s explicit parameters.170
To limit which models subagents can run on at all, use an availableModels allowlist instead: Claude Code checks the call’s model parameter, a subagent definition’s model frontmatter, and CLAUDE_CODE_SUBAGENT_MODEL against it and substitutes another model for a blocked value. The enforceAvailableModels setting does a narrower job: it keeps the /model picker’s Default option inside that allowlist. Any settings file can set it, and once an organization deploys managed settings Claude Code reads it from the managed source alone.417491
These Agent(...) rules are also enforced for named subagent spawns (v2.1.186+): Agent(agent_type) deny rules and Agent(x,y) allowed-type restrictions apply when a specific named agent is launched (via a workflow, --agents, or an agent team), and the spawn is blocked at launch.172
WebFetch patterns:
{
"permissions": {
"allow": [
"WebFetch(domain:github.com)",
"WebFetch(domain:api.example.com)"
]
}
}
As of v2.1.268, plain WebFetch deny and ask rules no longer apply to Artifact tool reads and updates – write an Artifact rule, or WebFetch(domain:claude.ai), to block or gate those.213
To turn artifacts off for your own sessions, set "enableArtifact": false (the Artifacts row in /config writes it to your user settings; the deprecated "disableArtifact": true still works), export CLAUDE_CODE_DISABLE_ARTIFACT=1, or add Artifact to permissions.deny. Once a --settings file, that variable, or managed settings turns artifacts off, no settings file turns them back on; a project’s .claude/settings.json or .claude/settings.local.json can turn them off but not on (honored since v2.1.242). CLAUDE_CODE_ARTIFACT_AUTO_OPEN=0 keeps the browser from opening when a new artifact is published.280
Additional Directories
Extend Claude’s access beyond the current project:
{
"permissions": {
"additionalDirectories": [
"../shared-lib",
"../docs",
"~/reference-projects/design-system"
]
}
}
Additional directories are essential for monorepos or when Claude needs to reference code in sibling directories.
Sandbox Mode
Enable filesystem and network isolation:
> /sandbox
Or configure in settings:
{
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true,
"excludedCommands": ["docker *"],
"network": {
"allowUnixSockets": ["~/.ssh/agent-socket"],
"allowLocalBinding": true,
"deniedDomains": ["pastebin.com", "transfer.sh", "0x0.st"]
}
}
}
excludedCommands entries are command patterns, and a pattern with no wildcard is an exact match: docker alone would exclude only docker run with no arguments, while docker * matches it with or without arguments. An excluded command runs with your full access, and the settings reference calls exclusion “a convenience, not a security boundary”, so list only tools you would run unsandboxed yourself.390
Sandboxed commands ask by default (v2.1.325). sandbox.autoAllowBashIfSandboxed now defaults to false: a sandboxed Bash command goes through the regular permission flow, so your allow rules and permission mode decide whether you see a prompt, and the command still runs inside the sandbox. The /sandbox Mode tab calls this regular permissions mode. The example above sets the key to true, which is auto-allow mode: sandboxed commands run without a prompt, while deny rules, content-scoped ask rules such as Bash(git push *), and critical-path rm checks still apply. To turn auto-allow on from managed settings, put the key in the sandbox block of your highest-ranking managed source. The release notes list the change under 2.1.325; the settings reference says the default was true before v2.1.324, a version published to npm without release notes.527530
As of v2.1.187, the sandbox.credentials setting blocks sandboxed commands from reading the credential files and environment variables you list in it. It is unset by default and there is no built-in list, so the sandbox protects no credential until you add entries.173490
As of v2.1.221, credential files gain a third mode beyond allow/deny: mode: "mask" (Linux and WSL). A sandboxed command that reads the file gets a sentinel copy — either the whole file or just the spans captured by an extract regex — and the sandbox proxy substitutes the real value on egress. The command works (it can authenticate through the proxy) without the secret ever being present in its environment, which is precisely the property you want when a prompt-injected command goes hunting for tokens. On macOS, where the proxy-substitution machinery isn’t available, mask falls back to deny — so a config written for Linux CI degrades safely rather than silently exposing the file.196
v2.1.224 extends masking beyond static file contents. extract and onExtractNoMatch handle structured env values; decode: "jwt" with maskClaims masks selected claims inside a JWT rather than the whole token, so a command can still read the token’s routing metadata while the sensitive claims stay sentinel; and awsPairs/sigv4 re-sign AWS SigV4 requests at the proxy, which is what makes masking usable with AWS CLIs at all — a masked key would otherwise fail signature verification. All of these require network.tlsTerminate, and they are honored only from user, managed, or --settings scopes — a repository cannot ship a masking config that silently reroutes your credentials.198
As of v2.1.216, the sandbox.filesystem.disabled setting skips filesystem isolation while keeping network egress control — useful when the filesystem jail breaks a build tool but you still want the domain allowlist enforced on outbound traffic.189
As of v2.1.219, the sandbox.network.strictAllowlist setting refuses every host outside the allowlist, in every permission mode. Without it, the permission mode decides what happens when a sandboxed command reaches a host outside allowedDomains; in an interactive terminal session, Manual, acceptEdits and plan mode prompt; auto mode refuses the host unless the command listed it and the classifier approved the list; dontAsk refuses; and bypassPermissions (or plan mode with bypass permissions available) allows the connection without a prompt. With strictAllowlist on (user, managed, or --settings scope; a repository’s settings files cannot set it), the connection is refused in every mode.391 The setting covers sandboxed commands only: in-process tools such as WebFetch still follow their permission rules.492 This is the setting to reach for in unattended runs (CI, background agents, overnight loops), where a prompt nobody answers is a stall, and in any run that pairs the sandbox with --dangerously-skip-permissions, where without it a host outside the allowlist is reachable. It completes the network triad: allowedDomains says what’s permitted, deniedDomains (below) carves exceptions out of a broad allow, and strictAllowlist decides whether everything else follows the permission mode or is refused.193 v2.1.229 tightens the domain-list syntax itself: IPv6 literals must be bracketed ([::1]:443), ambiguous spellings are enforced fail-closed, and /doctor flags them.254
v2.1.236 adds two more hardening steps: on macOS, wildcard read-deny rules (e.g. **/.env) now take precedence inside allowed read regions, cover matched directories’ contents, and can’t be bypassed by renaming the denied file; and while auto mode is active, Monitor allow rules are set aside: Monitor commands get the same classifier review as Bash commands.243
Auto mode’s classifier runs server-side by default for Claude API and Enterprise users and on Bedrock, Vertex, Foundry, and gateways, with no charge for classifier overhead; CLAUDE_CODE_AUTO_MODE_SERVER=0 opts out there. The mechanics are in the Auto Mode section.216
Per-command allowed_domains in auto mode (v2.1.271): with sandboxing on, Bash, PowerShell, and Monitor commands in auto mode can carry their own allowed_domains – the hosts a command needs are reviewed with the command and opened for that command alone, and other hosts are refused. Egress stops being a session-wide grant: each command names its destinations, and the review covers exactly that pairing.213
excludedCommands globs must match every part of a compound command (v2.1.277+). Every part of a compound Bash command must match a sandbox.excludedCommands glob for the command to run unsandboxed: a git* exclusion does not carry git pull && ./deploy.sh outside the sandbox. If an exclusion-dependent workflow chains an excluded tool with anything else, the chain stays sandboxed; split the compound or widen the exclusion deliberately.216
Project settings cannot widen excludedCommands under a strict policy (v2.1.282). When managed settings or --settings set allowUnsandboxedCommands: false, or managed settings set allowManagedDomainsOnly: true, Claude Code ignores sandbox.excludedCommands entries from project and local settings.222
Strict sandbox mode and the ! carve-out (sandbox.allowUnsandboxedCommands, v2.1.260). By default, a command that fails under the sandbox can be retried outside it via the dangerouslyDisableSandbox escape hatch, and in an interactive terminal session the permission mode decides who approves the retry: Manual and acceptEdits prompt, auto mode sends it to the classifier, dontAsk denies it, and bypassPermissions runs it without a prompt.418 sandbox.allowUnsandboxedCommands: false – shown as Strict sandbox mode in the /sandbox Overrides tab – switches that hatch off: the parameter is ignored, and every command must run sandboxed or be listed in excludedCommands. As of v2.1.260, commands you type yourself at the ! bash-mode prompt run outside the sandbox even under strict sandbox mode, “like typing into your own terminal” – the strictness governs what Claude runs, not what you type. If your threat model counted on ! commands inheriting the jail, they no longer do.209 The docs name two sessions where ! commands stay sandboxed under strict sandbox mode: a background session, and a Linux session with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB set.419
When sandboxed:
- Writes confined to the working directory, a temp directory and directories you add; reads cover “Most of the machine, including credential files” unless you narrow them with
sandbox.filesystem.denyReadorpermissions.blockReadsOutsideWorkingDirectories266 - Network access controlled
- Certain commands excluded from sandbox restrictions
- Bash commands run without a prompt only if
autoAllowBashIfSandboxedistrue; since v2.1.325 the default isfalse, and sandboxed commands follow your permission rules and mode530
Expert tip: Sandbox mode is excellent for running Claude on untrusted codebases. Enable it when exploring unfamiliar projects or when you want an extra layer of protection. Internal Anthropic testing found sandboxing reduces permission prompts by 84%.37 That figure describes sandboxed commands that run without a prompt, which is opt-in: sandboxed commands prompt like any others unless you set sandbox.autoAllowBashIfSandboxed: true (v2.1.325+).530 The sandbox uses OS-level primitives (macOS seatbelt, Linux bubblewrap) for filesystem and network isolation, so a prompt injection that reaches a sandboxed Bash command is held to the configured boundary: writes to the allowed paths, reads wherever denyRead does not stop them, and network to the allowed domains plus whatever the permission mode lets through. The boundary has documented exclusions: the built-in file and web tools follow permission rules instead of the sandbox, and command hooks, local MCP servers, plugin monitors, LSP servers and helper commands run with your full access.266 Anthropic has open-sourced the sandbox runtime for teams building their own agents.80
Lock the sandbox down before pairing it with --dangerously-skip-permissions. In bypassPermissions mode a sandboxed command reaches any host that is not in deniedDomains without a prompt unless sandbox.network.strictAllowlist or managed allowManagedDomainsOnly is on, and when a command fails in the sandbox, Claude can retry it outside the sandbox without a prompt unless sandbox.allowUnsandboxedCommands is false. Turn on the strict allowlist and strict sandbox mode first. The docs’ own limit still applies: “Sandboxing reduces risk but is not a complete isolation boundary.”391418
Project settings cannot loosen an admin sandbox (v2.1.285). Project settings can no longer widen or turn off an admin-required sandbox, replace the proxy behind a managed deny list, extend a strict allowlist, or reopen managed read-denies.226
Security notes (v2.1.34+): Commands excluded from sandboxing via sandbox.excludedCommands or dangerouslyDisableSandbox still go through the Bash ask permission rule when autoAllowBashIfSandboxed is enabled.85 As of v2.1.38, writes to .claude/skills are blocked in sandbox mode, preventing prompt injection from modifying skill definitions.86 v2.1.77 adds an allowRead sandbox filesystem setting to re-allow read access within denyRead regions—useful when you want to block most of a directory tree but whitelist specific subdirectories.117
.claude/ agent-config exemption (v2.1.121+): --dangerously-skip-permissions no longer prompts for writes to .claude/skills/, .claude/agents/, and .claude/commands/.151
Nested .claude/ resolution (v2.1.178): Skills in nested .claude/skills directories now load automatically when you work on files under that directory, not just from the repo root; on a name clash the nested skill is addressable as <dir>:<name> so both stay available. The rest of the project surface resolves the same way — when an agent, workflow, or output-style name collides across nested .claude/ directories, the one closest to the working directory wins, and a project-scope workflow save targets the closest existing .claude/workflows/. For a monorepo or repo-of-repos this gives per-package tooling that activates in context instead of one flat global surface.170
Custom bubblewrap and socat paths (v2.1.133+): sandbox.bwrapPath and sandbox.socatPath managed settings let admins point Linux/WSL deployments at non-standard bubblewrap and socat binary locations. Useful when distributions install these tools outside $PATH or when the organization vendors hardened builds.157
Security hardening in v2.1.113:148
sandbox.network.deniedDomainsblocks specific hosts for sandboxed commands even when a broaderallowedDomainswildcard would otherwise permit them. Use the blocklist to cut off pastebins, file drops, or known-bad hosts without rewriting your entire allow policy. Pair it withsandbox.network.strictAllowlist(v2.1.219, above) when you want everything outside the allowlist refused in every permission mode.391492- Wrapper-command deny rules. Per the v2.1.113 release notes, Bash deny rules match commands wrapped in
env,sudo,watch,ionice,setsid, and similar exec wrappers, so a rule likeBash(rm:*)also catchesenv rm -rfandsudo rm -rf. A deny rule still matches command text, not the program: the permissions docs say it “isn’t a security boundary around the program”, and in their exampleBash(rm *)does not stop/bin/rm -rf build/orbash -c 'rm -rf build/'.420 Bash(find:*)allow rules no longer auto-approvefind -execorfind -delete. Those flags execute commands and delete files, so Claude Code routes them through the normal permission path.- macOS removal protection.
Bash(rm:*)allow rules now treat/private/etc,/private/var,/private/tmp, and/private/homeas dangerous removal targets./var,/etc, and/tmpare symlinks into/private/, so the previous rule shape missed the canonical targets.
Permission fail-closed hardening in v2.1.214:187
These checks fail closed: when the analyzer cannot be sure, it prompts.
- Windows PowerShell 5.1 is checked. Commands run in PowerShell 5.1 sessions go through the permission check.
- Bash file-descriptor redirects fail closed. Redirect forms that bash parses differently than the permission analyzer now prompt instead of running.
- Commands over 10,000 characters always prompt. They never run automatically.
- zsh subscripts and modifiers in
[[ ]]prompt. Variable subscripts and modifiers inside[[ ]]comparisons were treated as inert text; they can execute code, so they now require approval. - Unsafe
help/manvariants are not auto-approved. That covers invocations with unsafe options, command substitutions, or backslash paths. - Remote-session prompt ordering. Permission prompts on remote sessions can no longer proceed before the local confirmation dialog.
dockerdaemon-redirect flags prompt.dockercommands (including the Podmandockershim) carrying--url,--connection,--identity, or Podman’s remote mode prompt, because those flags point the command at a different daemon.fileloses its read-only free pass when told where to write.file -m/--magic-fileand-f/--files-fromnow require permission instead of being auto-allowed as read-only.
Sandbox auto-allow (v2.1.289-292). v2.1.289 closes two gaps where a Bash deny or ask rule was skipped under sandbox auto-allow: a command behind an environment variable prefix with an expanded value (TZ="$HOME" rm -rf build), and a command preceded by a bare variable assignment.232 v2.1.290 makes sandboxed Monitor tool commands follow your permission rules instead of skipping the prompt, and stops sandboxed heredocs piped into another command (cat <<EOF | python3) from asking on every run.232 As of v2.1.292, with strict sandbox mode set in user, managed, or --settings settings, an interpreter command with an env var prefix such as FOO=bar python3 app.py runs unprompted.233 v2.1.290 also adds a /status and doctor warning when managed settings ignore your sandbox allowRead paths or allowed domains.232
Sandbox hardening (v2.1.305-310). sandbox.allowNestedUserNamespaces (v2.1.305) lets sandboxed commands on Linux and WSL2 create user namespaces, which Chromium’s and Electron’s own sandbox, a nested bubblewrap, and unshare need, and which also lets them around the sandbox’s file protections. The setting alone is not enough for rootless Podman or Buildah: for those the docs say to add a sandbox.excludedCommands pattern such as podman *. v2.1.309 closes several gaps: sandboxed Bash commands on macOS and Linux no longer run the shell’s startup files outside the sandbox before each command; macOS denyWrite globs apply at a path’s real location when the pattern’s folder is reached through a symlink; sandboxed commands and auto-accepted edits can no longer modify the MCP config file passed with --mcp-config; Linux write denies no longer lift when a background command outlives the session; and commands the settings exclude from the sandbox ask before writing to its write-list paths while the sandbox is enabled but cannot run, with the unsandboxed fallback refused there. In the same release sed -i gets the standard Bash prompt and runs as written, not as a simulated file-edit preview, and like other Bash edits it is no longer restored by /rewind. v2.1.310 makes /sandbox and the startup warning name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox; the sandboxing docs carry the AppArmor profile.275276473
References
-
Claude Code CHANGELOG, section 2.0.74, fetched November 11, 2026: “Added LSP (Language Server Protocol) tool for code intelligence features like go-to-definition, find references, and hover documentation”; “Added
/terminal-setupsupport for Kitty, Alacritty, Zed, and Warp terminals”. ↩ -
Claude Code CHANGELOG, fetched November 11, 2026. 2.1.2: “Added clickable hyperlinks for file paths in tool output in terminals that support OSC 8 (like iTerm)”; “Added support for Windows Package Manager (winget) installations with automatic detection and update instructions”; “Added Shift+Tab keyboard shortcut in plan mode to quickly select “auto-accept edits” option”; “Added
agent_typeto SessionStart hook input, populated if--agentis specified”; “Fixed a command injection vulnerability in bash command processing where malformed input could execute arbitrary commands”. Earlier releases: 2.0.72, “Changed thinking toggle from Tab to Alt+T to avoid accidental triggers”; 2.0.70, “Added wildcard syntaxmcp__server__*for MCP tool permissions to allow or deny all tools from a server”; 2.1.0, “Fixed PreToolUse hooks to allowupdatedInputwhen returningaskpermission decision”. ↩ -
Beyond permission prompts: making Claude Code more secure and autonomous, Anthropic Engineering, published October 20, 2025, fetched November 10, 2026: “In our internal usage, we’ve found that sandboxing safely reduces permission prompts by 84%.” Introducing Claude Opus 4.5, Anthropic, fetched November 10, 2026: “Set to a medium effort level, Opus 4.5 matches Sonnet 4.5’s best score on SWE-bench Verified, but uses 76% fewer output tokens.” The post’s SWE-bench Verified chart, an image, labels Opus 4.5 at 80.9%. ↩
-
@adocomplete, December 15, 2025: “Advent of Claude Day 15 - YOLO Mode”;
claude --dangerously-skip-permissions; “This flag says yes to everything.” ↩ -
Beyond permission prompts: making Claude Code more secure and autonomous, Anthropic Engineering, published October 20, 2025, fetched November 10, 2026. “We’ve built this on top of OS level primitives such as Linux bubblewrap and MacOS seatbelt to enforce these restrictions at the OS level.” “To make it easier for other teams to build safer agents, we have open sourced this feature.” The runtime’s repository is github.com/anthropics/sandbox-runtime; the
anthropic-experimentaladdress redirects there. ↩ -
GitHub Releases. v2.1.34: Fixed crash when agent teams setting changed between renders. Fixed bug where commands excluded from sandboxing could bypass Bash ask permission rule when autoAllowBashIfSandboxed was enabled. February 6, 2026. ↩
-
GitHub Releases. v2.1.38: Fixed VS Code terminal scroll-to-top regression, Tab key slash command queueing, bash permission matching for env var wrappers, text disappearing between tool uses in non-streaming mode, duplicate sessions on resume in VS Code. Improved heredoc delimiter parsing to prevent command smuggling. Blocked writes to .claude/skills in sandbox mode. February 10, 2026. v2.1.39: Improved terminal rendering performance, fixed fatal errors being swallowed, process hanging after session close, character loss at terminal boundary. ↩
-
GitHub CHANGELOG. v2.1.77: Increased default max output tokens for Opus 4.6 to 64K, upper bound for Opus 4.6 and Sonnet 4.6 to 128K.
allowReadsandbox filesystem setting./copy Ncopies Nth-latest response./forkrenamed to/branch. Agent toolresumeparameter removed (useSendMessage).SendMessageauto-resumes stopped agents. Sessions auto-named from plans. Background bash tasks killed at 5GB.claude plugin validatechecks frontmatter + hooks. ~60ms faster macOS startup,--resume45% faster with ~100-150MB less memory. Security: PreToolUseallowno longer bypassesdenyrules. 25+ bug fixes. March 17, 2026. ↩ -
Auto mode for Claude Code, Claude, March 24, 2026, fetched November 11, 2026 (the earlier
claude.com/blogaddress redirects here): “Auto mode provides a safer long-running alternative to--dangerously-skip-permissions.”; “Before each tool call runs, a classifier reviews it to check for potentially destructive actions like mass deleting files, sensitive data exfiltration, or malicious code execution.”; “Auto mode is available in Claude Code as a research preview for Claude Team users today, and will roll out to Enterprise and API users in the coming days. It works with both Claude Sonnet 4.6 and Opus 4.6.” The article does not name the classifier’s model. The engineering post does: How we built Claude Code auto mode: a safer way to skip permissions, Anthropic Engineering, March 25, 2026, same fetch: “the transcript classifier (running on Sonnet 4.6) evaluates each action against a set of decision criteria before it executes”. ↩ -
Choose a permission mode, Claude Code documentation, fetched November 11, 2026. How auto mode evaluates an action: “Each action goes through a fixed decision order. The first matching step wins”; “Actions matching your allow, ask, or deny rules resolve immediately”, with the exceptions the page lists; “Read-only actions and file edits in your working directory are auto-approved, except writes to protected paths and a read that shows the first-read prompt.”; “Everything else goes to the classifier, apart from critical-path removals under their default handling.” Blocked by default, among others: “Downloading and executing code, like
curl | bash”; “Sending sensitive data to external endpoints”; “Production deploys and migrations”; “Mass deletion on cloud storage”; “Granting IAM or repo permissions”; “Force push”, with no branch named. Repeated blocks: “if the classifier blocks an action 3 times in a row or 20 times total, auto mode pauses and Claude Code resumes prompting”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩ -
Claude Code CHANGELOG. v2.1.113 (April 17, 2026): CLI spawns a native Claude Code binary via per-platform optional dependency instead of bundled JavaScript;
sandbox.network.deniedDomainsblocks specific domains even whenallowedDomainswildcards would permit them; fullscreenShift+↑/Shift+↓scrolls the viewport when extending a selection past the visible edge;Ctrl+A/Ctrl+Emove to the start/end of the current logical line in multiline input (readline-style); WindowsCtrl+Backspacedeletes the previous word;/loopEsc cancels pending wakeups and shows “Claude resuming /loop wakeup” messages;/extra-usagenow works from Remote Control (mobile/web) clients;/ultrareviewfaster launch with parallelized checks, diffstat in the launch dialog, and animated launching state; subagents that stall mid-stream fail with a clear error after 10 minutes; Bash multi-line commands whose first line is a comment show the full command in the transcript (UI-spoofing fix);cd <current-directory> && git …no longer prompts on no-ops; macOSBash(rm:*)allow rules treat/private/{etc,var,tmp,home}as dangerous removal targets; Bash deny rules match commands wrapped inenv/sudo/watch/ionice/setsidand similar wrappers;Bash(find:*)allow rules no longer auto-approvefind -exec/-delete; Opus 4.7 via Bedrock Application Inference Profile ARN no longer returnsthinking.type.enabled is not supported400; plus fixes for MCP concurrent-call timeout handling, markdown tables with pipe-containing inline code, session recap auto-firing during composition, Remote Control subagent streaming and archival, SDK image-block failures degrading to text, anddangerouslyDisableSandboxbypassing permission prompts. v2.1.114 (April 18, 2026): single fix for a crash in the permission dialog when an agent-teams teammate requested tool permission. ↩ -
Claude Code release notes — composite reference for v2.1.121 (April 28, 2026, 00:31 UTC) and v2.1.122 (April 28, 2026, 22:05 UTC). v2.1.121:
alwaysLoadMCP server-config option (skip tool-search deferral); MCP startup auto-retry 3x;claude plugin pruneand--prunecascade; type-to-filter/skills; PostToolUsehookSpecificOutput.updatedToolOutputextended from MCP-only to all tools;.claude/skills/,.claude/agents/,.claude/commands/exempt from--dangerously-skip-permissionsprompt; Vertex AI X.509 cert-based Workload Identity Federation (mTLS ADC); SDKmcp_authenticateredirectUri; OTel addsstop_reason,gen_ai.response.finish_reasons, anduser_system_prompt(gated behindOTEL_LOG_USER_PROMPTS) to LLM-request spans;/terminal-setupenables iTerm2 clipboard access for/copyfrom tmux; tab title inlanguagesetting;CLAUDE_CODE_FORK_SUBAGENT=1extended to non-interactiveclaude -p; faster post-upgrade startup (Recent Activity panel removed from release-notes splash); claude.ai connector deduplication against same upstream URL. v2.1.122:ANTHROPIC_BEDROCK_SERVICE_TIERenv var (default/flex/priority) sent asX-Amzn-Bedrock-Service-Tier;/resumePR URL search across GitHub, GHE, GitLab, Bitbucket;/mcpshows hidden connectors with remove-duplicate hint and clarifies post-browser unauthorized message; OTelclaude_code.at_mentionlog event for@-mention resolution; numeric attributes onapi_request/api_erroremitted as numbers (was strings). High-signal fixes across both: ~2GB memory leak in/usage, multi-GB RSS growth on image-heavy sessions,--resumecorrupt-transcript-line skip + large external-build session crash fix, Bash recovery when CWD deleted/moved, Bedrock thinking-on-application-inference-profile fix, Vertex/Bedrockoutput_configextra-input rejection on structured output, ToolSearch missing nonblocking MCP tools that connected after session start, image-resize ceiling 2576→2000 px on newer models,!exit/!quitin bash mode no longer kills CLI, scrollback duplication on tmux/GNOME/Windows Terminal/Konsole, malformedhooksentry no longer invalidates the entiresettings.json. ↩ -
Claude Code v2.1.133 release notes. May 7, 2026. Adds
worktree.baseRefsetting (fresh|head); per the release notes, “the defaultfreshchangesEnterWorktree’s base back toorigin/<default>(it has been localHEADsince 2.1.128)”, and “setworktree.baseRef: "head"to keep unpushed commits in new worktrees.” Hooks now receive the active effort level via theeffort.levelJSON input field and the$CLAUDE_EFFORTenv var; Bash tool commands can also read$CLAUDE_EFFORT. Addssandbox.bwrapPathandsandbox.socatPathmanaged settings (Linux/WSL) for custom bubblewrap and socat binary locations. AddsparentSettingsBehavioradmin-tier key ('first-wins' | 'merge') to opt SDKmanagedSettings(parent tier) into the policy merge. Fixes subagents not discovering project, user, or plugin skills via theSkilltool. Other fixes: parallel-session 401-after-refresh-token race, drive-root allow-rule scoping, MCP OAuth proxy and mTLS support, Remote Control stop/interrupt completing the cancel, cross-session/effortleakage,--remote-controllisted in--help. ↩ -
Claude Code v2.1.178 release notes and v2.1.179 release notes, plus the Claude Code Changelog (canonical). June 15 to 16, 2026. v2.1.178:
Tool(param:value)permission-rule syntax matching tool input parameters with a*wildcard (e.g.Agent(model:opus)); skills in nested.claude/skillsload when working on files there, with<dir>:<name>disambiguation on name clash; nested.claude/agents, workflows, and output-styles resolve closest-to-cwd on collision (project-scope workflow saves target the closest existing.claude/workflows/); auto mode evaluates subagent spawns with the classifier before launch; compaction now honors the--fallback-modelchain on overload/availability errors; MCP server-level specs (mcp__server,mcp__server__*,mcp__*) in subagentdisallowedToolsno longer silently ignored;/doctorflat-tree layout;/bugrequires a description; the workflow prompt keyword triggers only on explicit phrases; plus numerous subagent-transcript, Remote Control, auth/credential, andclaude agentsfixes. v2.1.179: preserves partial responses on mid-stream connection drops; fixes WSL2 mouse-wheel scrolling (v2.1.172 regression), a sandboxdenyRead/allowReadglob over a large tree making the Bash tool description enormous on Linux, the feedback-survey single-digit capture, welcome-screen promo stacking, Ctrl+O subagent transcript viewing, and remote background-task and plugin-loading reliability. v2.1.177: CHANGELOG.md/feed.xml chore only. Fetched June 17, 2026. ↩↩ -
Claude Code v2.1.185 release notes and v2.1.186 release notes, plus the Claude Code Changelog (canonical). June 20 to 22, 2026. v2.1.186:
claude mcp login <name>andclaude mcp logout <name>authenticate/sign out of MCP servers from the CLI without opening/mcp, with--no-browserstdin redirect to complete over SSH;!bash commands now trigger Claude to respond to the output automatically ("respondToBashCommands": falsekeeps the prior context-only behavior);Agent(type)deny rules andAgent(x,y)allowed-types restrictions are now enforced for named subagent spawns; background subagents surface permission prompts in the main session (showing which agent asks; Esc denies just that tool) instead of auto-denying, and Esc/Ctrl+C stay responsive while background agents run after the main turn;/review <pr>uses the same review engine as/code-review medium;/workflowsagent detail adds status filtering (pressf);/pluginInstalled adds a Skills section;teammateMode: "iterm2"(with a warning when auto mode can’t find theit2CLI);/loginadds “Claude Platform on AWS - refresh credentials” whenawsAuthRefreshis configured; skill frontmatterdisplay-name/default-enabled/fallback/metadata.*accept kebab-case, snake_case, and camelCase, and malformedSKILL.mdYAML loads the body with empty metadata instead of failing silently;claude mcp get/claude mcp removesuggest the closest configured server name on a typo; the agent is reminded to compact itsMEMORY.mdindex near the size limit;CLAUDE_CODE_MAX_RETRIEScaps at 15 (useCLAUDE_CODE_RETRY_WATCHDOGfor unattended sessions).Fixes: streaming “Content block not found”/JSON parse errors after sleep-wake; subagent transcript scroll bleeding into the main transcript on exit; background task previews flashing raw tool names; Chrome tab-group isolation with the permissions gate off; duplicated background recaps;
Agent(type)deny /Agent(x,y)allowed-types not enforced for named spawns;~~strikethrough~~rendering literal tildes; Workflowagent({schema})subagents looping forever on repeated schema-validation failures (now aborts after 5). v2.1.185: the stream-stall hint now reads “Waiting for API response · will retry in …” (was “No response from API · Retrying in …”) and triggers after 20s of silence instead of 10s. v2.1.184 was not released. Fetched June 23, 2026. ↩ -
Claude Code v2.1.187 release notes, plus the Claude Code Changelog (canonical). June 23, 2026. v2.1.187:
sandbox.credentialssetting blocks sandboxed commands from reading credential files and secret environment variables; org-configured model restrictions apply across the/modelpicker,--model,/model, andANTHROPIC_MODEL, with a “restricted by your organization’s settings” message when a restricted model is selected; mouse-click selection support in fullscreen menus (permission prompts,/model,/config);/install-github-appmakes the GitHub Actions workflow/secret setup optional;/btwadds ←/→ navigation through earlier answers;/pluginsurfaces recently-unused plugins for cleanup;claude --helpnow lists the--bg/--backgroundflag. Fixes:--resumefailing with “No conversation found” when the original-prun produced no model turns;--json-schemaand workflowagent({schema})structured output (no infiniteStructuredOutputre-calls after success; follow-up turns reliably return structured output); remote MCP tool calls hanging for 5 minutes now abort with an error; Remote sessions ~2.7s slower to start after the agent-proxy CA trust install; pasted Korean/CJK mojibake in terminals delivering paste as per-byte extended-key events;/updateover Remote Control hanging on a startup trust dialog; background jobs stuck in “working” when a turn ended without structured output; channel drops after navigating to the agents view //bg//tui//update; agent stop-notification attribution and wording; subagent depth tracking on resume/fork; leaked agent worktree registrations cleaned up; Cmd+click URL open in Ghostty fullscreen on macOS; Esc/Ctrl-C/Ctrl-D during/shareupload; [VSCode] extension unresponsive resuming a large session. Fetched June 23, 2026. ↩ -
Claude Code v2.1.207 release notes. July 2026. v2.1.207: Auto Mode no longer requires the
CLAUDE_CODE_ENABLE_AUTO_MODEopt-in on AWS Bedrock, Google Vertex AI, and Microsoft Foundry, where administrators disable it with thedisableAutoModemanaged setting; Bedrock, Vertex AI, and Claude Platform on AWS now default to Claude Opus 4.8; theautoModesetting is no longer read from a repository’s.claude/settings.local.json(use~/.claude/settings.json); plugin security:${user_config.*}interpolation is rejected in shell-form plugin commands (use the exec form or the$CLAUDE_PLUGIN_OPTION_<KEY>env var), andpluginConfigsis no longer read from project-level.claude/settings.json. Fetched July 17, 2026. ↩ -
Claude Code v2.1.210 release notes. July 2026. v2.1.210: Claude Code now shows a startup warning for permission rules using the
Write(path),NotebookEdit(path), orGlob(path)forms: write-side file rules should useEdit(path)(which governs all file-writing tools) and read-side rulesRead(path)(which governs file-reading tools, Glob included). Fetched July 17, 2026. The same release changes the auto-mode permission classifier to default to Claude Sonnet 5 for external sessions. ↩↩ -
Claude Code v2.1.211 release notes. July 2026. v2.1.211: the
--forward-subagent-textflag andCLAUDE_CODE_FORWARD_SUBAGENT_TEXTenv var include subagent text and thinking output in--output-format stream-json; “Always allow” permission rules are now saved at the repository root, so approvals granted in one worktree persist across sessions and across all worktrees of the repository. Fetched July 17, 2026. ↩ -
Claude Code CHANGELOG, v2.1.214 entry. July 2026. v2.1.214: single-segment
dir/**allow rules (e.g.Edit(src/**)) now match only<cwd>/dirinstead of any nesteddir/in the tree, whiledeny/askrules keep any-depth matching, and hookif:conditions gain the same cwd scoping (write**/dir/**for any-depth); permission fail-closed hardening: Windows PowerShell 5.1 bypass fixed, Bash file-descriptor redirect forms fail closed, commands over 10,000 characters always prompt, zsh subscripts/modifiers in[[ ]]prompt, unsafehelp/manvariants no longer auto-approved, remote-session prompts cannot proceed before local confirmation,docker/Podman daemon-redirect flags (--url,--connection,--identity, remote mode) prompt, andfile -m/--magic-file/-f/--files-fromrequires permission; new EndConversation tool for ending sessions on highly abusive input or jailbreak attempts; SessionStart hooks report source"fork"for forked sessions (previously"resume"); OTel log events gainmessage.uuid,client_request_id, andtool_sourceattributes,CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTHconfigures the 60 KB content-truncation limit, and thesubagentStatusLinepayload includes reasoning effort. Fetched July 21, 2026. (v2.1.213 was never released.) ↩↩↩ -
Claude Code CHANGELOG, v2.1.216 entry. July 2026. v2.1.216: adds the
sandbox.filesystem.disabledsetting to skip filesystem isolation while keeping network egress control; fixes a quadratic message-normalization slowdown in long sessions, auto-mode HTTP 401 denials after OAuth token rotation, worktree-isolated subagents redirecting git into the shared checkout viagit -C/--git-dir/GIT_DIR, and.claudesymlink write redirection;/rewindrefuses symlink/hardlink restore paths;/contextwarns on context-window overflow; mid-session skill/command edits appear in the slash menu without restart; the/forkconfirmation shows the new session’s name andclaude attachid; cloud sessions recover the in-flight turn after a mid-turn container restart. Fetched July 21, 2026. ↩ -
Anthropic research: Claude’s ability to end a rare subset of conversations. 2025. Background on the conversation-ending capability that v2.1.214 brings to Claude Code as the EndConversation tool — deployed on claude.ai since 2025 for rare cases of persistently abusive or harmful interactions. ↩
-
Claude Code CHANGELOG, v2.1.219 and v2.1.220 entries. July 2026. v2.1.219 (July 24): adds Claude Opus 5 (
claude-opus-5) as the new default Opus model, with 1M context, fast mode at $10/$50 per MTok; adds thesandbox.network.strictAllowlistsetting to deny non-allowlisted hosts for sandboxed commands without prompting; adds theDirectoryAddedhook, which fires after/add-diror the SDKregister_repo_rootcontrol request registers a new working directory mid-session; addsmcp_server_errorsto the headless stream-json init event, listing--mcp-configentries skipped by config validation (terminal runs print a startup warning); adds theworkflowSizeGuidelinesettings key so the advisory Dynamic workflow size guideline can be set from any settings file, with the/configrow hidden while one does; adds nested subagent forwarding in stream-json, so subagents spawned at depth-2+ appear when--forward-subagent-textis set, keyed by their spawning Agenttool_useid; changes dynamic workflows to default to a medium size guideline (aim for fewer than 15 agents); removes Opus 4.7 from fast mode:/fastnow applies to Opus 5 and Opus 4.8; subagents can now spawn nested subagents up to depth 3 by default (was 1); setCLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1to disable nesting; updates theclaude-apiskill to default to Claude Opus 5 with a migration path from Opus 4.8; adds HTTP status and error text toclaude mcp listand/mcpwhen a server fails to connect, plus a warning for MCP config values with hidden leading or trailing whitespace;changes managed MCP allowlist/denylist
${VAR}entries to resolve from the startup environment and managed-settings env instead of settings-file env; adds the current default workflow size to the running-workflow status line; fixesclaude -ptext output dropping the answer already produced when a turn dies on a mid-stream API error, the Fable row showing a stale “Requires usage credits” label, the/modelpicker showing the merged Opus row as plain “Opus” instead of “Opus (1M context)”, the new-release highlight covering more than the newest model’s name, GNU screen copy-on-select printing base64, Remote Control clients keeping a stale fast-mode status after a model switch/reconnect/failed org check,CLAUDE_CODE_GIT_BASH_PATHon Windows exiting or being used as bash when the path isn’t a bash/sh binary (now ignored with a warning), Vim mode ← on an empty prompt not returning to the agent view from NORMAL mode, and screen-reader mode rewriting the entire input line on every keystroke; improves the “Remote Control is only available via api.anthropic.com” error to name the setting that caused it andclaude --teleportto show which repo the current checkout points at on a mismatch. v2.1.220 (July 25): bug fixes and reliability improvements only, with no user-facing feature, setting, command, or pricing changes. Fetched July 25, 2026. ↩ -
Claude Code v2.1.221 release notes and Claude Code v2.1.222 release notes, August 4, 2026. v2.1.221: VSCode Focus view (
Ctrl+Alt+F);mode: "mask"for sandbox credential files on Linux/WSL with sentinel copies and egress substitution, macOS falling back todeny; background sessions commit/push, draft-PR-only-when-warranted, CLAUDE.md git instructions, and end-of-run location reporting;/forksessions get their own worktree;/plugin installcatalog refresh and retry; immediate plugin activation when safe;"."as pluginskillspath; zsh[[ ]]regex-conditional permission bypass fix; PowerShell quoted-path permission fix;prompt-auditsubcommand; Stats cache-token breakdown; auto-mode prompt-cache reuse. v2.1.222: Remote Control auto-start restricted to user scope; worktree-isolation git fix extended to file edits and Bash in every session type; PreToolUse auto-allow bypass fix for background tasks;SendMessagepermission classification; ultraplan removed. Fetched August 5, 2026. ↩ -
Claude Code v2.1.224 release notes, August 7, 2026. Adds
claude self-hosted-runner(Team/Enterprise); cross-sessionSendMessagewithListAgentsdiscovery on macOS/Linux pluscrossSessionInbound/dialogExpirysettings; thearchiveplugin source with optional SHA-256 pinning; sandbox credential-masking optionsextract/onExtractNoMatch,decode: "jwt"withmaskClaims, andawsPairs/sigv4(requirenetwork.tlsTerminate; user/managed/--settingsscopes only); removes the 200-subagent-per-session spawn cap; fixes long-path session-directory crossing, trailing-slash sandbox deny bypass, and invisible sandbox-violation details. Fetched August 7, 2026. ↩ -
Auto mode is now the default in Claude Code for Pro, Max, Ultra, and Team plans, Anthropic, August 7, 2026, fetched November 11, 2026; the post named Pro, Max, and Team when it was published. The permission-modes docs, as captured on August 13, 2026, stated: “Starting August 14, 2026, auto mode becomes the default permission mode for new sessions on Pro, Max, and Team plans. You can switch modes at any time. A default you set yourself stays in place unless you accept the one-time switch prompt, and a default your organization manages is unchanged.” Effective August 14, 2026 for Pro/Max/Team. Auto mode “routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment.” Study basis: 1,053 paid testers; auto mode caught 89% of dangerous commands vs 13.6% for human review; users approve 97% of permission prompts. “we’re no longer charging Claude Code users on Pro, Max, Ultra, and Team plans for that classifier overhead, effective today.” Enterprise, the Claude API, Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry remain opt-in: “In the coming month, working with our cloud partners, we plan to make it the default across all of these.” Opt out per-session via Shift+Tab or the desktop mode dropdown; pin via
defaultModein managed settings; disable org-wide viadisableAutoMode. ↩↩ -
Claude Code release notes v2.1.257 and v2.1.258 (both September 1, 2026) and v2.1.259 (September 2, 2026), and the canonical CHANGELOG on September 3, 2026. npm dist-tags that day: latest and next both 2.1.259, stable 2.1.236; npm’s published versions jump from 2.1.252 to 2.1.257 – 2.1.253 through 2.1.256 were never published and have no CHANGELOG sections (the 2.1.244/2.1.249 pattern) – so the 2.1.258 note’s “regression introduced in 2.1.255” refers to an unpublished internal build and v2.1.257 is the first installable release carrying Fable 5.1 support. Source for the v2.1.257 items: Fable 5.1 support with the gateway caveat (in Claude apps gateway sessions the
fableandbestaliases keep resolving to Fable 5 for now, since a gateway not yet configured for Fable 5.1 rejects it – select it in/modelinstead);timeFormat/timeZone; the auto-mode “Containment Escape” rule (cloud metadata-credential fetches, egress evasion, and cross-tenant reach not auto-approved unless the environment marks them expected);CLAUDE_CODE_SUBAGENT_MODEL_FORCE; the one-time prompt before the first file read outside the working directories pluspermissions.blockReadsOutsideWorkingDirectories;/effort sand the session-scoped--effort; project/localdefaultMode: "bypassPermissions"ignored; themanagedSourcesBehavior: "merge"refinement (sandbox.credentials.awsPairsandsandbox.ripgrepread whole from the highest source that sets them); BashRead()/Edit()deny-rule coverage of< fileinput redirects and reader commands such astacandegrep; and the network-path refusal (UNC shares,/net/<host>automounts) on--add-dir,/add-dir, andadditionalDirectories.Source for the v2.1.258 fixes: a macOS 12 launch regression introduced in unpublished 2.1.255, and remote/scheduled sessions failing on requests requiring non-empty content. Source for the v2.1.259 items:
managedMcpServers; theallowedMcpServersscope change to user-added servers only;--permission-prompts none(anything that would prompt is denied automatically while the active permission mode keeps deciding); managed settings that fail to parse refusing startup and naming the source; frontmattermodel:on custom commands and skills honored in interactive sessions, with auto mode keeping the session model instead of running a turn on an unsupported frontmatter model;claude plugin validate --json; and the option-value/operand extension of BashRead()deny coverage (--ignore-revs-file=.env,-f.env,@filearguments,git diff/git grepoperands,cd DIR && cat FILEcompounds, andgrep -r/cp -rover a directory holding a denied file now asking). The settings docs do not yet documenttimeFormat/timeZoneormanagedMcpServers, and the CLI reference does not yet list--permission-prompts– the CHANGELOG is the source for those as of September 3, 2026. ↩↩ -
Claude Code v2.1.260 release notes, published September 3, 2026 at 23:48 UTC (4:48 PM PT; the npm publish preceded it at 22:32 UTC), and the canonical CHANGELOG the same evening. npm dist-tags that evening: latest and next both 2.1.260, stable 2.1.236. Revert verbatim: “Reverted the 2.1.259 change applying
Read()deny rules to Bash arguments; it deniednpm run buildunder aRead(./**/build/**)rule in every mode and madecd … && grepprompt even in auto mode” – the v2.1.257 redirect and reader-command coverage is not named in the revert and stands. Source for: the/difffullscreen diff panel (“Added a diff panel that opens beside the conversation in fullscreen mode and shows your uncommitted changes as Claude edits; toggle it with/diff”); the parenthesis-path permission fixes (rules with parentheses in the path “being dropped as invalid or ignored by the Bash sandbox, which left ‘read-only’ folders writable”; an uncompilable pattern such as an unclosed[no longer “making every file edit fail withInvalid regular expression”, such a deny rule now guarding the literal path it spells; the improved settings error forEdit(C:\dir\(name)\**)where\(reads as an escaped parenthesis rather than a path separator; trailing-text rules such asBash(ls) xreported as invalid settings);the four Fable 5.1 launch-cluster fixes (the
/modelpicker showing Fable 5.1 for organizations that can use it, previously “only accepted when typed as/model claude-fable-5-1”; prompt caching covering “the context attached after tool results, so it was re-sent as uncached input on every tool-call turn” before the fix; mid-session/effortchanges no longer invalidating the prompt cache;model: fableagents honoring the[1m]tag on anANTHROPIC_DEFAULT_FABLE_MODELpin instead of “silently running with a 200K context window”); the auto-compact improvement (“Opus and Fable sessions now compact shortly before the 1M-token limit, and recovery compaction on very large contexts no longer times out at 10 minutes”); the likely-miss-cause line added to/costand the status line’sprompt_cachefield (“e.g. tool definitions or system prompt changed, idle past the TTL”); the!bash-mode carve-out (“Changed commands typed at the!bash-mode prompt to run outside the sandbox even when strict sandbox mode (sandbox.allowUnsandboxedCommands: false) is on, like typing into your own terminal”); the managed CLAUDE.md change (“a managed CLAUDE.md (claudeMd) no longer triggers the security approval dialog; hooks, shell-command, sandbox, and unsafeenvsettings still require approval”); and Claude in Chrome following “your organization’s Claude in Chrome admin setting; when an admin turns it off,--chrome,/chromeand the browser tools are unavailable”. Strict-sandbox-mode semantics (allowUnsandboxedCommands: falseignoresdangerouslyDisableSandboxentirely, every command must run sandboxed or be listed inexcludedCommands, and the/sandboxOverrides tab labels the state Strict sandbox mode) from the sandboxing docs, fetched September 3, 2026. ↩↩↩ -
Claude Code release notes v2.1.266 (September 8, 2026), v2.1.267 (September 9), v2.1.268 (September 10), v2.1.269 (September 11), v2.1.270 (September 12), v2.1.271 (September 14), and v2.1.272 (npm September 14, GitHub release September 15 at 00:42 UTC), and the canonical CHANGELOG on September 15, 2026 – all seven release bodies and their CHANGELOG sections are identical. npm dist-tags on September 15 (~13:15 PT): latest 2.1.272, next 2.1.273, stable 2.1.236; 2.1.273 (published September 15 at 18:06 UTC) has no GitHub release and no CHANGELOG section, so its content is not documented here; and 2.1.263 still carries only “Bug fixes and reliability improvements” – no backfill ever landed. Source for, verbatim where quoted: the
/output-stylerevival (“Added/output-style [name]to list and switch output styles, including over Remote Control and in cloud and other headless sessions”, v2.1.269);claude plugin eval(“run a plugin’s eval suite against Claude Code and get scored, reproducible results (JSON + HTML report)”, v2.1.269); fast mode in Claude Code Remote sessions (“cloud and self-hosted runners: the host’s fast-mode setting or/fasttyped in the session applies where your organization allows it”, v2.1.271) and the/fast offfix;the
maxEffortLevelsetting (“top-level or per model undermodelSettings: caps the effort level on every provider, including Bedrock, Vertex and Foundry; users can still pick a lower level”, v2.1.267);--system-prompt-snapshot off(v2.1.267); the v2.1.267 prompt-cache stability batch (resumed-session tool-list, tool-description, and MCP-announcement rewrites;/modelswitches re-sending every tool definition, with attribution text now a conversation note;--system-prompt/--append-system-promptsessions recording the prompt and tool definitions once; mid-session MCP and plugin tools as deferred definitions); theeffort:frontmatter fix on pinned-default-effort models (Opus 4.7, Opus 4.8, Fable 5; v2.1.267); the marketplace backslash containment fix (v2.1.267); the task-tracking allowlist (“Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be offered only on” Claude 3.x, Opus 4.0 to 4.7, Sonnet 4.0 to 4.6 and Haiku 4.5, with “setCLAUDE_CODE_ENABLE_TODO_TOOLS=1elsewhere”, v2.1.268); the symlinked-directory andenv -C/evaldeny-rule fixes (v2.1.268); the WebFetch/Artifact rule split (“Changed plainWebFetchdeny and ask rules to no longer apply to Artifact tool reads and updates; use anArtifactrule (orWebFetch(domain:claude.ai)) to block or gate them”, v2.1.268);/pluginchanges applying on menu close (v2.1.268); the WebFetch 300-second deadline andCLAUDE_CODE_WEBFETCH_DEADLINE_MS(v2.1.268);gatewayInternalNetworks, the empty-allow_cidrswarnings, and the gatewaypricing:rate sync (v2.1.268) plus themultiplierabove 1 up to 10 (v2.1.271);the
${VAR}and git-URL secret-hygiene fixes (v2.1.268);configDirectoryinclaude auth status --json(v2.1.268); the third-partyANTHROPIC_BASE_URLHTTP-400 regression fix (v2.1.268);bashEditDiffEnabled(v2.1.269); the attribution-reminder fix (“Fixed the attribution reminder overriding a CLAUDE.md or memory rule against commit and pull request attribution; lines set by managed settings still apply”, v2.1.269); the env varsOTEL_METRICS_INCLUDE_REPOSITORY,CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(1-256),CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS(default 3s), andCLAUDE_CODE_BG_TASKS_REPORT_RUNNING(v2.1.269); the v2.1.247 keyboard-regression fix and the kitty-query keyboard support over SSH (v2.1.269); theEdit()/tee,Bash(tee:*), and leading-!scoping fixes (v2.1.269); per-commandallowed_domainson Bash, PowerShell, and Monitor in auto mode with sandboxing (v2.1.271);omitClaudeMdagent frontmatter and--agentsJSON (v2.1.271); the auto-mode inline-!and subagent hand-back mechanics changes (v2.1.271);claude plugin install/update--accept-command <sha256>(v2.1.271);--resumekeeping[1m]across model families (v2.1.271); the fail-closed unreadablemanaged-mcp.json(v2.1.271); thefmt/column, wildcard-expansion, variable-declaration-flag, andblockReadsOutsideWorkingDirectorieschecker fixes (v2.1.271); and Markdown artifacts rendering as styled document pages with artifact watches rising to 10 (v2.1.271). v2.1.266 carries one line (theCLAUDE_CODE_USE_GATEWAYregression fix), v2.1.270 one line (the v2.1.269 git-prompting regression fix), and v2.1.272 only “Bug fixes and reliability improvements”. ↩↩↩↩ -
Claude Code v2.1.273 release notes, published September 15, 2026 at 20:23 UTC, and the canonical CHANGELOG on September 16, 2026 – the release body and the CHANGELOG section are identical, 64 lines each. npm dist-tags on September 16 (~10:00 PT): latest 2.1.273, next 2.1.273, and stable 2.1.267 – the stable tag’s first move off 2.1.236. Source for, verbatim where quoted: the deny-rule revert (“Reverted a 2.1.268 change that checked Read and Edit deny rules on Bash lines the permission checker can’t analyze (
eval,env -C); commands liketime -p make buildprompt again instead of being denied”); the unanalyzable-command and subshell fixes (“Fixed Bash commands the permission checker cannot fully analyze skipping the prompt underpermissions.blockReadsOutsideWorkingDirectories, and a subshell hiding a dangerousrmin bypass mode”); the memory-directory fix (“Fixedpermissions.blockReadsOutsideWorkingDirectories: a memory directory chosen by a repository’s settings is no longer loaded into the prompt, recalled, indexed, or used by memory extraction”); the gateway classifier default (“Changed auto mode on Bedrock, Vertex and Foundry to use the local classifier by default for now; setCLAUDE_CODE_AUTO_MODE_SERVER=1to use the platform’s server-side classifier”); the hint headers (“Addedx-claude-code-request-class,x-claude-code-agent-type,x-claude-code-prev-tool-durations,x-claude-code-compactionandx-claude-code-context-compactedrequest headers for LLM gateways; opt in withCLAUDE_CODE_GATEWAY_HINT_HEADERS=1”);the managed-settings precedence fix (“Fixed
allowManagedMcpServersOnly,deniedMcpServersanddisableClaudeAiConnectorsset via MDM ormanaged-settings.jsonbeing ignored when server-managed settings are also present”); the context-meter fix (“Fixed the context meter and auto-compact counting advisor-tool turns at roughly twice their real context size, which made auto-compact fire at about half the real window”); the prompt-cache fix (“Fixed/login,/upgrade, and/extra-usagediscarding earlier thinking from the conversation, which forced a full prompt-cache rewrite on the next request”); the telemetry change (“ChangedOTEL_LOG_TOOL_DETAILS=1to also include real agent, skill, plugin and MCP server names on cost and token metrics”); the/bug//feedbackdata minimization (“Changed/bugand/feedbackreports to include only model-behavior params (model, system prompt, tools) from the last API request, omitting request metadata andCLAUDE_CODE_EXTRA_BODYfields”); the sign-in change (“Changed sign-in with a Claude account to also request access to your claude.ai plugins”); Remote Control forking (“Added forking a session started withclaude --remote-controlor/remote-controlfrom the Claude app; the fork runs as a background session on your computer”); and the stream-json fix (“Fixed SDK and--output-format stream-jsonoutput dropping a subagent’s remaining messages and final report after it is moved to the background mid-run (e.g. byCLAUDE_AUTO_BACKGROUND_TASKS)”). ↩↩ -
Claude Code release notes v2.1.277 (npm published September 18, 2026 at 16:22 UTC; GitHub release 18:06 UTC) and v2.1.278 (npm September 19 at 01:48 UTC; GitHub release 03:10 UTC), and the canonical CHANGELOG on September 21, 2026. Source for every v2.1.277 and v2.1.278 item in this guide. Key quotes: “Added AGENTS.md support: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead; change it under "Project instructions" in
/config(not yet on Bedrock, Vertex or Foundry)”; “Changed auto mode for Claude API and Enterprise users, and on Bedrock, Vertex, Foundry and gateways, to default to the server-side classifier, which does not charge for classifier overhead”; “Added anAuto mode serverrow to/statusshowing whether this session’s auto mode classifier runs on the server”. Supporting docs fetched September 21, 2026: Memory, AGENTS.md section (load matrix, Project instructions values, theagents-md@builtinpluginConfigslocation, files not read) and Auto mode classifier request charges (fallback notice text and delivery, the/statusrow values, gateway pass-through, and the variable’s temporary status). ↩↩ -
Claude Code v2.1.280 release notes (npm published September 22, 2026 at 15:44 UTC; GitHub release 16:38 UTC), and the canonical CHANGELOG on September 22 and September 23, 2026. Source for every v2.1.280 item in this guide. npm dist-tags on September 23: latest and next 2.1.280, stable 2.1.267; no 2.1.279 was ever published. Key quotes: “Added Claude Opus 5.5 (
claude-opus-5-5), now the default Opus model”, with “1M context, $4/$20 per Mtok with $0.20/Mtok cache reads”; “Changed the default model on Pro and Team Standard plans from Sonnet to Opus, matching Max, Team Premium, and Enterprise”; “Fixed auto mode denying actions over and over without pause when a safety check gave no answer; retries now back off, and the turn stops with a message after ten in a row”. ↩ -
Claude Code v2.1.282 release notes (npm published September 24, 2026 at 15:56 UTC; GitHub release 18:38 UTC; 86 bullets, identical to the 2.1.282 section of the canonical CHANGELOG, fetched September 26, 2026). Source for every v2.1.282 item in this guide. Key quotes: “Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off (
CLAUDE_CODE_AUTO_MODE_SERVER=0opts out)”; “Changed project and local settings to ignore OpenTelemetry variables that turn on export, set its endpoint, or capture content, likeCLAUDE_CODE_ENABLE_TELEMETRYandOTEL_LOG_*”; “Added amaxProseWidthsetting that caps the width of Claude’s prose in wide terminals”; “Added theallowClaudeInChromeWithManagedMcpmanaged setting to letclaude --chromerun alongside an exclusivemanaged-mcp.json”; “Changedsandbox.excludedCommandsto ignore project and local settings entries when managed settings or--settingssetallowUnsandboxedCommands: false, or managedallowManagedDomainsOnly: true”; “Changed skill folders, command files and workflow commands in theanthropic-skillsorclaude-ainamespace to no longer load”. ↩ -
Claude Code v2.1.283 release notes (npm published September 25, 2026 at 18:46 UTC; GitHub release 21:50 UTC; 94 bullets, identical to the 2.1.283 section of the canonical CHANGELOG, fetched September 26, 2026, which runs 2.1.281 to 2.1.283 with no gap). Source for every v2.1.283 item in this guide. npm dist-tags on September 26: latest and next 2.1.283, stable 2.1.274. Key quotes: “Changed interactive sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured;
permissions.defaultModestill overrides it”; “AddeddeniedModelsmanaged setting to block specific models, even whenavailableModelsallows them”; “Added/doctor prompt-audit(also/checkup prompt-audit) to audit your CLAUDE.md files, skills, agents and commands for prompting patterns written for older models”; “Addedx-claude-code-prompt-idto the gateway hint headers”; “Changed the/modelpicker’s Opus row and the Default model’s name to drop ‘(1M context)’ where Opus already has a 1M context window”; “Reverted the 2.1.282 reservation of theclaude-ainame”. ↩↩↩ -
Claude Code documentation, fetched September 26, 2026. Permission modes: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider”;
claude -pand the Agent SDK start indefault; “From v2.1.282, a session that doesn’t fetch feature flags, for example because you turned telemetry off, asks the server by default in any kind of session.” Auto mode classifier billing: “On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.” Settings reference:attribution“orfalseto hide all attribution. Thefalsevalue requires Claude Code v2.1.281 or later”;maxProseWidth,deniedModels, andavailableModelsMatchentries; the OpenTelemetry group under “Variables Claude Code ignores inenv”. LLM gateway protocol: “Direct connection to the Anthropic API: sent by default”. Skills: the reservedanthropic-skillsname. The settings reference also now documentsspinnerTipsOverride’stipsFileand tip objects (“Tip objects,tipsFile,label, and the Scope line’s rule … require Claude Code v2.1.247 or later”) and thetimeFormatandtimeZonekeys. ↩↩↩ -
Claude Code v2.1.284 release notes (npm published September 28, 2026 at 17:11 UTC; GitHub release 18:02 UTC; 100 bullets, identical to the 2.1.284 section of the canonical CHANGELOG, fetched September 29, 2026, which runs 2.1.283 to 2.1.285 with no gap). Source for every v2.1.284 item in this guide. Key quotes: “Added Claude Sonnet 5.5 (
claude-sonnet-5-5), now the default Sonnet model on the Anthropic API”; “Changed interactive terminal and VS Code sessions to start in auto mode when no permission mode is configured, on every plan and provider;permissions.defaultModestill overrides it”; “Changed Ultracode into its own toggle in/effort(Tab, or/effort ultracode [on|off]): it no longer forces xhigh effort and stays on at any effort level”; “Added/mcp reconnect allin the interactive terminal to retry every MCP server that failed to connect or needs authentication at once”; “Added a ‘Yes, but ask again next time’ answer to auto mode’s prompt before a read outside the working directories”; “AddedeffortSlider:decreaseEffort,increaseEffortandtoggleUltracodekeybinding actions”. ↩↩↩↩ -
Claude Code v2.1.285 release notes (npm published September 29, 2026 at 17:32 UTC; GitHub release 19:27 UTC; 136 bullets, identical to the 2.1.285 section of the canonical CHANGELOG, fetched September 29, 2026). Source for every v2.1.285 item in this guide. npm dist-tags on September 29: latest and next 2.1.285, stable 2.1.280. Key quotes: “Changed
claude -pand Python Agent SDK sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured, like interactive sessions;--permission-modestill overrides it”; “AddedallowedProvidersmanaged setting to limit which API providers a machine may use”; “Addedclaude --desktopto open the Claude desktop app on the current directory, or on a session with--continue/--resume <id>”; “AddedCLAUDE_CODE_DISABLE_WEB_FETCHenvironment variable to turn off the WebFetch tool”; “Changed background Bash and PowerShell commands to stop after a time limit (theirtimeoutwithrun_in_background, default 30 min, max 2 h)”; “Changed sessions behind a customANTHROPIC_BASE_URLto use the 1M context window of models that have one (Opus 4.7+, Sonnet 5+, Fable); run/autocompact 200kif your gateway stops at 200K”; “Changed sandbox settings so project settings cannot widen or turn off an admin-required sandbox”; “Changed/config chrome=trueto direct you to the /config panel instead of enabling Claude in Chrome by default”. ↩↩ -
Claude Code v2.1.287 release notes (npm published October 1, 2026 at 16:59 UTC; GitHub release 18:00 UTC; 106 bullets, identical to the 2.1.287 section of the canonical CHANGELOG, fetched October 1, 2026). Source for every v2.1.287 item in this guide. npm dist-tags on October 1: latest and next 2.1.287, stable 2.1.285. Key quotes: “Changed Opus 4.7+ and Fable to use a 1M context window by default on Bedrock, Vertex, Foundry and the Claude apps gateway, with no
[1m]suffix (CLAUDE_CODE_DISABLE_1M_CONTEXT=1keeps 200K)”; “Added Claude Mods: plugins may now modify deeper behavior”; “Added You should know, a built-in mod where a side agent watches your back and flags things you or Claude might miss”; “Added URL prompts from MCP servers on the 2025-11-25 protocol”; “Changed MCP serveralwaysLoad: falseto defer all of that server’s tools behind tool search”; “setCLAUDE_AX_PREPARK_MS=50to restore the pause”; “Changed automatic model switches after a flagged message to keep your current effort level instead of the new model’s default”; “Changed whole-toolBashallow rules and allowing hooks to prompt for, not run, shell writes to files Claude Code’s file tools refuse outright”; “Addedprompt_textto the OpenTelemetryuser_promptevent”. ↩ -
Claude Code documentation, fetched October 1, 2026. Permission modes: for
claude -por the Agent SDK, “defaultin sessions that fetch feature flags. In sessions that don’t, such as on a third-party provider or with telemetry off,autowith Claude Code v2.1.285 or later”. Mods overview: “Mods are on by default. In the terminal, use Claude Code v2.1.287 or later”; “Mods aren’t sandboxed”;CLAUDE_CODE_ENABLE_FUNCTION_HOOKSis ignored from v2.1.287;cc-plugin-you-should-knowis “Disabled by default”. Model configuration: after a fallback, Claude Code “keeps the effort level the flagged request ran at”; “Opus 4.6 and Sonnet 4.6 reach 1M only through their[1m]variant”; the gateway 1M passage and/autocompact 200k. Amazon Bedrock and Agent Platform: “To enable it for a manually pinned model instead, append[1m]to the model ID.” Environment variables:CLAUDE_AX_PREPARK_MS“Default0… Before v2.1.287, the default was50”;CLAUDE_CODE_DISABLE_WEB_FETCH“The WebSearch tool stays available. Requires Claude Code v2.1.285 or later”. Headless: “Before v2.1.286, these limits held only partly”. Agent view: then:<text>filter and “A reply that is exactly/stopstops the session at once.” Settings reference:allowClaudeInChromeWithManagedMcp(“Requires Claude Code v2.1.282 or later”) andallowedProvidersentries. The MCP page does not listbareElicitationCapability. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩ -
Claude Code canonical CHANGELOG, section 2.1.288, fetched October 6, 2026, and npm registry metadata for
@anthropic-ai/claude-coderead the same day: 2.1.288 published October 2, 2026 at 18:30 UTC, 2.1.289 October 3 at 20:12 UTC, 2.1.290 October 5 at 18:12 UTC, 2.1.291 October 6 at 03:32 UTC, 2.1.292 October 6 at 17:10 UTC; dist-tags latest and next 2.1.292, stable 2.1.285. The CHANGELOG runs 2.1.287 to 2.1.292 with no gap. Source for every v2.1.288 item in this guide. Key quotes: “Changedclaude project purgetoclaude purge; the old name still works and prints a notice”; “Changed the background command time limit to apply only in unattended sessions (-p, Agent SDK, CI, cloud); terminal, desktop app and VS Code sessions have no limit”; “Added--max-findings <n>|allto /code-review”; “addedCLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTSto turn structured outputs off”; “Changed the client-side auto mode classifier to ignore anANTHROPIC_DEFAULT_SONNET_MODELpin that names Claude Sonnet 5.5 or Opus 5.5 and use Claude Sonnet 5 instead”; “requests now time out after 60s (per-serverrequestTimeout)”. ↩ -
Claude Code canonical CHANGELOG, sections 2.1.289, 2.1.290, and 2.1.291, fetched October 6, 2026. Source for every v2.1.289, v2.1.290, and v2.1.291 item in this guide. Key quotes: “Fixed a regression in 2.1.290 where cloud sessions could drop answers to permission prompts”; “Fixed a regression in 2.1.288 where the last messages of a session could be lost when quitting”; “Changed the interactive session’s WebSearch budget to refill over time (100 calls/hour;
CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOURsets the rate, 0 turns it off) instead of ending after 200 calls”; “Changed Claude in Chrome so that a project’s settings files can no longer turn it on; use--chrome,/chromeor your user settings”; “Changed the Bash tool to ask for permission before runningpyright, which is no longer treated as a read-only command”; “ChangedCLAUDE_CODE_DISABLE_ATTACHMENTSso a repository’s.claude/settings.jsonor.claude/settings.local.jsoncan no longer set it”; “Addedagent.spawnfor teammates, one agent id across plugin hook events, and idle and waiting states in$.agent.list()”. ↩↩↩↩ -
Claude Code canonical CHANGELOG, section 2.1.292, fetched October 6, 2026. Source for every v2.1.292 item in this guide. Key quotes: “Added
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MSenvironment variable to set a longer base delay for the backoff when retrying an overloaded (529) request”; “Added aneffortparameter to the Agent tool”; “Added--marketplace <source>toclaude plugin install”; “Changed local (stdio) MCP server connections to negotiate protocol version 2026-07-28 by default on every install, including Bedrock, Vertex and Foundry;MCP_PROTOCOL_NEGOTIATION=legacyopts out”; “Security: Fixed PreToolUse hook approvals and auto mode bypassing the permission prompt for file reads from network (UNC) paths”; “Changed agent names to allow at most 256 characters”. ↩↩ -
Settings and CLI reference, fetched September 3, 2026. Settings, on
permissions.defaultMode: the valuesautoandbypassPermissions“don’t take effect from project or local settings”. CLI reference, on--effort: the flag “Overrides” the default effort “for this session and doesn’t persist” – the pick no longer outlives the session. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩ -
Claude Code release notes v2.1.235 (Aug 18), v2.1.236 (Aug 19), v2.1.237 and v2.1.238 (Aug 20), and the canonical CHANGELOG.md on August 20, 2026 (latest heading: 2.1.238). Quoted behavior verbatim from the notes:
spellcheck“using your installedaspell,hunspell, orispell”;ANTHROPIC_DEFAULT_MODEL“sets the model new sessions start on, while a/modelpick still overrides it and persists across restarts (unlikeANTHROPIC_MODEL)”; Concise “leads with results and skips preamble and narration, while doing the work just as thoroughly”;keybindingFlavor"readline"“Ctrl+W in the prompt delete back to the previous whitespace, as in Bash”;headersHelper“runs a command that mints HTTP headers (e.g. a short-lived token)” with install/update-only execution for catalog entries and credential-env stripping for project/plugin/agent scopes; auto mode “Monitorallow rules are now set aside while auto mode is active”; macOS sandbox “wildcard read-deny rules (e.g.**/.env) now take precedence inside allowed read regions… and can’t be bypassed by renaming the denied file.” ↩ -
Claude Code documentation, fetched August 26, 2026. Model configuration, effort table: “Fable 5 |
low,medium,high,xhigh,max” and “Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7 |low,medium,high,xhigh,max” (nominlevel exists); “The/effortmenu also offersultracode. Ultracode is a Claude Code setting rather than a model effort level: it sendsxhighto the model and additionally has Claude orchestrate dynamic workflows for substantive tasks”; “Passingultracodeto the--effortflag or the Agent SDKeffortLevelvalue requires Claude Code v2.1.203 or later”; “The persistedeffortLevelsetting and theCLAUDE_CODE_EFFORT_LEVELenvironment variable don’t acceptultracode.” Auto mode configuration: “run/permissionsin the CLI and select the Auto mode tab. The tab requires Claude Code v2.1.246 or later, and it appears only when auto mode is available to your session”; “Claude Code shows entries from managed settings or the--settingsflag as read-only, and saves every change you make on the tab to~/.claude/settings.json”; “When you add the first rule to a section, Claude Code also inserts"$defaults"so the built-in rules stay in effect.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.Permissions: “Put the
*after the subcommand. Ingit log --oneline main,gitis the program andlogis the subcommand …Bash(git log *)allows onlygit logcommands, andBash(git *)allows every git command. Claude Code warns at startup about an allow rule with a*before the subcommand, such asBash(git * main).” Errors: “Bash(git * main)also approvesgit -c core.fsmonitor=<script> diff main, where-cmakes git run a program the command names”; the fix: “Replace the*before the subcommand with the exact value you mean:Bash(git checkout main)in place ofBash(git * main).” Claude Code on the web: “Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats”; “Run/web-setupin your terminal to sync your localghCLI token to your Claude account”; “Team and Enterprise Owners can disable/web-setupwith the Quick web setup toggle at claude.ai/admin-settings/claude-code”; “Organizations with Zero Data Retention enabled can’t use/web-setupor other cloud session features.”(These four cloud-session quotes are the page as it read on August 26, 2026. On November 10, 2026 it reads “Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats”, “Run
/web-setupin your terminal to send your localghCLI token to your Claude account”, and, of the Quick setup toggle, “On Team and Enterprise plans it’s off by default”.) Costs,/usage: “Loops: a row for each of the heaviest/loopor other scheduled tasks that ran recently, ordered by total tokens, with a count of the rest. Claude Code reports how often each task fires, how many times it ran, its total and per-run tokens, and when it last ran. Claude Code keys a row by the task’s prompt, so a loop you stop and re-create stays one row. Requires Claude Code v2.1.242 or later.” ↩ -
Claude Code CHANGELOG, sections 2.1.246 and 2.1.245, fetched August 26, 2026; npm published 2.1.245 on August 25, 2026 at 04:45 UTC and 2.1.246 at 19:17 UTC, with a matching GitHub release for each. Verbatim 2.1.246: “Added a startup warning for Bash allow rules with a wildcard before the subcommand (e.g.
Bash(git * main)), since they also match options inserted before the subcommand”; “Added an Auto mode tab to/permissionsfor viewing and editing auto mode classifier rules”; “Improved/cd: the new directory’s project settings, hooks,.mcp.jsonservers (behind the usual approval prompt), skills, and agents now take effect right after the move instead of on--resume”; “Improved subagent results: a subagent that stops at itsmaxTurnslimit now returns its output marked as partial, with a hint to continue it viaSendMessage, instead of appearing finished”; “/goal: Changed idle sessions to start at most three check-ins on long-running background work per goal; your next message allows three more”; “Fixed Bash permission checks to always require approval for malformed commands with a dangling&&or||operator”; “Fixed telemetry and metrics requests to Anthropic carrying the API key configured for a third-party gateway (ANTHROPIC_BASE_URL); a credential is now only sent to its own host”; “Added the turn’s completion time to the end-of-turn duration line”. Verbatim 2.1.245: “Fixed a crash on startup on Linux distributions that ship glibc 2.44 (for example Arch Linux, CachyOS and Fedora Rawhide)”. ↩ -
Claude Code v2.1.229 release notes, August 12, 2026. Adds
claude remote-control --continue, server-supplied hooks for self-hosted runners, SSE keepalive pings for gateway streaming, plugin marketplacecommandsources withmode: "link",ListAgentsoffline/cloudlabels, workflow fan-out prefix stagger (CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0disables), bracketed-IPv6 fail-closed sandbox domain lists,/commit-push-prdangerous-flag prompting, Windows--base-dirrequirement, VSCode session groups and resizable/btw. Fixes include streaming duplication, narrow-terminal RangeError crashes,\\?\/UNC path crashes, auto-mode attribution-header failure, gateway 1M/modelrejection, MCP OAuth127.0.0.1redirect, GitHub Action review posting, IDE-diagnostics stalls. Fetched August 12, 2026. ↩ -
Claude Code v2.1.166 release notes, Claude Code v2.1.167 release notes, Claude Code v2.1.168 release notes, and the Claude Code Changelog (canonical). June 6, 2026. v2.1.166 adds the
fallbackModelsetting (up to three fallback models tried in order when the primary is overloaded/unavailable), extends--fallback-modelto interactive sessions, and retries a turn once on the fallback model for unexpected non-retryable API errors; adds glob support in the deny-rule tool-name position ("*"denies all tools) while allow rules reject non-MCP globs; hardens cross-session messaging soSendMessage-relayed messages from other Claude sessions no longer carry user authority; makesMAX_THINKING_TOKENS=0,--thinking disabled, and the per-model thinking toggle disable thinking on think-by-default models; and makesclaude updateannounce the target version before downloading, plus fixes for image processing, remote-session stability, and terminal rendering (JetBrains, WezTerm/Ghostty). v2.1.167 and v2.1.168 (both June 6) are bug-fix/reliability-only with no individually documented user-facing changes. Fetched June 6, 2026. ↩ -
Claude Code v2.1.160 release notes and the Claude Code Changelog (canonical). June 2, 2026. Adds permission prompts before writing shell startup files (
.zshenv,.zlogin,.bash_login) and~/.config/git/;acceptEditsnow prompts before build-tool config files that grant code execution (.npmrc,.yarnrc*,bunfig.toml,.bazelrc,.pre-commit-config.yaml,.devcontainer/, and similar). A single-filegrep/egrep/fgrepnow satisfies the read-before-edit check. Renames the dynamic-workflow trigger keyword fromworkflowtoultracode(violet-highlighted in the prompt input); the word “workflow” no longer triggers a run. RemovesCLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE(now a no-op) and the JetBrains plugin install suggestion at startup. Plus ~25 fixes: WSL copy-on-select via PowerShell interop instead of OSC 52,claude agentssession restore dropping chat history and re-running the original prompt, overnight-retired background sessions losing conversation,claude --bg“socket missing” cold-start race, Windows background-session input unresponsiveness under heavy CPU, terminal sync-output artifacts on Apple Terminal/tmux, CJK IME caret position in theclaude agentsview,file:///C:/...link rewriting on Windows hyperlink terminals, voice mode failing on non-ASCII project/branch names, the auto-mode-unavailable message on third-party providers now pointing toCLAUDE_CODE_ENABLE_AUTO_MODEinstead of blaming the model,/effort ultracodeno longer offered on models that cannot run xhigh, model-not-found errors no longer suggesting--modelunder the SDK, vimppaste position afterv$yank, and SIGTERM-before-SIGKILL on background-session teardown. Fetched June 2, 2026. ↩ -
Claude Code v2.1.152 release notes, Claude Code v2.1.153 release notes, Claude Code v2.1.154 release notes, and Claude Code Changelog (canonical). No 2.1.151 was published; the May 23, 2026 infrastructure-only release is v2.1.150. v2.1.152 (May 27, 2026) introduces
/code-review --fixapply-to-working-tree,disallowed-toolsskill/command frontmatter,/reload-skills,SessionStarthookreloadSkills/sessionTitleoutputs, theMessageDisplayhook event,pluginSuggestionMarketplacesmanaged setting,--fallback-modelmid-session switching, removal of auto-mode opt-in, vim/reverse history, plus rendering, performance, and reliability fixes. v2.1.153 (May 28, 2026) addsskipLfsto plugin marketplaces, makes/modelsave as the new-session default (withsfor session-only and amodelPicker:thisSessionOnlykeybind replacingmodelPicker:setAsDefault), and putsCOLUMNS/LINESin status-line env; macOS background agents persist Privacy & Security grants; plus 25+ fixes covering stateful MCPtools/listreconnect loops, custom-gateway OAuth-credential leak, subagent MCP policy enforcement, Windows installer / update channel fixes, and background-session attach reliability.v2.1.154 (May 28, 2026) makes Opus 4.8 the default with high effort by default and a new
/effort xhighlevel, introduces dynamic workflows orchestrating tens to hundreds of agents in the background via/workflows, makes Fast mode on Opus 4.8 available at 2× standard rate for 2.5× speed, defaults the lean system prompt for all models except Haiku/Sonnet/Opus 4.7-and-earlier, narrows the multiple-choice-question prompt to genuinely unmakeable decisions, reverts/simplifyto cleanup-only review separate from/code-review --fix’s bug-hunting pass, relabels/effortslider to “Faster”/”Smarter”, addsclaude agents! <command>background-shell sessions plusclaude --bg --exec '<command>', lets plugins declaredefaultEnabled: false, pins suggested plugins to the current directory in/pluginDiscover, makes streaming tool execution always-on, passesCLAUDE_CODE_SESSION_IDandCLAUDECODE=1to stdio MCP subprocess env, marks unapproved.mcp.jsonservers as⏸ Pending approvalinstead of auto-connecting, and deprecatesCLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE(removed June 1; switch to/model claude-opus-4-6[1m]then/fast on). Fetched May 28, 2026. ↩ -
Configure the sandboxed Bash tool, Claude Code Docs, fetched October 11, 2026. Defaults table: writes to “The working directory, a per-user temp directory, and directories you’ve added”; reads “Most of the machine, including credential files such as ~/.ssh and ~/.aws/credentials”; network through a local proxy whose allowed domains “start empty”. Outside the sandbox: built-in file and web tools “follow permission rules instead. A denyRead entry doesn’t stop the Read tool”; “command hooks, local MCP servers, plugin monitors, LSP servers, and helper commands such as your status line command and apiKeyHelper run with your full access.” Narrowing reads:
sandbox.filesystem.denyRead,allowRead, andpermissions.blockReadsOutsideWorkingDirectories. ↩↩ -
Claude Code canonical CHANGELOG, section 2.1.299, fetched October 14, 2026, and npm registry metadata for
@anthropic-ai/claude-coderead the same day: 2.1.299 published October 14, 2026 at 00:23 UTC and 2.1.300 at 14:27 UTC; dist-tags latest 2.1.299, next 2.1.300, stable 2.1.287; no 2.1.297 or 2.1.298 on npm and no CHANGELOG section for them or for 2.1.300. The GitHub release (02:49 UTC) carries 190 bullets, identical to the CHANGELOG. Source for every v2.1.299 item in this guide. Key quotes: “Added idle compaction in the terminal: a 200K+ token conversation left idle for about 54 minutes is compacted before its one-hour prompt cache expires, so your next message doesn’t reprocess it all”; “AddedCLAUDE_CODE_IDLE_COMPACT_MIN_TOKENSto change idle compaction’s 200K-token minimum;"idleCompaction": falsein settings.json turns it off. Both need v2.1.290 or later”; “AddedCLAUDE_CODE_DISABLE_FILE_MENTIONSenvironment variable: Claude gets the paths of@file mentions to read with its file tools, not the files’ contents”; “Changed MCP allow rules to reach only the server they name:mcp__ano longer allows a server nameda__bora_; writemcp__<server>__*with the server’s whole normalized name”;“Changed agent
tools:lists to take only the named MCP server’s tools; list a server whose name contains__asmcp__<whole name>__*”; “Changed MCP tool descriptions and server instructions from Anthropic’s first-party MCP servers atapi.anthropic.comto reach Claude in full instead of being cut at 4,096 characters”; “Changed cloud session and Remote Control MCP connectors to negotiate MCP protocol version 2026-07-28 by default on installs that fetch no flags;MCP_PROTOCOL_NEGOTIATION=legacyopts out”; “ChangedUserPromptSubmithooks to run before a skill or custom slash command expands, so a hook that blocks the prompt now also stops its embedded shell commands”; “Changed theturn.startmod hook to also hear subagents’ and teammates’ turns, not only the main loop’s; tell them apart bye.agentId(absent on the main loop)”; “Fixed rm prompts on shell-cscripts that don’t runrm. An rm built at run time in a script Claude Code can’t read no longer prompts unlessCLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1”;“Added
--shutdown-drain-sectoclaude self-hosted-runner orchestrator: on SIGTERM it stops polling and gives the poll in flight and running spawn hooks up to that many seconds to finish”; “Added--disallow-toolsand adisallowed_toolscase field toclaude plugin evalto keep specific built-in tools, such as Agent, out of eval runs”; “Added support for turning off the attribution block in Claude Desktop’s Code tab: setCLAUDE_CODE_ATTRIBUTION_HEADER=0in theenvof a Claude apps gateway’scodepolicy”; “Added/effortand/fastin agent view to set what new sessions start with; a bare/model,/effortor/fastthere now opens a picker”; “Changed actions a plugin hook can block to be refused, not let through, when the hook cannot be handed them or cannot hand back its answer; a tool that already ran has its result withheld”; “Fixed a regression in 2.1.296 where cloud and headless sessions could run an approved tool call twice if a new message arrived as the session resumed after a restart”; “Changed the cyber safeguard notice to no longer ask people to apply to the Cyber Verification Program”. ↩ -
Claude Code documentation, fetched October 14, 2026. Settings reference:
idleCompaction, “Stop Claude Code from compacting a long conversation that you’ve stepped away from”; “Idle compaction is on by default for conversations that meet its conditions. To turn it off, setidleCompactiontofalse. Requires Claude Code v2.1.290 or later”. Environment variables:CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS“Context size, in tokens, at which idle compaction applies to a conversation (default:200000)”, with values below100000raised to100000;CLAUDE_CODE_DISABLE_FILE_MENTIONS“Requires Claude Code v2.1.299 or later”, ignored in project and local settings;CLAUDE_CODE_ATTRIBUTION_HEADER“Set to0to omit the attribution block”;CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS“Ceiling in milliseconds on the backoff between retries of a request that the API rejects with a529overloaded error (default: 32000)”; still no entry forCLAUDE_CODE_WORKFLOW_SUBAGENT_MODELorCLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT. Sub-agents:autoCompactWindowis now a listed frontmatter field, “a token count of100000or more”;toolsanddisallowedTools“also take entries for a whole MCP server”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.Mods reference: still “as of v2.1.290”; “On
skill.prompt,e.source,e.pluginName,e.path,e.frontmatter, ande.frontmatterProblemrequire Claude Code v2.1.299 or later”;turn.startis listed among the events; no$.prompt.media,$.session.identity,tabular, orserverToolUses. Plugin evals: “Before v2.1.299, such a run was graded on what it had produced”; no--disallow-tools. MCP: the limits list still reads “Server instructions, and the description of a tool that loads upfront: 4,096 characters” with no first-party exception; on the v2 runtime Claude Code “Asks HTTP, stdio, and claude.ai connector servers whether they support the newer revision, and uses it with those that do”. Permissions: “Allow rules accept tool-name globs only after a literalmcp__<server>__prefix. The server segment must be glob-free so the rule names a specific server you configured.” Hooks:CLAUDE_CODE_DISABLE_FILE_MENTIONSis described (“your matching PreToolUse hooks run”); no statement thatUserPromptSubmitruns before a skill or command expands. ↩ -
Claude Code canonical CHANGELOG, sections 2.1.301 and 2.1.302, fetched October 17, 2026 (15:40 PT), and npm registry metadata for
@anthropic-ai/claude-coderead at the same time: 2.1.301 published October 15 at 14:34 UTC, 2.1.302 on October 16 at 16:48 UTC; dist-tags latest 2.1.302, next 2.1.302, stable 2.1.292. The GitHub releases v2.1.301 (19:22 UTC, 51 bullets) and v2.1.302 (20:53 UTC, 63 bullets) are identical to the CHANGELOG. Source for every v2.1.301 and v2.1.302 item in this guide. Key quotes, 2.1.302: “Changedclaude -pand Agent SDK sessions with no permission mode to start indefaultmode on third-party providers, with telemetry off or on a fresh install;--permission-mode autokeeps auto”; “Changed fork subagents (subagent_type: "fork") to be on by default inclaude -p, the Agent SDK, the desktop app and VS Code, as they already are in the terminal;CLAUDE_CODE_FORK_SUBAGENT=0turns them off, andclaude mcp servenever offers them”; “Changed the desktop app and VS Code to always run the main conversation’s subagents in the background, as the terminal does, rather than let Claude choose; a subagent’s own Agent calls inclaude -p, the Agent SDK, the desktop app and VS Code now run in the foreground by default”;“Changed prompt and agent hooks so that at most 12 of one event run at a time; the rest wait their turn”; “Added
CLAUDE_CODE_AUTO_MODE_MODELto choose the model the client-side auto mode classifier uses; it does not change the model for server-side auto mode”; “Added anIdle compactionrow to/configfor turning idle compaction off or back on; the notices shown after an idle compaction now say how to turn it off”; “Added a notice to/design-syncand/design-loginthat standalone Claude Design (claude.ai/design) closes by December 14, 2026”; “Fixed the Read tool loading an image file of any size, or a pipe or device named like an image, entirely into memory; image sources over 128 MB are now refused”; “Improved auto mode with the server-side classifier: a conversation too long for the safety check is now compacted, instead of every checked tool call being denied”.2.1.301: “Added
CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MSso unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) ends a request at a usage limit that resets too far away instead of waiting”; “Added the%motion to vim mode: jump to the matching bracket, alone or with d/c/y”; “Addedrowsto a mod’sInput: a text field of several lines in the terminal, where Enter submits and Shift+Enter or a backslash before Enter starts a new line”; “Addedclassifier_verdictandpermission_modeto OpenTelemetrytool_decisionevents, so auto mode classifier decisions can be told apart from permission rules”; “Addedclassifier_categoryto OpenTelemetrytool_decisionevents, naming the built-in rule a classifier block matched, whenOTEL_LOG_TOOL_DETAILS=1”; “Fixed thefable(andbest) model alias erroring on the Anthropic API when the newest Fable model is not available to your organization: Claude Code now retries once on the previous Fable model”; “Improved switching to a model with a smaller context window: a conversation too long for the new model is now summarized by the previous model first”; “Changed a mod hook’s.catchhandler to run only when the hook throws or times out; events raised beneath the hook’s own calls now skip that hook without asking its.catch”; “Changed a mod’s$.env.setto resolve with{}once the variable is set or unset, or with{ deny }saying why when the write is not made”. ↩↩↩ -
Claude Code documentation, fetched October 17, 2026. Interactive mode: “
%| Jump to the matching(),[], or{}bracket, starting from the next bracket on the current line when the cursor isn’t on a bracket. Requires Claude Code v2.1.301 or later” and “d%/c%/y%| Delete, change, or yank from the cursor through the bracket that%jumps to”. VS Code lists LaTeX math rendering. Still on the pre-2.1.302 rules: the permission modes table (“claude -por the Agent SDK |defaultin sessions that fetch feature flags. In sessions that don’t, such as on a third-party provider or with telemetry off,autowith Claude Code v2.1.285 or later”); the environment variables page (CLAUDE_CODE_FORK_SUBAGENT“is on by default in interactive sessions only. Set to1to turn it on inclaude -pand the Agent SDK as well, or0to turn it off in every kind of session”); and the subagents page (“Fork mode is off in non-interactive mode with-pand in the Agent SDK unless you turn it on”).Not in the docs at all:
CLAUDE_CODE_AUTO_MODE_MODEL,CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, thetool_decisionattributesclassifier_verdict,permission_mode, andclassifier_category(monitoring lists none of them), the/configIdle compaction row, the Claude Design closing date, and the 12-hook cap (hooks: “All matching hooks run in parallel”). The mods docs now form a section: overview, reference (“Entries cover the Claude Code CLI and the Desktop app as of v2.1.290, and the VS Code extension as of v2.1.299”), events (.catch: “Whenguardthrows or times out on a Bash call, Claude Code calls the handler with the same event”, without the v2.1.301 re-entry rule), API, and interface; none of the new pages mentionsrowsonInput,$.env.set,nothing-to-fork,virtualText,$.ui.view,prompt.change,$.prompt.media, or$.session.identity. The advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩ -
Claude Code canonical CHANGELOG, sections 2.1.303 through 2.1.310, fetched October 23, 2026 (17:20 PT), and npm registry metadata for
@anthropic-ai/claude-coderead at the same time: 2.1.303 published October 18 at 21:15 UTC, 2.1.304 October 19 at 19:47 UTC, 2.1.305 October 20 at 19:29 UTC, 2.1.306 October 21 at 02:28 UTC, 2.1.307 October 21 at 20:47 UTC, 2.1.308 October 22 at 04:19 UTC, 2.1.309 October 22 at 20:34 UTC, 2.1.310 October 23 at 21:20 UTC; dist-tags latest 2.1.310, next 2.1.310, stable 2.1.308. The GitHub releases carry 1, 76, 38, 2, 43, 1, 79, and 26 bullets, identical to the CHANGELOG. Source for every v2.1.303 to v2.1.310 item in this guide.Key quotes, 2.1.304: “Added
/auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions”; “Addeddecider: "person"to a mod’stool.checkanswer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked”; “Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit”; “Changed tool search to be on by default behind a customANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it”; “Changed mods’settings.readhooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling”; “Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session”.2.1.305: “Added
sandbox.allowNestedUserNamespacesso sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections”; “AddedCLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MSso unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset”; “Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of--tools(a 2.1.304 regression): Claude Code now retries without it”; “Improved/usage: each warning is now a one-line fix that names its source, andfapplies the fixes; the same fixes appear in VS Code and/doctor”; “ChangedallowedMcpServersto stop filteringmanaged-mcp.jsonstdio servers that use${VAR}only inenv: one your allowlist left out now loads on upgrade; usedeniedMcpServersto keep it off”.2.1.307: “Added
/claude-api api-versionto move Claude API code to API version2026-10-21”; “Added theclaude_code.safety_eventOpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back”; “Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other’s work”; “[Code Review] Added@claude review stop(alsooffandpause) to Code Review, ending an@claude review alwayssubscription on a pull request without starting a new review”. 2.1.309: “Fixed sandboxed Bash commands on macOS and Linux running the shell’s startup files outside the sandbox before each command”; “Changedsed -ito get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by/rewind”; “Changedclaude ultrareviewto require workspace trust: it asks on a terminal, else refuses; scripts pass--trust-workspace, which takes no value (put a PR number or base branch before it), or setCLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1”; “Fixed sessions compacting repeatedly after reading files under a very large nested CLAUDE.md; a nested CLAUDE.md over the size limit now loads only its start”; “Changed worktree creation and reuse so git no longer fetches objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; such a partial clone fetches them first”.2.1.310: “Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too”; “Fixed requests failing behind some gateways and compatible servers that reject the
effort-2025-11-24beta value or mid-conversation system messages; Claude Code now retries without them”; “Linux: Improved/sandboxand the sandbox startup warning to name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox”. ↩ -
Claude Code documentation, fetched October 23, 2026. Now documented: environment variables lists
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS,CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK(“Set it in the environment that launches Claude Code, not a settingsenv”),CLAUDE_CODE_AUTO_COMPACT_WINDOW(“Suffixed values such as200krequire v2.1.304 or later”), andCLAUDE_CODE_AUTO_MODE_MODEL(“Use a full model ID”), and now saysCLAUDE_CODE_FORK_SUBAGENT“Controls fork mode, which is on by default”; the settings reference listssandbox.allowNestedUserNamespaces(“User or managed”); the auto mode configuration page has “Generate environment entries with/auto-mode-setup”; the costs page: “When the/usagefooter shows a hint such asf to fix 2 of 3, pressfto have Claude Code act on the recommendations it can. Thefshortcut requires Claude Code v2.1.305 or later”; slash commands lists/claude-api api-version(“v2.1.307 or later”) andmanaged-agents-secure [<agent-id>]; monitoring listssafety_eventandclassifier_verdict(“Requires Claude Code v2.1.301 or later”);the ultrareview page documents
--trust-workspace(“Takes no value: put a PR number or base branch before it”) and theError: Workspace not trustedexit; the code review page lists the Quick, Standard, and Deep levels; hooks carries the 1,024-hook and 16,384-character caps; the mods reference stampse.isReadOnly“v2.1.304 or later”; the sandboxing page carries the Ubuntu AppArmor profile; and the permission modes table now reads “claude -por the Agent SDK |default”, matching v2.1.302. Still release-notes only:decider: "person",settings.readlayers,@claude review stop, thesed -ichange, the tool-search default behind a custom base URL, the Pro and Max resume warning,--checkout-hook-timeout-min,multiagent_20261001,CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, the Claude Design closing date, and the mod additions$.env.set,virtualText,$.ui.view, andprompt.change; the advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩ -
Share session output as artifacts, Claude Code documentation, fetched October 26, 2026: “Templates are in beta. They’re on by default on Pro, Max, Ultra, and Team plans” (re-read November 10, 2026; “Pro, Max, and Team plans” on October 26); “If your organization has the Slides template turned off,
/slidesdoesn’t appear”; the Disable artifacts table (/config,"enableArtifact": false, the deprecated"disableArtifact": true,CLAUDE_CODE_DISABLE_ARTIFACT=1,Artifactinpermissions.deny); “Honoring the key in project and local settings requires Claude Code v2.1.242 or later”. Environment variables, same fetch:CLAUDE_CODE_ARTIFACT_AUTO_OPEN(“Set to0to stop Claude Code from opening the browser automatically when a new artifact is published”),CLAUDE_CODE_DISABLE_WORKFLOWS(“Equivalent to thedisableWorkflowssetting”),CLAUDE_CODE_MAX_TURNS(“Equivalent to passing--max-turns, which takes precedence when both are set. A value that is not a positive integer is rejected at startup”); the page no longer listsCLAUDE_CODE_WORKFLOWS. Settings reference, same fetch:disableWorkflows(“whichever of the two turns them off, the other can’t turn them back on”) andenableWorkflows(“Default: unset, so workflows are on unless you’re on the Pro plan, where they’re off”; “Appears in/configas Dynamic workflows”). ↩ -
Subagents, Agent teams and Tools reference, fetched November 10, 2026. Subagents: “In version 2.1.63, the Task tool was renamed to Agent. Existing
Task(...)references in settings and agent definitions still work as aliases.” Agent teams: “There’s no hard limit on the number of teammates, but practical constraints apply” and “Start with 3-5 teammates for most workflows.” Tools reference: “Glob| Finds files based on pattern matching. Absent by default on macOS, Linux, and WSL.”; “Claude searches withfindandgrepthrough the Bash tool instead. In Claude’s shell those two commands run embedded versions ofbfsandugrep”; on LSP, “Claude Code keeps the tool inactive until you install a code intelligence plugin for your language” and “you install the server binary yourself.” ↩↩ -
Permissions, fetched November 10, 2026. Tool table: “Bash commands | Shell execution | Yes, except a built-in set of read-only commands | Permanently per repository and command”, “File modification | Edit/write files | Yes, except files such as Claude Code’s own plan and auto memory files | Until session end”, “Web search | WebSearch | Yes | Permanently per repository”. Saved approvals: “Claude Code saves the rule to
.claude/settings.local.jsonat the root of the git repository”. Evaluation: “Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome, and rule specificity doesn’t change the order.” Wildcards: “A*can go anywhere in the rule: at the start, in the middle, or at the end.”; “A rule with no*matches one exact command.”; “The space before a trailing*is part of the rule.”; “The:*suffix is an equivalent way to write a trailing wildcard, soBash(ls:*)matches the same commands asBash(ls *).” Limits: “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Paths: “/path| Path relative to the settings source”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩ -
Permission modes, fetched November 10, 2026. Mode table:
acceptEditsruns “Reads, file edits, and common filesystem commands (mkdir,touch,mv,cp, etc.)” without asking;planruns “Reads, plus classifier-approved commands when auto mode is available”;dontAskis for “Locked-down CI and scripts”;bypassPermissionsis for “Isolated containers and VMs only”. Cycle: “Fromauto, the first press switches todefault, and the cycle then runsdefault→acceptEdits→plan. Optional modes slot in afterplan.” Bypass: “Even inbypassPermissionsmode, each of the actions no mode auto-approves ends in a prompt or a denial”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩ -
Choose a permission mode: “By default, classifier requests go to Claude Sonnet 5.”; “Read-only actions and file edits in your working directory are auto-approved”. Auto mode classifier request charges: “the server performs those checks as part of the session’s own model requests, at no charge”. Fetched November 10, 2026. ↩
-
Claude Code Docs, “All settings”, and Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. The
sandbox.excludedCommandsentry in the settings reference: “A pattern with no wildcard is an exact match, sodockermatches onlydockerwith no arguments.” and “Your entries take a Bash call out of the sandbox only when they cover every command in it” and “Exclusion is a convenience, not a security boundary”; its example value is["docker *"]. From the sandboxing page: “docker *matchesdockerwith or without arguments” and “An excluded command runs with your full access.” ↩ -
Claude Code Docs, “Configure the sandboxed Bash tool”, and Claude Code Docs, “All settings.” Fetched November 11, 2026. From the sandboxing page, hosts outside your allowed domains: “In an interactive terminal session, the decision depends on your permission mode”, with the table rows “
bypassPermissionsmode, and plan mode with bypass permissions available” (“Allowed without a prompt”), “Manual mode,acceptEditsmode, and plan mode otherwise” (“You get a prompt”), auto mode (“Refused unless the command listed the host and the classifier approved the list”), anddontAskmode (“Refused”). The strict allowlist: “the built-in sandbox proxy refuses the connection in every permission mode. InbypassPermissionsmode, hosts outside your allowed domains are allowed unless one of them is on.” Where it can be set: “totruein user, managed, or CLI--settingssettings” and “Setting it in a repository’s.claude/settings.jsonor.claude/settings.local.jsonhas no effect. Requires Claude Code v2.1.219 or later.” Thesandbox.network.strictAllowlistentry in the settings reference gives the scope as “User or managed” and adds “A repository can’t turn it on or off.” ↩↩↩↩ -
Claude Code Docs, “Choose a permission mode.” Fetched November 11, 2026. The starting-mode table: “Your organization has the HIPAA configuration applied and the session is eligible for it” starts in “
defaultwith Claude Code v2.1.285 or later; auto mode stays available to switch to”, and “claude -por the Agent SDK” starts indefault. “Before v2.1.302, these runs could start in auto mode if they didn’t fetch feature flags, for example on a third-party provider or withDISABLE_TELEMETRY.” What the classifier blocks by default includes “Downloading and executing code, likecurl | bash”, “Production deploys and migrations”, “Mass deletion on cloud storage”, “Granting IAM or repo permissions”, and “Force push”, listed with no branch named. ↩↩ -
Claude Code Docs, “Configure permissions”, and the Claude Code CHANGELOG. Fetched November 11, 2026. Rule order: “Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome, and rule specificity doesn’t change the order.” and “An allow rule can’t carve an exception out of a deny rule.” Tool name wildcards: “Deny and ask rules also accept glob patterns in the tool-name position.” and “A tool matched by a bare-name glob deny rule is removed from Claude’s context” and “Allow rules accept tool-name globs only after a literal
mcp__<server>__prefix.”; an unanchored allow glob “is skipped and doesn’t auto-approve anything.” The CHANGELOG’s 2.1.166 entry adds glob support in the deny rule tool-name position and says “allow rules reject non-MCP globs, and unknown tool names in deny rules warn at startup”; it says nothing about allowing tools back after a glob deny. ↩ -
Claude Code Docs, “Configure permissions”; Claude Code Docs, “Create custom subagents”; and Claude Code Docs, “All settings.” Fetched November 11, 2026. Parameter rules: “Deny and ask rules can match a top-level input parameter on any built-in tool with
Tool(param:value).” and “A parameter rule matches when Claude calls the tool with that parameter set to that exact value.” and “allow rules continue to use each tool’s own specifier syntax” and “A parameter the model omits is never matched, soAgent(model:*)doesn’t match a call that leavesmodelunset” and “Agent(model:opus)matches the aliasopusbut not a full model ID”. From the subagents page: “When more than one source sets a model, Claude Code uses the first in this order:” the per-invocationmodelparameter, the definition’smodelfrontmatter, theCLAUDE_CODE_SUBAGENT_MODELenvironment variable, then the main conversation’s model; and “If anavailableModelsallowlist in your settings blocks the model set for a subagent other thanweb-fetch, the subagent runs on the first of these that applies:”. The settings reference onavailableModels: “Restrict which models people can select for the main session, subagents, skills, and the advisor.” OnenforceAvailableModels: “so Default can still resolve to a model outside the list. This key closes that gap.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩ -
Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. Denied hosts: “A connection to a host in
deniedDomainsis refused in every permission mode too.” The unsandboxed retry: “The retried command runs unsandboxed. In an interactive terminal session, who approves it depends on your permission mode”, with the entriesbypassPermissionsmode (“the retry runs without a prompt”), auto mode (“a separate classifier model evaluates the underlying command”), anddontAskmode (“Claude Code denies the retry”); in Manual andacceptEditsmode the page says you get a prompt. Turning the retry off: “With the retry disabled, Claude Code ignores thedangerouslyDisableSandboxparameter.” The page’s own limit: “Sandboxing reduces risk but is not a complete isolation boundary. Review the limitations below before relying on it as a hard security control.” ↩↩ -
Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. “Strict sandbox mode applies to the commands Claude runs. Commands you type yourself at the
!shell-mode prompt run outside the sandbox unless the session is one of these:” The two entries: a background session (“strict sandbox mode covers shell-mode commands too”) and a Linux session withCLAUDE_CODE_SUBPROCESS_ENV_SCRUBset (“every command runs sandboxed, shell-mode commands included”). “Before v2.1.260, strict sandbox mode sandboxed shell-mode commands in every session.” ↩ -
Claude Code Docs, “Configure permissions”, and the Claude Code CHANGELOG. Fetched November 11, 2026. CHANGELOG 2.1.113: “Security: Bash deny rules now match commands wrapped in
env/sudo/watch/ionice/setsidand similar exec wrappers”. The permissions page, on what a Bash rule doesn’t match: “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Its table listsBash(rm *)as stoppingrm -rf build/and not stopping/bin/rm -rf build/orbash -c 'rm -rf build/'. “For filesystem and network enforcement that doesn’t depend on the command text, use sandboxing.” ↩ -
Claude Code Docs, “Configure the sandboxed Bash tool”, and Claude Code Docs, “All settings”. Fetched November 11, 2026. From the sandboxing page: “To keep Chromium’s or Electron’s own sandbox, or to run a nested bubblewrap or
unshare, setsandbox.allowNestedUserNamespacestotruein~/.claude/settings.json, not the project’s.claude/settings.json.”; “This setting alone isn’t enough for rootless Podman or Buildah, which the sandbox stops in other ways too.”; “For rootless Podman, Buildah, or a script or test command that runs a browser orunshare, add a pattern tosandbox.excludedCommands, such aspodman *.” The settings reference: “Let sandboxed commands on Linux and WSL2 create user namespaces, which Chromium’s and Electron’s own sandbox, a nested bubblewrap, andunshareneed.” ↩ -
Tools reference, Claude Code documentation, fetched November 11, 2026. The
EndConversationrow: “Ends the session, in rare cases of sustained abusive input or when you ask Claude to end the session and then confirm.” Its section: “Claude uses it only in two situations:”; “When you keep sending abusive messages after Claude gives a clear warning and fails to redirect the conversation”; “When you explicitly ask Claude to end the session, then confirm when Claude asks whether you still want to proceed”; “General frustration, profanity, or a task going badly don’t qualify, and neither do requests for harmful content, which Claude declines instead of ending the session.”; “After Claude ends an interactive session, the session locks.” The message a locked session returns: “Claude ended this conversation. Start a new session (or /clear) to continue.” ↩ -
Choose a permission mode, Claude Code documentation, fetched November 11, 2026. “In addition to file edits,
acceptEditsmode auto-approves common filesystem Bash commands:mkdir,touch,rm,rmdir,mv,cp, andsed.” and “Like file edits, auto-approval applies only to paths inside your working directory oradditionalDirectories.” On auto mode: “A separate classifier model reviews actions before they run”. ↩↩ -
Auto mode is now the default in Claude Code for Pro, Max, Ultra, and Team plans, Anthropic, August 7, 2026, and Choose a permission mode, Claude Code documentation, both fetched November 11, 2026. The announcement: “Starting on August 14, new sessions on Pro, Max, and Team plans will run in auto mode. If you’ve already set a different default yourself, you may get a one-time prompt asking whether you want to switch to auto mode.”; “If your Team admin has set a default in managed settings, nothing changes for you.”; “we’re no longer charging Claude Code users on Pro, Max, Ultra, and Team plans for that classifier overhead, effective today”; “it routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment”. The docs: “If your
~/.claude/settings.jsonsets adefaultModeother thanautoand no other settings file sets one, your sessions keep starting in that mode.” and, of the one-time question, “if you decline, your setting stays as it is”. ↩↩ -
All settings and Configure the sandboxed Bash tool, Claude Code documentation, fetched November 11, 2026. The
sandbox.credentialsentry: “Claude Code protects only the entries you list; there is no built-in credential deny list.” and, for its default, “unset, so no credentials are protected”. The sandboxing page: “There is no built-in credential deny list, so only the files and variables you list are restricted.” ↩ -
All settings, Claude Code documentation, fetched November 11, 2026. The
enforceAvailableModelsentry gives its scope as “Any file” and says: “When your organization deploys any managed settings, Claude Code reads this key from the managed source alone and ignores it in your other files.” ↩ -
All settings, Claude Code documentation, fetched November 11, 2026.
sandbox.network.strictAllowlist: “Deny sandboxed commands access to hosts outside the allowlist instead of prompting for approval.” and “Claude Code enforces this for sandboxed commands only; in-process tools such asWebFetchstill follow their permission rules.”sandbox.network.deniedDomains: “Block domains for outbound traffic from sandboxed commands”.sandbox.allowUnsandboxedCommands: “Let Claude retry a command outside the sandbox with thedangerouslyDisableSandboxparameter after the sandbox blocks it. When it’sfalse, Claude Code ignores that parameter.” ↩↩↩ -
Claude Code CHANGELOG, v2.1.323 through v2.1.332, fetched November 25, 2026 (294, 139, 367, 173, 144, 130, 142, 135, and 150 top-level bullets for 2.1.323, 2.1.325, 2.1.326, 2.1.327, 2.1.328, 2.1.329, 2.1.330, 2.1.331, and 2.1.332; no 2.1.324 section), and the GitHub releases v2.1.323 (2026-11-12T22:12:13Z), v2.1.325 (11-13T20:40:01Z), v2.1.326 (11-16T22:11:05Z), v2.1.327 (11-17T23:17:45Z), v2.1.328 (11-19T01:14:04Z), v2.1.329 (11-19T22:14:41Z), v2.1.330 (11-20T22:32:56Z), v2.1.331 (11-23T21:34:41Z), and v2.1.332 (11-25T01:32:14Z); no v2.1.324 release exists. npm publish times from
npm view @anthropic-ai/claude-code time: 2.1.323 2026-11-12T20:29:28Z, 2.1.324 11-13T18:42:36Z, 2.1.325 11-13T20:07:25Z, 2.1.326 11-16T18:43:39Z, 2.1.327 11-17T20:33:19Z, 2.1.328 11-18T23:09:39Z, 2.1.329 11-19T18:40:25Z, 2.1.330 11-20T19:16:01Z, 2.1.331 11-23T18:36:26Z, 2.1.332 11-24T22:06:38Z;dist-tagson 2026-11-25:latest2.1.332,next2.1.332,stable2.1.326. Verbatim, 2.1.332: “Changed the default model on Microsoft Foundry to Sonnet 5.5: deployclaude-sonnet-5-5, or setANTHROPIC_DEFAULT_SONNET_MODELto a model you have deployed”; “Changed thesonnetmodel alias on Google Cloud’s Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry’sopusalias to Opus 5.5;sonneton Amazon Bedrock stays at Sonnet 4.5”; “Added aPreSkillShellCommandhook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start”; “Added skills from MCP servers (beta). They show asserver:skillin the/menu; other skills keep their names”; “Changed/schedule, permission prompts and/loop’s cloud offer to say “cloud scheduled task” instead of “routine” or “cloud schedule”;/routinesstill works”. 2.1.330: “Changed recurring scheduled tasks and/loopto run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days”. 2.1.328: “Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it”. 2.1.325: “Changed sandboxed Bash commands to follow the normal permission flow by default; setsandbox.autoAllowBashIfSandboxed: trueto keep running them without prompts”. 2.1.323: “Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools”; “Removed thesubagentStatusLinesetting: subagent rows always use the default look, and settings files that still hold the key load as before”; “Changed the context window assumed for a model ID that Claude Code doesn’t recognize from 200K to 1M; use/autocompactto compact earlier, orCLAUDE_CODE_DISABLE_1M_CONTEXT=1to keep 200K”; “ChangedMCP_SDK_GENERATION=v1to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed”. ↩↩↩ -
All settings (the settings reference) and Configure the sandboxed Bash tool, Claude Code documentation, fetched November 25, 2026.
sandbox.autoAllowBashIfSandboxed: “false: sandboxed commands go through the regular permission flow, so your allow rules and permission mode decide. The/sandboxMode tab calls this regular permissions mode”; “Default:false. Before v2.1.324, the default wastrue”; “To set it totruein managed settings, add it to thesandboxblock of your highest-ranked managed source”. Sandboxing, sandbox modes: “In both, the sandbox enforces the same filesystem and network restrictions; the difference is only in whether sandboxed commands are auto-approved or require explicit permission.” The settings reference no longer has asubagentStatusLineentry. ↩↩↩ -
Claude Code documentation, fetched November 25, 2026. Environment variables:
CLAUDE_CODE_RESUME_HINT_COMMAND(“Requires Claude Code v2.1.323 or later”),CLAUDE_CODE_FULL_SIGN_IN_LINK(v2.1.330),CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION(v2.1.331; “Ignored in project and local settings”),CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME(v2.1.328),OTEL_RESOURCE_INCLUDE_HOST(v2.1.326),CLAUDE_CODE_DISABLE_SHIP(v2.1.331),VERTEX_REGION_CLAUDE_5_5_SONNET(“Added in v2.1.284”), andCLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS(“whole milliseconds from 32000 to 300000”; “Values above 64000 require v2.1.323 or later”). Plugin manifest reference,engines: “The Claude Code versions that the plugin works on, as a semver range under theclaude-codekey”; “Requires Claude Code v2.1.323 or later. To keep the plugin working on v2.0.15 through v2.1.75, omitengines.” Choose a permission mode: “If your organization has the HIPAA configuration applied, terminal and VS Code sessions on Claude Code v2.1.326 or later start in auto mode by default. On v2.1.285 through v2.1.325, an eligible session starts in Manual mode by default.” Commands,/tui: “default, orclassicon v2.1.327 or later, selects the classic renderer”. The plugin manifest reference does not listoptionalDependencies, and the environment variables page does not listCLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES; both are in the release notes only. ↩ -
Choose a permission mode, Claude Code documentation, fetched November 25, 2026. “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider.”; “The built-in
autodefault requires Claude Code v2.1.228 or later on macOS, Linux, and WSL, and v2.1.233 or later on native Windows.”; “In Claude Code v2.1.302 or later,claude -pand Agent SDK runs with no permission mode set start in Manual mode.”; “If your organization has the HIPAA configuration applied, terminal and VS Code sessions on Claude Code v2.1.326 or later start in auto mode by default.”; on the Anthropic API, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed): “Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a Fable model”; on Bedrock, Agent Platform, Foundry, and the Claude apps gateway: “Only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models are supported on these providers.”; ondisableAutoMode: “This removesautofrom theShift+Tabcycle, and a session started with--permission-mode autostarts in Manual instead.” ↩↩↩↩↩ -
Configure permissions, Claude Code documentation, fetched November 28, 2026, under “Allow a file tool outside the working directories”: “With an
Edit(*),Write(*), orNotebookEdit(*)allow rule, you pre-approve the tool only in the” working directories. “To pre-approve paths outside them too, write the bare name of each tool you want, such asEditorRead.” “Some calls still aren’t pre-approved, such as writes to” protected paths and reads from network paths. The warning that follows: “Versions before v2.1.317 treat the rule as the bare name, and later versions can too if Anthropic turns the working-directory limit off.” ↩