Changes on
35 changes detected
--- a/admin.md
+++ b/admin.md
@@ -45,20 +45,30 @@
* The machine has managed settings or a [`managed-mcp.json`](</docs/en/managed-mcp#deploy-managed-mcp-json>) file
* The session runs on [`/login` credentials](</docs/en/authentication#authentication-precedence>) for a Team or Enterprise plan
A user with an API key, or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, gets the guard only on a machine with managed settings or `managed-mcp.json`. A session that runs on a long-lived [`CLAUDE_CODE_OAUTH_TOKEN`](</docs/en/authentication#generate-a-long-lived-token>) doesn’t count as that login either, even when a Team or Enterprise login is stored on the machine.
- * **The guard protects what you manage.** A user’s mod can’t change what your managed hooks receive or decide, the system prompt, or your managed `CLAUDE.md` and other managed instructions. It also can’t change what any mod reads as settings, or the tools and descriptions of your managed MCP servers once they connect.
+ * **When the guard loads, it blocks a user’s mod from rewriting:**
+ * The system prompt
+ * Your managed `CLAUDE.md` and other managed instructions
+ * The answer a mod gets when it reads settings
+ * The tool list and tool descriptions of a managed MCP server that has connected
* **On v2.1.323 or later, a user’s mod can keep a managed MCP server from connecting.** In that user’s session, `/mcp` lists the server as held by that mod. To prevent it, stop user-installed mods from loading.
- * **Outside what you manage, a user’s mod acts as that user.** The mod keeps that user’s permissions: it can still read and write files, start processes, and make network requests. It can also rewrite tool calls and prompts, deny a tool call, add or remove tools, and draw in the interface.
- * **Permission rules and`PreToolUse` hooks take precedence over a user’s mod.** With the guard loaded, by default a user’s mod can’t approve a call that a `deny` rule refuses or an `ask` rule prompts for, whichever settings file holds the rule. The mod can’t approve a call that any `PreToolUse` hook blocked, either. Permission rules and `PreToolUse` hooks apply to Claude’s tool calls, not to a mod’s [`$.fs` and `$.process` calls](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>). With `Read(.env)` denied, a mod can still read that file with `$.fs.read` or start a program that does. To limit a mod’s own `$.fs` and `$.process` calls, keep the mod from loading or handle them in a policy mod.
- * **A user’s mod can still skip some prompts.** In [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), a call the mod approves runs without a classifier check, unless the guard is loaded and the session runs with [`--permission-prompt-tool`](</docs/en/cli-reference#cli-flags>) or an Agent SDK [`canUseTool` callback](</docs/en/agent-sdk/user-input#handle-tool-approval-requests>). There the classifier checks the call first. For the prompts a mod’s approval doesn’t skip, see [Extend permissions with hooks](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).
+ * **Apart from what the guard blocks, a user’s mod acts as that user.** The mod keeps that user’s permissions: it can still read and write files, start processes, and make network requests. It can also rewrite tool calls and the user’s prompts, deny a tool call, add or remove tools, and draw in the interface.
+ * **When a user’s mod approves Claude’s call** with the guard loaded, these outcomes hold by default, whichever settings file has the rule or hook:
+ * A call that a `deny` rule refuses stays refused
+ * A call that an `ask` rule would prompt for still prompts
+ * A call that a `PreToolUse` hook blocked stays blocked
+ * **A mod’s own calls can skip your checks.** To limit a user’s mod, keep it from loading or handle its calls in a policy mod.
+ * **Files and programs** : [`$.fs` and `$.process` calls](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>) can skip permission rules and `PreToolUse` hooks. With `Read(.env)` denied, a mod can still read that file with `$.fs.read` or start a program that does.
+ * **Tools** : calls such as [`$.tool.call` and `$.mcp.call`](</docs/en/plugins/mods/reference#mods-api-methods>) can skip permission rules, permission prompts, a hook’s `ask`, and the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier.
+ * **Without the guard, a user’s mod can skip more checks.** See [what it can skip](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).
The guard’s source is public in the [`mods/sec-default` directory of the Claude Code repository](<https://github.com/anthropics/claude-code/tree/main/mods/sec-default>).
### Know which controls still apply
-Mods don’t replace the controls you already have:
-
- * **Settings hooks keep working.** Command, HTTP, prompt, and agent hooks in settings files and in plugins’ `hooks/hooks.json` run as before, alongside mods.
- * **Deny rules take precedence where the guard loads.** A user’s mod can’t approve a call that a `deny` rule refuses, unless you set `allowModsToOverrideDenyRules`.
+Your existing controls cover mods within these limits:
+
+ * **Hooks in settings files run alongside mods.** See [where settings hooks run in the order](</docs/en/plugins/mods/events#where-settings-hooks-run-in-the-order>).
+ * **For Claude’s calls, deny rules take precedence over a user’s mod where theguard loads.** To let a user’s mod approve some calls that a `deny` rule refuses, set `allowModsToOverrideDenyRules`.
* **Managed hooks run first.** A `PreToolUse` hook in managed settings runs before any mod’s [`tool.call`](</docs/en/plugins/mods/reference#tools>) hook, and when that managed hook blocks a tool call, no mod’s `tool.call` hook runs for that call. If the call goes ahead and a mod rewrites it, your managed hooks run again on the rewritten call, so by default they can still block it. `PreToolUse` hooks from other settings files and from plugins run after the last mod. If a mod answers the tool call itself, the tool never runs and neither do those hooks. See [The order mods run in](</docs/en/plugins/mods/events#the-order-mods-run-in>).
* **Network policy covers`$.http.fetch`.**
* **Your organization’s policy doesn’t allow WebFetch** : Claude Code also refuses every mod’s `$.http.fetch` request. See [WebFetch availability](</docs/en/tools-reference#webfetch-availability>).
@@ -66,7 +76,7 @@
* **You set[`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`](</docs/en/env-vars>)**: a mod that you or your users install can still make these requests. The variable stops only the [mods built into Claude Code](</docs/en/plugins/mods/overview#mods-built-into-claude-code>), plus any `$.http.fetch` request that carries the session’s Anthropic credentials. Before v2.1.288, the variable stopped every mod’s `$.http.fetch` request.
None of these covers a program the mod starts with `$.process.run`, which reaches the network with the user’s own access.
* **Plugin controls cover mods.** A mod is a plugin, so the [settings that restrict what users can install](</docs/en/plugins/org#restrict-what-users-can-install>), such as `strictKnownMarketplaces`, decide whether it can be installed at all.
- * **Mods can’t change the permission prompt.** A mod can restyle much of Claude Code’s interface, but not the permission prompt, so it can’t change what a prompt shows. A mod can still approve or deny a tool call before the prompt appears, as Know what happens by default describes.
+ * **The permission prompt appears as Claude Code draws it.** For what a mod can redraw, see [Change what Claude Code already draws](</docs/en/plugins/mods/interface#change-what-claude-code-already-draws>).
* **Trust prompts come first.** In an interactive session in a directory the user hasn’t trusted yet, no mod loads until they answer the trust prompt.
* **`--safe-mode` turns installed mods off, yours included.** Start a session with `claude --safe-mode` to check whether a mod caused a problem.
@@ -138,7 +148,7 @@
`$.http.fetch`| Makes network requests
`$.env.get`, `$.settings.read`| Reads environment variables and settings, which can hold API keys. An `env reads:` line in the output names each variable.
`$.env.set`| Sets an environment variable for Claude Code and for every command and MCP server it starts afterward, which can change what those programs run. An `env writes:` line names each variable.
-`$.mcp.call`| Calls a tool on a connected MCP server, with no permission prompt. Claude Code refuses the call under a deny rule or a managed ask rule. It also refuses a call to a tool marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), or to one your organization [set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>) where that setting reaches Claude Code.
+`$.mcp.call`| Calls a tool on a connected MCP server, with no permission prompt
`$.model.complete`| Uses the user’s plan or API key for model calls
`$.prompt.submit`| Submits a prompt, and can send it as the user’s own words
`$.session.send`| Sends a message that another session’s, subagent’s, or [teammate’s](</docs/en/agent-teams>) Claude reads
--- a/admin-setup.md
+++ b/admin-setup.md
@@ -38,7 +38,7 @@
Windows: `C:\Program Files\ClaudeCode\managed-settings.json`| Medium| All
Windows user registry| `HKCU\SOFTWARE\Policies\ClaudeCode`| Lowest| Windows only
-Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](</docs/en/claude-apps-gateway>), or use one of the file-based or OS-level mechanisms instead. If your organization mixes providers, configure [server-managed settings](</docs/en/server-managed-settings>) for claude.ai users plus a [file-based or plist/registry fallback](</docs/en/managed-settings#delivery-mechanisms>) so other users still receive managed policy. The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel. By default, WSL reads only the Linux file path at `/etc/claude-code`. To extend your Windows registry and `C:\Program Files\ClaudeCode` policy to WSL on the same machine, set [`wslInheritsWindowsSettings: true`](</docs/en/settings-reference#wslinheritswindowssettings>) in either of those admin-only Windows sources. Whichever mechanism you choose, managed values take precedence over user and project settings, apart from a few security-sensitive [exceptions](</docs/en/settings#exceptions-to-managed-settings-precedence>). Array settings such as `permissions.allow` and `permissions.deny` merge entries from all sources, so developers can extend managed lists but not remove from them. For `fallbackModel`, `availableModels`, and [`modelPicker`](</docs/en/settings-reference#modelpicker>), the managed value replaces lower layers rather than merging.
+Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](</docs/en/claude-apps-gateway>), or use one of the file-based or OS-level mechanisms instead. If your organization mixes providers, configure [server-managed settings](</docs/en/server-managed-settings>) for claude.ai users plus a [file-based or plist/registry fallback](</docs/en/managed-settings#delivery-mechanisms>) so other users still receive managed policy. The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel. By default, WSL reads only the Linux file path at `/etc/claude-code`. To extend your Windows registry and `C:\Program Files\ClaudeCode` policy to WSL on the same machine, set [`wslInheritsWindowsSettings: true`](</docs/en/settings-reference#wslinheritswindowssettings>) in either of those admin-only Windows sources. Whichever mechanism you choose, managed values take precedence over user and project settings, apart from a few security-sensitive [exceptions](</docs/en/settings#exceptions-to-managed-settings-precedence>). Array settings such as `permissions.allow` and `permissions.deny` merge entries from [lower-precedence settings](</docs/en/settings#lists-merge-instead-of-overriding>) into [the managed settings that apply](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), so developers can extend managed lists but not remove from them. For `fallbackModel`, `availableModels`, and [`modelPicker`](</docs/en/settings-reference#modelpicker>), the managed value replaces lower layers rather than merging.
### WSL sessions in Claude Code Desktop
--- a/agent-teams.md
+++ b/agent-teams.md
@@ -247,7 +247,7 @@
When one agent sends another a message over `SendMessage`, Claude Code tells the receiving agent the message came from another Claude session, not from you. A teammate can’t approve a permission prompt or supply consent on your behalf, and a teammate that was denied an action can’t relay it to another teammate to bypass the check. The same rules apply to a message that arrives from [one of your other Claude Code sessions](</docs/en/cross-session-messaging#how-a-session-treats-an-incoming-message>), outside the team entirely. In [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), the classifier applies two checks to messages between agents:
* It treats an approval claim relayed from another agent as untrusted input rather than confirmation from you.
- * It reviews each message before Claude Code delivers it, whether a plain message or a structured protocol message such as a shutdown request or plan approval response. A message it blocks never reaches the recipient.
+ * It reviews messages before Claude Code delivers them, including structured protocol messages such as a shutdown request. A message it blocks isn’t delivered. Before you rely on this review, check [which messages skip it](</docs/en/permission-modes#how-the-classifier-evaluates-actions>).
### Context and communication
--- a/api.md
+++ b/api.md
@@ -20,7 +20,11 @@
return { text: 'Summary for the last ' + (e.args || '1') + ' day(s): ...' }
})
-After the session starts, `/standup` appears with its description in the list you see when you type `/`. The `argumentHint` shows in the prompt after you type the command and a space, as in `/standup [days]`. When you run `/standup 3`, the second hook returns `Summary for the last 3 day(s): ...`, and the transcript shows that text after the plugin’s name. The hook never calls `next`, because the command has no behavior other than yours. The `text` you return prints in the transcript and Claude reads it. To print nothing, as a command that only opens a [pane](</docs/en/plugins/mods/interface#pick-where-to-draw>) does, return `{}`. To let the command run while Claude is working, add `immediate: true` to the registration. Pick a name that no built-in command uses. Type `/` in a session to see them. `$.command.register` throws for a taken name, with a message such as `"/focus" refused: it is the built-in /focus`. A hook that throws is skipped, so the rest of your `session.start` hook doesn’t run either. Register commands last in that hook, or wrap the call in `try` and `catch`.
+After the session starts, `/standup` appears with its description in the list you see when you type `/`. The `argumentHint` shows in the prompt after you type the command and a space, as in `/standup [days]`. When you run `/standup 3`, the second hook returns `Summary for the last 3 day(s): ...`, and the transcript shows that text after the plugin’s name. The hook never calls `next`, because the command has no behavior other than yours. The `text` you return prints in the transcript and Claude reads it, unless you hide it from Claude. To print nothing, as a command that only opens a [pane](</docs/en/plugins/mods/interface#pick-where-to-draw>) does, return `{}`. To let the command run while Claude is working, add `immediate: true` to the registration. Pick a name that no built-in command uses. Type `/` in a session to see them. `$.command.register` throws for a taken name, with a message such as `"/focus" refused: it is the built-in /focus`. A hook that throws is skipped, so the rest of your `session.start` hook doesn’t run either. Register commands last in that hook, or wrap the call in `try` and `catch`.
+
+#### Hide command text from Claude
+
+To print a command’s text without Claude reading it, return `{ text, isTextDisplayOnly: true }` from a hook that doesn’t call [`next`](</docs/en/plugins/mods/reference#the-hook-function>), and leave `immediate` off the registration. Otherwise, or before v2.1.326, Claude can read the text.
### Add a tool
@@ -270,7 +274,7 @@
A command from `$.command.run` still in the queue| Dropped. The call rejects with an error whose message includes `the command was removed from the queue before it ran`.| Run it again as Retry a refused or dropped call shows
A one-time job scheduled with a tool such as CronCreate that comes due before the user’s next input| Starts no turn then, and runs after that input| Nothing needed
A recurring job scheduled with a tool such as CronCreate that comes due before the user’s next input| Starts no turn then. The job loses that run and keeps its schedule.| Nothing needed
-An event from a monitor your mod started| The monitor keeps running. An event the monitor raises before the user’s next input is dropped, except the notice that the monitor ended, which arrives after that input.| Nothing can be done
+An event from a monitor your mod started| The monitor keeps running, and Claude Code drops the events the monitor raises while running.| Nothing can be done
A subagent your mod spawned and later resumed with `$.session.send` that finishes before the user’s next input| Its finish notice waits, and reaches the conversation after that input| Nothing needed
A foreground Bash or PowerShell command from `$.tool.call` that was already running when the user stopped the turn and reaches its timeout before their next input| Stopped at its timeout instead of [moving to the background](</docs/en/tools-reference#foreground-commands-that-move-to-the-background>). The call resolves with `isError` set, and the output includes the line `Ended instead of moving to the background: plugins' input is held, by a Stop or by the host's limits.`| Run it again after the user’s next input, as Retry a refused or dropped call shows
--- a/authentication.md
+++ b/authentication.md
@@ -213,7 +213,16 @@
### Renew an expiring login
-When the login you created with `/login` is within three days of expiring, Claude Code shows a warning at startup: `Your login expires in 3 days · run /login to renew`. Run `/login` to renew. The warning is informational and never blocks a request: authentication keeps working until the login actually expires. Once the stored login expires and can’t be refreshed, each model request fails with [`Login expired · Please run /login`](</docs/en/errors#login-expired>) until you sign in again. You can check for this state before a request fails: [`/status`](</docs/en/commands>) shows a `Login` row reading `Expired — log in again`, plus the organization and email it has saved for the expired login. The row appears only when the saved claude.ai login is the active credential. The row requires Claude Code v2.1.210 or later. The warning appears only when a claude.ai login is the active credential, and not when a cloud provider, `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` supplies the credential. Renewing early matters most for sessions that run unattended. A [background session in agent view](</docs/en/agent-view>) or a [Remote Control](</docs/en/remote-control>) session that outlives the login stops making progress once the credential expires and can’t recover until you sign in again.
+When the login you created with `/login` is within three days of expiring, Claude Code shows a warning at startup: `Your login expires in 3 days · run /login to renew`. Run `/login` to renew. The warning appears only when a claude.ai login is the active credential.
+
+#### After the login expires
+
+Once the stored login expires and can’t be refreshed, run `/login` to sign in again. Until you do, requests either fail or use another credential you saved:
+
+ * **No other credential** : model requests fail with [`Login reached its time limit` or `Login expired`](</docs/en/errors#login-expired>).
+ * **Another credential** , such as an `ant auth login` profile: requests can use that credential instead, billed to its organization.
+
+You can check for an expired login before a request fails: [`/status`](</docs/en/commands>) shows a `Login` row reading `Expired — log in again`. Renewing early matters most for sessions that run unattended. A [Remote Control](</docs/en/remote-control>) session that outlives the login disconnects until you sign in again. A [background session in agent view](</docs/en/agent-view>) stops making progress if you have no other saved credential.
### Authentication precedence
Show diff (130 lines)
--- a/auto-mode-config.md
+++ b/auto-mode-config.md
@@ -49,7 +49,7 @@
The classifier doesn’t read `autoMode` from project settings in `.claude/settings.json` or `.claude/settings.local.json`. Both files live in the repo directory, so a checked-in repo or a build step could otherwise inject its own allow rules. Move any `autoMode` block in `.claude/settings.local.json` to `~/.claude/settings.json`. Entries from each scope are combined. A developer can extend `environment`, `allow`, `soft_deny`, and `hard_deny` with personal entries but can’t remove entries that managed settings provide. Because allow rules act as exceptions to soft block rules inside the classifier, a developer-added `allow` entry can override an organization `soft_deny` entry: the combination is additive, not a hard policy boundary.
-The classifier is a second gate that runs after the [permissions system](</docs/en/permissions>). For actions that must never run regardless of user intent or classifier configuration, use `permissions.deny` in managed settings, which blocks the action before the classifier is consulted and can’t be overridden.
+The classifier is a second gate that runs after the [permissions system](</docs/en/permissions>). To block Claude’s [matching calls](</docs/en/permissions#bash-rule-limits>) before the classifier runs, use `permissions.deny` in managed settings.
## Define trusted infrastructure
@@ -85,7 +85,7 @@
}
}
-After you save your settings, run `claude auto-mode config` to confirm the effective rules include your entries. Entries are prose, not regex or tool patterns. The classifier reads them as natural-language rules. Write them the way you would describe your infrastructure to a new engineer. A thorough environment section covers:
+After you save your settings, run `claude auto-mode config` to confirm the rules include your entries. Entries are prose, not regex or tool patterns. The classifier reads them as natural-language rules. Write them the way you would describe your infrastructure to a new engineer. A thorough environment section covers:
* **Organization** : your company name and what Claude Code is primarily used for, like software development, infrastructure automation, or data engineering
* **Source control** : every GitHub, GitLab, or Bitbucket org your developers push to
@@ -144,7 +144,7 @@
* Claude Code includes `"$defaults"` in each of the `allow`, `soft_deny`, and `hard_deny` lists the draft adds entries to, unless you already wrote an `allow` list without it, so the built-in rules you haven’t replaced stay in effect
* After saving, Claude Code offers to remove `permissions.allow` rules in `~/.claude/settings.json` that auto mode ignores, such as `Bash(*)`, or that auto-approve destructive commands
-Then run `claude auto-mode config` to see the effective result.
+Then run `claude auto-mode config` to see the result.
### Turn off `/auto-mode-setup`
@@ -170,7 +170,7 @@
## Override the block and allow rules
-Three additional fields let you replace the classifier’s built-in rule lists:
+To add to the classifier’s built-in rules, set any of three additional fields and include the literal string `"$defaults"` in its list:
* `autoMode.hard_deny`: actions to block even when the user asks for them
* `autoMode.soft_deny`: destructive actions that user intent can clear
@@ -185,9 +185,9 @@
* `hard_deny` rules block unconditionally. User intent and `allow` exceptions don’t apply.
* `soft_deny` rules block next. User intent and `allow` exceptions can override these.
* `allow` rules then override matching `soft_deny` rules as exceptions.
- * Explicit user intent overrides the remaining soft blocks: if the user’s message directly and specifically describes the exact action Claude is about to take, the classifier allows it even when a `soft_deny` rule matches.
-
-General requests don’t count as explicit intent. Asking Claude to “clean up the repo” doesn’t authorize force-pushing, but asking Claude to “force-push this branch” does. To loosen, add to `allow` when the classifier repeatedly flags a routine pattern the default exceptions don’t cover. To tighten, add to `soft_deny` for destructive risks specific to your environment that the defaults miss, or to `hard_deny` for actions to block even when the user asks for them. To keep the built-in rules while adding your own, include the literal string `"$defaults"` in the array. The default rules are spliced in at that position, so your custom rules can go before or after them, and you continue to inherit updates as the built-in list changes across releases. The following example keeps the defaults in all four lists and adds organization-specific rules to each.
+ * Explicit user intent overrides the remaining soft blocks: if the user’s message directly and specifically describes the exact action Claude is about to take, the classifier allows it even when a `soft_deny` rule matches. General requests don’t count as explicit intent. Asking Claude to “clean up the repo” doesn’t authorize force-pushing, but asking Claude to “force-push this branch” does.
+
+To loosen, add to `allow` when the classifier repeatedly flags a routine pattern the default exceptions don’t cover. To tighten, add to `soft_deny` for destructive risks specific to your environment that the defaults miss, or to `hard_deny` for actions to block even when the user asks for them. The following example keeps the defaults in all four lists and adds organization-specific rules to each.
{
"autoMode": {
@@ -212,12 +212,9 @@
}
}
-Setting any of `environment`, `allow`, `soft_deny`, or `hard_deny` without `"$defaults"` replaces the entire default list for that section. If you set an array without `"$defaults"`, you discard the built-in rules for that section:
-
- * `soft_deny`: every built-in soft block rule, including force push, `curl | bash`, production deploys, and auto-mode bypass
- * `hard_deny`: the built-in data exfiltration rule
-
-Each section is evaluated independently, so setting `environment` alone leaves the default `allow`, `soft_deny`, and `hard_deny` lists intact. Only omit `"$defaults"` when you intend to take full ownership of the list. To do that safely, run `claude auto-mode defaults` to print the built-in rules, copy them into your settings file, then review each rule against your own pipeline and risk tolerance.
+Include `"$defaults"` in every list you set, so you don’t lose any built-in rules it holds.
+
+Each section is evaluated independently, so setting `environment` alone leaves the default `allow`, `soft_deny`, and `hard_deny` lists intact.
## Edit rules from `/permissions`
@@ -227,7 +224,7 @@
## Suspend shell allow rules
-By default, narrow Bash and PowerShell allow rules such as `Bash(npm test)` stay in effect in auto mode. Claude Code resolves them before the classifier runs, unless the command carries [per-command allowed domains](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>). Claude Code suspends only the broad rules that grant arbitrary code execution, such as `Bash(*)` or wildcarded interpreters, together with every rule that names [`Monitor`](</docs/en/tools-reference#monitor-tool>), because Monitor commands run through the shell. This means a narrow rule can still let a destructive argument through without the classifier seeing it, for example a script path or flag the rule’s prefix didn’t anticipate. Set `autoMode.classifyAllShell` to `true` to suspend your Bash and PowerShell allow rules while auto mode is active, and in [plan mode while the classifier reviews commands](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>). In a [Code Mode](</docs/en/code-mode#permission-checks>) session, the classifier reviews the code that runs the commands, even with this setting on.
+In auto mode, Claude Code drops [broad allow rules](</docs/en/permission-modes#how-the-classifier-evaluates-actions>) such as `Bash(*)`. By default, narrow Bash and PowerShell allow rules such as `Bash(npm test)` stay in effect. Claude Code resolves them before the classifier runs, unless the command carries [per-command allowed domains](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>). A narrow rule can still let a destructive argument through without the classifier seeing it, for example a script path or flag the rule’s prefix didn’t anticipate. Set `autoMode.classifyAllShell` to `true` to suspend your Bash and PowerShell allow rules while auto mode is active, and in [plan mode while the classifier reviews commands](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>). In a [Code Mode](</docs/en/code-mode#permission-checks>) session, the classifier reviews the code that runs the commands, even with this setting on.
{
"autoMode": {
@@ -239,11 +236,15 @@
## Inspect the defaults and your effective config
-The `claude auto-mode` subcommands help you inspect, validate, and reset your configuration. Print the built-in `environment`, `allow`, `soft_deny`, and `hard_deny` rules as JSON:
+The `claude auto-mode` subcommands help you inspect, validate, and reset your configuration. Print the `environment`, `allow`, `soft_deny`, and `hard_deny` rules built into Claude Code:
claude auto-mode defaults
-To read one rule’s full wording without piping through `jq`, pass `--label` with the start of the rule’s label, such as `claude auto-mode defaults --label 'Git Destructive'`. Matching is a case-insensitive prefix on each rule’s label, and sections with no match print as empty lists. Print what the classifier actually uses as JSON, with your settings applied where set and defaults otherwise:
+To read one rule’s full wording without piping through `jq`, pass `--label` with the start of the rule’s label, such as `claude auto-mode defaults --label 'Git Destructive'`. Matching is a case-insensitive prefix on each rule’s label, and sections with no match print as empty lists.
+
+While `/status` in auto mode shows [`Auto mode server`](</docs/en/permission-modes#server-side-classifier-review>) as `Enabled`, the server’s built-in rules can differ from this output, and no `claude auto-mode` subcommand prints them.
+
+Print the four lists, with your settings applied where set and defaults otherwise:
claude auto-mode config
@@ -324,15 +325,32 @@
* **Recently blocked tab** : highlight the action’s row. In [screen reader mode](</docs/en/accessibility>), every command and input appears before the list.
* **Hook** : to capture the exact input of denials programmatically, add a [`PermissionDenied` hook](</docs/en/hooks#permissiondenied>), which receives it as `tool_input`. If your hook reads `reason`, expect no `Auto mode:` prefix, and text such as `Blocked by classifier` instead of `No reason provided`.
- * **Conversation** : find the tool call. If the call appears shortened or folded into a summary line such as `Ran 3 shell commands`, press `Ctrl+O` to open the [transcript viewer](</docs/en/interactive-mode#transcript-viewer>), which expands it.
+ * **Conversation** : find the tool call. If the call appears shortened or folded into a summary line, press `Ctrl+O` to open the [transcript viewer](</docs/en/interactive-mode#transcript-viewer>).
The text beneath the call tells you whether there is anything to fix. A dim `Not run · auto mode's check had no usable answer` row, or text that reports a problem with the classifier itself, such as `Auto mode could not evaluate this action`, means Claude Code blocked the call without a verdict from the classifier. For a `Not run` row, press `Ctrl+O` to read the full message, then see [Auto mode cannot determine the safety of an action](</docs/en/errors#auto-mode-cannot-determine-the-safety-of-an-action>) or [The server returned no safety verdict](</docs/en/errors#the-server-returned-no-safety-verdict>) for what to do. Otherwise, a `Blocked by auto mode` line means the classifier judged the call unsafe. To let the call through, take the step that matches what Claude was trying to reach or do:
* A destination Claude needs throughout the task, such as a package registry, an internal domain, or a repository host: add it to `autoMode.environment`.
- * A command you want to run without review from now on: add an `allow` rule.
+ * A command you want allowed from now on: add an `allow` rule.
* A one-off action you did intend: state that intent in your next message and let Claude retry.
-You can add the environment entry or `allow` rule from the `/permissions` dialog’s **Auto mode** tab. The text in square brackets, such as `[Data Exfiltration]`, is the name of the rule the classifier matched. To read that rule’s full wording, see Inspect the defaults and your effective config.
+You can add the environment entry or `allow` rule from the `/permissions` dialog’s **Auto mode** tab. The text in square brackets names what the classifier matched. If it’s a rule built into Claude Code, pass its name without the brackets to `claude auto-mode defaults --label` to read the full wording.
+
+### Fix `Destructive or Unwanted Actions` and other policy denials
+
+If a denial shows one of these names, the [server-side classifier](</docs/en/permission-modes#server-side-classifier-review>) blocked the call and gave a broad policy as its reason:
+
+ * `[Destructive or Unwanted Actions]`
+ * `[Unauthorized Access]`
+ * `[Undermining Oversight]`
+ * `[Unsanctioned Communication]`
+
+The policy name is only a category, and `claude auto-mode defaults` doesn’t list its wording. Read the blocked call in the conversation, or run `/permissions` in your terminal session and look under **Recently blocked**. If it’s what you meant Claude to do, give the classifier more context:
+
+ * **For this call only** : tell Claude to do it, naming the action and its target, such as “overwrite `data/seed.json`”
+ * **For a destination you trust, such as a package registry** : add it to `autoMode.environment`
+ * **For a routine action you want allowed from now on** : describe it in an `autoMode.allow` entry
+
+After you add an entry, ask Claude to retry so the classifier checks the call again.
### Fix repeated denials
--- a/best-practices.md
+++ b/best-practices.md
@@ -341,7 +341,7 @@
}
}
-Keep `"$defaults"` in every list you set, because without it your entries _replace_ that list’s built-in rules instead of adding to them. For `environment` and `allow` you’d lose the built-in context and exceptions, and a `soft_deny` list without it drops the built-in blocks on force pushes and production deploys.The `autoMode` block also has to live in `~/.claude/settings.json` rather than the project, because the classifier ignores `autoMode` in project settings.
+Keep `"$defaults"` in every list you set, because without it your entries [can replace](</docs/en/auto-mode-config#override-the-block-and-allow-rules>) that list’s built-in rules instead of adding to them. You can lose the built-in context in `environment`, the exceptions in `allow`, and the blocks on force pushes and production deploys in `soft_deny`.The `autoMode` block also has to live in `~/.claude/settings.json` rather than the project, because the classifier ignores `autoMode` in project settings.
If you’d rather see every edit and command before it happens, `Shift+Tab` in the session cycles through the permission modes, Manual included, or start with `claude --permission-mode manual` from your shell. And if Manual then asks too often, `/fewer-permission-prompts` scans your recent transcripts for common read-only Bash and MCP calls and adds them to an allowlist in `.claude/settings.json`.
Show diff (196 lines)
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,193 @@
This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Longer releases are grouped by type of change, with long lists of improvements and bug fixes collapsed. Run `claude --version` to check your installed version.
+
+2.1.327
+
+November 17, 2026
+
+**Added**
+
+ * Added a confirmation before `/install-github-app` changes a repository
+ * Added `claude mcp add-json <name> -` to read the server’s JSON from stdin, so tokens can stay off the command line; not available inside a Claude Code session
+ * Added a line when a resumed session’s earlier messages can’t be loaded
+ * Added a list in `/status` of broken agent, skill, command and output style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match
+ * Added a note in `/config` when other settings override a row
+ * Added `x-claude-code-managed-settings-checksum` to the gateway hint headers; sent where managed settings set `CLAUDE_CODE_GATEWAY_HINT_HEADERS=1`, including where they already do
+ * Added support for naming a session’s billing group with the `attributionProject` setting, for Claude apps gateways that set `admin.billing_group_tag`
+ * Added `/tui classic` as the name for the non-fullscreen renderer; `/tui default` still works
+ * [VSCode] Added “Claude Code: Add to Chat” to the Explorer’s right-click menu, which @-mentions the selected files and folders in the chat
+
+**Changed**
+
+ * Changed some pre-started background sessions to be discarded after an account change
+ * Changed a workflow paused at a usage limit in the terminal to stay paused after a login, until the earlier login returns or you type a prompt
+ * Bug fixes and reliability improvements
+ * Changed `ExitWorktree` to ask before removing a worktree that may hold unsaved work; refused in don’t-ask mode or with nobody to answer, unless an allow rule, auto or bypass permissions mode allows it
+ * Changed `claude mcp add --scope project` to stop, instead of overwriting the file, when `.mcp.json` lists its servers at the top level with no `mcpServers` key
+ * Changed the arrow keys on most permission prompts to stop at No instead of wrapping around; a number past the last answer moves to No
+ * Changed path checks to refuse some symbolic links
+ * Changed what counts as inside a working directory, so some paths now ask for permission
+ * Changed `permissions.blockReadsOutsideWorkingDirectories` to ask about more Bash commands in bypass and auto modes, and to deny some in auto mode
+ * Changed `permissions.blockReadsOutsideWorkingDirectories` to refuse more Bash commands that name a path under a Read or Edit deny rule, where it used to ask
+ * Changed auto mode’s notice about falling back to billed classifier requests to say that an upcoming release removes the fallback; each action it would have checked will be asked about or denied
+ * Changed auto mode to ignore more allow rules that run any package, like `Bash(pnpm dlx *)`, and path or version forms of ones it already ignored (`/usr/bin/npm run:*`); the safety check decides those
+ * Changed `/sandbox` and most `/config` value lists to be unnumbered outside screen reader mode; use the arrow keys and Enter
+ * Changed Bash commands whose variables expand to very long text to be denied, with a message that says to use shorter values or a file
+ * Changed the PowerShell tool to ask before one more command, even under a rule naming it; if nothing answers, it’s refused unless a whole-tool rule, auto mode or bypass permissions mode allows it
+ * Changed a subagent resumed by a sibling’s message to follow the session’s permission settings; it may now ask, or be refused where nobody can answer
+ * Changed `--worktree` with a relative `--add-dir` beside the launch folder to give the Bash sandbox that folder, not one beside the worktree
+ * Changed some `--worktree` starts with a relative `--add-dir` above the launch folder, such as `..`, to give the Bash sandbox, and a `--bg` session, only the worktree
+ * Changed Claude in Chrome to refuse uploading some credential files; attach those to the page yourself
+ * Changed artifact approval in organizations that require it for each new artifact: an artifact that only a plugin created or allowed can be refused
+ * Changed sessions with nobody to ask to refuse a new artifact at once, with no permission prompt, in organizations that require approval of each one
+ * Changed the Artifact tool to refuse calls once settings turn Artifacts off, in sessions already running too
+ * Changed the Artifact publish prompt to stop offering “don’t ask again” in subagents and after a background task result, someone else’s message or a compaction
+ * Changed `claude plugin eval` to keep its deny rules over a plugin’s permission hook, and to flag calls the hook let through
+ * Changed MCP server logs to record the mode, action, and field names of elicitation requests and hook answers, not their full contents
+ * Changed most prompts to ignore answers other than Esc for a moment after resuming with `fg`
+ * Changed Code Mode to no longer refuse to start when an installed mod hooks tool calls; an administrator can still keep Code Mode off in managed settings
+ * Changed subagents launched without a model to stay on the model they started on when resumed, including after `/model`
+ * Changed the first subagent on a model to wait up to 1.5 seconds (10 in `claude -p`) for that model’s settings from Anthropic, instead of starting without them
+ * Changed restarted background subagents, and turns that start by themselves, to wait for plugins to load
+ * Changed prompt history to leave out most launch prompts of sessions that another Claude Code session started, such as `claude --bg` run by Claude
+ * Changed subagent progress summaries in terminal sessions on Amazon Bedrock, Google Vertex AI and Microsoft Foundry to be written from short notes, not the whole conversation, using far fewer tokens
+ * Changed non-interactive (`-p`) mode to run fewer git commands before the first request
+ * Changed first-run setup to skip terminal setup in remote VS Code, Cursor and Devin Desktop sessions, where it cannot change settings
+ * Changed fullscreen text selection to leave out the glyph of system, thinking and inbound message lines
+ * Changed Anthropic-hosted cloud sessions to ignore more of a repository’s flag and plugin delivery settings; its `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` now acts at most as `DISABLE_TELEMETRY`
+ * [VSCode] Changed a chat edit’s diff to stay open and keep asking for approval when a terminal session in the same window sends a prompt
+ * [VSCode] Removed unused tools from the IDE connection (openFile, saveDocument, getOpenEditors and related)
+
+Show 26 improvements
+
+ * Improved the speed of a session’s first Bash command: shell start-up files may now run before it’s approved, even if it’s refused; set `CLAUDE_CODE_DISABLE_SHELL_HEAD_START=1` to turn this off
+ * Improved commits on newer models and in PowerShell: Claude is now told not to commit files that likely contain secrets
+ * Improved sandboxed shell commands: Claude now sees when a command exempt from the sandbox stayed in it because its permission check relied on the sandbox
+ * Improved the refusal for shell commands with no `rm` that the dangerous `rm` check can’t parse, so Claude can resend harmless ones in plain syntax instead of giving up
+ * Improved resuming very long sessions: a transcript read that ends early is now retried once, so messages are lost less often
+ * Improved subagent answers that hit the output token limit twice: they now more often come back whole or say up front that they are partial
+ * Improved long replies on unrecognized models: a reply cut at 32,000 output tokens now continues with a limit of 128,000
+ * Improved the reminder about a completed subagent after compaction: if Claude can’t read the agent’s output file, it is now told to ask the agent with `SendMessage`
+ * Improved the warning shown when an API key and an Anthropic profile are both set: it now says which one is in use and how to switch to the profile
+ * Improved `/plugin`: the question before removing a marketplace now says that its plugins’ settings and saved data are deleted, and a marketplace’s page no longer shows another marketplace’s error
+ * Windows: Improved start-up time with no Git Bash and no `pwsh` on PATH by checking PowerShell’s standard install locations at once; System32’s `powershell.exe` now wins over one earlier on PATH
+ * Improved startup time on Windows when PATH points to Git for Windows’ bin folder, by starting git.exe directly instead of through its launcher
+ * Windows: Improved PowerShell tool speed by up to about half a second per command
+ * Improved how soon the Bash tool’s diff of changed files is ready in auto and bypass permissions modes
+ * Improved speed of the Bash permission check on very deeply nested missing paths on macOS and Linux, and of secret masking on very long text with a URL
+ * Improved transcript search to find text in edits and written files
+ * Improved speed of reading large PNG images, and the quality of the JPEG sent in their place
+ * Improved the Artifact tool to read an uploaded file by the address the artifact’s page shows; other forms still fail, most with a message that says to read uploads one per call, by id
+ * Improved the Artifact tool to ignore `prompt`, `limit` and `label` on some calls that do not use them instead of failing the call
+ * Improved MCP server pages in `/mcp`: local, remote and agent servers share one layout, menus end in Back, and actions are no longer numbered outside screen reader mode; use the arrow keys and Enter
+ * Improved narrow terminals: `/status`, forms and detail screens lay out better, `/model` and `/effort` fit at about 40 columns, and key hints such as `←/→ to adjust` stay
+ * Improved `/install-github-app`: the repository, secret and API key steps use the standard list and keys, with shorter messages, a spinner and clearer errors
+ * Improved `/desktop`: the download question is a standard list instead of y/n
+ * [VSCode] Improved speed when Claude makes several edits in a row: queued edits share one wait for new problems; a problem may be reported with a later edit
+ * [VSCode] Improved @-mention file search speed in large workspaces when `rg` is on your `PATH`; results now rank much as in the terminal, with less tolerance for typos
+ * [VSCode] Improved startup: the model picker is ready at once in folders opened for the first time, empty windows and worktrees, except on third-party providers
+
+Show 100 bug fixes
+
+ * Remote Control: Fixed stopping the server in worktree mode deleting a running session’s git-ignored files, such as `.env`
+ * Fixed self-hosted runners with `--use-anthropic-git-proxy` deleting a non-empty directory named by `GIT_CONFIG_GLOBAL` at startup: the runner now keeps it, ignores the variable and warns
+ * Fixed `claude mcp add` and `claude mcp remove` with project scope deleting other top-level keys from `.mcp.json`, such as `$schema` or another tool’s `servers`
+ * Fixed `/export` overwriting an existing file without asking: the dialog now asks, and `/export <name>` keeps the file and says to run `/export`
+ * Fixed a command you had allowed still running after you pressed Stop, when the approval arrived after a restart, in cloud and self-hosted runner sessions with no feature flags loaded
+ * Fixed Enter closing `/teleport`’s load error screen
+ * Fixed a click followed by Enter in `/plugin` installing or disabling a plugin
+ * Fixed a half-typed `!` command running on an extra Enter after the usage limit menu
+ * Fixed some `--disallowedTools` rules with parentheses in their content
+ * Fixed auto mode ignoring some wildcard PowerShell allow rules that name a script with `.\`, such as `PowerShell(.\scripts\build.ps1 *)`
+ * Fixed a running Code Mode script in auto mode getting permission prompts and denials once Claude started a second script that auto mode also allowed
+ * Fixed a nested `claude` with its own token being refused by `forceLoginOrgUUID`: commands that don’t get the session’s token no longer get its `CLAUDE_CODE_OAUTH_SCOPES`; set it on any that need it
+ * Fixed headless sessions losing stored messages on resume when a message was sent again with the same UUID after the process was killed
+ * Fixed cases where a session resumed after an empty reply or a killed command lost an answer, or brought back a rewound prompt, after another crash or a move to the background
+ * Fixed a remote session forgetting messages sent after Stop was pressed during a restart, if Claude Code then crashed
+ * Fixed tasks created after `/clear` being lost, and cleared tasks coming back, when a cloud or self-hosted runner session with no feature flags loaded resumed later
+ * Fixed a compaction right after a reply cut at the output token limit losing that reply’s tool call and its result
+ * Fixed a settings change from `/config` and similar commands failing to save with no warning; a line under the prompt now says so
+ * Fixed `/rewind` closing without a word when some files could not be restored
+ * Fixed pasted images being dropped when the prompt starts with a file path such as `/tmp/a.txt`
+ * Fixed agents passed with `--agents` being lost once plugins loaded or reloaded
+ * Fixed a plugin’s agent being dropped when resuming a session from the `--resume` picker
+ * Fixed Claude Code refusing to start when `https_proxy` or `HTTPS_PROXY` is a bare `host:port` and neither its input nor its output is a terminal (the desktop app, an SDK, cron)
+ * Fixed Claude Code on Linux sometimes returning to the shell while restarting itself at startup, such as after the first sign-in to a Claude apps gateway or when turning on Code Mode
+ * Fixed `claude -p` hanging before its first request when the fetch of a model’s settings stalled, such as at a proxy; it now goes on without them after 10 seconds
+ * Fixed the screen staying blank or frozen after a brief out-of-memory error
+ * Fixed a rare display fault that could freeze the screen or end the session
+ * Fixed cloud sessions breaking when a program left thousands of connections open to the session’s network proxy
+ * Fixed a turn hanging when a mod’s `$.model.complete` or `$.model.classify` call met a usage limit: the call now gets the API’s error at once; mods should handle that error
+ * Fixed stalls on a compaction reply with thousands of unclosed tags and on some very long WebFetch URLs; WebFetch now refuses a URL over 2,000 characters before any permission prompt
+ * Fixed a message with thousands of `@` mentions stalling before Claude replies; only the first 100 mentions are now looked up as files
+ * Fixed the prompt freezing after rejecting a write to a very large file; a rejected write now shows a short preview
+ * Fixed a crash when a burst of keys reached the search box in `/plugin`
+ * Fixed a false crash report and exit code when a suspended session resumes, or at exit, where a Linux security policy blocks a process from signalling itself
+ * Fixed remote MCP servers staying disconnected after a longer outage such as a VPN drop: most servers on other machines reached by hostname over https are now retried in the background for about a day
+ * Fixed Edit refusing with “File has not been read yet” after a compaction on unchanged files outside the project that Claude had already read in full
+ * Fixed Grep repeating or skipping results when paging with `head_limit` and `offset`; content and count results are now sorted by file path
+ * Fixed Read failing on Jupyter notebooks that contain an output of an unknown type
+ * Fixed NotebookEdit removing the notebook file’s final newline
+ * Fixed the Read tool reporting 512KB instead of the real size when a file of 10 MB or more is too large to read at once
+ * Fixed the Bash tool’s diff of changed files not naming files that are binary, too large or too many to show
+ * Fixed artifact publishes failing with “the source file changed between approval and publish” when a synced or remote-backed folder had only changed the file’s timestamp
+ * Fixed a new artifact that you approved being refused in a cloud scheduled task’s session, in organizations that require approval of each new artifact
+ * Fixed a new artifact being refused after an app built on the Agent SDK approved it, in organizations that require approval of each new artifact
+ * Fixed `/artifacts` showing part of your list, or “No artifacts yet”, when a request for more of the list failed: it now tries again, then warns if it can’t load the whole list
+ * Fixed in-process agent teammates on a different model from the lead compacting at the lead’s context limit and on the wrong model; they now use their own limit and model, at that model’s rate
+ * Fixed a finished subagent resuming on the model and effort of a sibling subagent that messaged it
+ * Fixed the main conversation not being told a background agent had finished when the subagent that started it ended by itself without reading the result, outside auto mode
+ * Fixed Claude reporting a background agent as still running when it had waited 30 seconds or more on a permission prompt in the desktop app, on the web and in the SDK
+ * Fixed Claude not being told in auto mode when a background agent’s reply to a follow-up message was dropped, and reduced repeat wake-ups there from agents waiting on background commands
+ * Fixed the desktop app, Claude Code on the web and VS Code showing a raw task notification as a subagent’s prompt after its background task woke it
+ * Fixed messages sent from another session with “later” priority joining the running turn, instead of waiting for it to end, in Remote Control and Claude Desktop sessions
+ * Fixed messages to cloud and Remote Control sessions being reported as failed with a stale address after a timeout or rate limit; Claude now says when a message may have arrived
+ * Fixed cloud sessions giving no error when a `UserPromptSubmit` hook blocks a message sent while Claude works
+ * Fixed failing hooks showing nothing: SubagentStop in background agents, SessionEnd at `/clear` and `/resume`, and CwdChanged and FileChanged in fullscreen
+ * Fixed a Stop hook that failed to run being shown as having reported a problem
+ * Fixed focus view keeping a finished reply hidden while a Stop hook was running
+ * Fixed Claude getting a long managed PostToolUse hook output twice when a mod added context to the tool call
+ * Fixed `/model` listing the wrong models in some terminal sessions when a project’s `.claude/settings.json` sets `ANTHROPIC_BASE_URL` to an LLM gateway
+ * Fixed `/statusline` writing to `~/.claude/settings.json` when `CLAUDE_CONFIG_DIR` points to another folder
+ * Fixed `claudeMdExcludes` patterns on Windows not matching a path whose drive letter is written in the other case
+ * Fixed `claude agents` and `claude rm` refusing to remove a fully pushed session (“The worktree has unpushed commits”) when its worktree has a file or folder named `HEAD` at the top level
+ * Fixed long ListAgents results hiding most sessions on accounts with many cloud or Remote Control sessions: long lists now come in pages
+ * Fixed slow turns in resumed sessions for organizations with tens of thousands of connector tool permissions
+ * Self-hosted runner: Fixed `claude -p` started by a session’s script or hook waiting out rate limits, because it inherited the session’s own retry setting
+ * Fixed the spend limit menu reporting a changed limit when the server refused it
+ * Fixed a second `x` on a task’s details in `/tasks` stopping the next task too
+ * Fixed Esc being ignored on a permission prompt that had just appeared
+ * Fixed lists that load their rows late sometimes ignoring Enter and the arrow keys
+ * Fixed `/autofix-pr` holding the keyboard after Esc while it stopped the cloud session; the dialog now closes at once, and a stop that fails is reported afterwards with a link
+ * Fixed a blank screen and stray mouse codes in the shell after quitting with ctrl+c just after ← opens the agents view
+ * Fixed Ctrl+C right after the trust question leaving the terminal in fullscreen
+ * Fixed the shell flashing on screen when ← opens the agents view in fullscreen mode
+ * Fixed terminal display faults: most scrambled scrollback in Ghostty on resize, link addresses hidden in Windows Terminal under old tmux and in VTE 0.50.0, and no selection highlight with 16 colors
+ * Fixed some garbled rows in tmux with `allow-passthrough` on inside kitty, Ghostty or iTerm2
+ * Fixed `/mcp` saying no servers were configured after one was added during a session or declined; it now says what to do
+ * Fixed `/hooks` leaving out hooks given by `--settings`
+ * Fixed the `/` menu listing a row for each skill of the same name, though every row ran the first
+ * Fixed `/teleport` showing no message when the chosen session failed to resume
+ * Fixed n and N in transcript search skipping matches
+ * Fixed cancelling a transcript search (ctrl+o, then /) in a long session landing far from where the search started
+ * Fixed up and down losing the cursor’s column over a short or blank line
+ * Fixed Tab in shell mode filling in a file name after `&&`, `;` or `|`, where a command goes
+ * Fixed the selected session leaving the screen in `claude --resume` and `/resume` when branch names or folder paths are long
+ * Fixed the MCP tool list in `/mcp` and `/plugin` losing your place when going back from a tool
+ * Fixed `/resume` listing one session fewer than the window has room for, and a ‘Resend your message’ hint after most spend caps, where resending can’t help
+ * Fixed an MCP server’s long question being cut off after one row, text fields hiding long pastes with no sign, and a doubled divider line in `/plugin`’s options and `/login`’s Bedrock and Vertex steps
+ * Fixed the “+N lines” count being too high for command output with links or colors, and the transcript’s `?` help hiding how to exit in a short window
+ * Fixed Ctrl+C twice not closing `/chrome` from its browser list
+ * Fixed a number and Enter typed too early at an agent’s plan approval in screen reader mode causing the next number to be dropped too
+ * Fixed Claude trying to read design system token files that do not exist when starting a deck or design
+ * Fixed exit not saying that a worktree was kept
+ * Fixed `/hooks` help naming input fields that do not exist
+ * Fixed question dialogs naming ctrl+g after the external editor key was rebound
+ * Fixed two sign-in error messages that pointed to the Claude subscription option on computers where `forceLoginMethod` is set to `console`
+ * Fixed `/config` saying the dialog was dismissed instead of “Set theme to …” after changing the theme
+ * [VSCode] Fixed the permission prompt not showing the reason that a PreToolUse hook gives when it asks for confirmation (anthropics/claude-code#85950)
+ * [VSCode] Fixed long tool and file names being cut off in a permission prompt’s title
+ * [VSCode] Fixed a terminal session’s diff showing the previous proposed edit after you typed in it and Claude edited the same file again
+ * [VSCode] Fixed Escape also stopping Claude’s response when it closes the feedback or “Build a custom style” dialog, the @-mention menu, the model, mode or ”+” menu, or another popup
2.1.326
--- a/channels.md
+++ b/channels.md
@@ -92,6 +92,7 @@
* View Channels
* Send Messages
* Send Messages in Threads
+ * Create Public Threads
* Read Message History
* Attach Files
* Add Reactions
--- a/cli-reference.md
+++ b/cli-reference.md
@@ -19,7 +19,7 @@
`claude auth status`| Show authentication status as JSON. Use `--text` for human-readable output. Exits with code 0 if logged in, 1 if not. The JSON includes a `configDirectory` field naming the [configuration directory](</docs/en/claude-directory>) the CLI uses. The field requires Claude Code v2.1.268 or later. The JSON’s `authMethod` field is one of `none`, `claude.ai`, `oauth_token`, `api_key`, `api_key_helper`, or `third_party`| `claude auth status`
`claude agents`| Open [agent view](</docs/en/agent-view>) to monitor and dispatch parallel background sessions. Use `--cwd <path>` to show only sessions started under that directory, or `--json` to print active sessions as a JSON array for scripting (`--json --all` also includes completed background sessions). Pass `--permission-mode`, `--model`, `--effort`, or `--agent` to set [defaults for dispatched sessions](</docs/en/agent-view#permission-mode-model-and-effort>). Accepts `--settings`, `--add-dir`, `--plugin-dir`, and `--mcp-config` like the top-level `claude` command. Opening agent view requires an interactive terminal| `claude agents --json`
`claude attach <id|name>`| Attach to a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>) in this terminal. Passing part of a running session’s name in place of the ID requires Claude Code v2.1.290 or later| `claude attach 7c5dcf5d`
-`claude auto-mode defaults`| Print the built-in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier rules as JSON. Use `claude auto-mode config` to see your effective config with settings applied. `--label <prefix>` prints only the rules whose label starts with that prefix, matched case-insensitively. Requires Claude Code v2.1.208 or later| `claude auto-mode defaults --label 'Git Destructive'`
+`claude auto-mode defaults`| Print the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier rules built into Claude Code as JSON. Use `claude auto-mode config` to see those rules with your settings applied. `--label <prefix>` prints only the rules whose label starts with that prefix, matched case-insensitively. Requires Claude Code v2.1.208 or later| `claude auto-mode defaults --label 'Git Destructive'`
`claude auto-mode reset`| Restore the default [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) configuration by removing the `autoMode` section from your user settings file. Prompts for confirmation before writing; pass `-y`/`--yes` to skip the prompt. Rules from [managed settings](</docs/en/server-managed-settings>) or the `--settings` flag still apply. Requires Claude Code v2.1.212 or later. See [Inspect the defaults and your effective config](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>)| `claude auto-mode reset --yes`
`claude daemon logs`| Follow the background-session [supervisor’s](</docs/en/agent-view#the-supervisor-process>) log file, `~/.claude/daemon.log`, printing new lines as they arrive until you press `Ctrl+C`| `claude daemon logs`
`claude daemon run`| Run the background-session [supervisor](</docs/en/agent-view#the-supervisor-process>) in the foreground of this terminal, printing its log| `claude daemon run`
@@ -61,7 +61,7 @@
`--append-system-prompt-file`| Load additional system prompt text from a file and append to the default prompt| `claude --append-system-prompt-file ./extra-rules.txt`
`--autocompact <auto|tokens>`| Set the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) for this session without changing your saved settings. Accepts the same values as `/autocompact`; that section covers the value forms and what overrides the flag. Requires Claude Code v2.1.221 or later| `claude --autocompact 500k`
`--ax-screen-reader`| Render screen-reader friendly output: flat text without decorative borders or animations. Forces the classic renderer, so the [`tui`](</docs/en/settings-reference#tui>) setting has no effect; attached [background sessions](</docs/en/agent-view>) still render fullscreen. Takes precedence over [`CLAUDE_AX_SCREEN_READER`](</docs/en/env-vars>) and the [`axScreenReader`](</docs/en/settings-reference#axscreenreader>) setting. Requires Claude Code v2.1.181 or later| `claude --ax-screen-reader`
-`--bare`| Minimal mode: skip auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-dir` still load. Claude has access to Bash, file read, and file edit tools. Sets [`CLAUDE_CODE_SIMPLE`](</docs/en/env-vars>). See [bare mode](</docs/en/headless#start-faster-with-bare-mode>)| `claude --bare -p "query"`
+`--bare`| Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-dir` still load. Claude has access to Bash, file read, and file edit tools. Sets [`CLAUDE_CODE_SIMPLE`](</docs/en/env-vars>). See [bare mode](</docs/en/headless#start-faster-with-bare-mode>)| `claude --bare -p "query"`
`--betas`| Beta headers to include in API requests (API key users only)| `claude --betas interleaved-thinking`
`--bg`, `--background`| Start the session as a [background agent](</docs/en/agent-view>) and return immediately. Prints the session ID and management commands. Combine with `--exec` to run a shell command as a background job instead of a Claude session, or with `--agent` to run a specific subagent. Checks [workspace trust](</docs/en/permissions#project-allow-rules-and-workspace-trust>) for the directory before it starts. Can’t be combined with `-p`/`--print`; see the [error reference](</docs/en/errors#command-line-errors>)| `claude --bg "investigate the flaky test"`
`--channels`| (Research preview) MCP servers whose [channel](</docs/en/channels>) notifications Claude should listen for in this session. Space-separated list of `plugin:<name>@<marketplace>` entries. Requires Anthropic authentication through claude.ai or a Console API key| `claude --channels plugin:my-notifier@my-marketplace`
--- a/common-workflows.md
+++ b/common-workflows.md
@@ -325,7 +325,7 @@
Show me the data from @github:repos/owner/repo/issues
-This fetches data from connected MCP servers using the format @server:resource. See [MCP resources](</docs/en/mcp#use-mcp-resources>) for details.
+See [MCP resources](</docs/en/mcp#use-mcp-resources>) for details.
Tips:
@@ -418,7 +418,7 @@
## Pipe Claude into scripts
-Run Claude non-interactively for CI, pre-commit hooks, or batch processing. Stdin and stdout work like any Unix tool.
+Run Claude non-interactively for CI, pre-commit hooks, or batch processing.
git log --oneline -20 | claude -p "summarize these recent commits"
--- a/cross-session-messaging.md
+++ b/cross-session-messaging.md
@@ -110,11 +110,11 @@
* **`offline`** : that session’s Remote Control connection has dropped. The message goes through, but arrives only after that session’s machine reconnects.
* **`can't receive cross-session messages (off in that session)`** : messaging isn’t available in that session, or its [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) value is `refuse`. Claude Code refuses a message to that session before the message leaves this machine. The result under Claude’s `SendMessage` call begins `Not sent` and names the reason. Once the cause is fixed in that session, a later listing no longer shows this condition, and Claude can message that session.
-A session inside a container and a session on the host can’t reach each other. Two sessions inside the same container can still message each other, including on a [self-hosted runner](</docs/en/self-hosted-environments>). A session inside WSL 2 and a native Windows session on the same computer can’t reach each other either. To require your approval before any message goes beyond this machine, set `isolatePeerMachines`.
+A session inside a container and a session on the host can’t reach each other. Two sessions inside the same container can still message each other, including on a [self-hosted runner](</docs/en/self-hosted-environments>). A session inside WSL 2 and a native Windows session on the same computer can’t reach each other either. To require your approval before Claude’s messages go beyond this machine, set `isolatePeerMachines`.
#### Replies from other machines and cloud sessions
-A [cloud session](</docs/en/claude-code-on-the-web>), including one on a [self-hosted runner](</docs/en/self-hosted-environments>), can’t use `SendMessage` to answer a message from another machine, even when the message carries a reply address. The message still arrives. Read the cloud session’s response in its transcript at [claude.ai/code](<https://claude.ai/code>). If this session isn’t connected to Remote Control when Claude sends to a session beyond this machine, the message still goes through, but without a reply address. The receiving Claude can’t answer it.
+A [cloud session](</docs/en/claude-code-on-the-web>), including one on a [self-hosted runner](</docs/en/self-hosted-environments>), can’t use `SendMessage` to answer a message from another machine, even when the message carries a reply address. The message still arrives. Read the cloud session’s response in its transcript at [claude.ai/code](<https://claude.ai/code>). To receive a reply from a session on another of your machines, connect your session to Remote Control before Claude sends. Otherwise the message carries no reply address, and the receiving Claude can’t answer it.
## How a session treats an incoming message
@@ -195,11 +195,11 @@
## Restrict cross-session messaging
-Beyond the per-message defaults, you can narrow messaging in two ways. Require your approval before any message leaves the machine, or turn messaging off for a session or an organization.
+Beyond the per-message defaults, you can narrow messaging in two ways. Require your approval before Claude’s messages leave the machine, or turn messaging off for a session or an organization.
### Require approval for cross-machine messages
-Set [`isolatePeerMachines`](</docs/en/settings-reference#isolatepeermachines>) to `true` to require your explicit approval before any `SendMessage` reaches a session beyond this machine:
+Set [`isolatePeerMachines`](</docs/en/settings-reference#isolatepeermachines>) to `true` to require your explicit approval before Claude’s `SendMessage` reaches a session beyond this machine:
{
"isolatePeerMachines": true
--- a/data-usage.md
+++ b/data-usage.md
@@ -51,7 +51,7 @@
Anthropic API| Infrastructure-level disk encryption (AES-256). Enable [Zero Data Retention](</docs/en/zero-data-retention>) for no server-side persistence.
Amazon Bedrock| AES-256 with AWS-managed keys. Customer-managed keys available via AWS KMS.
Google Cloud’s Agent Platform| Google-managed encryption keys. CMEK available.
-Microsoft Foundry| Depends on the deployment’s [hosting option](<https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#hosting-options>). For Hosted on Azure deployments, prompts and completions remain within Azure; only usage metadata and content flagged by Anthropic’s safety systems egress to Anthropic. For Hosted on Anthropic deployments, requests route to Anthropic infrastructure with AES-256 disk encryption.
+Microsoft Foundry| Depends on the deployment’s [hosting option](<https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#hosting-options>). For Hosted on Azure deployments, see [where data is processed and stored](<https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#hosting-options>). For Hosted on Anthropic deployments, requests route to Anthropic infrastructure with AES-256 disk encryption.
Claude Code is built on Anthropic’s APIs. For details on API security controls, including API logging procedures, see the compliance artifacts in the [Anthropic Trust Center](<https://trust.anthropic.com>).
--- a/desktop.md
+++ b/desktop.md
@@ -2070,6 +2070,10 @@
If you see `Failed to load session`, the selected folder may no longer exist, a Git repository may require Git LFS that isn’t installed, or file permissions may prevent access. Try selecting a different folder or restarting the app.
+### Claude Code is “newer than the maximum version allowed by your organization”
+
+When the desktop app’s own copy of Claude Code is newer than the limit your organization sets with [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>), local sessions fail with an error whose details show this message. Ask your administrator to raise the limit to at least the Claude Code version in the message, or to remove it.
+
### Session not finding installed tools
If Claude can’t find tools like `npm`, `node`, or other CLI commands, verify the tools work in your regular terminal, check that your shell profile properly sets up PATH, and restart the desktop app to reload environment variables.
--- a/desktop-scheduled-tasks.md
+++ b/desktop-scheduled-tasks.md
@@ -170,6 +170,8 @@
* **Let a task update itself** : for a task to change its own schedule or prompt with the `update_scheduled_task` MCP tool, click **Run now** and approve the call each time
* **Edit the prompt on disk** : open `~/.claude/scheduled-tasks/<task-name>/SKILL.md`, or `scheduled-tasks/<task-name>/SKILL.md` under [`CLAUDE_CONFIG_DIR`](</docs/en/env-vars>) if you set that variable. The file uses YAML frontmatter for `name` and `description`, with the prompt as the body. Changes take effect on the next run. Schedule, folder, and enabled state are not in this file: change them through the Edit form or ask Claude.
+If a local one-time task that has already run isn’t on the **Scheduled tasks** page, click the sort icon above the list and select **Include completed**.
+
## Related resources
* [Cloud scheduled tasks](</docs/en/routines>): run tasks in the cloud on a schedule, via API call, or in response to GitHub events, even when your computer is off
--- a/env-vars.md
+++ b/env-vars.md
@@ -355,7 +355,7 @@
`CLAUDE_CODE_SESSION_ID`| Set automatically to the current session ID in Bash and PowerShell tool subprocesses, [hook command](</docs/en/hooks>) subprocesses, and stdio [MCP server](</docs/en/mcp>) subprocesses. For Bash, PowerShell, and hooks this matches the `session_id` field in the hook JSON input and is updated on `/clear`. An MCP server subprocess retains the ID it was spawned with. On `--resume <session-id>` it receives the resumed ID, matching hooks and Bash. On `--continue` or `--resume` without an explicit ID it may receive the initial startup ID instead. Use to correlate scripts and external tools with the Claude Code session that launched them
`CLAUDE_CODE_SHELL`| Set the shell Claude Code uses to run Bash tool commands. Accepts a path to a `bash` or `zsh` binary, for example `/opt/homebrew/bin/bash`. Other shells such as `fish` are not supported. If the value is not a working `bash` or `zsh` path, Claude Code ignores it and falls back to auto-detection. Auto-detection uses your `$SHELL` when it points to `bash` or `zsh`, otherwise it picks the first working `zsh` then `bash` found on your `PATH` and standard install locations
`CLAUDE_CODE_SHELL_PREFIX`| Command prefix that wraps shell commands Claude Code spawns: Bash tool calls, [hook](</docs/en/hooks>) commands, [status line](</docs/en/statusline>) commands, and stdio [MCP server](</docs/en/mcp>) startup commands. PowerShell hooks and exec-form hooks run without the prefix. Useful for logging or auditing. Setting a bare executable path such as `/path/to/logger.sh` runs each command as `/path/to/logger.sh '<command>'`. The wrapper receives the command line as a single shell-quoted argument in `$1`, so the wrapper must re-evaluate `$1` with a shell, for example `exec bash -c "$1"`. Treating `$1` as a bare executable path breaks stdio MCP servers that pass arguments such as `npx -y <package>`. For Bash tool calls, `$1` contains the full shell invocation Claude Code assembles, including environment setup, not only the command Claude ran
-`CLAUDE_CODE_SIMPLE`| Set to `1` to run with a minimal system prompt and only the Bash, file read, and file edit tools. MCP tools from `--mcp-config` are still available. Disables auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md. Skills in a directory you pass with `--add-dir` still load. OAuth tokens and keychain credentials are not read, so Anthropic authentication must come from `ANTHROPIC_API_KEY` or an `apiKeyHelper` in `--settings`. Equivalent to passing [`--bare`](</docs/en/headless#start-faster-with-bare-mode>)
+`CLAUDE_CODE_SIMPLE`| Set to `1` to run with a minimal system prompt and the Bash, file read, and file edit tools. MCP tools from `--mcp-config` are still available. OAuth tokens and keychain credentials aren’t read, so for the Anthropic API, set `ANTHROPIC_API_KEY` or an `apiKeyHelper` in `--settings`. Equivalent to passing [`--bare`](</docs/en/headless#start-faster-with-bare-mode>)
`CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT`| Choose between Claude Code’s full system prompt and a shorter one with abbreviated tool descriptions. When unset, Haiku 4.5, Sonnet 5, Opus 4.7, and earlier models in those families use the full prompt by default, and newer models use the shorter one. Set to `1` to use the shorter prompt on any model. Set to `0`, `false`, `no`, or `off` to use the full prompt on any model, even where an experiment or server configuration would otherwise select the shorter one. Either prompt keeps the full tool set, hooks, MCP servers, and CLAUDE.md discovery
`CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH`| Skip client-side authentication for [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), for gateways that sign requests themselves
`CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH`| Skip Google Cloud authentication for [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>), for gateways that attach the credentials themselves
--- a/errors.md
+++ b/errors.md
@@ -93,6 +93,9 @@
`Not signed in to the Cloud gateway — run /login.`| Authentication
`Administrator policy requires a Cloud gateway sign-in on this machine`| Authentication
`Failed to authenticate: OAuth session expired and could not be refreshed`| Authentication
+`Login reached its time limit · Please run /login` / `Failed to authenticate: this login reached its time limit`| Authentication
+`Failed to authenticate: your claude.ai login expired`| [After the login expires](</docs/en/authentication#after-the-login-expires>)
+`claude.ai login ended · usage now billed to` / `Warning: the claude.ai login on this machine has ended`| [After the login expires](</docs/en/authentication#after-the-login-expires>)
`Could not refresh your login because another Claude Code process is refreshing it`| Authentication
`Failed to refresh OAuth token: another Claude Code process is refreshing it or exited mid-refresh`| Authentication
`Could not refresh your login: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full`| Authentication
@@ -357,6 +360,7 @@
`This call was not run. Claude Code could not confirm that the shell is back in the directory`, from v2.1.323| Tool errors
`File is too large to read as an image (the limit is 128MB)`| Tool errors
`Cannot read this as an image: <path> is a pipe or a device`| Tool errors
+`could not fully check your permission rules`| [Actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>)
`subagent_type is required: the general-purpose agent is not available in this session`| Tool errors
`Error: this write left the memory index at MEMORY.md at ..., over its ... read limit`| Tool errors
`Sandbox is required but failed to initialize: <reason>`| [Sandboxing troubleshooting](</docs/en/sandboxing#commands-refused-with-sandbox-is-required>)
@@ -676,7 +680,7 @@
### Auto mode cannot determine the safety of an action
-The model that [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) uses to classify actions couldn’t produce a decision, so auto mode didn’t approve the action automatically. The message you see depends on how the classifier failed. Reads, searches, and edits inside your working directory skip the classifier, so they keep working in all of these cases. When the classifier model is unavailable:
+The model that [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) uses to classify actions couldn’t produce a decision, so auto mode didn’t approve the action automatically. The message you see depends on how the classifier failed. When the classifier model is unavailable:
<model> is temporarily unavailable, so auto mode cannot determine the safety of <tool> right now. Wait a moment and then try this action again.
@@ -917,6 +921,7 @@
Your Console organization has run out of prepaid credits, or Claude Code is sending your requests with a Console API key when you meant to use your subscription.
Credit balance is too low
+ Credit balance too low · Add funds: https://platform.claude.com/settings/billing
**What to do:**
@@ -1185,7 +1190,7 @@
### OAuth token revoked or expired
-Your saved login is no longer valid. A revoked token means you signed out everywhere or an admin removed access; an expired token means the automatic refresh failed mid-session. Both messages report a rejection the API returned for a request Claude Code sent. When the saved login has already been cleared after a failed refresh, you see Login expired instead. If you authenticate with a long-lived token in [`CLAUDE_CODE_OAUTH_TOKEN`](</docs/en/env-vars>), you see the same messages when that token expires or is revoked.
+Your saved login is no longer valid. A revoked token means you signed out everywhere or an admin removed access; an expired token means the automatic refresh failed mid-session. Both messages report a rejection the API returned for a request Claude Code sent. When the saved login has already been cleared after a failed refresh, see Login expired instead. If you authenticate with a long-lived token in [`CLAUDE_CODE_OAUTH_TOKEN`](</docs/en/env-vars>), you see the same messages when that token expires or is revoked.
OAuth token revoked · Please run /login
Please run /login · API Error: 401 OAuth token has expired ...
@@ -1219,7 +1224,7 @@
### Login expired
-Claude Code tried to renew your saved claude.ai login and the OAuth service rejected the stored refresh token, so Claude Code cleared the saved credentials. After that, each model request stops locally with this message before it reaches the API, because only `/login` can create new credentials. Before v2.1.206, Claude Code sent the model request anyway with whatever credential remained in the environment, and every model then failed with There’s an issue with the selected model or a 401 instead of a prompt to sign in.
+Claude Code tried to renew your saved claude.ai login and the OAuth service rejected the stored refresh token, so Claude Code cleared the saved credentials. With no [other saved credential](</docs/en/authentication#after-the-login-expires>), model requests then stop with this message:
Login expired · Please run /login
@@ -1227,9 +1232,9 @@
Failed to authenticate: OAuth session expired and could not be refreshed
-For a `Login expired` message that ends with `or re-authenticate your Anthropic profile`, see Anthropic profile login expired. This is not the same state as OAuth token revoked or expired. Those messages report a rejection the API returned. Claude Code itself produces `Login expired` for a login it already failed to renew, so it sends no request. When the renewal fails because the account itself is suspended rather than the login being stale, Claude Code shows Your account is on hold instead. You can check for this state before a request fails: [`/status`](</docs/en/commands>) shows a `Login` row reading `Expired — log in again`, plus the organization and email it has saved for the expired login. The row appears only when the saved login is your active credential and can no longer be refreshed. Sessions authenticated another way don’t show the row, even if an expired login remains saved. Before v2.1.210, `/status` gave no indication in this state that a login had ever existed, because the cleared credential left it nothing to report. **What to do:**
-
- * Run `/login` to sign in again. Retrying without signing in shows the same message on every request.
+If the login reached its time limit, both messages say `reached its time limit` instead on Claude Code v2.1.318 or later. For a `Login expired` message that ends with `or re-authenticate your Anthropic profile`, see Anthropic profile login expired. When the renewal fails because the account itself is suspended, Claude Code shows Your account is on hold instead. **What to do:**
+
+ * Run `/login` to sign in again.
* If you sign in with your claude.ai account in another Claude Code window, see Not logged in for when this session starts using that login on its own.
* In non-interactive mode, run `claude` in the same environment, complete `/login`, then rerun your command. For automation that can’t sign in interactively, authenticate with `ANTHROPIC_API_KEY` or [generate a long-lived token with `claude setup-token`](</docs/en/authentication#generate-a-long-lived-token>).
* If signing in keeps failing, see [Login and authentication](</docs/en/troubleshoot-install#login-and-authentication>)
@@ -1889,7 +1894,7 @@
Couldn't share the transcript.
-The upload must fit an 8 MiB limit. On a long session, Claude Code progressively drops parts of the share, the last request’s model settings first, then the structured conversation and subagent transcripts, and shows this message when no reduced version can be sent or a network or server error stops the upload. When Claude Code saves a local archive instead, the message means it couldn’t write the archive. **What to do:**
+The upload must fit an 8 MiB limit. On a long session, Claude Code progressively drops parts of the share. You see this message when no reduced version can be sent or a network or server error stops the upload. When Claude Code saves a local archive instead, the message means it couldn’t write the archive. **What to do:**
* Run `/feedback` to send the transcript with a description of what happened. See Report an error if `/feedback` is unavailable in your environment
* If other requests are failing too, check your network connection and see Unable to connect to API
@@ -2167,7 +2172,7 @@
* **Agent SDK** : the error text omits the hint because the model is set programmatically. Set [`model` on `Options`](</docs/en/agent-sdk/typescript#options>) in TypeScript or [`ClaudeAgentOptions(model=...)`](</docs/en/agent-sdk/python#claudeagentoptions>) in Python, and handle the structured `model_not_found` error to surface your own retry or model picker.
* Use an alias such as `sonnet` or `opus` instead of a full versioned ID. Aliases resolve to a maintained default so they don’t go stale. See [Model configuration](</docs/en/model-config>).
* If the wrong model keeps coming back in the CLI, a stale ID is set somewhere. Check the places you can set a model in [priority order](</docs/en/model-config#setting-your-model>) and remove the stale value.
- * Claude Code reports an expired claude.ai login as Login expired, not as this error. Before v2.1.206, an expired login that could no longer be refreshed failed every model with this error; run `/login` if you see that on an older version.
+ * Before v2.1.206, an expired claude.ai login that could no longer be refreshed failed every model with this error. Run `/login` on those versions.
* If [`ANTHROPIC_BASE_URL`](</docs/en/env-vars>) points at an [LLM gateway](</docs/en/llm-gateway>) and every model fails this way, check that your gateway and its upstream accept [tool search](</docs/en/mcp#tool-search-through-a-gateway>) fields. By default, Claude Code sends `defer_loading` tool fields and `tool_reference` blocks, with the `anthropic-beta` header that enables them. Before v2.1.304, tool search was off behind a gateway unless you turned it on with `ENABLE_TOOL_SEARCH`.
* For Google Cloud’s Agent Platform deployments, see [Google Cloud’s Agent Platform troubleshooting](</docs/en/google-vertex-ai#troubleshooting>).
--- a/glossary.md
+++ b/glossary.md
@@ -199,7 +199,7 @@
### Settings layers
-The hierarchy Claude Code reads configuration from, in precedence order from highest to lowest: managed policy, settings you pass with the `--settings` flag, local settings at `.claude/settings.local.json`, project settings at `.claude/settings.json`, then user settings at `~/.claude/settings.json`. Arrays merge across layers; scalars at a higher layer override lower ones. See [Settings precedence](</docs/en/settings#settings-precedence>). Learn more: [Settings files](</docs/en/settings#where-settings-live>)
+The hierarchy Claude Code reads configuration from. From highest to lowest precedence, the layers are managed policy, settings you pass with the `--settings` flag, local settings at `.claude/settings.local.json`, project settings at `.claude/settings.json`, and user settings at `~/.claude/settings.json`. Most lists, such as `permissions.allow`, [merge across files](</docs/en/settings#lists-merge-instead-of-overriding>). See [Settings precedence](</docs/en/settings#settings-precedence>). Learn more: [Settings files](</docs/en/settings#where-settings-live>)
### Skill
--- a/headless.md
+++ b/headless.md
@@ -85,7 +85,7 @@
### Pipe data through Claude
-Non-interactive mode reads stdin, so you can pipe data in and redirect the response out like any other command-line tool. This example pipes a build log into Claude and writes the explanation to a file:
+Non-interactive mode reads stdin, so you can pipe data in and redirect the response out. This example pipes a build log into Claude and writes the explanation to a file:
cat build-error.txt | claude -p 'concisely explain the root cause of this build error' > output.txt
@@ -268,7 +268,7 @@
claude -p "Look at my staged changes and create an appropriate commit" \
--allowedTools "Bash(git diff *),Bash(git log *),Bash(git status *),Bash(git commit *)"
-The `--allowedTools` flag uses [permission rule syntax](</docs/en/settings-reference#permission-rule-syntax>). The trailing ` *` enables prefix matching, so `Bash(git diff *)` allows any command starting with `git diff`. The space before `*` is important: without it, `Bash(git diff*)` would also match `git diff-index`.
+The `--allowedTools` flag uses [permission rule syntax](</docs/en/settings-reference#permission-rule-syntax>). With the trailing ` *`, `Bash(git diff *)` matches `git diff` with or without arguments. The space before `*` is important: without it, `Bash(git diff*)` would also match `git diff-index`.
Command support differs in `-p` mode:
--- a/keybindings.md
+++ b/keybindings.md
@@ -648,11 +648,10 @@
Claude Code validates your keybindings and writes a warning to the debug log for:
- * Parse errors (invalid JSON or structure)
+ * Invalid JSON
* Misspelled modifiers, such as `ctl+k`. Claude Code ignores the whole binding. Correct the modifier, to `ctrl+k` in this example.
* A space next to `+` in a key string, such as `ctrl+ k`. Claude Code reads the string as a chord of `ctrl+` followed by `k`. No keypress matches `ctrl+` on its own, so the binding never fires. Remove the space.
* Invalid context names
- * Invalid action values, such as an action that isn’t a string or `null`
* Unknown action names, such as a typo of a registered action. Claude Code skips the binding and keeps any default binding for that key in effect.
* Reserved shortcut conflicts
* Duplicate bindings in the same context
--- a/managed-mcp.md
+++ b/managed-mcp.md
@@ -114,7 +114,7 @@
"mcpServers": {}
}
-`claude mcp add` fails with the enterprise-policy error above. Servers users had previously configured stop loading the next time they start a session, with no warning that policy is the reason. Servers you provide through `managedMcpServers`, and anything else you allow alongside the managed set, still load under an empty map, so leave those keys unset.
+`claude mcp add` fails with the enterprise-policy error above. Servers users had previously configured stop loading by each user’s next session. Servers you provide through `managedMcpServers`, and anything else you allow alongside the managed set, still load under an empty map, so leave those keys unset.
### Allow claude.ai connectors alongside the managed set
@@ -443,6 +443,7 @@
The server isn’t on the allowlist and the user runs `claude mcp add`| `Cannot add MCP server "<name>": not allowed by enterprise policy`
[`strictPluginOnlyCustomization`](</docs/en/settings-reference#strictpluginonlycustomization>) is `true` or includes `mcp`, and the user runs `claude mcp add`| [`Cannot add MCP server: your organization's managed settings allow only MCP servers that plugins provide`](</docs/en/errors#cannot-add-mcp-server-when-managed-settings-allow-only-plugin-servers>)
The user runs `claude mcp remove` on a server from `managedMcpServers`| `MCP server "<name>" is provided by your organization (managed settings) and cannot be removed locally.`
+`managed-mcp.json` takes effect while a terminal session is open| A notice that begins `Your organization now manages MCP servers on this computer`
A previously configured server is now blocked by policy| The server disappears from `/mcp` and `claude mcp list`
A server becomes blocked while a session is running, and the user selects **Reconnect** or turns it back on in `/mcp`| [`MCP server <name> is blocked by enterprise managed policy`](</docs/en/errors#mcp-server-is-blocked-by-enterprise-managed-policy>)
--- a/memory.md
+++ b/memory.md
@@ -161,7 +161,7 @@
`/*.md`| `.md` files directly in the base directory, not in subfolders
`src/components/*.tsx`| `.tsx` files directly in the base directory’s `src/components/`, not in subfolders
-You can specify multiple patterns and use brace expansion to match multiple extensions in one pattern:
+Glob syntax treats `[` as the start of a bracket expression such as `[abc]`. A pattern with a `[` that can’t be read as a bracket expression, such as `photos [2024/**`, is invalid: it matches nothing, and the rule’s other patterns keep working. To match a literal `[` in a file name, escape it inside single quotes, as in `'photos \[2024/**'`. You can specify multiple patterns and use brace expansion to match multiple extensions in one pattern:
---
paths:
@@ -170,7 +170,7 @@
- "tests/**/*.test.ts"
---
-Each brace group multiplies the number of expanded patterns: `src/*.{ts,tsx}` expands to two patterns, and `{a,b}/{c,d}/*.{ts,tsx}` to eight. To keep expansion bounded, a rule’s whole `paths` list shares one budget of 1,000 expanded patterns and 4 MiB, and patterns without braces don’t count against it. Claude Code uses any pattern that would exceed the budget unexpanded, and its literal braces match no files. Glob syntax treats `[` as the start of a bracket expression such as `[abc]`. A pattern with a `[` that can’t be read as a bracket expression, such as `photos [2024/**`, is invalid: it matches nothing, and the rule’s other patterns keep working. To match a literal `[` in a file name, escape it as `photos \[2024/**`.
+Each brace group multiplies the number of expanded patterns: `src/*.{ts,tsx}` expands to two patterns, and `{a,b}/{c,d}/*.{ts,tsx}` to eight. To keep expansion bounded, a rule’s whole `paths` list shares one budget of 1,000 expanded patterns and 4 MiB, and patterns without braces don’t count against it. Claude Code uses any pattern that would exceed the budget unexpanded, and its literal braces match no files.
#### Rule frontmatter reference
--- a/monitoring-usage.md
+++ b/monitoring-usage.md
@@ -815,10 +815,10 @@
* Claude Code approved the call in auto mode without asking the classifier
* The user answered the prompt Claude Code showed after [repeated blocks](</docs/en/permission-modes#repeated-block-thresholds>)
* In a `-p` run without `--permission-prompt-tool`, Claude Code denied the call after repeated blocks because there was nobody to answer a prompt. That event reports `decision` as `"reject"` and `source` as `"config"`
- * `classifier_category` (when `OTEL_LOG_TOOL_DETAILS=1`): The name of the [built-in rule](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>) the classifier named when it blocked the call, in lowercase with underscores, such as `"data_exfiltration"` for the Data Exfiltration rule. Requires Claude Code v2.1.301 or later. The attribute is present when both of these hold:
+ * `classifier_category` (when `OTEL_LOG_TOOL_DETAILS=1`): The name of the [policy](</docs/en/auto-mode-config#fix-a-policy-denial>) or [built-in rule](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>) the classifier named when it blocked the call, in lowercase with underscores, such as `"data_exfiltration"` for the Data Exfiltration rule. Requires Claude Code v2.1.301 or later. The attribute is present when both of these hold:
* `classifier_verdict` is `"block"`
- * The classifier named exactly one rule, and that rule is a built-in one rather than one you wrote
-Before v2.1.302, the attribute was also absent on any block that [server-side classifier review](</docs/en/permission-modes#server-side-classifier-review>) decided.
+ * The classifier gave exactly one name, and Claude Code recognizes it as a policy or a built-in rule
+Before v2.1.302, the attribute was also absent on any block that [server-side classifier review](</docs/en/permission-modes#server-side-classifier-review>) decided. Before v2.1.323, it was absent on blocks that named a policy.
* `permission_mode`: [Permission mode](</docs/en/permission-modes>) active when this call’s permission check began: `"default"`, `"plan"`, `"acceptEdits"`, `"bypassPermissions"`, `"dontAsk"`, or `"auto"`. Manual mode appears as `"default"`. A [subagent](</docs/en/sub-agents#permission-modes>) call reports the subagent’s permission mode rather than the session’s. Requires Claude Code v2.1.301 or later
* `tool_parameters` (when `OTEL_LOG_TOOL_DETAILS=1`): JSON string containing tool-specific parameters. Same shape as the Tool result event, minus post-execution fields such as `git_commit_id`. Values may differ from `tool_result` for an accepted call if the permission decision rewrites the tool input via `updatedInput`. Use this attribute to see which command was rejected when `decision` is `"reject"`.
* For `"sdk_host_builtin_mcp"` tools: `mcp_server_name` and `mcp_tool_name` are included even when `OTEL_LOG_TOOL_DETAILS` is off, because the host application defines these names; without them, a rejected call to one of these built-in servers would be unattributable on the default stream. For user-configured MCP servers, the event’s `tool_name` is always the literal `"mcp_tool"`, and the server and tool names appear only in `tool_parameters` with the flag on; argument content requires the flag everywhere.
@@ -865,7 +865,7 @@
* `rule_source`: Settings source of the rule involved, such as `"policySettings"`, `"userSettings"`, `"projectSettings"`, `"localSettings"`, `"flagSettings"`, `"cliArg"`, or `"session"`
* `grant_scope`: `"once"` or `"session"` for a prompt approved without saving a rule to a settings file
* `circuit_breaker`: The built-in safety check, such as `"dangerousRemoval"`, `"outsideReadsBlocked"`, or `"claudeSettingsFile"`
- * `classifier_category`: With `OTEL_LOG_TOOL_DETAILS=1`, the [built-in rule](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>) behind an auto mode block, such as `"data_exfiltration"`
+ * `classifier_category`: With `OTEL_LOG_TOOL_DETAILS=1`, the [built-in rule](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>) behind an auto mode block, such as `"data_exfiltration"`, under the same conditions as on `tool_decision`
* `hook_event`: `"pre_tool_use"` for a `PreToolUse` hook, or `"post_tool_use"`, `"post_tool_use_failure"`, `"stop"`, or `"subagent_stop"` on `"hook_review"` events
* `tool_class`: `"bash"` for Bash and [Monitor](</docs/en/tools-reference#monitor-tool>), `"powershell"`, `"file"` for Read, Edit, Write, NotebookEdit, Glob, and Grep, `"web"` for WebFetch and WebSearch, `"mcp"`, or `"other"`
* `tool_name`: The tool’s name, such as `"Bash"` for a built-in tool, or `"mcp_tool"`, `"skill_tool"`, `"dynamic_tool"`, or `"other_tool"`
--- a/org.md
+++ b/org.md
@@ -116,7 +116,8 @@
To verify a seed, run `claude -p` with `--output-format stream-json --verbose` in the image. In the `init` event’s `plugins` list, each loaded plugin’s `path` is under the seed, such as `/opt/claude-seed/cache/your-marketplace/code-formatter/1.0.0`. Seed marketplaces follow these rules:
* **Read-only** : Claude Code never writes to the seed and forces `autoUpdate` off for seed marketplaces.
- * **Seed entries take precedence** : on each startup, a marketplace declared in the seed overwrites the user’s entry of the same name. Users opt out of a seed plugin with `claude plugin disable`, not by removing the marketplace.
+ * **Build from the declared source** : if user or managed settings declare a seed marketplace’s name in `extraKnownMarketplaces`, build the seed from that source and `ref`.
+ * **Opting out** : when the repository’s settings enable a seed plugin, users opt out with `claude plugin disable`, not by removing the marketplace.
* **Update and remove fail** : `claude plugin marketplace update <name>` and `remove` without `--scope` on a seed marketplace fail with a message that names the seed directory.
* **Policy still applies** : the allowlist and blocklist check a seed marketplace’s recorded source too. Allow the source you built the seed from.
Show diff (105 lines)
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -27,6 +27,8 @@
* Reads outside the working directories while [`permissions.blockReadsOutsideWorkingDirectories`](</docs/en/settings-reference#permissions-blockreadsoutsideworkingdirectories>) is on: recognized file-reading Bash commands prompt even in auto mode and `bypassPermissions` mode, and so does any [unsandboxed retry](</docs/en/sandboxing#the-unsandboxed-retry-escape-hatch>) that needs approval to run outside the sandbox. Requires Claude Code v2.1.257 or later. A command the shell parser can’t trace, such as one that changes directory more than once or runs a subshell, prompts the same way even when it names no outside path. This prompt doesn’t apply when the command runs in the [sandbox](</docs/en/sandboxing>) and the sandbox enforces the block.
* Writes outside the working directories while [`permissions.blockWritesOutsideWorkingDirectories`](</docs/en/settings-reference#permissions-blockwritesoutsideworkingdirectories>) is on: Claude Code refuses `Write`, `Edit`, and `NotebookEdit` calls there, apart from [some of its own files](</docs/en/settings-reference#what-the-write-block-refuses-and-what-stays-writable>). The key doesn’t limit shell commands, MCP tools, or the programs hooks run, so use [sandboxing](</docs/en/sandboxing>) to limit where shell commands write. Requires Claude Code v2.1.314 or later.
+Claude Code doesn’t auto-approve PowerShell commands flagged `could not fully check your permission rules` either. Approve the prompt if you trust the command. If Claude Code denies the command, ask Claude to reword it.
+
## Common setups
Permission modes decide whether Claude asks before an action, and the [Bash sandbox](</docs/en/sandboxing>) and outer [isolation boundaries](</docs/en/sandbox-environments>) decide what an action can reach once it runs. Each row below pairs a goal with the flags or settings that get you there and the isolation it needs, as a starting point. Available modes lists what runs without a prompt in each mode.
@@ -56,7 +58,7 @@
---|---
Any settings file sets `disableAutoMode` to `"disable"`| `default`
`claude -p` or the [Agent SDK](</docs/en/agent-sdk/permissions#permission-modes>)| `default`
-Your organization has the HIPAA configuration applied and the session is [eligible for it](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>)| `default` with Claude Code v2.1.285 or later; auto mode stays available to switch to
+Your organization has the HIPAA configuration applied and the session is [eligible for it](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>)| `default` on v2.1.285 through v2.1.325. Other versions follow the next row
In a terminal or through the [VS Code extension](</docs/en/vs-code>)| `auto` with Claude Code v2.1.283 or later; on earlier versions, `auto` on Pro, Max, Ultra, or Team plans in sessions that [fetch feature flags](</docs/en/env-vars#features-that-need-feature-flag-fetching>), and `default` otherwise
When the flag, a settings file, or the built-in default selects `auto` but auto mode isn’t available to the session, Claude Code starts the session in Manual instead. Auto mode is unavailable when the session doesn’t meet the availability requirements, such as a settings file turning it off or a model that doesn’t support it, or when Anthropic has temporarily turned it off server-side. The first time the built-in default starts one of your sessions in auto mode, Claude Code shows a notice that links to this page:
@@ -102,7 +104,7 @@
One session you’re about to start| Pass the permission mode as a flag, for example `claude --permission-mode default`
Every terminal session you start on this machine| Set `permissions.defaultMode` in `~/.claude/settings.json`. For what the VS Code extension reads, see Switch permission modes
Every terminal session you start in one project| Set `permissions.defaultMode` in the project’s `.claude/settings.json`. Sessions you start in a terminal honor every value except `auto` and `bypassPermissions`; sessions the VS Code extension starts don’t read project settings for the starting permission mode
-Every terminal session in your organization| Set `permissions.defaultMode` in [managed settings](</docs/en/managed-settings>). Terminal sessions start in that mode and people can still switch to auto mode; for what the VS Code extension reads, see Switch permission modes. To remove auto mode so nobody can select it, set `permissions.disableAutoMode` to `"disable"` instead
+Every terminal session in your organization| Set `permissions.defaultMode` in [managed settings](</docs/en/managed-settings>). People can still switch to auto mode; for what the VS Code extension reads, see Switch permission modes. To remove auto mode so nobody can select it, set `permissions.disableAutoMode` to `"disable"` instead
This example makes every terminal session on your machine start in Manual mode, whose config value is `default`. Save it in `~/.claude/settings.json`:
@@ -116,10 +118,8 @@
### Permission modes with the HIPAA configuration
-In an organization with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, the built-in `auto` default doesn’t apply. A terminal or VS Code session starts in Manual mode when nothing else chooses its starting permission mode. A terminal session also shows `Auto mode isn't the default for your organization · Shift+Tab to switch`, and the VS Code extension shows no notice. [Check how developers sign in and connect](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>) lists the sessions this applies to. Auto mode and `bypassPermissions` stay available:
-
- * **Switch to auto mode** : press `Shift+Tab`, or use your interface’s control
- * **Start in auto mode** : pass `--permission-mode auto`, or set `permissions.defaultMode` to `auto` in your user settings, or in managed settings for your whole organization. See Start in a different permission mode
+If your organization has the [HIPAA configuration](</docs/en/hipaa-setup>) 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](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>) starts in Manual mode by default. To keep starting in Manual mode, see Start in a different permission mode. To turn off auto mode or `bypassPermissions` for your organization:
+
* **Remove auto mode** : set [`permissions.disableAutoMode`](</docs/en/settings-reference#disableautomode>) to `"disable"` in managed settings
* **Block`bypassPermissions`**: set [`permissions.disableBypassPermissionsMode`](</docs/en/settings-reference#permissions-disablebypasspermissionsmode>) to `"disable"` in managed settings
@@ -234,7 +234,7 @@
## Eliminate permission prompts with auto mode
-Auto mode lets Claude execute without routine permission prompts. A separate classifier model reviews actions before they run, blocking anything that escalates beyond your request, targets unrecognized infrastructure, or appears driven by hostile content Claude read. Explicit [ask rules](</docs/en/permissions#manage-permissions>) still force a prompt. 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. On earlier versions, it’s the built-in starting permission mode only on Pro, Max, Ultra, and Team plans. The classifier also reviews each message Claude sends to another agent with [`SendMessage`](</docs/en/tools-reference>), whether plain text or a structured [agent team](</docs/en/agent-teams>) message, before Claude Code delivers it, both in auto mode and in plan mode while the classifier reviews commands; the send review requires Claude Code v2.1.222 or later. By default, the classifier doesn’t review recognized `rm` and `rmdir` critical-path removals, such as `rm -rf /` or `rm -rf ~`. Critical paths covers what happens to them in each permission mode. Auto mode also nudges Claude to keep working without stopping for clarifying questions, though Claude still asks when your prompt or a skill explicitly relies on it. For stronger autonomous behavior in a mode that still prompts you, set the [Proactive output style](</docs/en/output-styles>) instead.
+Auto mode lets Claude execute without routine permission prompts. A separate classifier model reviews actions before they run, blocking anything that escalates beyond your request, targets unrecognized infrastructure, or appears driven by hostile content Claude read. Explicit [ask rules](</docs/en/permissions#manage-permissions>) still force a prompt. 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. On earlier versions, it’s the built-in starting permission mode only on Pro, Max, Ultra, and Team plans. By default, the classifier doesn’t review recognized `rm` and `rmdir` critical-path removals, such as `rm -rf /` or `rm -rf ~`. Critical paths covers what happens to them in each permission mode. Auto mode also nudges Claude to keep working without stopping for clarifying questions, though Claude still asks when your prompt or a skill explicitly relies on it. For stronger autonomous behavior in a mode that still prompts you, set the [Proactive output style](</docs/en/output-styles>) instead.
Auto mode reduces permission prompts but does not guarantee safety. Use it for tasks where you trust the general direction, not as a replacement for review on sensitive operations.
@@ -394,7 +394,7 @@
* Sending data to the trusted domains, buckets, and services you list in [`environment`](</docs/en/auto-mode-config#define-trusted-infrastructure>). This covers data flow only, not destructive or credential operations on the same infrastructure
* [Claude in Chrome](</docs/en/chrome>) navigation to a trusted internal domain, localhost, or a URL you named
-Sandboxed commands don’t get network access by default. Claude names the hosts a command needs on the command itself, the classifier reviews them with the command, and an approved list opens those hosts for that one command alone. [Per-command allowed domains](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>) covers what a list can and can’t open and what happens when a command reaches for an unlisted host. Run `claude auto-mode defaults` to print the full rule lists as JSON. If routine actions get blocked, an administrator can add trusted repos, buckets, and services via the `autoMode.environment` setting: see [Configure auto mode](</docs/en/auto-mode-config>). Pushing to any branch of the repository you’re working in and creating a pull request that matches your request run without a prompt, unless the push or pull request falls under the blocked list, such as secrets or sensitive data leaving the repository, or a pull request that targets a different repository or organization. To require a human checkpoint before these commands while staying in auto mode, add `permissions.ask` rules, which match the command [as written](</docs/en/permissions#bash-rule-limits>): see [Common boundaries](</docs/en/auto-mode-config#common-boundaries>).
+Sandboxed commands don’t get network access by default. Claude names the hosts a command needs on the command itself, the classifier reviews them with the command, and an approved list opens those hosts for that one command alone. [Per-command allowed domains](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>) covers what a list can and can’t open and what happens when a command reaches for an unlisted host. Run `claude auto-mode defaults` to print the rule lists built into Claude Code as JSON. If routine actions get blocked, an administrator can add trusted repos, buckets, and services via the `autoMode.environment` setting: see [Configure auto mode](</docs/en/auto-mode-config>). Pushing to any branch of the repository you’re working in and creating a pull request that matches your request run without a prompt, unless the push or pull request falls under the blocked list, such as secrets or sensitive data leaving the repository, or a pull request that targets a different repository or organization. To require a human checkpoint before these commands while staying in auto mode, add `permissions.ask` rules, which match the command [as written](</docs/en/permissions#bash-rule-limits>): see [Common boundaries](</docs/en/auto-mode-config#common-boundaries>).
### The first read outside the working directories
@@ -413,7 +413,7 @@
If you tell Claude that a blocked action is allowed, the classifier reads that as your approval and can clear the block. How you worded it decides whether the action runs, and how far the approval reaches:
- * **Name the action and its specifics** : your message has to name the action and the specific thing that makes it dangerous, such as the branch of a force push. Naming the verb alone clears nothing, so “you can force-push” leaves the block in place.
+ * **Name the action and its specifics** : include the specific thing that makes it dangerous, such as the branch of a force push. If you name only the verb, as in “you can force-push”, the block can stay in place.
* **Expect it to cover one action** : an approval covers the destructive action you named, so a later action is blocked again unless you granted the approval as standing. To stop approving a routine pattern one action at a time, add it to [`autoMode.allow`](</docs/en/auto-mode-config#override-the-block-and-allow-rules>).
* **Some blocks stay in place** : [the classifier’s precedence order](</docs/en/auto-mode-config#override-the-block-and-allow-rules>) sets out which blocks your approval can reach. To run a step it won’t clear, leave auto mode and answer the permission prompt.
@@ -448,18 +448,22 @@
* A write that the [symlink check](</docs/en/permissions#symlinks>) resolves to a protected path prompts you when the path Claude requested isn’t itself protected
* A read from a [network path](</docs/en/permissions#network-paths>) prompts you even when an allow rule matches
2. Read-only actions and file edits in your working directory are auto-approved, except writes to protected paths and the first read outside the working directories, which prompts you
- * In a session with server-side classifier review, read-only and [sandboxed](</docs/en/sandboxing#sandbox-modes>) shell commands wait for that review and are blocked if it flags them
+ * In a session with server-side classifier review, file edits, read-only shell commands, and [sandboxed](</docs/en/sandboxing#sandbox-modes>) shell commands wait for that review and are blocked if it flags them
* A write inside your working directory that the [symlink check](</docs/en/permissions#symlinks>) resolves to a location outside it prompts you
* When Claude reads an [artifact someone else made](</docs/en/artifacts#read-an-artifact-shared-with-you>), the approval cases listed in that section apply
* A read from a [network path](</docs/en/permissions#network-paths>) prompts you
3. Everything else goes to the classifier, apart from critical-path removals under their default handling. The connector tools and `requiresUserInteraction` MCP tools that prompt you directly in step 1 never reach the classifier either, so neither an org-required approval nor a consent step is auto-approved
* With [Code Mode](</docs/en/code-mode#permission-checks>) on, the code that Claude writes goes to the classifier once before it runs, and the tool calls inside it don’t. You can still block a call with a `deny` rule or require a prompt with an `ask` rule, but Claude can run Bash commands in [forms the rules don’t match](</docs/en/permissions#bash-rule-limits>)
- 4. If the classifier blocks, Claude receives the reason. In most sessions the reason names the rule the classifier matched, such as `[Data Exfiltration]`, rather than giving a written explanation; see [Review denials](</docs/en/auto-mode-config#review-denials>)
-
-A [mod](</docs/en/plugins/mods/overview>) you install that handles `tool.check` can also approve an action. For the cases where its approval doesn’t get past your rules and hooks, see [Extend permissions with hooks](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).For how [Claude in Chrome](</docs/en/chrome>) browser actions get approved in the VS Code extension, see [Permission prompts in VS Code sessions](</docs/en/chrome#permission-prompts-in-vs-code-sessions>).On entering auto mode, broad allow rules that grant arbitrary code execution are dropped:
+ * Outside Code Mode, the classifier reviews messages Claude sends to another agent with [`SendMessage`](</docs/en/tools-reference>) before Claude Code delivers them. If an allow rule matches `SendMessage` or a `PreToolUse` hook returns `"allow"`, a message can skip this review. The review also runs in plan mode while the classifier reviews commands. Requires Claude Code v2.1.222 or later.
+ 4. If the classifier blocks, Claude receives the reason. In most sessions the reason is the name of the [policy](</docs/en/auto-mode-config#fix-a-policy-denial>) or rule the classifier matched, such as `[Destructive or Unwanted Actions]`; see [Review denials](</docs/en/auto-mode-config#review-denials>)
+
+A [mod](</docs/en/plugins/mods/overview>) you install can also approve an action. For the cases where its approval doesn’t override your rules and hooks, see [Extend permissions with hooks](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).For how [Claude in Chrome](</docs/en/chrome>) browser actions get approved in the VS Code extension, see [Permission prompts in VS Code sessions](</docs/en/chrome#permission-prompts-in-vs-code-sessions>).On entering auto mode, broad allow rules that grant arbitrary code execution are dropped, including:
* Blanket `Bash(*)` or `PowerShell(*)`
* Wildcarded interpreters like `Bash(python*)`
+ * A [wrapper](</docs/en/permissions#process-wrappers>) followed only by a wildcard, like `Bash(timeout *)`
+ * Shell rules that start with a wildcard, like `Bash(* --version)`
+ * Some wildcarded paths, like `Bash($HOME/bin/*)` or `PowerShell(C:\tools\x.exe *)`
* Package-manager run commands
* `Agent` allow rules
* [`Monitor`](</docs/en/tools-reference#monitor-tool>) allow rules, because Claude Code runs Monitor commands through the shell
@@ -476,7 +480,7 @@
Cost and latency
-Claude Code’s classifier requests can run on a model other than your `/model` selection. See which model they run on.On Enterprise plans and on accounts that use the Claude API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, classifier calls count toward your token usage. Each check sends a portion of the transcript plus the pending action, adding a round-trip before execution. Reads and working-directory edits outside protected paths skip the classifier, so the overhead comes mainly from shell commands and network operations. Where the server reviews the actions as part of the session’s model requests, there are no separate classifier calls to count; see Server-side classifier review.Sandboxed network access adds no per-connection classifier requests. The classifier judges [the hosts a command names](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>) together with the command in one review, and Claude Code checks each connection against the approved list without calling the classifier again.
+Claude Code’s classifier requests can run on a model other than your `/model` selection. See which model they run on.Classifier calls count toward your token usage on Enterprise plans. They also count on accounts that use the Claude API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. Each check sends a portion of the transcript plus the pending action, adding a round-trip before execution.Where the server reviews the actions as part of the session’s model requests, there are no separate classifier calls to count. See Server-side classifier review.Sandboxed network access adds no per-connection classifier requests. The classifier judges [the hosts a command names](</docs/en/sandboxing#per-command-allowed-domains-in-auto-mode>) together with the command in one review, and Claude Code checks each connection against the approved list without calling the classifier again.
## Allow only pre-approved tools with dontAsk mode
--- a/python.md
+++ b/python.md
@@ -2653,9 +2653,10 @@
"totalLines": int | None, # Optional total before head_limit and offset, in content mode
"appliedLimit": int | None, # Present when head_limit truncated the result
"appliedOffset": int | None, # Present when an offset was applied
- }
-
-Grep returns this dict shape in each output mode. Which optional keys are present depends on `output_mode`. `totalFiles` requires Claude Code v2.1.208 or later. `totalLines` requires Claude Code v2.1.210 or later.
+ "timedOut": bool | None, # True when the search ran out of time, so results may be incomplete
+ }
+
+Grep returns this dict shape in each output mode. Which optional keys are present depends on `output_mode`. `totalFiles` requires Claude Code v2.1.208 or later. `totalLines` requires Claude Code v2.1.210 or later. `timedOut` requires Claude Code v2.1.317 or later.
### NotebookEdit
--- a/reference.md
+++ b/reference.md
@@ -209,8 +209,8 @@
[`$.ui`](</docs/en/plugins/mods/interface#pick-where-to-draw>)| `resolve`, `invalidate`, `open`, `close`, `panes`, [`place`](</docs/en/plugins/mods/interface#place-a-row-in-the-transcript>), `focus`, `scroll`, `toast`, `notify`, `status`, `log`, `notice`, `ask`, `copy`, `selection`, `blit`, `view`. `view` requires Claude Code v2.1.300 or later and `place` v2.1.314 or later.
[`$.theme`](</docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation>)| `set`, `clear`: set a backdrop for the Desktop or mobile app to draw, and take the backdrop off. Requires Claude Code v2.1.319 or later.
[`$.command`](</docs/en/plugins/mods/api#add-a-command>)| `register`, `run`, `list`
-[`$.tool`](</docs/en/plugins/mods/api#add-a-tool>)| `register`, `call`, `check`, `list`. When a `call` needs a person’s approval, such as one a hook or your organization answers with `ask`, it resolves with `{ deny: "<tool> wasn't run: this call needs a person's approval, and a mod's own call can't ask for it." }`, where `<tool>` is the tool’s name.
-`$.agent`| `register`, `spawn`, `list`. `list()` returns this session’s subagents and teammates, each with a `status` of `pending`, `running`, `waiting`, `idle`, `completed`, `failed`, or `killed`, where `idle` and `waiting` require Claude Code v2.1.289 or later.
+[`$.tool`](</docs/en/plugins/mods/api#add-a-tool>)| `register`, `call`, `check`, `list`
+`$.agent`| `register`, `spawn`, `call`, `list`, `limits`. `call` and `limits` require Claude Code v2.1.326 or later. `list()` returns this session’s subagents and teammates, each with a `status` of `pending`, `running`, `waiting`, `idle`, `completed`, `failed`, or `killed`, where `idle` and `waiting` require Claude Code v2.1.289 or later.
[`$.model`](</docs/en/plugins/mods/api#call-a-model>)| `complete`, `fork`, `classify`
[`$.prompt`](</docs/en/plugins/mods/api#start-a-turn-from-a-background-job>)| `submit`, `read`, `fill`, `suggest`, `compose`. Claude reads text from `submit({ text })` after a sentence that names your mod as the sender. `submit({ text, asUser: true })` sends the text as the user’s own words, without that sentence.
`$.turn`| `abort`
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -788,13 +788,13 @@
### `autoMode`
-Add your own rules to what the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier blocks and allows. Use it to tell the classifier which repos, buckets, and domains your organization trusts, so it stops blocking routine internal operations. The classifier ships with [built-in allow and deny rules](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>). Include the literal string `"$defaults"` in an array to keep those built-in rules at that position and add yours around them; leave it out to replace them with yours.
+Add your own rules to what the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier blocks and allows. Use it to tell the classifier which repos, buckets, and domains your organization trusts, so it stops blocking routine internal operations. The classifier has [built-in allow and deny rules](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>). Include the literal string `"$defaults"` in every array you set, so your rules add to the built-in ones. If you leave it out, your rules [can replace them](</docs/en/auto-mode-config#override-the-block-and-allow-rules>).
* **Scope** : `User or managed`
* **Type** : object with `environment`, `allow`, `soft_deny`, and `hard_deny` arrays of prose rules, plus the `classifyAllShell` Boolean
* **Default** : unset, so the classifier uses only its [built-in rules](</docs/en/auto-mode-config#inspect-the-defaults-and-your-effective-config>)
-This example keeps the built-in `soft_deny` rules, through `"$defaults"`, and adds one more that blocks `terraform apply`:
+This example keeps the built-in `soft_deny` rules and adds one more that blocks `terraform apply`:
settings.json
@@ -3405,7 +3405,7 @@
### `allowedHttpHookUrls`
-Limit which URLs [HTTP hooks](</docs/en/hooks#http-hook-fields>) can target. When you define this key, Claude Code runs an HTTP hook only if its URL matches one of the patterns and blocks the rest without running them; an empty array blocks every HTTP hook.
+Limit which URLs [HTTP hooks](</docs/en/hooks#http-hook-fields>) can target. Set this key in managed settings to cover hooks your organization deploys, or in any settings file to cover other hooks. Claude Code runs a covered hook only if its URL matches a pattern in the list merged across settings files.
* **Scope** : `Any file`. Arrays merge across settings files.
* **Type** : array of URL patterns, with `*` as a wildcard
@@ -3419,7 +3419,7 @@
"allowedHttpHookUrls": ["https://hooks.example.com/*", "http://localhost:*"]
}
-Hostname matching is case-insensitive and treats `hooks.example.com.`, with the trailing dot that marks a fully qualified domain name, the same as `hooks.example.com`, which is how DNS treats them. The allowlist applies to hooks from every source, including managed settings. In the Agent SDK’s `managedSettings` option, Claude Code ignores a list with entries, so pass it in the SDK’s [`settings` option](</docs/en/agent-sdk/typescript#options>) instead. See [what an empty list does in parent settings](</docs/en/claude-apps-gateway#how-hook-and-skill-keys-in-parent-settings-take-effect>).
+Hostname matching is case-insensitive and treats `hooks.example.com.`, with the trailing dot that marks a fully qualified domain name, the same as `hooks.example.com`, which is how DNS treats them. In the Agent SDK’s `managedSettings` option, Claude Code ignores a list with entries, so pass it in the SDK’s [`settings` option](</docs/en/agent-sdk/typescript#options>) instead. See [what an empty list does in parent settings](</docs/en/claude-apps-gateway#how-hook-and-skill-keys-in-parent-settings-take-effect>).
### `allowManagedHooksOnly`
@@ -3554,7 +3554,7 @@
### `httpHookAllowedEnvVars`
-An [HTTP hook](</docs/en/hooks#http-hook-fields>) can put the value of an environment variable into a request header, for example an `Authorization: Bearer $HOOK_TOKEN` header, but only for variables the hook lists in its own `allowedEnvVars`. This key sets an outer limit on that list for every HTTP hook: a hook can use a variable only if both its own `allowedEnvVars` and this key name it. Use it to stop a hook from reading a secret it shouldn’t, even when the hook’s definition asks for it.
+An [HTTP hook](</docs/en/hooks#http-hook-fields>) can put the value of an environment variable into a request header, for example an `Authorization: Bearer $HOOK_TOKEN` header, but only for variables the hook lists in its own `allowedEnvVars`. Set this key in managed settings to cover hooks your organization deploys, or in any settings file to cover other hooks. A covered hook can use a variable only if both its own `allowedEnvVars` and this key’s list, merged across settings files, name it.
* **Scope** : `Any file`. Arrays merge across settings files.
* **Type** : array of environment variable names
@@ -3568,7 +3568,7 @@
"httpHookAllowedEnvVars": ["MY_TOKEN", "HOOK_SECRET"]
}
-The allowlist applies to hooks from every source, including managed settings. In the Agent SDK’s `managedSettings` option, Claude Code ignores a list with entries, so pass it in the SDK’s [`settings` option](</docs/en/agent-sdk/typescript#options>) instead. See [what an empty list does in parent settings](</docs/en/claude-apps-gateway#how-hook-and-skill-keys-in-parent-settings-take-effect>).
+In the Agent SDK’s `managedSettings` option, Claude Code ignores a list with entries, so pass it in the SDK’s [`settings` option](</docs/en/agent-sdk/typescript#options>) instead. See [what an empty list does in parent settings](</docs/en/claude-apps-gateway#how-hook-and-skill-keys-in-parent-settings-take-effect>).
### `workflowKeywordTriggerEnabled`
@@ -5181,7 +5181,7 @@
"requiredMaximumVersion": "2.1.150"
}
-Background auto-updates and `claude update` skip versions above the ceiling, so an installation inside the range stays inside it. `claude update`, `claude install`, and `claude doctor` keep working above the ceiling so users can recover. Pair it with `requiredMinimumVersion` to enforce a range.
+On native and npm installs, background auto-updates and `claude update` skip versions above the ceiling. `claude update`, `claude install`, and `claude doctor` keep working above the ceiling so users can recover. Pair it with `requiredMinimumVersion` to enforce a range. When the desktop app updates, its own copy of Claude Code can be newer than the ceiling, and [local sessions in the Code tab then don’t start](</docs/en/desktop#version-above-your-organizations-limit>). To keep that copy from changing on macOS and Windows, [turn off the desktop app’s auto-updates](</docs/en/desktop#device-management-policies>). The Microsoft Store still updates an install that came from it.
### `requiredMinimumVersion`
--- a/setup.md
+++ b/setup.md
@@ -158,7 +158,7 @@
#### Set version limits for your organization
-In [managed settings](</docs/en/managed-settings>), `minimumVersion` enforces an organization-wide minimum that user and project settings can’t override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>).
+In [managed settings](</docs/en/managed-settings>), `minimumVersion` enforces an organization-wide minimum that user and project settings can’t override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>).
### Disable auto-updates
--- a/sub-agents.md
+++ b/sub-agents.md
@@ -509,7 +509,7 @@
#### Enable persistent memory
-The `memory` field gives the subagent a persistent directory that survives across conversations. The subagent uses this directory to build up knowledge over time, such as codebase patterns, debugging insights, and architectural decisions.
+The `memory` field gives the subagent a persistent directory that survives across conversations. The subagent uses this directory to build up knowledge over time, such as your preferences, your corrections, and project decisions.
---
name: code-reviewer
@@ -518,7 +518,7 @@
---
You are a code reviewer. As you review code, update your agent memory with
- patterns, conventions, and recurring issues you discover.
+ the review preferences and corrections you're given.
Choose a scope based on how broadly the memory should apply:
@@ -541,10 +541,10 @@
* Ask the subagent to update its memory after completing a task: “Now that you’re done, save what you learned to your memory.” Over time, this builds a knowledge base that makes the subagent more effective.
* Include memory instructions directly in the subagent’s markdown file so it proactively maintains its own knowledge base:
- Update your agent memory as you discover codepaths, patterns, library
- locations, and key architectural decisions. This builds up institutional
- knowledge across conversations. Write concise notes about what you found
- and where.
+ Update your agent memory as you learn the team's preferences, project
+ constraints, and the reasons behind key decisions. This builds up
+ institutional knowledge across conversations. Write concise notes about
+ what you learned and why it matters.
#### Conditional rules with hooks
--- a/terminal-config.md
+++ b/terminal-config.md
@@ -62,7 +62,7 @@
"preferredNotifChannel": "terminal_bell"
}
-Over SSH from a terminal running outside tmux, set [`preferredNotifChannel`](</docs/en/settings-reference#preferrednotifchannel>) to your local terminal’s value, `"iterm2"`, `"kitty"`, or `"ghostty"`, on the machine running Claude Code. The desktop notification then reaches your local machine. Ghostty and Kitty forward it to your OS notification center without further setup. iTerm2 requires you to enable forwarding:
+To receive the desktop notification in Ghostty, Kitty, or iTerm2 over SSH outside tmux, keep `preferredNotifChannel` at its default, `"auto"`. Before v2.1.326, set it to `"iterm2"`, `"kitty"`, or `"ghostty"` on the machine running Claude Code. iTerm2 requires you to enable forwarding:
1
@@ -116,7 +116,7 @@
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
-To use Shift+Enter, keep the last two lines, then detach from tmux, attach again, and restart Claude Code. To send notifications from a visible pane to the outer terminal, keep the `allow-passthrough` line and set [`preferredNotifChannel`](</docs/en/settings-reference#preferrednotifchannel>) to `"iterm2"`, `"kitty"`, or `"ghostty"`. With this sample, a pane in a window you aren’t viewing sends none. A [mod’s `Image`](</docs/en/plugins/mods/reference#elements>) needs the `allow-passthrough` and `focus-events` lines, along with the other [requirements for drawing inside tmux](</docs/en/plugins/mods/gallery#draw-an-image-inside-tmux>). After you add the lines, also detach from tmux, attach again, and restart Claude Code.
+To use Shift+Enter, keep the last two lines, then detach from tmux, attach again, and restart Claude Code. To send notifications from a visible pane to Ghostty, Kitty, or iTerm2, keep the `allow-passthrough` line and restart Claude Code. With this sample, a pane in a window you aren’t viewing sends none. Before v2.1.326 or inside tmux older than 3.3, which has no `allow-passthrough`, set [`preferredNotifChannel`](</docs/en/settings-reference#preferrednotifchannel>) to `"iterm2"`, `"kitty"`, or `"ghostty"`. A [mod’s `Image`](</docs/en/plugins/mods/reference#elements>) needs the `allow-passthrough` and `focus-events` lines, along with the other [requirements for drawing inside tmux](</docs/en/plugins/mods/gallery#draw-an-image-inside-tmux>). After you add the lines, also detach from tmux, attach again, and restart Claude Code.
## Fix Backspace deleting a whole word on Windows
--- a/tools-reference.md
+++ b/tools-reference.md
@@ -1,6 +1,6 @@
Claude Code has access to a set of built-in tools that help it understand and modify your codebase. The tool names are the exact strings you use in [permission rules](</docs/en/permissions#tool-specific-permission-rules>), [subagent tool lists](</docs/en/sub-agents>), and [hook matchers](</docs/en/hooks>). To control which tools Claude can use and when it asks first, configure [permission rules](</docs/en/permissions#tool-specific-permission-rules>) in your settings, [hooks](</docs/en/hooks>), or a [subagent’s tool list](</docs/en/sub-agents#supported-frontmatter-fields>). See Configure tools with permission rules and hooks for each place that accepts a tool name. To add custom tools, connect an [MCP server](</docs/en/mcp>). To extend Claude with reusable prompt-based workflows, write a [skill](</docs/en/skills>), which runs through the existing `Skill` tool rather than adding a new tool entry.
-In [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), a classifier decides most permission prompts instead of you. The `Permission required` column shows whether the tool prompts in [Manual mode](</docs/en/permission-modes>) for paths inside the working directory. File-access tools marked No, including `Read`, `Grep`, and `Glob`, still prompt for paths outside the [working directory and additional directories](</docs/en/permissions#working-directories>). `Bash` is marked Yes but runs a built-in set of [read-only commands](</docs/en/permissions#read-only-commands>) without prompting.
+In [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), a classifier decides most permission prompts instead of you. The `Permission required` column shows whether the tool prompts in [Manual mode](</docs/en/permission-modes>) for paths inside the working directory. File-access tools marked No, including `Read`, `Grep`, and `Glob`, still prompt for paths outside the [working directory and additional directories](</docs/en/permissions#working-directories>), apart from files Claude Code itself needs.`Bash` is marked Yes but runs a built-in set of [read-only commands](</docs/en/permissions#read-only-commands>) without prompting.
Tool| Description| Permission required
---|---|---
--- a/troubleshoot.md
+++ b/troubleshoot.md
@@ -66,7 +66,7 @@
### `hooks module did not load`
-The line starts with the mod’s name, then `hooks module did not load:` and a reason, which gives the file and line when the problem is in your code. Claude Code couldn’t load the module, for example because its top-level code threw. Fix the error the reason names. If the reason ends with `; the version loaded before is unloaded`, no version of the mod is running now. Once you fix the error, run [`/reload-plugins`](</docs/en/plugins/cli-reference#reload-plugins>) in the session to load the mod again. If you installed the mod and didn’t write it, ask its author to fix the error.
+The line starts with the mod’s name, then `hooks module did not load:` and a reason, which gives the file and line for a syntax error. Claude Code couldn’t load the module, for example because its top-level code threw. Fix the error the reason names. If the reason ends with `; the version loaded before is unloaded`, no version of the mod is running now. Once you fix the error, run [`/reload-plugins`](</docs/en/plugins/cli-reference#reload-plugins>) in the session to load the mod again. If you installed the mod and didn’t write it, ask its author to fix the error.
### `options do not fit plugin.json userConfig`
--- a/typescript.md
+++ b/typescript.md
@@ -1555,7 +1555,7 @@
Set `shouldQuery`, `client_composed`, or `priority` to change how Claude Code handles a message you send:
* `shouldQuery`: set it to `false` to append the message to the transcript without triggering an assistant turn. The message is held and merged into the next user message that does trigger a turn. Use this to inject context, such as the output of a command you ran out of band, without spending a model call on it.
- * `client_composed`: set it to `true` to have Claude Code deliver the message text as written. Claude Code then doesn’t expand `@path` or [`@server:resource`](</docs/en/mcp#use-mcp-resources>) mentions, and doesn’t run text that starts with `/` as a command. While the `verbatimPrompts` option is on, the SDK sets the field on every message. Requires TypeScript Agent SDK v0.3.280 or later and Claude Code v2.1.248 or later.
+ * `client_composed`: set it to `true` to have Claude Code deliver the message text as written. Claude Code then doesn’t expand `@path` mentions, and doesn’t run text that starts with `/` as a command. While the `verbatimPrompts` option is on, the SDK sets the field on every message. Requires TypeScript Agent SDK v0.3.280 or later and Claude Code v2.1.248 or later.
* `priority`: controls when a message you send during a running turn reaches Claude:
* `'next'`, or no `priority` field: Claude reads the message in the same turn, as soon as the tool calls it is running finish. If the turn ends first, the message starts the next turn.
* `'later'`: Claude Code holds the message until the turn ends and sends it as a new turn.
@@ -3894,9 +3894,10 @@
totalLines?: number;
appliedLimit?: number;
appliedOffset?: number;
- };
-
-Returns search results. The shape varies by `mode`: file list, content with matches, or match counts. In `count` mode, `numFiles` and `numMatches` are totals over the full result set, not the paginated slice. Before v2.1.208, a `head_limit` or `offset` that truncated the listed entries also truncated those totals. `totalFiles` requires Claude Code v2.1.208 or later and reports the total number of results before `head_limit` and `offset` pagination in `files_with_matches` mode. `totalLines` requires Claude Code v2.1.210 or later and reports the total number of lines before pagination in `content` mode.
+ timedOut?: boolean;
+ };
+
+Returns search results. The shape varies by `mode`: file list, content with matches, or match counts. In `count` mode, `numFiles` and `numMatches` are totals over the full result set, not the paginated slice. Before v2.1.208, a `head_limit` or `offset` that truncated the listed entries also truncated those totals. `totalFiles` requires Claude Code v2.1.208 or later and reports the total number of results before `head_limit` and `offset` pagination in `files_with_matches` mode. `totalLines` requires Claude Code v2.1.210 or later and reports the total number of lines before pagination in `content` mode. `timedOut` requires Claude Code v2.1.317 or later and is `true` when the search ran out of time, so results may be incomplete.
### TaskStop
--- a/web-quickstart.md
+++ b/web-quickstart.md
@@ -209,7 +209,7 @@
### `/web-setup` shows “No commands match” or “Unknown command”
-`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases:
+`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If Claude Code’s command menu shows `No commands match "/web-setup"`, or submitting `/web-setup` returns `Unknown command: /web-setup` or says it’s unavailable, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases:
* An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`.
* Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or has the [HIPAA configuration](</docs/en/hipaa-setup>) applied. Either one makes cloud sessions unavailable.