Changes on
96 changes detected
--- a/admin.md
+++ b/admin.md
@@ -78,7 +78,7 @@
* **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.
* **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.
+ * **Your organization’s mods stay on in safe mode from v2.1.326.** Users’ mods are off, so start a session with `claude --safe-mode` to check whether one caused a problem.
None of these controls sandboxes a mod. A mod you allow runs as the user, with the user’s access to files, processes, and the network.
@@ -387,7 +387,11 @@
When you return `{ refuse }` on v2.1.326 or later, the whole plugin stays out, including its MCP servers and the hooks in its `hooks/hooks.json`. If you wrote a policy mod for an earlier version, add the example’s `if (e.provides)` line ahead of each refusal that should stop only the mod. For a `.catch` handler, see Refuse mods when your check fails.
-To block a call without refusing the whole mod, return `{ deny: 'your reason' }` from a hook on that call’s name, after you [check who made the call](</docs/en/plugins/mods/reference#mods-api-calls>). To send the audit lines somewhere other than the debug log, call `$.http.fetch` from the same hooks. A session can run without your mod. If the worker thread that runs installed mods [crashes three times](</docs/en/plugins/mods/troubleshoot#mods-that-run-in-the-hooks-worker-are-off-for-this-session>), Claude Code unloads every mod that isn’t built in, including yours, until the user runs `/reload-plugins` or starts a new session. And a user who starts Claude Code with `--safe-mode` runs without installed mods, yours included. [Create a mod](</docs/en/plugins/mods/create>) covers the files a mod needs. [Test a policy mod](</docs/en/plugins/mods/test#test-a-mod-that-judges-other-mods>) has a test file for this policy mod.
+To block a call without refusing the whole mod, return `{ deny: 'your reason' }` from a hook on that call’s name, after you [check who made the call](</docs/en/plugins/mods/reference#mods-api-calls>). To send the audit lines somewhere other than the debug log, call `$.http.fetch` from the same hooks.
+
+A session can run without your mod. If the worker thread that runs installed mods [crashes three times](</docs/en/plugins/mods/troubleshoot#mods-that-run-in-the-hooks-worker-are-off-for-this-session>), Claude Code can unload every mod that isn’t built in, including yours. Those mods stay off until the user runs `/reload-plugins` or starts a new session. For safe mode, see Know which controls still apply.
+
+[Create a mod](</docs/en/plugins/mods/create>) covers the files a mod needs. [Test a policy mod](</docs/en/plugins/mods/test#test-a-mod-that-judges-other-mods>) has a test file for this policy mod.
#### Refuse mods when your check fails
--- a/advisor.md
+++ b/advisor.md
@@ -78,7 +78,7 @@
### Fable advisor and usage credits
-On some plans, Fable usage bills to usage credits, and Fable as the advisor bills the same way. If your account requires the [consent to bill Fable usage to usage credits](</docs/en/model-config#fable-and-usage-credits>), accept it before you use Fable as the advisor. Before you have accepted it, Claude Code doesn’t save Fable as the advisor when you type `/advisor fable` or pick Fable in the `/advisor` picker. It points you to `/model fable` instead. With `claude --advisor fable`, Claude Code exits at launch with a message that points to `/model fable`. In a background session, it starts the session without the advisor instead of exiting. With Fable already saved as your `advisorModel`, Claude Code sends requests without the advisor. In an interactive session whose main model supports the advisor, it also shows a notification that points to `/model fable`. To accept the consent, run `/model fable` and choose to continue on Fable. Claude Code records the consent and [saves Fable as your selected model](</docs/en/model-config#default-model-setting>). Then select Fable as the advisor.
+On some plans, Fable usage bills to usage credits, and Fable as the advisor bills the same way. If your account requires the [consent to bill Fable usage to usage credits](</docs/en/model-config#fable-and-usage-credits>), accept it before you use Fable as the advisor. Before you have accepted it, Claude Code doesn’t save Fable as the advisor when you type `/advisor fable` or pick Fable in the `/advisor` picker. The picker points you to `/model fable` instead. With Fable already saved as your `advisorModel`, Claude Code sends requests without the advisor. To accept the consent, run `/model fable` and choose to continue on Fable. Claude Code records the consent and [saves Fable as your selected model](</docs/en/model-config#default-model-setting>). Then select Fable as the advisor.
### Common model pairings
--- a/agent-loop.md
+++ b/agent-loop.md
@@ -225,7 +225,7 @@
### Automatic compaction
-When the context window approaches its limit, the SDK automatically compacts the conversation: it summarizes older history to free space, keeping your most recent exchanges and key decisions intact. The SDK emits a message with `type: "system"` and `subtype: "compact_boundary"` in the stream when this happens (in Python this is a `SystemMessage`; in TypeScript it is a separate `SDKCompactBoundaryMessage` type). Compaction replaces older messages with a summary, so specific instructions from early in the conversation may not be preserved. Persistent rules belong in CLAUDE.md (loaded via [`settingSources`](</docs/en/agent-sdk/claude-code-features>)) rather than in the initial prompt, because CLAUDE.md content is re-injected on every request. You can customize compaction behavior in several ways:
+When the conversation approaches the [auto-compact window](</docs/en/model-config#default-auto-compact-thresholds>), the SDK automatically compacts it, summarizing older history to free space and keeping your most recent exchanges and key decisions intact. The SDK emits a message with `type: "system"` and `subtype: "compact_boundary"` in the stream when this happens. In Python this is a `SystemMessage`, and in TypeScript it is a separate `SDKCompactBoundaryMessage` type. Compaction replaces older messages with a summary, so specific instructions from early in the conversation may not be preserved. Persistent rules belong in CLAUDE.md (loaded via [`settingSources`](</docs/en/agent-sdk/claude-code-features>)) rather than in the initial prompt, because CLAUDE.md content is re-injected on every request. You can customize compaction behavior in several ways:
* **Summarization instructions in CLAUDE.md:** The compactor reads your CLAUDE.md like any other context, so you can include a section telling it what to preserve when summarizing. The compactor matches on intent, so the section header is free-form.
* **`PreCompact` hook:** Run custom logic before compaction occurs, for example to archive the full transcript. The hook receives a `trigger` field (`manual` or `auto`). See [hooks](</docs/en/agent-sdk/hooks>).
--- a/agent-teams.md
+++ b/agent-teams.md
@@ -218,7 +218,7 @@
Claude Code reads the subagent definition you named and applies these parts of it to the teammate. Where a part depends on the teammate’s display mode, the entry says so:
- * **`tools`** : Claude Code limits the teammate to the tools in the definition’s `tools` list. For an in-process teammate, Claude Code adds `SendMessage` to that list, and in a [session that has the Task tools](</docs/en/tools-reference#task-tool-availability>) it adds `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate` too.
+ * **`tools`** : Claude Code limits the teammate to the tools in the definition’s `tools` list, plus Read, Write, and Edit when the definition has [persistent memory](</docs/en/sub-agents#enable-persistent-memory>) enabled. For an in-process teammate, Claude Code adds `SendMessage` to that list, and in a [session that has the Task tools](</docs/en/tools-reference#task-tool-availability>) it adds `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate` too.
* **`model`** : Claude Code uses the definition’s `model` in either display mode when your spawn prompt doesn’t name one. See how Claude Code picks a teammate’s model.
* **`disallowedTools`** : for an in-process teammate, Claude Code removes the tools in the definition’s `disallowedTools` from the teammate’s set. `SendMessage` and the Task tools it adds stay available even when the list names them.
* **`effort`** : for an in-process teammate, Claude Code applies the definition’s [`effort`](</docs/en/sub-agents#supported-frontmatter-fields>) under the [frontmatter effort rules](</docs/en/model-config#set-the-effort-level>).
@@ -244,7 +244,7 @@
#### Messages between agents
-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:
+A message that a teammate or [one of your other Claude Code sessions](</docs/en/cross-session-messaging#how-a-session-treats-an-incoming-message>) sends with `SendMessage` can’t answer a permission prompt on your behalf. 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 `SendMessage` 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>).
--- a/agent-view.md
+++ b/agent-view.md
@@ -183,7 +183,7 @@
### Attach to a session
-Press `Enter` or `→` on a selected row to attach. Agent view is replaced by the full interactive session. When you attach, Claude posts a short recap of what happened while you were away. While you’re attached, [commands](</docs/en/commands>), keyboard shortcuts, and features all work, with the exceptions below. A [`/ship` or `/steward` watch](</docs/en/ship-command-troubleshooting#a-session-setting-blocks-a-watch>) doesn’t start in a background session. While you’re attached, `/install-github-app` and the [`/mcp`](</docs/en/mcp>) settings list work normally, since a human at the terminal can complete their dialogs. When nobody is attached, these commands can’t open their dialogs, so the session appears under `Needs input` in agent view with a row such as `open this session to manage MCP servers`, and the transcript reply says the same. Attach and run the command again to continue; the needs-input row clears when you attach. `/mcp reconnect <server>`, `/mcp enable`, and `/mcp disable` work without attaching either way. Attached sessions always render in [fullscreen mode](</docs/en/fullscreen>), regardless of your `tui` setting, because a background session has no terminal scrollback to append to. Scroll with `PgUp`, `PgDn`, or the mouse wheel, and press `Ctrl+O` for transcript mode. Your terminal’s native scroll and tmux copy mode show only the current viewport, the same as when you run any fullscreen application. An attached session doesn’t [report its status to your terminal](</docs/en/terminal-config#see-session-status-in-your-terminal>). Press `←` on an empty prompt, or run `/exit`, to detach and return to agent view, whether you opened the session from agent view or with `claude attach <id>` from your shell. `←` also detaches while the [`/btw` overlay](</docs/en/interactive-mode#side-questions-with-%2Fbtw>) is open. Requires Claude Code v2.1.257 or later. A side question that’s still answering keeps running while you’re away. The next time you attach, the overlay reopens with it, or with its answer. On Windows, if you press `←` within about half a second of attaching, Claude Code shows `Ambiguous ←, press again to detach`, because in that window the terminal can redeliver a press from before you attached. Press `←` again to detach. `Ctrl+Z` also detaches but goes back to where you started instead: agent view if you attached from there, or your shell if you ran `claude attach`. Use `Ctrl+Z` when a dialog has focus and isn’t responding to `←`. `Ctrl+C` keeps its standard interrupt behavior while attached: it cancels a running response or `!` shell command rather than detaching. Pressing `Ctrl+C` twice on an empty prompt detaches. Detaching never stops a background session: `←`, `Ctrl+Z`, `/exit`, and double `Ctrl+C` or double `Ctrl+D` all leave it running. If you detach while a `/loop` is waiting for its next iteration, the loop keeps running and that iteration starts on schedule without you. To stop the loop before you detach, see [Stop a loop](</docs/en/scheduled-tasks#stop-a-loop>). To end a session from inside it, run `/stop`.
+Press `Enter` or `→` on a selected row to attach. Agent view is replaced by the full interactive session. When you attach, Claude posts a short recap of what happened while you were away. While you’re attached, [commands](</docs/en/commands>), keyboard shortcuts, and features all work, with the exceptions below. A [`/ship` or `/steward` watch](</docs/en/ship-command-troubleshooting#a-session-setting-blocks-a-watch>) doesn’t start in a background session. While you’re attached, `/install-github-app` and the [`/mcp`](</docs/en/mcp>) settings list work normally, since a human at the terminal can complete their dialogs. When nobody is attached, these commands can’t open their dialogs, so the session appears under `Needs input` in agent view with a row such as `open this session to manage MCP servers`, and the transcript reply says the same. Attach and run the command again to continue; the needs-input row clears when you attach. `/mcp reconnect <server>`, `/mcp enable`, and `/mcp disable` work without attaching either way. Attached sessions always render in [fullscreen mode](</docs/en/fullscreen>), regardless of your `tui` setting, because a background session has no terminal scrollback to append to. Scroll with `PgUp`, `PgDn`, or the mouse wheel, and press `Ctrl+O` for transcript mode. Your terminal’s native scroll and tmux copy mode show only the current viewport, the same as when you run any fullscreen application. Press `←` on an empty prompt, or run `/exit`, to detach and return to agent view, whether you opened the session from agent view or with `claude attach <id>` from your shell. `←` also detaches while the [`/btw` overlay](</docs/en/interactive-mode#side-questions-with-%2Fbtw>) is open. Requires Claude Code v2.1.257 or later. A side question that’s still answering keeps running while you’re away. The next time you attach, the overlay reopens with it, or with its answer. On Windows, if you press `←` within about half a second of attaching, Claude Code shows `Ambiguous ←, press again to detach`, because in that window the terminal can redeliver a press from before you attached. Press `←` again to detach. `Ctrl+Z` also detaches but goes back to where you started instead: agent view if you attached from there, or your shell if you ran `claude attach`. Use `Ctrl+Z` when a dialog has focus and isn’t responding to `←`. `Ctrl+C` keeps its standard interrupt behavior while attached: it cancels a running response or `!` shell command rather than detaching. Pressing `Ctrl+C` twice on an empty prompt detaches. Detaching never stops a background session: `←`, `Ctrl+Z`, `/exit`, and double `Ctrl+C` or double `Ctrl+D` all leave it running. If you detach while a `/loop` is waiting for its next iteration, the loop keeps running and that iteration starts on schedule without you. To stop the loop before you detach, see [Stop a loop](</docs/en/scheduled-tasks#stop-a-loop>). To end a session from inside it, run `/stop`.
#### Switch sessions without leaving the terminal
@@ -486,7 +486,7 @@
* **Model** : `/model <name>`, for example `/model opus`
* **[Effort level](</docs/en/model-config#adjust-effort-level>)** : `/effort` with `low`, `medium`, `high`, `xhigh`, or `max`, for example `/effort high`. To start sessions in [ultracode](</docs/en/workflows#let-claude-decide-with-ultracode>), open agent view from your shell with `claude agents --effort ultracode` instead; the dispatch input doesn’t accept `/effort ultracode`
- * **Fast mode** : `/fast on` or `/fast off`. The session starts in fast mode only if fast mode is [available to you](</docs/en/fast-mode#requirements>) and its model supports fast mode. On a model that doesn’t, the session starts with fast mode off, so first use `/model` to pick one of the [models that support fast mode](</docs/en/fast-mode>). The hint under the input, not the header, confirms whether new sessions get fast mode.
+ * **Fast mode** : `/fast on` or `/fast off`. First use `/model` to pick one of the [models that support fast mode](</docs/en/fast-mode>). A session you dispatch starts in fast mode only if fast mode is [available to you](</docs/en/fast-mode#requirements>). To check whether new sessions get fast mode, read the hint under the dispatch input, not the agent view header.
To undo a choice, give `default` as the value, for example `/effort default`. The following example dispatches one session on Opus and the next on Sonnet:
--- a/agents.md
+++ b/agents.md
@@ -39,7 +39,7 @@
The command for checking on running work depends on which approach you used:
* For background sessions, `claude agents` opens [agent view](</docs/en/agent-view>): one screen showing every session, its state, and which ones need your input.
- * For subagents in the current session, named background subagents appear in the @-mention typeahead with their status. The `/agents` command prints a notice pointing to the subagent file locations. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files directly. Despite the similar name, `/agents` is separate from `claude agents`.
+ * For a [named](</docs/en/sub-agents#subagent-names>) background subagent in the current session, type `@` and the first letter of its name to see its status. To [create and edit custom subagents](</docs/en/sub-agents#configure-subagents>), ask Claude or edit the files in `.claude/agents/` or `~/.claude/agents/`.
* For anything running in the background of the current session, `/tasks` lists each item and lets you check on, attach to, or stop it. The list also includes subagents that have finished.
* For dynamic workflows, `/workflows` lists running and completed runs, the phase each is in, and how many agents have finished.
--- a/analytics.md
+++ b/analytics.md
@@ -50,12 +50,7 @@
Complete the GitHub authentication flow and select which GitHub organizations to include in the analysis.
-Data typically appears within 24 hours after enabling, with daily updates. If no data appears, you may see one of these messages:
-
- * **“GitHub app required”** : install the GitHub app to view contribution metrics
- * **“Data processing in progress”** : check back in a few days and confirm the GitHub app is installed if data doesn’t appear
-
-Contribution metrics cover repositories hosted on github.com. For repositories on [GitHub Enterprise Server](</docs/en/github-enterprise-server>), the analytics dashboard shows usage metrics only.
+Data typically appears within 24 hours after enabling, with daily updates. If you see a “Data processing in progress” message, check back in a few days. If data still doesn’t appear, ask a GitHub admin to confirm that the Claude GitHub app is installed. Contribution metrics cover repositories hosted on github.com. For repositories on [GitHub Enterprise Server](</docs/en/github-enterprise-server>), the analytics dashboard shows usage metrics only.
### Review summary metrics
--- a/approvals-policy.md
+++ b/approvals-policy.md
@@ -283,7 +283,7 @@
No rule covers a changed file| Nobody is asked to review that file. A protected file can still need a person. Claude doesn’t approve the pull request
No rule covers any changed file| Normally no check appears. If GitHub requires the check on the default branch, it normally ends neutral, with the title **Nothing ran, not blocking: no file is covered**. GitHub counts that as passing
Rules cover a changed file, and none applies| The check fails, with a title that starts **No rule applies to**
-A file moves between a path that rules cover and one that they don’t| No check appears, and Claude comments that Approvals did not run. Where GitHub requires the check, the pull request waits
+A file moves between a path that rules cover and one that they don’t| Claude comments that Approvals did not run. If GitHub requires the check, you need permission to bypass that requirement to merge
To avoid these, cover every path with root rules that have no `if`, as the first rule of the starter policy does.
--- a/artifacts.md
+++ b/artifacts.md
@@ -136,10 +136,10 @@
* **Claude waits for you** : outside plan mode, when posting the reply would need your approval, you see `Comments are waiting on Artifact: <name>`. Claude then asks you for approval to read the thread, and again to post the reply.
* **Claude pauses in plan mode** : you see `Comments are waiting on Artifact: <name>`, and Claude doesn’t reply until you leave plan mode and ask it to read and reply.
-Claude also stops replying on its own to an artifact after it handles 60 sent comments or thread activations on that artifact within an hour. You see `Comments are waiting on Artifact: <name>` once, and Claude picks up again as that hour’s comments age out. Run `/tasks` to see the artifacts your session is watching. `/tasks` groups the watches Claude Code started on its own under the **System tasks** row. Press `Enter` on that row to list them. A watch you asked Claude to start appears under **Monitors**. You can stop Claude from replying on its own in any of these ways:
+Claude also stops replying on its own to an artifact after it handles 60 sent comments or thread activations on that artifact within an hour. You see `Comments are waiting on Artifact: <name>` once, and Claude picks up again as that hour’s comments age out. Run `/tasks` to see the artifacts your session is watching. `/tasks` groups the watches Claude Code started on its own under the **System tasks** row. Press `Enter` on that row to list them. You can stop Claude from replying on its own in any of these ways:
* **Press Ctrl+C once at an idle, empty prompt** : Claude pauses replying on every artifact your session is watching. Replies start again after you send your next message.
- * **Stop the task in`/tasks`**: Claude stops replying on that artifact until you ask it to resume replies there. Publishing the artifact again doesn’t start replies again, and the stop still applies when you resume the session later.
+ * **Stop the task in`/tasks`**: Claude stops replying on that artifact. Publishing the artifact again doesn’t start replies again, and the stop still applies when you resume the session later. You can ask Claude to resume replies on that artifact, but Claude can’t always do so.
* **Press`Ctrl+X Ctrl+K` twice within 3 seconds**: the chord that [stops every running background subagent](</docs/en/interactive-mode#general-controls>) also stops Claude from replying on every artifact for the rest of the session. Asking Claude to resume replies doesn’t undo this stop.
If you see `Stopped watching Artifact: <name>` followed by `(idle)`, `(connection lost)`, or `(made room for a newer watch)`, ask Claude to republish the artifact to restart the watch. A watch that Claude Code started on its own can end after several hours without activity.
@@ -171,7 +171,7 @@
* **The viewer hasn’t connected the connector** : they can add it at [claude.ai/customize/connectors](<https://claude.ai/customize/connectors>), then reload the page.
* **The viewer declined the permission ask** : a denial lasts for the rest of that page load. Reloading the page brings the permission ask back.
* **Connector calls are turned off for the organization** : an Owner controls the **Enable artifact connectors** toggle in admin settings.
- * **The page calls tool names the connector doesn’t expose** : the affected sections stay empty for everyone, including you. This can happen when a page names the individual tools behind a gateway-style connector that exposes only a few tools of its own. Ask Claude to fix the tool names the page calls and publish it again. When Claude publishes the page and that connector’s tools are available in your session, Claude Code checks the tool names the page declares against them, warns Claude about names that don’t match, and refuses the publish when none do. Before v2.1.265, it published the page without checking them.
+ * **The page calls tool names the connector doesn’t expose** : the affected sections stay empty for everyone, including you. This can happen when a page names the individual tools behind a gateway-style connector that exposes only a few tools of its own. Ask Claude to fix the tool names the page calls and publish it again.
## Offer a file download
@@ -217,7 +217,7 @@
## Improve the visual design
-Claude applies a built-in design skill when it builds an artifact, so pages get a deliberate palette, typography, and layout without extra prompting. That skill also looks for an existing design system in your project before choosing its own. Design tokens are the named color, typography, and spacing values your design system reuses. To keep artifacts consistent with your product’s branding, record them where Claude can find them, such as the project’s [CLAUDE.md](</docs/en/memory>) or a theme file in your repository:
+When Claude builds an artifact, it looks for an existing design system in your project before choosing its own palette, typography, and layout. Design tokens are the named color, typography, and spacing values your design system reuses. To keep artifacts consistent with your product’s branding, record your design tokens where Claude can find them, such as the project’s [CLAUDE.md](</docs/en/memory>) or a theme file in your repository:
## Design system
@@ -296,14 +296,16 @@
### Check why `/design-sync` didn’t publish an artifact
-If `/design-sync` says it can’t publish, offers only to build locally, or uploads to standalone Claude Design when you didn’t choose that, check each of these requirements:
-
- * Claude Code v2.1.329 or later, with [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) on
- * A local session where artifacts are available for your plan and sign-in. [Cloud sessions](</docs/en/claude-code-on-the-web>) and sessions served by [`claude remote-control`](</docs/en/remote-control>) can’t sync to an artifact.
- * On Team and Enterprise plans, **Design systems** turned on under [**Organization settings > Artifacts**](<https://claude.ai/admin-settings/artifacts>). It’s on by default on Team plans and off on Enterprise plans. If your organization uses custom roles, your role also needs the [**Design systems** capability](<https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans#h_d830917488>). If either is missing, ask an Owner to turn on the setting or add the capability to your role.
- * If the design system already has an artifact, permission to edit that artifact as the owner or an editor, and no public link to it. Ask the owner to make you an editor or remove the public link.
-
-If the design system has no artifact yet and your version or session misses one of the first two requirements, `/design-sync` uploads to standalone Claude Design at claude.ai/design. That site closes by December 14, 2026. After you fix what’s missing, start a new session and run `/design-sync` again.
+If `/design-sync` says it can’t publish, offers only to build locally, or uploads to standalone Claude Design when you didn’t choose that, find the requirement you’re missing in this table. Fix it, start a new session, and run `/design-sync` again.
+
+Check| What you need
+---|---
+Version| Claude Code v2.1.334 or later, or v2.1.329 or later with [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) on
+Telemetry or feature flags off| You can keep `DISABLE_TELEMETRY`, `DO_NOT_TRACK`, or `CLAUDE_CODE_DISABLE_FEATURE_FLAGS` set on v2.1.334 or later, so update if your version is earlier. To publish with one set, also leave `ANTHROPIC_BASE_URL` unset or pointing at `api.anthropic.com`.
+Session| A local session where artifacts are available for your plan and sign-in. [Cloud sessions](</docs/en/claude-code-on-the-web>) and [`claude remote-control`](</docs/en/remote-control>) sessions can’t sync to an artifact.
+First artifact on Team or Enterprise| **Design systems** turned on under [**Organization settings > Artifacts**](<https://claude.ai/admin-settings/artifacts>), plus the [**Design systems** capability](<https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans#h_d830917488>) if your organization uses custom roles. The setting is off by default on Enterprise. Ask an Owner for either.
+Existing artifact| You own the artifact or are an editor, and it has no public link. The owner can make you an editor or remove the public link.
+Size| At most 4,080 published files and 256 MiB in total. Count up to two files per component, plus the moved files on your first sync after a move from standalone. To fit, tell Claude which components to exclude, and commit the `.design-sync/config.json` change. Before v2.1.334, a sync can stop at about 1,000 files, so update Claude Code.
## Page constraints
--- a/auto-mode-config.md
+++ b/auto-mode-config.md
@@ -59,7 +59,7 @@
* **Organization**
* **Primary use of Claude Code** : defaults to software development
* **Cloud provider(s)**
- * **Repository visibility** : a repository is assumed private unless its remote host and name indicate otherwise, or the classifier reads a visibility check earlier in the conversation showing it is public. In the classifier requests sent by Claude Code itself, the classifier reads your messages and the commands Claude runs, not their output. The evidence has to be something the classifier can read, such as your own message naming the repository as public; the output of a `gh repo view` on its own doesn’t reach it.
+ * **Repository visibility** : a repository is assumed private unless the classifier has evidence that it’s public, such as its remote host and name. To tell the classifier yourself, name the repository as public in this entry or in your message.
* **Internal sharing / snippet hosting** : public paste and gist services are treated as outside the trust boundary until you name one
* **Org-specific CLIs**
* **Secrets management**
--- a/best-practices.md
+++ b/best-practices.md
@@ -395,7 +395,7 @@
### Keep cost and context down
-With a 1M-token window on most current models and compaction near the top of it, you’ll rarely run out of context. You can still _pay_ for context you don’t need, though. Every request sends the whole conversation, so a session that’s collected three unrelated tasks re-reads all three on every turn of the fourth. That’s [discounted while the cache is warm](</docs/en/costs#why-usage-climbs-in-a-long-session>) and full price once it expires. [`/usage`](</docs/en/costs>) is the first place to look. On Pro, Max, Ultra, Team, and Enterprise it breaks your usage down by skill, subagent, plugin, and MCP server. It also flags patterns like long context or frequent cache misses once one of them passes 10% of your usage. From there, the usual fixes:
+With a 1M-token window on most current models and [auto-compaction](</docs/en/model-config#default-auto-compact-thresholds>) before it fills, you’ll rarely run out of context. You can still _pay_ for context you don’t need, though. Every request sends the whole conversation, so a session that’s collected three unrelated tasks re-reads all three on every turn of the fourth. That’s [discounted while the cache is warm](</docs/en/costs#why-usage-climbs-in-a-long-session>) and full price once it expires. [`/usage`](</docs/en/costs>) is the first place to look. On Pro, Max, Ultra, Team, and Enterprise it breaks your usage down by skill, subagent, plugin, and MCP server. It also flags patterns like long context or frequent cache misses once one of them passes 10% of your usage. From there, the usual fixes:
* `/clear` between unrelated tasks. It costs nothing, and it means the next task doesn’t keep paying for the previous one’s history. `/clear oauth-migration` names the session you’re leaving, so you can come back to it later.
* `/compact` with a focus, like `/compact keep the API changes and the test commands`. On a long session `/compact` is itself a big request, since it reads the whole conversation to summarize it, and even more so once the cache has expired.
Show diff (590 lines)
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,587 @@
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.334
+
+December 1, 2026
+
+**Added**
+
+ * Added a search box to `/model` when the list has more than 25 models, matching names and model IDs; press ↓ for `s` and number keys (anthropics/claude-code#99239) (anthropics/claude-code#107237)
+ * Windows: Added `/desktop` and `claude --desktop` on Arm computers
+ * Added an Auto-compact window row to `/config` to see and change the size that `/autocompact` sets
+ * Self-hosted runner: Added `--health-host 127.0.0.1` to the orchestrator, for its health and metrics pages
+ * Added `placement: "full"` and `Client` `autoFocus` so a mod’s pane can fill the terminal in fullscreen mode until you press Esc, with its `Client` taking keys from the start
+ * Added `cacheWrite5m`, `cacheWrite1h` and, for Haiku 5.5, `longPrompt` to `modelPricing`, and `cache_write_5m`, `cache_write_1h`, `long_prompt` to gateway `pricing.overrides`; old keys still work
+ * Added folder-level REVIEW.md support to `/code-review`: local reviews also follow REVIEW.md files in folders above a committed change
+ * Gateway: Added `claude gateway --config <file> --check config` to check a config file without starting, and a start now reports a bad managed policy before it connects to Postgres
+ * [VSCode] Added an “Open diff” link to edit and write permission cards in chats opened from the session list, except in the new look
+ * [VSCode] Added Remove, Edit and Send now for queued messages in the new look
+ * [VSCode] Added a Try again button under replies that failed on a server error, overload or lost connection, in the new look
+ * [VSCode] Added Quote and Side question for text selected in a reply, as buttons, in the right-click menu and in the Command Palette, in the new look
+ * [VSCode] Added a button in the new look that jumps back to the bottom of the conversation after scrolling up
+ * [VSCode] Added a count of changed lines in the chat header and a “Review Session Changes” command that open the files Claude edited in a session in one diff tab
+ * [VSCode] Added Mermaid diagrams in Claude’s replies in the new look, with Show source to read their text and a button that opens them in an editor tab
+ * [VSCode] Added a box at the start of each scheduled task round in the new look, with its time and prompt
+ * [VSCode] Added “Turn off new look…” to the command menu of the new look
+ * [VSCode] Added Ctrl+Shift+Enter (Cmd+Shift+Enter on macOS) for the “allow more” answer of a permission prompt where it asked for a click, and made its ignored-key notices reach VoiceOver sooner
+ * [VSCode] Added a row in the new look that shows when Claude is still writing a file, an edit or a command
+ * [VSCode] Added a dot on the Session history button and a “Needs input” label in the history, in the new look, for a session you switched away from that is waiting for you
+ * [Claude Code on the web] Added a Git providers setting, off by default, that lets Team and Enterprise Owners limit which GitHub organizations and personal accounts can be linked to their organization
+ * [Claude Code on the web] Added One-time and Custom to the frequency menu in the New scheduled task dialog, so a cloud Claude Code task can run once or on a cron schedule
+ * [Claude Code on the web] Added a confirmation before Rewind in a cloud session, where there’s no Undo, with a “Don’t show again” option
+ * [Claude Code on the web] Added the environment and machine names and IDs to `/status` in your sessions on self-hosted environments, with a copy button for each ID
+ * [Claude Code on the web] Added a confirmation before regenerating or deleting a scheduled task’s API token
+ * [Claude Code on the web] Added a warning in a self-hosted environment’s admin details when some runners are too old for a model; it names the model and the minimum Claude Code version
+ * [Claude Tag] Added a read-only list of GitHub repositories to a Slack channel’s Configure page for people who can’t edit the list there
+ * [Claude Tag] Added a Connected apps section at the top of Claude Tag admin settings that shows your Slack connection, with a button to manage it
+ * [Claude Tag] Added “Copy settings to…” to the menu on Slack workspace and channel pages in Claude Tag admin settings, to share access bundles attached there with other workspaces and channels
+
+**Changed**
+
+ * Changed auto-compact’s per-model auto setting to near 400K on most current 1M models, `-p` and SDK runs too (rolling out; on now with third-party providers or telemetry off); see `/autocompact`
+ * Changed Grep to apply fewer ignore files in some sessions, so it can show files that they used to hide
+ * Changed managed `PostToolUse` hooks so that when a tool can’t use a rewrite, Claude gets an error that says so; return the tool’s own output shape to keep the rewrite
+ * Changed `--system-prompt` with a `__SYSTEM_PROMPT_DYNAMIC_BOUNDARY__` line on Bedrock, Agent Platform, Foundry, gateways or with experimental betas off: the text above it gets its own cache breakpoint
+ * Changed the survey’s question on sharing the session transcript: Yes is now y then Tab
+ * Changed `/design-sync` to say why when a session can’t publish your design system to Claude, and to publish with telemetry off too
+ * [VSCode] Changed the limit on grouped sessions from 1,000 to 10,000 per project, and added a notice when adding to a group would exceed it
+ * [VSCode] Changed diffs to open beside the conversation when Claude is alone in a local window of its own that is 800 px or wider, so that they no longer hide the request
+ * [VSCode] Changed usage reset times to follow VS Code’s display language when the time format setting is left at its default
+ * [VSCode] Changed the MCP servers dialog to offer Reconnect before Authenticate for a server that failed to connect
+ * [VSCode] Changed the panel to say “session” instead of “conversation” or “chat” in menus, dialogs and notices, and the “New Conversation” command to “New Session”
+ * [VSCode] Changed the open file’s path to go with your next message right after VS Code starts or reloads, not only after a click in it; `claudeCode.attachOpenFile` turns it off
+ * [Claude Code on the web] Changed unlinking a GitHub account to no longer turn off members’ own scheduled tasks on its repositories; those run under Claude’s agent identity are still turned off
+ * [Claude Code on the web] Changed renaming a cloud run of a scheduled task to rename only that run; before, it could rename the scheduled task too
+ * [Claude Code on the web] Changed cloud scheduled tasks you set up manually on claude.ai/code without a repository: most new ones are now Claude Code tasks that open there, not Chat tasks
+ * [Claude Code on the web] Changed new cloud sessions on a repository to start without waiting for a descriptive branch name; if none is ready, the branch gets a random-word name
+ * [Remote Control] Changed archiving a working, connected session from its menu to ask first; the question says the session may keep running on your computer
+ * [Claude Tag] Changed Personal connectors in Claude Tag admin settings from a row with an Edit dialog to a tab of their own under Claude’s access
+ * [Claude Tag] Removed the earlier Claude in Slack app’s remaining answers in workspaces not connected to Claude Tag, Pro and Max accounts included; most people now get a notice instead
+
+Show 34 improvements
+
+ * Improved Claude apps gateway logs: fewer warnings when Postgres or an upstream is down, none when a client disconnects before the reply starts, and the model in some refused requests’ audit rows
+ * Improved the account email check: it now also refuses your git email as a client’s identity, and runs with an API key, Bedrock or Google Cloud’s Agent Platform; disable the Privacy plugin to stop it
+ * Improved the Claude apps gateway to warn at startup when a managed MCP server holds a `${...}` placeholder that Claude Code would send as written
+ * Improved adding a GitHub event to a cloud scheduled task: Claude now knows the request’s fields and events, so fewer attempts fail
+ * [VSCode] Improved how failures show in the new look: failed slash commands, edits, reads and MCP calls, blocked tool calls and crashes now say plainly what went wrong, and steps that never ran say so
+ * [VSCode] Improved the working line in the new look: it shows the elapsed time and says when Claude is thinking, Claude Code is starting, a slow Stop hook runs or the server is overloaded or silent
+ * [VSCode] Improved agents in the new look: rows name the agent and its task, the agent map shows each working one’s latest step and folds earlier ones, and a finished agent’s card shows its report
+ * [VSCode] Improved permission cards for commands in the new look: many now say why a command can’t be checked or needs care
+ * [VSCode] Improved the model menu in the new look on Bedrock: application inference profile ARNs show as a model family or a short ID, with the full ARN in the tooltip
+ * [VSCode] Improved how fast long conversations finish loading in remote windows (SSH, WSL, containers) on Pro and Max plans with no mods installed
+ * [VSCode] Improved the permission card in the new look: the row above it takes less room, so more of Claude’s reason shows
+ * [VSCode] Improved reading in the new look: the `/` menu shows what each command does, links show where they lead, and code in your messages and in Claude’s questions shows as code
+ * [VSCode] Improved MCP results in the new look: one or two pictures now show first instead of behind a long text
+ * [VSCode] Improved tool rows in the new look: JSON lists of records show as tables, plans show their titles, Claude in Chrome steps take one line, and `git diff` wraps changed lines
+ * [VSCode] Improved the speed of opening chats with very long turns, of replies with many code blocks, tables or formulas, and of copying long chats with a dark theme in the new look
+ * [VSCode] Improved your messages in the new look: deeply nested @-mentioned files show by name, and prompts from plugins, `/loop` or a scheduled task name their sender
+ * [VSCode] Improved command rows in the new look: changed files in `git status`, the failing line of a Python traceback, file names in PowerShell lists and commands after an inline script stay in view
+ * [VSCode] Improved command answers in the new look: `/code-review` findings get a row each with a file link, plain confirmations read as notes, and `/skill-doctor` columns stay lined up
+ * [VSCode] Improved lists in the new look: older models fold under “More models”, claude.ai connectors you never connected fold behind one row, and low, wide panels and questions show more rows
+ * [VSCode] Improved the mode menu’s descriptions of Manual, Edit automatically and Auto
+ * [VSCode] Improved background work in the new look: a Show output link opens live output and Stop, rows name the command, and monitor events show the line caught
+ * [Claude Code on the web] Improved scheduled task status: the list can say a cloud task’s last run failed, didn’t run or needs input, and History can say why a run failed
+ * [Claude Code on the web] Improved the Allowed domains box in cloud environment settings: it grows to show more of your list instead of scrolling after a few lines
+ * [Claude Code on the web] Improved a self-hosted environment’s admin details: any session’s row opens to show its ID and any runner, and runner IDs now wrap instead of being cut off
+ * [Claude Code on the web] Improved revoking a self-hosted session’s or runner’s token in admin settings: a message now says that the token was revoked
+ * [Claude Code on the web] Improved the Default environment list in admin settings: environments are grouped under Anthropic-hosted and Self-hosted headings
+ * [Claude Code on the web] Improved cloud sessions with several repositories: the Changes pane names the repository and can switch it, and diff comments now usually tell Claude which one
+ * [Claude Code on the web] Improved the scheduled task dialog: templates on the Scheduled tasks page usually open it filled in, and the repository usually sits below Trigger, not in Advanced settings
+ * [Claude Code on the web] Improved scheduled tasks: most cloud runs link back to their task, and a task’s page labels a connector that needs connecting or was removed
+ * [Claude Code on the web] Improved asking Claude in a cloud session which repositories you can add: the list can now include GitHub Enterprise Server ones once you’ve connected your account there
+ * [Claude Code on the web] Improved opening files in a cloud session that isn’t running: file links in the chat and Open file in the Changes pane can now start the session, then open the file
+ * [Claude Tag] Improved adding plugins and skills to a Slack channel or workspace in admin settings: Owners and some admins can now search the rest of the organization’s library there
+ * [Claude Tag] Improved Claude’s “Your Claude connection expired” message in Slack: pressing Reconnect Claude account after its link expired can now also get you a private reply with a new link
+ * [Code Review] Improved the Repositories table in Code Review settings: it shows the review level for repositories reviewed through their GitHub organization, and opens to repositories you add
+
+Show 201 bug fixes
+
+ * Fixed requests failing with thinking turned off on models that don’t accept turning it off: Claude Code now resends without that setting, so the model may think on those requests
+ * Fixed sessions with an mTLS client certificate switching to expired or unusable certificate files on disk after a single temporary HTTP 400 certificate error
+ * Fixed worktrees starting from the wrong branch or local HEAD after Claude moved into another repository, and with `--worktree` in some bare repositories whose default branch isn’t `main`
+ * Fixed resuming an unchanged worktree dropping an unpushed commit that only its branch still had
+ * Fixed a plugin’s SessionStart hook being skipped in terminal and background sessions when the plugin finished loading after the session started; a mod on that event can now hear it twice
+ * Fixed plugins enabled through `--settings` or user settings not loading on the second start of a new machine, including resumed and background sessions
+ * Fixed sessions stuck behind a gateway that rewrites API errors: an unknown 400 or 422 is silently resent, then without earlier thinking; `CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=1` turns it off
+ * Fixed needless auto-compaction, or a false “Prompt is too long” error, after a response hit the output token limit before it wrote any text
+ * Fixed a session failing on every request after Claude called a tool with an input that is not an object
+ * Fixed most cases of Claude Code exiting when a session holds a message it can’t display: that message now shows a placeholder
+ * Fixed `/context` drawing the compact buffer as used space when auto-compact is off
+ * Fixed `/ide` and auto-connect not finding the editor on Linux hosts with no `ps` installed
+ * Fixed the computer use permissions panel: it now updates as you grant each permission, names your terminal, and opens one window for Accessibility
+ * Fixed Claude asking which design system to use for every deck or design after you turned your organization’s default design system off for yourself
+ * macOS: Fixed `git` failing certificate checks in sandboxed commands when a corporate CA is trusted through the keychain or `NODE_EXTRA_CA_CERTS`
+ * Fixed /compact and auto-compact sometimes keeping the model’s draft notes in front of the conversation summary
+ * Self-hosted runner: Fixed a runner or orchestrator hanging forever on a call that never finishes, and a stopped runner staying alive: each call now ends after 60 seconds by default
+ * Fixed `prompt.attachment` hooks not being asked again on resume after their plugin was updated
+ * Fixed a failing telemetry collector or signal on the Claude apps gateway dropping exports to other collectors and signals and repeatedly delaying model requests
+ * Fixed `claude plugin update` not saying that a plugin’s npm or bun packages could not be installed when the plugin is a folder of its marketplace’s repository
+ * Fixed OTLP/HTTP exports in Claude Desktop sessions still sending an expired sign-in token after the token was renewed
+ * Fixed `/design-sync` showing no component previews for Storybooks that use CSF factories (`preview.meta`, `meta.story`)
+ * Remote Control: Fixed it turning back on by itself after you switched it off in `/config` while it showed a sign-in failure
+ * Fixed the PowerShell permission prompt showing thousands of characters of encoded text when PowerShell couldn’t be started
+ * Fixed `/design-sync` refusing to run in a signed-in session after a Claude Code process of this version or later ran on the same machine with an API key
+ * Fixed Remote Control and self-hosted runner sessions exiting when a message from their host arrived in two parts
+ * Fixed @-mentions picked from the menu finding no agent when the agent’s name contains “agent-”
+ * Fixed `/cd` not loading the new folder’s CLAUDE.md after entering and leaving a worktree
+ * Fixed `claude -p --resume` failing with no message for a session title that contains a colon
+ * Fixed `claude purge` reporting success when the history file is a symlink: it now reports that item as not deleted and says where to remove the prompts
+ * Fixed `/export` never finishing after a subagent ran when a mod draws assistant messages
+ * Fixed Stop being ignored for up to a minute in cloud sessions waiting for refreshed credentials
+ * Fixed a running workflow’s progress not being saved after the session moved to another folder or worktree
+ * Fixed `--continue` not restoring the permission mode and worktree of a session that held only slash commands
+ * Fixed a branch made with `/branch` under `--agent` losing the agent when resumed
+ * Fixed `/model` not naming the effort level in screen reader mode
+ * Fixed saving a plugin’s options turning an untouched list option into one string
+ * Fixed plugin install records: a failed read of the list during an install no longer drops other plugins’ records, and project or local installs are recorded for the launch folder after a shell `cd`
+ * Fixed hold-to-talk voice dictation losing the last words when Space was pressed or held again while “Transcribing…” was showing
+ * Fixed `/design-sync` stopping with “still connecting” when run as the first prompt (`claude /design-sync`): it now waits up to 10 seconds for the connection
+ * Fixed `/design-sync` refusing to publish large design systems to Claude: it now takes up to 4,080 files, up from 1,024
+ * Fixed `.worktreeinclude` skipping files whose names are not ASCII
+ * Fixed Code Mode drawing tool calls as empty rows, hiding a script’s error, and calling a finished script lost after a resume, when a mod adds to or rewrites tool results
+ * Fixed Code Mode counting a script’s tool calls toward the context size, which caused early compaction, and sending an image or PDF again after the API rejected it
+ * Fixed Code Mode freezing the terminal while checking a script’s `rm` of many files, refusing a hook-allowed MCP skill, and showing an MCP call as called after you pressed Esc at its permission prompt
+ * Fixed subagents in Code Mode failing again in 2.1.333 with “Agent stalled” and losing their command when a script ran for more than 10 minutes
+ * Fixed some cases of Code Mode scripts overwriting an outside edit of a file after `/compact`
+ * Fixed settings changes going unnoticed when the file was replaced just as Claude Code began watching it
+ * Fixed MCP servers causing high CPU use when they ask for a zero retry delay and keep closing their event stream, and memory growing each time a connection drops and reconnects
+ * Windows: Fixed official plugin marketplace updates failing when another program briefly held one of its files
+ * Fixed one-line JSON tool output not expanding on click in fullscreen mode
+ * Fixed several Skill calls in one reply each re-sending the agent list and MCP server instructions
+ * Fixed Vim mode’s `p`, `x`, `s`, `r`, `~`, text objects and Visual-mode edits breaking an image or pasted-text placeholder, which dropped its content from the prompt
+ * Fixed Vim mode keys acting unlike Vim: `b` skipping empty lines, `db` joining lines, `dF` taking an extra character, `ci"` at escaped quotes, `;` after `t`, and arrow keys after `r` or `f`
+ * Fixed Markdown table borders out of line when a cell holds a tab, an ideographic space or a no-break space, and MCP tool results out of line when their keys have wide characters
+ * Fixed the cursor landing one character off on wrapped prompt lines that start with a full-width space
+ * Fixed MCP forms blocking Accept after a valid pick, a pasted date such as “tomorrow” staying marked invalid, and a typed date being replaced by an older answer
+ * Fixed the reason being left out when an Agent SDK `PreCompact` callback hook blocks a compaction
+ * Fixed the git commands printed by `claude plugin tag` failing when the repository path has a space
+ * Fixed `claude plugin details` not listing agents that `plugin.json` names by file (anthropics/claude-code#99999)
+ * Fixed `/memory` naming `~/.claude/CLAUDE.md` when `CLAUDE_CONFIG_DIR` points elsewhere (anthropics/claude-code#113013)
+ * Fixed missing checkboxes on task list items that start with a heading, quote, list or code block
+ * Fixed the Grep tool’s description naming an `include` parameter that doesn’t exist (anthropics/claude-code#112938)
+ * Fixed the LSP tool showing results from git-ignored files with non-ASCII names, and wrong paths on Windows for servers that encode the drive colon as `%3A`; ignored files are now left out there too
+ * Fixed `/stats` leaving out today where daylight saving time skips midnight, and showing no models after switching date range while scrolled
+ * Fixed files that start with a UTF-8 byte-order mark being misread: `.mcp.json` in `/team-onboarding`, custom themes, a plugin’s `.lsp.json` and `claude gateway`’s managed settings
+ * Fixed colors being lost in command output (some 256-color and true colors, or any sent with underline) and, for colors written with colons, on the later lines of a multi-line status line
+ * Fixed `/plugin list` marking a working plugin as “couldn’t load” when a namesake from another marketplace failed, and a disabled favorite being listed twice in the Installed tab
+ * Fixed `/hooks` showing no hooks for an event whose plugin hooks have a matcher it does not take
+ * Fixed a stray icon and misaligned row in the `/` menu for commands named `agent-*`, `file-*`, `mcp-resource-*` or `mcp-template*` (anthropics/claude-code#73911)
+ * Fixed `/remote-env` reporting success when the setting couldn’t be saved
+ * Fixed path suggestions, in the prompt and the `/add-dir` dialog, showing results for older text over what you typed since
+ * Fixed stream-json input: a user message whose `uuid` is null is handled as one without a uuid
+ * Fixed scheduled tasks with a cron step over 59 minutes or 23 hours being listed with an interval they do not run at
+ * Fixed sign-in waiting forever when its sign-in page could not be shown
+ * Fixed voice dictation falling back to English when the language is Norwegian Bokmål or Nynorsk
+ * Fixed full-width digits not choosing an option in questions with previews
+ * Fixed importing MCP servers from Claude Desktop giving two servers the same name
+ * Fixed WebFetch not converting pages whose content type is written in capitals, and reporting “Command failed with no output” when it could not connect to a host with several addresses
+ * Fixed `claude auth status` reversing Hebrew and Arabic folder names, which left the VS Code session history empty (anthropics/claude-code#99816)
+ * Fixed `claude -p --continue` exiting with no message when the previous conversation could not be loaded
+ * Fixed Bash reporting a failure when a grep, rg, diff or git diff with a variable set before it, such as `LC_ALL=C grep`, finds no match, except after `&&`
+ * Fixed `CwdChanged` and `FileChanged` hooks: `watchPaths` from HTTP hooks being ignored, and a slower hook from an earlier `cd` replacing the paths of a later one
+ * Fixed agent team messages showing “[invalid id]” as the pane ID under cmux (anthropics/claude-code#112605)
+ * Fixed `/insights` failing when a saved session contains a tool call with no name (anthropics/claude-code#101933)
+ * Fixed Read numbering a file’s lines from 0 when it is called with offset 0
+ * Fixed the Agent SDK blaming a libc mismatch when `cwd` does not exist (anthropics/claude-code#97275)
+ * Fixed Glob and Grep finding nothing for a pattern that starts with `./`, and Grep for a list with a brace pattern, such as `*.{ts,tsx},*.js`
+ * Fixed wrong line numbers after the first change in the snippet Claude is given when a file it read changes on disk
+ * Fixed a user’s shell alias named `hash` or `typeset` running in every Bash command (anthropics/claude-code#101498)
+ * Fixed a plugin from a claude.ai-hosted marketplace refusing to update or download again in another project where it was enabled
+ * Fixed the Bedrock setup’s profile picker listing `[services …]` and other sections of `~/.aws/config` that are not profiles
+ * Fixed nested braces in a rule’s or skill’s `paths` (such as `src/{a,b/{c,d}}/*.ts`) expanding wrongly, so some of the files they name never matched
+ * Fixed NotebookEdit reporting a markdown cell as a code cell to hooks and SDK hosts
+ * Fixed Read sending a notebook’s output image with the wrong format when its bytes don’t match its saved type
+ * Fixed `${user_config.KEY}` in plugin skills and agents not using the option’s declared default
+ * Fixed an agents view row going back to “needs input” when a suggested reply was saved while its question was being answered
+ * Fixed Claude Code hanging after the worktree exit question when a later step failed
+ * Fixed the LSP tool giving the line of an annotation or comment instead of the symbol’s name
+ * Fixed /resume renaming or previewing the wrong session after collapsing and reopening its group
+ * Fixed `--tmux` and `--worktree` after `--`, or as another flag’s value, being read as flags (anthropics/claude-code#111498)
+ * Fixed a background session’s status being undone by a `/clear` or `/cd` saved at the same moment
+ * Fixed teammates and TaskCompleted hooks getting a task’s old subject or description when the same update changes it
+ * Fixed pasted text being swallowed when a key chord such as Ctrl+X was waiting for its second key
+ * Fixed a false “matches no known tool” warning for `Cd(...)` deny rules (anthropics/claude-code#104546)
+ * Fixed IDE diagnostics being lost for a whole turn when the IDE’s reply contained a malformed entry
+ * Fixed an agent team teammate no longer showing that it waits for its lead’s approval when an earlier tool call of the same turn was answered first
+ * Fixed LSP tool calls wrongly reporting no server for a file during a plugin reload, and plugin language servers that list an upper-case extension such as `.R` getting documents as plain text
+ * Fixed Edit writing curly quotes into code when the text it replaced was given with a `\u2019`-style escape
+ * Fixed a freeze when opening the transcript after tool output with very deeply nested JSON
+ * Fixed skills not reloading when their folder is located under a `.git` directory
+ * Fixed /teleport, /autofix-pr and cloud agents asking you to log in right after your login was refreshed
+ * Fixed a cloud session’s worker skipping SessionEnd hooks when its session was archived
+ * Fixed files attached to the message Claude was working on, other than images, going missing when a cloud session moved to a new container mid-turn
+ * Fixed sessions with more than 4,096 skills resending the skill list and losing prompt cache on every resume
+ * Fixed some plugin installs using far more disk space than the plugin needs: past a limit, the plugin is now refused with an error
+ * Fixed macOS’s dialog for installing the developer tools opening when a mod runs git on a Mac that doesn’t have them
+ * [VSCode] Fixed the sign-in screen briefly appearing over a working sign-in after a settings change
+ * [VSCode] Fixed display in the new look: plugin bars and pictures cut off in short panels and wide tabs, the chat jumping under plugin rows, and long chats looking empty while they open
+ * [VSCode] Fixed the diff tab for a proposed edit opening over a chat in an editor tab
+ * [VSCode] Fixed a session’s automatic title replacing the name being typed while renaming it in the session list
+ * [VSCode] Fixed an agent’s transcript showing text meant for Claude around its subagent’s report in auto mode
+ * [VSCode] Fixed plugin drawings: links lost keyboard focus and clicks at each redraw, and drawings did not show on `/compact` output or a canceled compaction in the new look
+ * [VSCode] Fixed messages looking sent while they waited behind a plugin’s question in the new look; they now show as queued and can be edited or removed
+ * [VSCode] Fixed the extension’s background helper process counting as a session in the `claude_code.session.count` metric and admins’ usage analytics
+ * [VSCode] Fixed “Open Claude in Terminal” missing screen reader mode when showing the updated terms, and screen readers stopping on the separator dots of banners in the new look
+ * [VSCode] Fixed “Edit prompt and retry” on a paused response replacing the text in the message box
+ * [VSCode] Fixed Accept and Reject Proposed Changes doing nothing from the command palette with more than one window
+ * [VSCode] Fixed raw `<pasted_content>` tags showing in prompts after forking or rewinding a session
+ * [VSCode] Fixed the mode button in the new look saying “Manual” during a slow start when the session then ran in another mode
+ * [VSCode] Fixed charts staying hidden for a minute when a long session opens on a slow computer, and Shift+click or drag selection failing after Select All just after a chart was drawn
+ * [VSCode] Fixed Yes on a permission request ignoring clicks until the mouse moved in the new look
+ * [VSCode] Fixed Cmd/Ctrl+Esc doing nothing on the Welcome page, in an empty window, or while signed out
+ * [VSCode] Fixed typing being interrupted when a request for more usage is answered late
+ * [VSCode] Fixed Windows paths in replies and plans losing the backslash before folders such as `.claude` or `__tests__` in the new look
+ * [VSCode] Fixed the session list closing after a window reload
+ * [VSCode] Fixed the extension not starting when a floating editor window was slow to reopen
+ * [VSCode] Fixed diffs in the new look: blank at first and closed by a second click, removed lines faint in some themes, string colors below a docstring, and code wrapping inside `->` or `--force`
+ * [VSCode] Fixed `chat.editor.fontSize` values of 12 and 14 in the user settings.json being ignored in the new look
+ * [VSCode] Fixed the limit-reached banner in the panel calling the weekly limit “weekly Sonnet limit” on Pro and Enterprise plans
+ * [VSCode] Fixed Yes on a file edit in the new look dropping changes made in a read-only diff tab by Replace All or by another extension
+ * [VSCode] Fixed failed tests, builds, type checks and linters piped through commands such as `head` or `tail` showing as passed in the new look
+ * [VSCode] Fixed chats losing your shell’s `OTEL_EXPORTER_OTLP_ENDPOINT` when a window reopens on a Claude Code chat with GitHub Copilot Chat on and its OpenTelemetry export off
+ * [VSCode] Fixed unanswered Consumer Terms showing as a crash: the panel now says what to do and how to answer them
+ * [VSCode] Fixed the Learn Claude Code checklist asking people in Auto mode to switch to Edit automatically, and renamed that step
+ * [VSCode] Fixed the usage limit banner in the new look still saying the limit was hit after it had reset, and added a note to its warning when usage credits are on
+ * [Claude Code on the web] Fixed the Files pane saying “No matching files” when a running cloud session didn’t answer the search in time; it now says the search failed and offers Try again
+ * [Claude Code on the web] Fixed a new cloud session sometimes starting without environment variables or a setup script you saved after you began typing your first message
+ * [Claude Code on the web] Fixed typing a new date for a one-time scheduled task clearing the whole date as soon as you started on the year
+ * [Claude Code on the web] Fixed scheduled tasks sometimes skipping a run when a saved GitHub token expired just as the run was due; the token is now renewed and checked again
+ * [Claude Code on the web] Fixed API calls that use a network secret failing with a 502 error when the API took over 30 seconds to start responding; it now has up to 5 minutes
+ * [Claude Code on the web] Fixed cloud environment variable values that run into an unquoted #, such as COLOR=#fff, being silently cut on save; Save now stops and tells you which line to fix
+ * [Claude Code on the web] Fixed the branch list for a new cloud session: Enter now picks what you typed or the only match, and your pick stays across Anthropic-hosted environments on one repository
+ * [Claude Code on the web] Fixed the Archived tab of your sessions sometimes listing only the cloud session you had just archived, with your older archived sessions missing
+ * [Claude Code on the web] Fixed the browser’s Back button opening a not-found page after you delete a scheduled task from its own page
+ * [Claude Code on the web] Fixed the browser’s Back button dropping unsaved changes in the scheduled task dialog without asking; for Claude Code tasks it now asks first
+ * [Claude Code on the web] Fixed most cases of an open cloud or Remote Control session switching back to the model picked there after the model was changed on another device
+ * [Claude Code on the web] Fixed images, very large diffs and files only renamed sometimes missing from a cloud session’s Changes pane; they are now listed without a diff
+ * [Claude Code on the web] Fixed paused self-hosted sessions left open in the browser not resuming when you click or type in the message box, and Rewind to here failing in some of them
+ * [Claude Code on the web] Fixed choosing Private for a session showing an error when you had already stopped sharing it, such as in another tab
+ * [Claude Code on the web] Fixed scheduled tasks: Save grayed out while typing GitHub filter names, a one-time task’s name or instructions not saving after it ran, and some notifications opening Home
+ * [Claude Code on the web] Fixed a message to a cloud session being sent without an attached file when its upload failed; the message and file now stay in the box so you can try again
+ * [Claude Code on the web] Fixed `gh api --paginate` failing after the first page of a github.com repository’s list, such as its issues, in cloud sessions
+ * [Claude Code on the web] Fixed the new session page switching to an Anthropic-hosted environment after your organization’s default self-hosted one was deleted; it now asks you to choose
+ * [Claude Code on the web] Fixed some crashes and failed starts in a self-hosted environment showing as an API or sign-in error; the card now says Claude Code stopped or couldn’t start
+ * [Claude Code on the web] Fixed the settings button on a cloud environment’s row in the environment menu being hidden from screen readers
+ * [Claude Code on the web] Fixed a one-time scheduled task’s time resetting to 9:00 AM when you edit it to repeat daily or weekly; the form now starts from the task’s saved time
+ * [Claude Code on the web] Fixed an open cloud session sometimes looking idle with no Stop button after a message from another device, or being marked read while you were away
+ * [Claude Code on the web] Fixed Add repository in a cloud session saying no repositories were found when GitHub isn’t connected; it now asks you to connect GitHub
+ * [Claude Code on the web] Fixed some cloud sessions started from an uploaded local repository resuming outside it after another repository was added; they now resume in the uploaded one
+ * [Claude Code on the web] Fixed cloud sessions watching a GitHub pull request often getting a second update with nothing new in it after a reviewer left inline comments without a summary
+ * [Claude Code on the web] Fixed connectors failing to connect in some older cloud sessions when you reopen them
+ * [Claude Code on the web] Fixed a false HTTP 403 error sometimes appearing in cloud sessions when git rejected a push because the remote branch had newer commits
+ * [Claude Code on the web] Fixed the Enable notifications prompt opening while you type in a session, which could lose some of your words; it now waits until you pause with the message box empty
+ * [Claude Code on the web] Fixed a scheduled task losing the GitHub trigger you had just added when saved with a blank filter condition; Save now stops at the blank condition
+ * [Claude Code on the web] Fixed some cloud sessions not offering Create PR for commits pushed after their pull request merged
+ * [Claude Code on the web] Fixed some background tasks in a self-hosted session still counting as running after the session lost its runner; most now show “Not connected”
+ * [Claude Code on the web] Fixed some new cloud sessions failing to start because the branch you last picked had since been deleted on GitHub; they now start from the repository’s default branch
+ * [Claude Code on the web] Fixed clicking the X or Edit on a waiting message in a cloud session being refused when the message box already had a draft; the message’s text now usually joins the draft
+ * [Claude Code on the web] Fixed Free accounts being sent to the plans page on the web when opening a session someone shared by link; they can now usually read it
+ * [Claude Code on the web] Fixed archiving a cloud session sometimes stopping its background tasks without asking; Archive now usually asks first when one is still running
+ * [Remote Control] Fixed Send now on a waiting message ending background subagents in sessions started with `claude remote-control` (v2.1.321 or later); they now keep running
+ * [Remote Control] Fixed the Stop button coming back in some sessions, with nothing running, after you press Stop at claude.ai/code while Claude is replying
+ * [Remote Control] Fixed some files in a session’s Changes pane failing to open, or opening the wrong file, when Claude Code was started in a subfolder; requires Claude Code v2.1.292 or later
+ * [Remote Control] Fixed some sessions on a default branch other than main being compared with main, which could list changes the session never made and offer Create PR
+ * [Claude Tag] Fixed a channel’s or workspace’s Environment setting naming your organization’s default when the workspace or Slack page sets another; it now says where it’s inherited from
+ * [Claude Tag] Fixed the Configure page not offering channel managers a way to create the channel’s own access bundle when another bundle was already attached to the channel
+ * [Claude Tag] Fixed `MCP_TOOL_TIMEOUT` set in a cloud environment’s variables being ignored in nearly all sessions Anthropic hosts
+ * [Claude Tag] Fixed a custom connector’s page in Claude Tag admin settings showing “This connector isn’t connected any more” after you changed its hosts; it now opens at its new host
+ * [Claude Tag] Fixed bundle summaries in Add a channel rule and Auto-join channels leaving out connectors and domains; they now count a bundle’s connectors, repositories and allowed domains
+ * [Claude Tag] Fixed typing a date in the Hour field on the Network events tab of Claude Tag’s Activity page; each keystroke was rewritten and could leave the wrong date
+ * [Claude Tag] Fixed limit boxes on Claude Tag’s spend limits page dropping a typed comma, so 62,50 became 6250; 62,50 now shows an error and can’t be saved
+ * [Claude Tag] Fixed headings in a Slack message from Claude sometimes turning into plain text when Claude edited that message later
+ * [Claude Tag] Fixed Stop in a Slack channel thread sometimes stopping Claude’s other work in the channel when pressed while Claude was still starting
+ * [Claude Tag] Fixed lost edits: leaving the spend limits page with an unsaved organization-wide or default limit asks first, and holding Backspace to clear text keeps saved Blocked channel patterns
+ * [Claude Tag] Fixed a Slack thread sometimes staying silent when Claude starts a task there from the channel and fails right at the start; Claude now posts a failure notice
+ * [Claude Tag] Fixed untagged replies in a channel thread sometimes never reaching Claude while its session was restarting after a self-hosted runner failed; they now reach the next runner
+ * [Claude Tag] Fixed Claude’s Slack notice that its environment isn’t available linking to a page without that setting; it now links Claude Tag settings
+ * [Claude Tag] Fixed Slack still showing “Working…” and Stop after a thread’s first message was deleted, and the Home tab’s model menu listing some models by raw ID
+ * [Claude Tag] Fixed OAuth client-credentials and JWT-bearer connections failing when the provider’s token response gives the token’s lifetime as text instead of a number
+ * [Code Review] Fixed Code Review’s Add a repository dialog letting you select a repository already on your list when its GitHub name has capital letters; it’s now checked and grayed out
+
+2.1.333
+
+November 30, 2026
+
+**Added**
+
+ * Added REVIEW.md support to `/code-review`: local reviews now follow the root REVIEW.md on your repository’s default branch
+ * Added the ability for Claude to stop one running agent of a workflow while the others continue
+ * Gateway: Added `error.details.error_code: spend_limit_reached` to the 429 for a user’s reached spend limit
+ * Added `CLAUDE_CODE_DISABLE_POWERSHELL_PARSER_OVERLAP=1` to stop a slow PowerShell parser before its retry starts, so the two don’t run together
+ * Added a notice when a held message from another session expires unanswered
+ * Self-hosted runner: Added a one-time notice to a subagent resumed by a new Claude Code process, on any runner, that earlier unpushed file changes may be gone
+ * Added a `Runs` list to `claude plugin validate` for the commands and servers that a plugin’s or marketplace’s own files name
+ * Added a Built-in tab to `/plugin` that lists built-in plugins by group with plain names, and shows the ones your organization’s settings lock on or off
+ * Added the ability for any mod to send its own records to your OpenTelemetry collector, as `claude_code.plugin_event`
+ * Added the names a mod registers to `claude plugin validate --json`, with a mark on calls that may register other names
+ * Added `consent` to `$.prompt.submit` and `next.origin.isByPerson` for mods: a prompt sent in answer to your press, typed command or answer counts as a turn you started
+ * Added `wait: false` to `$.prompt.submit` for mods: the prompt enters the running turn at its next step instead of waiting for the turn to end
+ * Added `CommandRow` so mods can draw a command’s slash menu label
+ * Added `session.end` for mods when Claude Code restarts itself (as on /tui) and, with the new reason `unload`, when the mod’s plugin is turned off or uninstalled
+ * Added `lasts: "transcript"` to `$.state.set`, so a mod’s value comes back on resume and fork, follows a rewind and survives compaction
+ * Added drawing for the rows a mod names: the terminal raises `ui.render` at the row’s name and shows one dim line of its text where no mod draws it
+ * Added `name` and `data` to the rows a mod appends with `$.session.append`, read back with `$.session.messages({ name })`; a named row may have no content
+ * Added `$.ui.render` so a mod can draw a component that other mods wrap, restyle or replace
+ * Added `terminal` and `sandbox` options to `$.process` for mods
+ * Added `$.http.stream` for mods to read a response body as it arrives, `{ base64 }` request bodies on `$.http.fetch`, and `timeoutMs` (up to ten minutes) and `redirect: "manual"` on `$.http.fetch`
+ * Added `dispose()` to what a mod’s `$.command.register`, `$.tool.register` and `$.agent.register` calls return
+ * Added reading another saved session of the project with `$.session.messages({ id })`, for mods in terminal sessions
+ * Added `$.session.messages({ id })` for mods to read the running session’s rows since its last compaction, each with a handle
+ * Added an `Ask` render site so a mod can explain a tool’s permission prompt by drawing above it, and `tool_use_id` in the `AskUserQuestion` render props
+ * Added `$.session.load` for mods to resume, clear, branch or rewind the conversation between turns
+ * Added a `session.load` event for `/resume`, `/clear`, `/branch` and `/rewind` that a mod can veto; hooks on `*` or `session.*` now hear it
+ * Added a `session.state` event for mods (busy, waiting, idle), with `state` on `$.session.info()`; existing `*` and `session.*` hooks start hearing it
+ * Added punctuation characters such as ”/” or ”?” as a mod Button’s hotkey
+ * Added the `ui.key` mod event: in the terminal, a hook that names it can pass on or take a key pressed at the prompt, in a pane or above the prompt, or swap it for an editing or moving action
+ * Added compare-and-set for files in mods: `$.fs.stat` returns a `version`, and `$.fs.write` and `$.fs.remove` accept `ifVersion`
+ * Added `$.fs.remove`, `$.fs.rename`, `$.fs.copy` and byte writes on `$.fs.write` for mods
+ * Added compare-and-set to a mod’s `$.store`: read a key with its version, then `set` or `delete` with `ifVersion` to act only while the key stands at that version
+ * Added traits for tools a mod registers with `$.tool.register`: read-only, concurrency-safe, destructive, runs code, a search hint, a when-to-use line and a display title
+ * Added `content` and `isEnd` to a mod’s `tool.run` answer, to give Claude text and image blocks for a tool call and to end the turn after it
+ * Added a `Placeholder` render site so a mod can set the empty prompt’s dim example line, and an “Example prompts” switch in `/plugin` to turn the “Try …” examples off
+ * Added `promptCache` to a mod’s `$.session.usage()` and `session.measure`: whether the prompt cache is warm, when it expires and why it last missed
+ * Added `$.model.stream` for mods: a model completion read piece by piece as it is written
+ * Added `schema` and `thinking` to a mod’s `$.model.complete` call, for JSON replies and extended thinking; results now name the model that answered
+ * Added `$.session.waitUntil` for mods, so `claude -p` and SDK runs wait up to 30 seconds at exit for work a mod registers
+ * Added `pluginId`, and `isOfficial` where it applies, to `next.origin` on a mod’s own `$` calls; mod tests that compare that origin exactly need the new fields
+ * Added read-only `$.state` values for mods under `plugin: "engine"`: the permission mode and rules, MCP servers and terminal focus
+ * Added a read-only `$.state` value for mods under `plugin: "engine"`: the loaded plugins
+ * Added `place`, `key` and `priority` options to `$.ui.toast`, so a mod can keep, replace and remove one line on the notification bar
+ * Added `wait` to `$.ui.open` for mods: the call resolves when the pane closes, with the `value` passed to `$.ui.close`
+ * Added streaming methods to the nouns mods provide: write one as `async function*`; a second parameter with no default is handed `{ signal }`
+ * Added `agentId` and `tool_use_id` to `next.origin` on a mod noun’s events, so a hook can tell which subagent or tool call asked
+ * Added a `Used by` row to `/plugin`, listing the mods that call a noun a mod provides
+ * [VSCode] Added the `claudeCode.newLook` setting to try a new look for the panel; it applies after a reload
+ * [VSCode] Added a note in the conversation when a fallback model answers
+ * [VSCode] Added a note to the diff tab and the permission prompt when Claude writes over a file that the editor can’t show
+ * [VSCode] Added a notice when an MCP server asks for input that the panel cannot show, which was declined silently
+ * [VSCode] Added Deny, Deliver and Always deliver buttons for held messages from other sessions
+ * [VSCode] Added a Sign in link to the error shown when the Claude apps gateway no longer accepts your session
+
+**Changed**
+
+ * Changed SDK sessions to end background commands, monitors and wakeups once the host is gone and no subagent runs; `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0` opts out; stream-json adds `keep_alive` lines
+ * Changed `--allowedTools` and `--tools` to stop the launch on some lists given as several values; put the list in one value, such as `--allowedTools "Read,Edit,Write"`
+ * Changed compaction so that uploaded files, downloads and saved tool results are no longer re-attached afterwards; Claude can read them again when it needs them
+ * Changed Code Mode to be available in sessions that have OpenTelemetry tracing on; each tool call that its code makes now gets its own spans
+ * Changed `/team-onboarding` on Team and Enterprise plans to offer team sharing only in a session on your claude.ai login
+ * Changed the You should know plugin: a topic from an earlier session can come up again in different words, though exact repeats are still dropped
+ * Self-hosted runner: Changed a `SessionEnd` hook that passes its time limit on some Linux hosts to also end background programs it started; finish in time, or use the post-session hook
+ * macOS: Changed Claude’s `find` and `grep`, and Grep and Glob in the desktop app’s Code tab, to skip `~/Library/Containers` and `~/Library/Group Containers` when searching from above them
+ * Changed `claude mcp add-from-claude-desktop` on WSL to skip and name servers with values that look like Windows paths or use unset variables, and to say which config file it imports from
+ * Changed the terminal progress bar, now following the tab’s busy status, `/radio`, spinner tips and the tab title’s busy mark into built-in plugins you can turn off in `/plugin`
+ * Changed `/stickers`, `/radio`, shipped spinner tips and words, example prompts and the tab title’s mark to need their built-in plugins running; `spinnerTipsOverride` tips and `spinnerVerbs` still show
+ * Changed the message for a command whose built-in plugin is off or not running to name the plugin as `/plugin` lists it
+ * Changed what `/compact` prints to reach `session.append` by door `compaction`; this breaks mods that match `/compact`’s output on door `command`
+ * Changed `prompt.attachment` hooks so a resume reuses a hook’s rewrite or leave-out of an attachment without asking again, unless a new mod hooks it or `$.ui.invalidate('prompt.attachment')` is called
+ * Changed the spinner and turn-end words into a built-in mod you can turn off in `/plugin`
+ * Changed the built-in verbs mod to also run in `-p`, the SDK, Desktop and IDE extensions; turning it off now applies to conversations exported from VS Code
+ * Changed command answers to name only the plugin that wrote them
+ * [VSCode] Changed the Cloud session list to keep hiding a newly teleported session for as long as its local copy exists
+ * [VSCode] Changed `vscode://anthropic.claude-code/open` links to refuse prompts over 5,000 characters
+ * [VSCode] Changed the output log to show Claude Code’s debug lines after start-up only at log level Debug
+
+Show 32 improvements
+
+ * Improved how long Bash commands wait for the Bash edit diff in very large git repositories; after 8 failed tries with no quick success it stops trying there for the session
+ * Improved the error when macOS refuses to start Claude Code’s sandbox with `sandbox_apply: Operation not permitted`: it now names the likely cause, another sandbox
+ * Improved memory use in terminal sessions, in sessions that load a mod, and in `/usage` on machines with many recent sessions
+ * Improved showing very long diffs in screen reader mode and with syntax highlighting off, which could freeze for seconds and use a lot of memory
+ * Windows: Improved the wait before a PowerShell command runs on slow machines, and how fast most command hooks start under Git Bash
+ * Improved input responsiveness during tool calls in long sessions with many hooks configured
+ * Windows: Improved the speed of image paste
+ * Improved background session start-up failures: `daemon.log` now shows the start of the error on macOS and Linux, and a macOS folder refusal points to Privacy & Security
+ * Improved how fast keys, Esc and Ctrl+C respond on slow disks while a Bash command that writes many files is checked for permission, in auto mode too
+ * Improved the speed of computing file diffs, most of all for large rewrites
+ * Improved recovery when the API refuses images for their size and lists them: only those images are removed, and they stay removed on later turns
+ * Windows: Improved adding and updating git plugin marketplaces: they now retry when another program is using the freshly downloaded files
+ * Improved Artifact tool asset uploads to accept files of up to 32 MiB, up from 20 MiB
+ * Improved the Amazon Bedrock “model identifier is invalid” error: when Claude Code can’t confirm a region prefix such as `eu.`, it now says so and how to fix it
+ * Improved `claude plugin validate` to list the names a mod spells at its `$.command.register`, `$.tool.register` and `$.agent.register` calls
+ * Improved `/diff` to say when its ask button doesn’t attach a file
+ * Improved speed with mods loaded: a hook whose matcher doesn’t match no longer slows down the calls, rows and requests it doesn’t apply to
+ * Improved typing speed with mods loaded: a `prompt.edit` or `prompt.autocomplete` hook whose matcher doesn’t match no longer slows down the keys it doesn’t apply to
+ * Improved how quickly mods load at start-up and in `claude plugin validate`
+ * Improved type-check speed for mods with many `tool.call` matchers, in `claude plugin validate` and in editors
+ * Improved `claude plugin validate`: it now lists mods whose `ui.key` hook may take Enter in the prompt box
+ * Improved `$.session.authorize()` in mods: a handle for a saved claude.ai sign-in now keeps working after the sign-in refreshes
+ * Improved `ui.offer`: a mod can now also decline the “Your issue has been closed” notice
+ * [VSCode] Improved typing speed in the Slash commands filter when many skills and commands are installed
+ * [VSCode] Improved the speed of opening and searching Manage plugins when many plugins are available
+ * [VSCode] Improved performance of long conversations while a plugin redraws
+ * [VSCode] Improved the speed of copying a long conversation that contains math
+ * [VSCode] Improved screen reader support across the panel: permission cards, session lists, attachments, plugins, the agent map, dialogs and menus now have names, headings and announcements
+ * [VSCode] Improved opening sessions from the Cloud tab: Remote Control sessions are labelled, a refused open says why, and a failed open links to claude.ai
+ * [VSCode] Improved the time to open the first chat where a slow shell profile held up a recent chat: the profile now runs at window start, even if you don’t open Claude
+ * [VSCode] Improved speed and memory use: a session reopened in a git repository answers sooner, typing and selecting stay smooth with several chats open, and closed diffs are freed
+ * [VSCode] Improved memory use when restoring very long sessions with many compactions, which could run the extension host out of memory
+
+Show 163 bug fixes
+
+ * Fixed `claude -p` on macOS and Linux losing the end of a successful run’s piped output when the reader lagged; it now waits up to 30 seconds and warns if any is unread
+ * Fixed the first prompt, subagents and `-p` waiting up to 10 minutes when `git status` is very slow or stalls; Claude now continues after 30 seconds
+ * Fixed reading a larger file, large MCP results, `@` mentions and `/context` hanging for 10 minutes or more when the token count request got no answer
+ * Fixed tool calls to HTTP MCP servers that offer no GET stream hanging for up to 5 minutes after the server or a proxy closed the response stream without an answer
+ * Fixed memory growing by gigabytes and CPU staying at 100% on Linux while a build or other command creates and removes many files in the repository
+ * Fixed background sessions failing with a model error after `/background` or a wake, when `--model default` or a blocked `--model sonnet` had resolved to a model the account lacks
+ * Fixed a turn hanging on a plugin’s language server that exits or stays silent while starting: an exit now fails the call at once, and a silent server’s call gives up after 60 seconds by default
+ * Fixed `!` commands in cloud and headless sessions hanging for ten minutes when the command reads standard input
+ * Fixed an `asyncRewake` hook that keeps exiting quickly with code 2 waking Claude in an endless loop; wakes now stop after 8 in a row (`CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` changes it)
+ * Fixed Claude Code exiting with no message in fullscreen mode, and background sessions showing no reason, when `sandbox.failIfUnavailable` is set and the sandbox can’t start
+ * Fixed a stopped reply sometimes running again when a remote session restarted with a background notice queued after the Stop, and Claude not seeing a message you stopped during a restart
+ * Fixed pull requests opened with `gh api` being left out of the pull request count and session link when the command was multi-line, quoted its path, or used `--input`
+ * Fixed subagents reporting the main conversation’s effort level to hooks and shell commands after a model fallback
+ * Fixed a subagent’s own MCP server getting the tool descriptions of another MCP server with the same name
+ * Fixed a renewed or newly added mTLS client certificate not reaching model requests when a server answers with an HTTP 400 certificate page; certificate errors now say what to check
+ * Fixed `/model` and SDK model switches failing at the first “overloaded” answer from the API: the model check now retries for up to 2.5 seconds
+ * Fixed `CLAUDE_CODE_RESUME_INTERRUPTED_TURN` sending Claude a request that nobody asked for in a session with no stored prompt or reply
+ * Fixed an `awsAuthRefresh` or `gcpAuthRefresh` login that was stopped at its time limit, on cancel or at exit sometimes being treated as a completed sign-in
+ * Fixed `/rewind` deleting a file that was missing when an edit of it failed and was later put back
+ * Fixed a Code tab session going back to a worktree it had been moved out of after a restart
+ * Fixed SessionEnd hooks of plugins loaded from a zip file failing at exit with “Plugin directory does not exist”
+ * Fixed a queued message being sent without the interrupted tool’s result when pressing Esc while a tool was running
+ * Fixed plugin marketplace adds and updates failing, removing the marketplace or leaving it incomplete when two sessions download it at once
+ * Fixed the prompt staying on “Pasting…” and ignoring Enter on WSL and Windows when the clipboard never answered
+ * Windows: Fixed an idle session using a full CPU core after a folder it watched was deleted
+ * Windows: Fixed tool calls being refused at the root of some network and virtual drives
+ * Fixed Claude Desktop’s read-only side chats (for example in WSL sessions) ignoring the language setting
+ * Remote Control: Fixed high CPU use when the event stream kept rejecting fresh credentials, and a Stop from another device applying a second time after a running session reconnected
+ * Fixed lines going missing from terminal scrollback outside fullscreen mode in long sessions, and above a tall permission prompt on Windows or with reduced motion
+ * Fixed subagents in Claude Desktop’s Code tab being offered task list and wrap-up tools that the app refuses
+ * Fixed @-mentions in the desktop app’s Code tab attaching the wrong file, or none, after Claude changed folder in a command
+ * Fixed the plan going missing after Rewind in plan mode in the desktop app’s Code tab
+ * Fixed `FileChanged` hooks firing for only one file when several watched files in the same folder did not exist at startup
+ * Fixed slow typing in the agents view when listed sessions were started with very long prompts
+ * Fixed high CPU use from file watching: an idle session when files could not be looked at, and `FileChanged` hooks on a folder created after startup or a missing path in a busy folder
+ * Fixed voice dictation in the agents view redrawing the input line continuously in screen reader mode
+ * Fixed high CPU use when a `--plugin-dir` mod’s folder held many build files that aren’t code or JSON
+ * Fixed memory growing without bound while a hook in `claude -p`, an MCP server or a language server keeps printing large output or notifications without pause
+ * Fixed agent team inboxes that can’t be read or written: messages being lost during a write, and a teammate repeating turns without end
+ * Fixed `claude mcp add-from-claude-desktop` on WSL finding no servers, or outdated ones, with the packaged Claude Desktop for Windows
+ * Fixed a workflow script that logs in a tight loop using gigabytes of memory
+ * Fixed memory growing by gigabytes in long sessions with OpenTelemetry content logging on, most of all while the collector is slow or down
+ * Fixed memory growth and a freeze at the next turn when a language server republishes diagnostics while the session is idle or running a long command
+ * Fixed a freeze and high memory use when opening the transcript with Ctrl+O after edits to a file with thousands of IDE diagnostics
+ * Fixed dictation sometimes not starting, sending the prompt or losing your words when the CLI paused briefly or Space was pressed during transcription
+ * Fixed tap-mode and auto-submit dictation in `!` mode running your words as a shell command as soon as they were transcribed
+ * Fixed the model retirement warning being cut off in narrow terminals, and the top of the fullscreen view staying blank after repeated Ctrl+O on tall terminals
+ * Fixed `claude remote-control` crashing and leaving the computer shown as online when its terminal or output pipe went away while it ran in the background
+ * Fixed cloud sessions losing their last status and one-line summary after `/compact`
+ * Fixed rules, skills, commands, agents and output styles with Windows line endings ignoring their header (paths, name) when it held an unquoted colon or glob (anthropics/claude-code#80890)
+ * Fixed Edit silently dropping the last byte of a UTF-16LE file with an odd byte count: Edit and NotebookEdit now refuse such a file (anthropics/claude-code#105747)
+ * Fixed the spinner staying on “Running SessionStart hooks…” until the turn ended after a mod’s `session.compact` hook replaced an auto-compaction (anthropics/claude-code#106462)
+ * Fixed a teammate’s view going blank while it ran a long command or MCP call
+ * Fixed deleted tasks coming back when many linked tasks were deleted at once
+ * Fixed a remote MCP tool running twice when you move a session to the background while a background subagent waits for its task, on servers without custom headers
+ * Fixed the desktop app and other SDK hosts not being told when some “Always allow” rules could not be saved to their settings file
+ * Fixed macOS asking to find devices on local networks when a Claude Desktop session on Google Cloud’s Agent Platform has no credentials; a server named in `GCE_METADATA_HOST` is still used
+ * Fixed Claude reporting that a read-only MCP tool returned nothing when its call was skipped after a late permission answer in cloud sessions
+ * Fixed high memory use when several very large images were read at the same time
+ * Fixed most prompts typed while Claude was working being lost from history when Claude Code exited before sending them
+ * Fixed messaging a running workflow agent starting a second copy of it outside the workflow
+ * Windows: Fixed `/desktop` and `claude --desktop` sometimes starting Claude Desktop without showing its window
+ * Fixed SendMessage misleading Claude about agent teams: a busy teammate or lead reads a message when its turn ends, and a lead with no teammate needs it sent to `main`
+ * Fixed some cloud sessions being listed as offline Remote Control sessions when messaging between sessions
+ * Fixed some messages sent to a cloud or Remote Control session failing during a short service pause: Claude Code now waits up to a minute and tries again
+ * Fixed streamed responses ending in a decompression error behind some proxies
+ * Fixed a crash on Windows on machines running some security software
+ * Fixed requests on Google Cloud’s Agent Platform hanging when a Google Cloud credential’s executable is missing or is killed
+ * Fixed Claude asking more questions, like which design system to use, after you answered questions for a new artifact
+ * Fixed cloud sessions warning that a plugin marketplace couldn’t be fetched when no plugin you have enabled from it is missing
+ * Fixed a freeze when Grep matched many files while Read deny rules were set
+ * Fixed a freeze when a gateway’s 400 error about an image or PDF quoted the whole request back
+ * Fixed the desktop app’s Code tab looking idle after `/goal` in local, SSH and WSL sessions
+ * Fixed Claude Desktop’s Code tab showing no notice until a reload when a background command or agent finished while Claude was idle
+ * Fixed git summaries naming a flag value or punctuation as the merged branch, and reporting a pull request as merged or closed when it already was
+ * Fixed background requests such as prompt suggestions, `/btw` and `/recap` sometimes consulting the advisor on Opus 4.8, Sonnet 5.5 and later models
+ * Fixed cloud Cowork sessions reporting a saved file when Write, Edit or NotebookEdit named a connected folder by its mount path
+ * Fixed Bash edit diffs on Linux missing changes in a folder that a command removed and re-created
+ * Fixed `/autofix-pr` messages that said to stop a cloud session: they now say to archive it, and Esc while one starts says it may have started anyway
+ * Fixed the terminal freezing on Linux when a command removed, moved or created many folders in a large git repository
+ * Fixed a doubled pause after sandboxed commands on Linux in large git repositories
+ * Fixed `/reload-plugins`, `plugin marketplace add` and most background updates installing only one of a plugin’s optional dependencies in the first session on a new machine
+ * Fixed a plugin skill name running a different skill from one session to the next when two skill folders get the same name, and added a `/plugin` warning that names the folders
+ * Fixed tool descriptions sent to the model (like Bash’s auto mode wording) staying stale after a mode or settings change; they now refresh when the main conversation compacts and on `/clear`
+ * Fixed high memory use in Code Mode when its code made many calls with large MCP results or command output, while it ran and after it ended
+ * Fixed internal text showing in apps after a restart with several background commands, after a failed turn, and when a skill starts over Remote Control
+ * Fixed Bedrock sessions signed in with `aws login` running `awsAuthRefresh` again or reporting an expired session after a token refresh
+ * Self-hosted runner: Fixed `git fetch` and `git push` in a long-running process failing after a session token refresh; a wrapper must expose the token file’s folder, not a copy or single-file mount
+ * Fixed a bare `@` hiding file suggestions after `/code-review` or another named subagent had run; type a first letter to complete a subagent’s name
+ * Fixed ctrl+r history search missing text with decomposed accents, kana or Hangul, such as macOS file names
+ * Fixed a crash in fullscreen mode when many long tool results collapsed at once, such as after turning verbose output off
+ * Fixed ctrl+x tab switching to a hidden panel instead of focusing the one on screen when several panels are open
+ * Fixed `claude remote-control` showing nothing in its terminal when a session holds, releases or drops a message from another session or a script
+ * Fixed an SDK host’s settings save overwriting a fresh edit of the same settings file when the host’s own ConfigChange hook allowed that edit
+ * Fixed high CPU use in idle sessions when a settings file links into a very large, busy folder, such as `/nix/store` under Nix or home-manager
+ * Fixed a shell stuck in your start-up files staying behind on macOS and Linux after Claude Code exited, often on a full CPU core
+ * Fixed idle background sessions woken by a finished task never being retired, which left their processes running for days
+ * Fixed `claude remote-control` writing its whole status block every second to a log file or the systemd journal when nothing had changed
+ * Fixed a crash or freeze when a mod drew a `Code` block in a row beside long text or another `Code` block
+ * Fixed flashes when a mod draws and answers in time (100 ms; 16 ms for prompt text): blank rows, spinner or turn summary, a finished tool row shown as running, and prompt text shown without its colors
+ * Fixed a `$BROWSER` that stays in the foreground being closed after ten minutes or when Claude Code exits
+ * Fixed a mod’s `CodeBlock` drawing being lost to scrollback, or a sent prompt staying hidden, when a reply has more blocks after the code fence
+ * Fixed `cwd` on a mod’s `$.agent.spawn` being ignored: the subagent now runs in that folder, or the spawn is refused with a reason
+ * [VSCode] Fixed “Resolve in Terminal”: for screen reader users it opens Claude Code in screen reader mode with the keyboard in the terminal, and open notifications no longer cover its choices
+ * [VSCode] Fixed “Sign in again” opening the sign-in screen while the logout was still running, which could remove a new sign-in
+ * [VSCode] Fixed an agent’s transcript showing nothing when its file is gone, and losing tool calls and results when the agent made several calls in one reply
+ * [VSCode] Fixed the panel staying unstyled after the editor was closed while the panel was first loading
+ * [VSCode] Fixed a click beside a dialog dropping typed text, Escape in a diff dialog’s Find box or menu closing it all, and paste, or undo before typing, changing the message draft behind most dialogs
+ * [VSCode] Fixed “rule not found” when removing a hand-written permission rule such as `Bash(*)`
+ * [VSCode] Fixed the MCP servers dialog missing claude.ai connectors when opened right as Claude starts, and taking the keyboard from the editor after a slow load
+ * [VSCode] Fixed command rows giving no sign when you, a hook or a plugin changed the call before it ran
+ * [VSCode] Fixed Account & Usage showing “Anthropic Console” for an auth token
+ * [VSCode] Fixed the plan card asking “Accept this plan?” when Claude wrote no plan
+ * [VSCode] Fixed bookmarks being lost when you rewind or fork a session
+ * [VSCode] Fixed `@terminal` mentions of a background terminal sending no output in remote windows
+ * [VSCode] Fixed the browser banner saying “Browser connected” after turning on Claude in Chrome with no browser open
+ * [VSCode] Fixed the conversation moving or stopping short of its end, behind the message box or a permission prompt, after zooming, opening a menu, answering No or opening folded tool calls
+ * [VSCode] Fixed a feedback report being lost when sending fails, and the sandbox pattern being cleared when saving fails
+ * [VSCode] Fixed the sign-in screen’s start error blinking, showing twice and staying after the sign-in, and made its errors announced to screen readers
+ * [VSCode] Fixed `/focus` answering that it isn’t available, and the slash command list showing an internal command and ranking `/usage-credits` before `/usage`
+ * [VSCode] Fixed the diff tab of a pending edit staying as an error page after reloading the window
+ * [VSCode] Fixed tool calls with a wrong-typed input showing “Something went wrong” in place of a failed row, and crashing the panel from an agent’s card
+ * [VSCode] Fixed plugin panes and pop-ups: status lines changing places at each update, a new pane opening behind one whose pressed control went away, and tall pop-ups opening past their title
+ * [VSCode] Fixed the message box: the microphone button ignoring Enter and Space, a command’s argument hint going away after Tab, and empty files being left out without a notice
+ * [VSCode] Fixed the Orca screen reader on Linux staying silent for replies and errors longer than 1,000 characters
+ * [VSCode] Fixed the agent map: cards showing an earlier run’s report as a stop reason, raw JSON or a raw tag, and rows reordering while open; added Claude Code’s notes on a sub-agent’s report
+ * [VSCode] Fixed a cloud session opened in VS Code repeating earlier API errors to Claude as its own replies
+ * [VSCode] Fixed the message box not taking keyboard focus after switching back to a Claude tab in a remote window
+ * [VSCode] Fixed one cause of being signed out after opening a window on a slow connection: the login renewal now gets up to 25 seconds to finish
+ * [VSCode] Fixed a background agent’s message in auto mode opening with text meant for Claude instead of its report
+ * [VSCode] Fixed Yes on an edit’s permission prompt dropping changes made in the diff tab when the editor took between 10 and 30 seconds to respond
+ * [VSCode] Fixed a `/loop` with no interval ending silently when its session stopped or restarted with the window open: the chat now says so, and how to start it again
+ * [VSCode] Fixed copying an svn or diff -u patch from a code block with no language dropping its last newline, which made git apply refuse it
+ * [VSCode] Fixed the banner that suggests switching to the terminal showing while the Use Terminal setting is already on
+ * [VSCode] Fixed key bindings for Accept and Reject Proposed Changes doing nothing when they have an empty `args` field
+ * [VSCode] Fixed chat rows showing wrong words: Grep and Glob counts, “Thinking…” after a stop, “No response requested.” on reopening, whole paths on Windows, and color codes in slash command output
+ * [VSCode] Fixed the panel showing “Something went wrong” when `model` in settings.json is not a string
+ * [VSCode] Fixed the MCP servers dialog staying on “Connecting…” until reopened when a server connected or failed within about a minute
+ * [VSCode] Fixed `/plugin` running the `/plugin-authoring` skill instead of opening Manage plugins
+ * [VSCode] Fixed the Modes menu and the auto mode card being cut off in a narrow or short panel, and long questions from Claude opening scrolled past their first lines
+ * [VSCode] Fixed chat links opening a similarly named file when the exact name exists, and multi-line edit links opening at the top of files with CRLF line endings
+ * [VSCode] Fixed the chat panel freezing for about 5 seconds on each large edit, in most chats; a very large diff can now show whole lines as changed
+ * [VSCode] Fixed the first message running on the first model when two were picked in a row while Claude was still starting
+ * [VSCode] Fixed replies that finish while the VS Code window is in the background getting no unread mark
+ * [VSCode] Fixed the session list missing sessions started in Claude Desktop or a terminal until the window was reloaded
+ * [VSCode] Fixed Claude tabs that share a chat title not reopening after Restart Extensions; this works from the next update on
+ * [VSCode] Fixed the Learn Claude Code checklist missing after signing in from the panel, its pop-up being cut off in a narrow side bar, and some of its steps only ticking after a window reload
+ * [VSCode] Fixed Option+Enter (Alt+Enter) sending your message instead of adding a new line
+ * [VSCode] Fixed teleported sessions: a cancelled teleport offering no branch, the branch notice returning after a checkout or a manual switch, lost titles, and file links not opening the local file
+ * [VSCode] Fixed a message with `@browser` being lost when Claude in Chrome could not connect or its install notice was left unanswered
+ * [VSCode] Fixed the restart notice disappearing after closing Manage plugins when plugin options were saved
+ * [VSCode] Fixed Claude Code restarting and re-running SessionStart hooks in a new chat with GitHub Copilot Chat on and OpenTelemetry export off, or when an extension sets a variable to the same value
+ * [VSCode] Fixed some newly opened panels ignoring early clicks on permission prompts and updating only once a second
+ * [VSCode] Fixed `/model` closing the model picker without a word while Claude is working
+ * [VSCode] Fixed a repeat click replacing or removing something: a second plugin uninstalled, an MCP server disabled, a code rewind or removal confirmed, or a style file replaced
+ * [VSCode] Fixed the model button showing the old model again after switching models during a reply
+ * [VSCode] Fixed the last letter or paste at four or more cursors being lost when saving a proposed diff right away
+ * [VSCode] Fixed Select All and Copy in the chat copying nothing
+ * [VSCode] Fixed typing being lost, or stopping the running turn, after a click on the Send or Stop button
+ * [VSCode] Fixed a voice dictation error staying above the message box after typing or sending, and not being announced to screen readers
+ * [VSCode] Fixed shell output and tool errors spelling out the invisible characters that Persian, Urdu, Hindi, Bengali, Sinhala, Khmer, Lao and other languages need to shape or separate words
+ * [VSCode] Fixed a prompt disappearing from the chat when it was sent while the chat was still loading
+ * [VSCode] Fixed part of a reply missing from the chat after moving the panel, moving its tab to a new window, or running Reload Webviews while Claude was still replying
2.1.332
--- a/channels.md
+++ b/channels.md
@@ -242,7 +242,7 @@
The message arrives in your Claude Code session. The terminal shows it as an inbound channel line like `← fakechat · web: what's in my working directory?`, while the model receives it as a `<channel source="plugin:fakechat:fakechat">` event, using the plugin’s scoped server name. Claude reads it, does the work, and calls fakechat’s `reply` tool. If Claude Code asks for permission for the first reply, approve it. The answer shows up in the chat UI.
-If Claude hits a permission prompt while you’re away from the terminal, the session pauses until you respond. Channel servers that declare the [permission relay capability](</docs/en/channels-reference#relay-permission-prompts>) can forward these prompts to you so you can approve or deny remotely. For unattended use, [`--dangerously-skip-permissions`](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) bypasses most prompts, but only use it in environments you trust. Even then, the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>) still apply. When you run channels in non-interactive mode with `-p`, tools that need terminal input, such as multiple-choice questions and plan mode approval, are disabled so the session never stalls waiting for input.
+If Claude hits a permission prompt while you’re away from the terminal, the session pauses for your answer. Channel servers that declare the [permission relay capability](</docs/en/channels-reference#relay-permission-prompts>) can forward these prompts to you so you can approve or deny remotely. For unattended use, [`--dangerously-skip-permissions`](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) bypasses most prompts, but only use it in environments you trust. The [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>) still apply. When you run channels in non-interactive mode with `-p`, tools that need terminal input, such as multiple-choice questions and plan mode approval, are disabled so the session never stalls waiting for input.
## Security
@@ -292,7 +292,7 @@
## Research preview
-Channels are a research preview feature. Availability is rolling out gradually, and the `--channels` flag syntax and protocol contract may change based on feedback. Neither `--channels` nor `--dangerously-load-development-channels` appears in `claude --help` while the feature is in preview. The flags work even though they aren’t listed. During the preview, `--channels` only accepts plugins from an Anthropic-maintained allowlist, or from your organization’s allowlist if an admin has set `allowedChannelPlugins`. The channel plugins in [claude-plugins-official](<https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins>) are the default approved set. If you pass something that isn’t on the effective allowlist, Claude Code starts normally but the channel doesn’t register, and the startup notice tells you why. To test a channel you’re building, pass it to `--dangerously-load-development-channels` in the `plugin:<name>@<marketplace>` or `server:<name>` form. See [Test during the research preview](</docs/en/channels-reference#test-during-the-research-preview>) for information about testing custom channels that you build. Report issues or feedback on the [Claude Code GitHub repository](<https://github.com/anthropics/claude-code/issues>).
+Channels are a research preview feature. The `--channels` flag syntax and protocol contract may change based on feedback. Neither `--channels` nor `--dangerously-load-development-channels` appears in `claude --help` while the feature is in preview. The flags work even though they aren’t listed. During the preview, `--channels` only accepts plugins from an Anthropic-maintained allowlist, or from your organization’s allowlist if an admin has set `allowedChannelPlugins`. The channel plugins in [claude-plugins-official](<https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins>) are the default approved set. If you pass something that isn’t on the effective allowlist, Claude Code starts normally but the channel doesn’t register, and the startup notice tells you why. To test a channel you’re building, pass it to `--dangerously-load-development-channels` in the `plugin:<name>@<marketplace>` or `server:<name>` form. See [Test during the research preview](</docs/en/channels-reference#test-during-the-research-preview>) for information about testing custom channels that you build. Report issues or feedback on the [Claude Code GitHub repository](<https://github.com/anthropics/claude-code/issues>).
## How channels compare
--- a/claude-apps-gateway-config.md
+++ b/claude-apps-gateway-config.md
@@ -1020,7 +1020,7 @@
`hooks`| CLI| Org-wide [hooks](</docs/en/hooks>)
`managedMcpServers`| CLI| Remote MCP servers [provided to every matching developer](</docs/en/managed-mcp#provide-servers-through-managed-settings>) alongside the servers they add themselves, `http` and `sse` only. See MCP servers in a policy. Requires Claude Code v2.1.259 or later on the gateway server and on clients. Earlier clients ignore the key.
-Because these settings arrive over the network, the CLI shows each developer a security approval dialog before applying the settings listed below:
+Because these settings arrive over the network, the CLI shows each developer a security approval dialog before applying settings such as the following:
* `hooks`
* `env` variables that require the developer’s approval, such as proxy and base-URL variables
@@ -1036,7 +1036,12 @@
#### Context window in terminal sessions
-Terminal sessions signed in through `/login` use the 1M context window for Opus 4.7 and later, Sonnet 5 and later, and the Fable models. The model ID needs no `[1m]` suffix, and sessions compact at about 967K tokens. Before Claude Code v2.1.287 on the developer’s machine, Claude Code treated the Opus and Fable models as having a 200K window unless the model ID ended in `[1m]`. To have terminal sessions compact at the 200K boundary instead, set the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) in the policy’s `env`:
+Terminal sessions signed in through `/login` use the 1M context window for Opus 4.7 and later, Sonnet 5 and later, and the Fable models. By default, sessions compact near the [auto-compact window tuned for the model](</docs/en/model-config#compaction-near-400k-on-a-1m-model>), which is 400K tokens on current models. To get these defaults on a machine with an older Claude Code version, have the developer update:
+
+ * **Before v2.1.334** : sessions with the 1M window compacted at about 967K tokens
+ * **Before v2.1.287** : Claude Code treated the Opus and Fable models as having a 200K window unless the model ID ended in `[1m]`
+
+To keep the full window in these sessions, put the [`modelSettings` entries for your organization](</docs/en/model-config#compaction-near-400k-on-a-1m-model>) in the policy’s `cli` block. To have terminal sessions compact at the 200K boundary instead, set the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) in the policy’s `env`:
managed:
policies:
--- a/claude-apps-gateway-spend-limits.md
+++ b/claude-apps-gateway-spend-limits.md
@@ -48,7 +48,7 @@
3. List price for the [`models[].id`](</docs/en/claude-apps-gateway-config#models>) you mapped to that upstream ID, for upstream strings that carry no model name, such as an Amazon Bedrock application-inference-profile ARN or a Microsoft Foundry deployment name. Requires v2.1.218 or later.
4. The unknown-model tier of $5/$25 per million input/output tokens, so an ID the meter can’t place is never free. The gateway warns at boot and once per ID at runtime when it uses this tier.
-Whichever rate applies, the meter then multiplies the amount by [`pricing.multiplier`](</docs/en/claude-apps-gateway-config#pricing>), default `1`. Requires a gateway server running Claude Code v2.1.227 or later. Client aborts are billed too. When a stream ends without the upstream’s final usage frame, the meter bills a floor estimate of about four characters per output token for the text already sent to the client, so aborting requests early doesn’t evade a cap.
+Whichever rate applies, the meter then multiplies the amount by [`pricing.multiplier`](</docs/en/claude-apps-gateway-config#pricing>), default `1`. Requires a gateway server running Claude Code v2.1.227 or later. When a stream ends without the upstream’s final usage frame, the meter bills a floor estimate of about four characters per output token for text already sent to the client.
#### Long-prompt rates
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -65,11 +65,11 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. If the terminal prints `Branch <name> is not on GitHub`, see Branch is not on GitHub. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
+This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. If the terminal prints `Branch <name> is not on GitHub`, see Branch is not on GitHub. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it lets you monitor and steer a local CLI session from claude.ai or the Claude app. See [Remote Control](</docs/en/remote-control>).
-Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
+Open the session on claude.ai or the Claude mobile app to check progress or interact directly. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
#### Tips for cloud tasks
@@ -204,7 +204,7 @@
#### Troubleshoot a missing file in the diff view
-A file you expected can be missing from the diff view’s file list when it compares against the base branch, whether or not the session has pushed changes:
+A file you expected can be missing from the diff view’s file list when it compares against the base branch:
* **No changes pushed yet** : the list has Claude’s own edits, but not changes made by commands Claude ran, such as a formatter
* **Changes pushed** : the list has pushed commits, but not changes made after the last push
@@ -227,7 +227,12 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| Yes| Starts a fresh conversation with empty context in the same cloud session
-Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set.
+On these models, a cloud session can reach the context limit before it compacts:
+
+ * Claude Haiku 4.5, Claude Sonnet 4.5, Claude Opus 4.5, and earlier models
+ * Sonnet 4.6 and Opus 4.6 with [extended context](</docs/en/model-config#extended-context>)
+
+On other models, a cloud session compacts automatically before the conversation fills the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>). To compact earlier on any model, set a smaller window, such as `150000`, with [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
#### Use subagents and agent teams
@@ -281,7 +286,7 @@
## Auto-fix pull requests
-Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
+Claude can watch a pull request and automatically respond to CI failures and review comments.
Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>).
@@ -308,15 +313,15 @@
## Security and isolation
-By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility.
-
- * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation and network egress are your deployment’s responsibility.
+
+ * **Network access controls** : in Anthropic-hosted environments, network access from the session’s VM is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. With network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
* **Network secrets** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets
## Troubleshooting
-For runtime API errors that appear in the conversation such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>). Those errors and their fixes are shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
+For runtime API errors that appear in the conversation such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>).
### Session creation failed
@@ -383,7 +388,7 @@
* **Not restored** : other background work that was still running or pending when the VM was reclaimed, including:
* **Shell commands** : Claude Code tells Claude which commands stopped. Ask Claude to rerun the ones you still need.
* **Subagents** : Claude Code tells Claude which subagents stopped, and which of those can be [resumed](</docs/en/sub-agents#resume-subagents>) instead of started over. Ask Claude to continue their work.
- * **Session-scoped scheduled tasks** : tasks you [scheduled in the session](</docs/en/scheduled-tasks>) and a `/loop` waiting for its next iteration don’t carry over to the reopened session. Ask Claude to schedule the tasks again, or run `/loop` again to restart the loop.
+ * **Session-scoped scheduled tasks** : Ask Claude to [schedule the tasks](</docs/en/scheduled-tasks>) again, or rerun your earlier `/loop` command.
## Limitations
--- a/claude-directory.md
+++ b/claude-directory.md
@@ -164,6 +164,7 @@
`history.jsonl`| Prompts you’ve typed, with timestamp and project path. Used for up-arrow recall, `Ctrl+R` history search, and `!` shell-command completion. Each sweep removes the entries older than `cleanupPeriodDays` when the [HIPAA configuration applies to your sessions](</docs/en/hipaa-setup#check-how-developers-sign-in-and-connect>).
`stats-cache.json`| Aggregated token and cost counts shown by `/usage`
`remote-settings.json`| Cached copy of [server-managed settings](</docs/en/server-managed-settings>) for your organization, or `{}` when your organization has configured none. Only present when the session [fetches them](</docs/en/server-managed-settings#platform-availability>). Claude Code checks for updates at startup and hourly during a session. Claude Code deletes it when you log out.
+`remote-settings-consent.json`| Per-organization or per-gateway hash of the server-managed settings that need approval, such as hooks, that you [approved](</docs/en/server-managed-settings#approval-memory>) or Claude Code [applied without asking](</docs/en/server-managed-settings#security-approval-dialogs>)
`cache/changelog.md`| Cached copy of the Claude Code changelog, shown by `/release-notes`. Refreshed in the background.
`policy-limits.json`| Cached feature policy settings for your organization. Only present for some account types. Refreshed automatically. A `policy-limits.json.stamp.json` sidecar records which account or API key the cache belongs to. Claude Code deletes both files when you log out.
--- a/claude-projects.md
+++ b/claude-projects.md
@@ -16,7 +16,7 @@
* **Set context once** : every new thread starts with the project’s instructions, so a rule you state once, such as which branch to target, reaches all of them.
* **Walk away and come back to finished work** : the Overview pane shows which threads finished, which pull requests are ready for review, and which thread is waiting for your answer.
-Projects you already use in claude.ai chat or Cowork are classic projects, an earlier kind of project that groups conversations and reference files but has no threads.
+Classic projects are the earlier kind of project in claude.ai chat and Cowork. They group conversations and reference files but have no threads.
## When to use a project
@@ -70,7 +70,7 @@
* **Plan** : you’re on a Pro, Max, Ultra, or Team plan, or you have an Enterprise seat other than **Lite**. Then check that you see a **New project** button:
* **Pro, Max, and Ultra** : at claude.ai/code or in the desktop app’s Code tab, select **Projects** in the sidebar and look for the button. If you don’t see the **Projects** item there or in the sidebar’s **More** menu, [join the waitlist](<https://claude.com/form/projects>).
- * **Team and Enterprise** : an Owner has to turn Projects on for your organization first. On the **Projects** page in claude.ai chat or Cowork, a **New project** button isn’t a sign that Projects are on, because it also creates classic projects. To check, open [claude.ai/code/projects/browse](<https://claude.ai/code/projects/browse>) in a browser. That page opens on Enterprise **Standard** and **Chat** seats too. If you don’t see the **New project** button there, ask an Owner.
+ * **Team and Enterprise** : Projects must be on for your organization. On the **Projects** page in claude.ai chat or Cowork, a **New project** button isn’t a sign that Projects are on, because it also creates classic projects. To check, open [claude.ai/code/projects/browse](<https://claude.ai/code/projects/browse>) in a browser. That page opens on Enterprise **Standard** and **Chat** seats too. If you don’t see the **New project** button there, ask an Owner.
* **GitHub, if the project will work on code** : your code is on github.com rather than GitHub Enterprise Server, GitLab, or Bitbucket. Your connected GitHub account has push access to the repository, and the Claude GitHub App is installed on it. Set up GitHub access has the steps.
* **Network access, secrets, and tools** : for cloud threads, these come from the project’s cloud environment. The default environment already reaches [common package registries](</docs/en/cloud-environments#default-allowed-domains>), so check this only if the work needs other domains, a secret, or a tool that isn’t preinstalled. If the work needs an MCP server, check that it shows as connected in your [claude.ai connectors](<https://claude.ai/customize/connectors>).
@@ -104,7 +104,7 @@
Click **Create project**. The project’s conversation opens with a message box at the bottom, where you describe work for Claude.On your first project, Claude takes a turn of its own as soon as the project is created, unless you send a message first. That turn uses your plan. In it, Claude may:
* Start one thread that explores the repository and proposes next steps, if the project has a repository it can read.
- * Post **Setup recommendations** : repositories to add, scheduled tasks to create, and threads it could start. Each recommended repository and scheduled task is on by default. Turn off the ones you don’t want, then click **Update setup** to add the rest, or ignore the recommendations and describe work yourself.
+ * Post **Setup recommendations** : repositories to add and scheduled tasks to create. Each recommended repository and scheduled task is on by default. Turn off the ones you don’t want, then click **Update setup** to add the rest, or ignore the recommendations and describe work yourself.
The project is now in the sidebar, and its conversation is open. Your first batch covers what to set up before you send it work.
@@ -218,7 +218,7 @@
* **Threads** : the model and effort for new threads. To use a different model for one task, ask for it in the task; for a thread already running, use that thread’s model picker.
* **Coordinator** : the model for Claude in the project conversation.
-You don’t manage context windows in a project. Threads compact automatically, and the conversation works from recent messages, recent threads, and project memory rather than its full history. Put anything Claude should remember in project memory. If one thread outgrows its context, it shows Claude ran out of context on this turn.
+Threads [compact](</docs/en/glossary#compaction>) automatically, and the conversation works from recent messages, recent threads, and project memory rather than its full history. Put anything Claude should remember in project memory. If one thread outgrows its context, it shows Claude ran out of context on this turn.
### Tune how Claude runs a project
@@ -371,18 +371,17 @@
Coordinator| General| The model for Claude in the project conversation
Threads| General| The model and [effort level](</docs/en/model-config#adjust-effort-level>) for new threads
Project instructions| Memory| Standing rules every new thread receives
-Project repositories| Environment| The repositories new cloud threads clone
+Repositories in every thread| Environment| The repositories new cloud threads clone
Cloud environment| Environment| The cloud environment new cloud threads run in
Usage| Usage| Token use by thread
Memory| Memory| The project’s memory files
Continue threads automatically when usage limits reset| General| Whether a thread or the project conversation that stops at a usage limit continues on its own when the limit resets. On by default.
Restart Claude| Advanced| Restarts the project conversation when Claude stops responding there
Pause| Advanced| Pauses the project; see Pause, archive, or delete a project
-Archive, Delete| General| Hides or removes the project; see Pause, archive, or delete a project
### Pause, archive, or delete a project
-**Pause** is in **Project settings > Advanced**. **Archive** and **Delete** are at the bottom of **General** :
+Use the **Pause** button in **Project settings > Advanced**, and the **Archive** and **Delete** options in the project’s sidebar menu:
* **Pause** : interrupts the project conversation and every running cloud thread, and blocks new threads, scheduled task runs, and messages until you resume it. Click **Resume** in the same place or on the banner that replaces the project’s message box; a paused thread continues when you send it a message after that.
* **Archive** : hides the project from the sidebar and archives its cloud threads, which stops any that were running or watching a pull request. Scheduled tasks in the project don’t run while it’s archived. To bring the project back, open it from the Projects page and click **Unarchive** , then tell Claude in the project conversation which work to pick up.
@@ -412,7 +411,7 @@
Go to [**Organization settings > Projects**](<https://claude.ai/admin-settings/projects>) and turn on the **Project coordinator** setting. Project coordinator is the role Claude takes in a project.
-To confirm Projects are on, go to [claude.ai/code/projects/browse](<https://claude.ai/code/projects/browse>) and check that it has a **New project** button.
+To confirm Projects are on, go to [claude.ai/code/projects/browse](<https://claude.ai/code/projects/browse>) and check that it has a **New project** button. For billing and data exports, see the Help Center article [Turn on the new version of projects for your Team or Enterprise organization](<https://support.claude.com/en/articles/18672918-turn-on-the-new-version-of-projects-for-your-team-or-enterprise-organization>).
### Organization and seat requirements
--- a/claude-ship.md
+++ b/claude-ship.md
@@ -68,7 +68,7 @@
2. [Turn off PR Steward](</docs/en/pr-steward-setup#turn-off-pr-steward>)
3. [Turn off Code Review](</docs/en/code-review-setup#turn-off-code-review-or-remove-a-repository>)
-These steps leave the `/ship` and `/steward` commands on. See [how to turn them off](</docs/en/ship-command#turn-off-%2Fship-and-%2Fsteward-for-your-organization>).
+After you turn off the agents, the `/ship` and `/steward` commands stay on. See [how to turn them off](</docs/en/ship-command#turn-off-%2Fship-and-%2Fsteward-for-your-organization>).
## Related resources
--- a/cli-reference.md
+++ b/cli-reference.md
@@ -29,6 +29,7 @@
`claude import [source]`| Start an interactive session that runs [`/import`](</docs/en/commands#all-commands>) to bring configuration from other coding agents into Claude Code. Accepts the same `--dry-run` and `--yes` options as the command. Not available on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or Claude Platform on AWS. Also unavailable when you turn off [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>). Requires Claude Code v2.1.213 or later| `claude import codex --dry-run`
`claude logs <id|name>`| Print recent output from a [background session](</docs/en/agent-view#manage-sessions-from-the-shell>). Passing part of a session’s name in place of the ID requires Claude Code v2.1.290 or later| `claude logs 7c5dcf5d`
`claude mcp`| Configure Model Context Protocol (MCP) servers| See the [Claude Code MCP documentation](</docs/en/mcp>).
+`claude mcp add --web <name> <url>`| Add a remote MCP server to your claude.ai account as a connector. Sends you to claude.ai to finish adding it. Requires Claude Code v2.1.330 or later, and v2.1.332 or later on Team and Enterprise plans. For the plans and steps, see [Add a connector from your terminal](</docs/en/mcp#add-a-connector-from-your-terminal>)| `claude mcp add --web notion https://mcp.notion.com/mcp`
`claude mcp login <name>`| Run a configured MCP server’s OAuth flow without opening the interactive `/mcp` panel. Works for HTTP, SSE, and claude.ai connector servers. Add `--no-browser` over SSH to print the authorization URL instead of opening a browser. For an HTTP or SSE server, paste the redirect URL back at the prompt. For a claude.ai connector, see [Authorize a connector again from your shell](</docs/en/remote-control#authorize-a-connector-again-from-your-shell>). See [Authenticate from the command line](</docs/en/mcp#authenticate-from-the-command-line>)| `claude mcp login sentry`
`claude mcp logout <name>`| Clear stored OAuth credentials for an MCP server| `claude mcp logout sentry`
`claude plugin`| Manage Claude Code [plugins](</docs/en/plugins/overview>). Alias: `claude plugins`. See [plugin reference](</docs/en/plugins/cli-reference#claude-plugin-commands>) for subcommands| `claude plugin install code-review@claude-plugins-official`
@@ -120,7 +121,7 @@
`--replay-user-messages`| Re-emit user messages from stdin back on stdout for acknowledgment. Requires `--input-format stream-json` and `--output-format stream-json`| `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`
`--restricted`| Restricted mode for evaluation harnesses: removes WebFetch and built-in tools that run commands or code. Hooks, plugins, and MCP servers you pass with flags can still run commands. To keep a removed tool, name it individually in `--tools`. Confines built-in file tools to the [working directories](</docs/en/permissions#working-directories>) and some of Claude Code’s own files, loads only [managed settings](</docs/en/managed-settings>) and `--settings`, and refuses [`bypassPermissions`](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) and [new cloud sessions](</docs/en/errors#cloud-sessions-cannot-be-created-from-a-restricted-session>). Requires v2.1.248 or later| `claude --restricted -p "query"`
`--resume`, `-r`| Resume a specific session by ID or name, or show an interactive picker to choose a session. In place of an ID, you can pass the absolute path to a session’s `.jsonl` [transcript file](</docs/en/sessions#where-transcripts-are-stored>). The picker and name search include sessions that added this directory with `/add-dir`. When you pass a session ID, Claude Code searches the current project directory and its git worktrees, then every other project on this machine. Before v2.1.223, the ID search covered only the current project directory and its git worktrees. [Background sessions](</docs/en/agent-view>) appear in the picker marked with `bg`. Resuming one that is still running [opens that session](</docs/en/sessions#resume-a-running-background-session>) in this terminal through `claude attach`, and a prompt you pass on the command line goes to it as its next turn. Before v2.1.285, Claude Code refused and printed the `claude attach` command to run instead| `claude --resume auth-refactor`
-`--safe-mode`| Start with all customizations disabled to troubleshoot a broken configuration: CLAUDE.md, skills, plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, custom keybindings, status line and file-suggestion commands, LSP servers, and auto memory do not load. Authentication, model selection, built-in tools, and permissions work normally, which differs from [`--bare`](</docs/en/headless#start-faster-with-bare-mode>). Managed settings policy still applies, including policy-configured hooks, status line, and file-suggestion commands; managed plugins, managed skills, managed CLAUDE.md, and policy-configured MCP servers do not. Useful for checking whether a customization is what triggers [automatic model fallback](</docs/en/model-config#automatic-model-fallback>). Sets [`CLAUDE_CODE_SAFE_MODE`](</docs/en/env-vars>)| `claude --safe-mode`
+`--safe-mode`| Start with your customizations disabled to troubleshoot a broken configuration. Authentication, model selection, built-in tools, and permissions work normally, which differs from [`--bare`](</docs/en/headless#start-faster-with-bare-mode>). [Some managed configuration stays on](</docs/en/debug-your-config#test-against-a-clean-configuration>). Useful for checking whether a customization is what triggers [automatic model fallback](</docs/en/model-config#automatic-model-fallback>). Sets [`CLAUDE_CODE_SAFE_MODE`](</docs/en/env-vars>)| `claude --safe-mode`
`--session-id`| Use a specific session ID for the conversation (must be a valid UUID)| `claude --session-id "550e8400-e29b-41d4-a716-446655440000"`
`--setting-sources`| Comma-separated list of setting sources to load (`user`, `project`, `local`). See [agent view](</docs/en/agent-view#what-carries-over-when-you-background>) and [agent teams](</docs/en/agent-teams#context-and-communication>) for the sessions you start from this one that inherit the list| `claude --setting-sources user,project`
`--settings`| Path to a settings JSON file or an inline JSON string. Values you set here override the same keys in your `settings.json` files for this session, but [most lists merge](</docs/en/settings#lists-merge-instead-of-overriding>) with theirs. Keys you omit keep their file-based values. The file must be a regular file no larger than 2 MiB. See [settings precedence](</docs/en/settings#settings-precedence>)| `claude --settings ./settings.json`
--- a/cloud-environments.md
+++ b/cloud-environments.md
@@ -19,7 +19,7 @@
* **CLI flows such as`/web-setup`**: create **Default** for you
* **Web onboarding on Pro, Max, and Ultra** : you get **Default** automatically
- * **Web onboarding on Team and Enterprise** : shows a **Create your first cloud environment** form unless an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>); keep the form’s defaults and click **Create & finish** to get the same **Default** environment
+ * **Web onboarding on Team and Enterprise** : in some organizations, claude.ai/code creates **Default** for you. If you see a **Create your first cloud environment** form instead, keep the form’s defaults and click the **Create & finish** button to create the same **Default** environment
**Default** carries no configuration of its own:
@@ -65,7 +65,7 @@
* **The VM is restored after being idle** : after a few minutes without activity, a session’s VM pauses with its files saved. Your next message restores the same VM and starts Claude Code again.
* **The VM was reclaimed and is rebuilt** : if the paused VM has since been [reclaimed](</docs/en/claude-code-on-the-web#environment-expired>), reopening the session provisions a fresh VM.
-After you edit, add, or remove a variable, an existing session in an Anthropic-hosted environment keeps the values it last read until its VM is next restored or rebuilt, and uses your change from then on. Its VM pauses on its own once the session is idle, and you can’t pause it yourself. To use a new value right away, ask Claude to set it on the command it runs, for example `LOG_LEVEL=trace npm test`, or start a new session. A cloud session also sets some variables itself when it starts. For [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/claude-code-on-the-web#manage-context>), the value the session sets overrides one you add here, so adding that key here has no effect. Anyone who uses the environment can read the values. In an Anthropic-hosted environment, use a network secret instead for a key the agent proxy can attach to a request. The requests that never get a secret are listed there.
+After you edit, add, or remove a variable, an existing session in an Anthropic-hosted environment keeps the values it last read until its VM is next restored or rebuilt, and uses your change from then on. Its VM pauses on its own once the session is idle, and you can’t pause it yourself. To use a new value right away, ask Claude to set it on the command it runs, for example `LOG_LEVEL=trace npm test`, or start a new session. A cloud session also sets some variables itself when it starts. For [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>), the value the session sets overrides one you add here, so adding that key here has no effect. Anyone who uses the environment can read the values. In an Anthropic-hosted environment, use a network secret instead for a key the agent proxy can attach to a request. The requests that never get a secret are listed there.
### Add network secrets
@@ -166,9 +166,11 @@
## Network access
-Each environment sets one network access level, which controls the outbound connections its sessions can make. A new environment starts at **Limited** with **Allow package managers** checked, so its sessions reach package registries and other allowlisted domains. To change an environment’s network access, open it for editing and use the **Network access** selector in the dialog. A shared environment opens read-only there, so an Owner changes its network access from the **Cloud environments** page in [admin settings](<https://claude.ai/admin-settings>) instead. The control that opens the selector appears on the app surfaces listed under The Default environment and in the [cloud scheduled task editor](</docs/en/routines#environments-and-network-access>). When you change an Anthropic-hosted environment’s network access, its existing sessions follow the new setting within about a minute, for requests that go through the session’s network allowlist. You don’t need to start a new session.
+Each environment sets one network access level, which controls the outbound connections its sessions can make. A new environment starts at **Limited** with **Allow package managers** checked, so its sessions reach package registries and other allowlisted domains. To change an environment’s network access, open it for editing and use the **Network access** selector in the dialog. A shared environment opens read-only there, so an Owner changes its network access from the **Cloud environments** page in [admin settings](<https://claude.ai/admin-settings>) instead. The control that opens the selector appears on the app surfaces listed under The Default environment and in the [cloud scheduled task editor](</docs/en/routines#environments-and-network-access>).
MCP connectors you enable on a session or scheduled task work without adding their hosts to **Allowed domains** , because connector traffic travels through Anthropic’s servers rather than the session’s network. This relies on the same Anthropic-bound channel noted under [Security and isolation](</docs/en/claude-code-on-the-web#security-and-isolation>). Turn off any connector you don’t need to limit which tools Claude can reach.
+
+When you change an Anthropic-hosted environment’s network access, existing sessions follow the new setting within about a minute for requests that commands such as `curl` send through the agent proxy. If a request is still blocked after that, start a new session.
### Access levels
@@ -236,7 +238,7 @@
A cloud thread in a [project](</docs/en/claude-projects>) loads less of the repository configuration in this table. It starts without `.mcp.json` servers or `.claude/settings.json` hooks and permission rules, and it can skip skills, agents, and commands. See [What threads pick up from your repositories](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>).[PR Steward](</docs/en/pr-steward-pull-requests#save-pr-steward-instructions-for-everyone-in-a-repository>) sessions and [Approvals classifier runs](</docs/en/approvals-classifiers#what-a-classifier-run-can-read-and-change>) load less of it too.
-Cloud sessions start from a fresh clone of your repository. Anything you commit to the repo is available. Anything you’ve installed or configured only on your own machine isn’t available in the session. Your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
+Cloud sessions start from a fresh clone of your repository. Your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
| Available in cloud sessions| Why
---|---|---
--- a/code-intelligence.md
+++ b/code-intelligence.md
@@ -70,12 +70,11 @@
### When the recommendation dialog appears
-The **LSP plugin recommendation** dialog can appear after Claude edits a file. These conditions decide whether it appears and which plugin it offers:
+The **LSP plugin recommendation** dialog can appear after Claude edits a file. These conditions affect whether it appears and which plugin it offers:
* **A plugin matches the file** : one of the marketplaces you’ve added, or the official marketplace Claude Code registered for you, lists a code intelligence plugin for that file’s extension, and the plugin’s binary is installed.
* **Official first** : when more than one marketplace offers a plugin for the extension, the dialog offers the official marketplace’s plugin.
* **Once per session** : the dialog appears at most once in a session, for the first matching file Claude edits.
- * **Not for cloud sessions** : the dialog never appears when your terminal is attached to a cloud session, such as one you started with [`claude --cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-cloud>).
### Respond to the recommendation dialog
--- a/code-mode.md
+++ b/code-mode.md
@@ -41,7 +41,7 @@
* **Surface** : an interactive `claude` session in a terminal. Code Mode doesn’t work with the VS Code panel, the Desktop app, or cloud sessions
* **Agent teams** : to use Code Mode with [agent teams](</docs/en/agent-teams>) on, you need v2.1.326 or later. Teammates run in Code Mode in the default [in-process display mode](</docs/en/agent-teams#choose-a-display-mode>), and start without it in split panes
* **Mods** : to use Code Mode with a [mod](</docs/en/plugins/mods/overview>) that hooks tool calls, you need v2.1.327 or later. If you’re on the `stable` channel and an update doesn’t reach that version, [switch to `latest`](</docs/en/setup#configure-release-channel>)
- * **Telemetry settings** : to use Code Mode with [feature-flag fetching off](</docs/en/env-vars#features-that-need-feature-flag-fetching>) or [OpenTelemetry](</docs/en/monitoring-usage>) events and metrics on, you need v2.1.329 or later. Keep [tracing](</docs/en/monitoring-usage#traces-beta>) off on any version
+ * **Telemetry settings** : to use Code Mode with [feature-flag fetching off](</docs/en/env-vars#features-that-need-feature-flag-fetching>) or [OpenTelemetry](</docs/en/monitoring-usage>) events and metrics on, you need v2.1.329 or later. With [tracing](</docs/en/monitoring-usage#traces-beta>) on, you need v2.1.333 or later
* **Installation** : the [native build](</docs/en/setup>) of Claude Code
* **Windows** : [Git for Windows](<https://git-scm.com/downloads/win>) is installed
@@ -134,7 +134,9 @@
}
}
-If your users can connect through a cloud provider, deploy this setting through [MDM or a managed settings file](</docs/en/managed-settings#delivery-mechanisms>). A user who sets a provider variable such as `CLAUDE_CODE_USE_BEDROCK` in their shell or user settings can start Code Mode without receiving [server-managed settings](</docs/en/server-managed-settings#platform-availability>). Users who are in a Code Mode session stay in it until they exit or restart Claude Code. After that, your users start without Code Mode and can’t resume their Code Mode sessions while the `0` is in place. You can’t turn on Code Mode for your users from managed settings.
+If you already deploy a policy through MDM or a managed settings file, add the variable to its `env` block, and to any [server-managed settings](</docs/en/server-managed-settings>) that already deliver a policy. If you put the variable in a new [higher-ranked source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), such as server-managed settings, Claude Code ignores your existing policy’s permission rules and most of its other settings [by default](</docs/en/managed-settings#compose-every-managed-source>).If your MDM policy or file sets a [policy helper](</docs/en/managed-settings#compute-the-policy-with-a-helper-program>), also add the variable to the `env` block of each [`managedSettings` object](</docs/en/settings-reference#write-the-helper-output>) that the helper already outputs.
+
+If your users can connect through a cloud provider, deploy the variable through [MDM or a managed settings file](</docs/en/managed-settings#delivery-mechanisms>). A user who sets a provider variable such as `CLAUDE_CODE_USE_BEDROCK` in their shell or user settings can start Code Mode without receiving [server-managed settings](</docs/en/server-managed-settings#platform-availability>). Users who are in a Code Mode session stay in it until they exit or restart Claude Code. After that, your users start without Code Mode and can’t resume their Code Mode sessions while the `0` is in place. You can’t turn on Code Mode for your users from managed settings.
### Monitor Code Mode with OpenTelemetry
@@ -143,6 +145,13 @@
* **Find calls from code** : filter on `tool_use_id` values that start with `repl_` or `toolu_cc_`. The `REPL` tool, which runs the code, has events of its own without either prefix
* **Read classifier verdicts** : in auto mode, a call that the classifier’s review of the code covers has no `classifier_verdict`. Look for the verdict on the `REPL` tool’s `tool_decision` events that have that call’s `request_id`. If you find more than one, the events don’t show which piece of code made the call
* **Keep secrets out of your backend** : code can read a value, such as a token in a file, and pass it to another call. Leave `OTEL_LOG_TOOL_DETAILS` unset if your backend shouldn’t receive those values
+
+#### Trace calls from code
+
+On v2.1.333 or later, look for calls from code under the `claude_code.tool.execution` span of the `REPL` call that ran the code. Expect the same [span types](</docs/en/monitoring-usage#span-hierarchy>) as for a call that Claude makes directly. Before your users turn on Code Mode, decide what you export and what you audit from:
+
+ * **Keep tool output out of your backend** : code can read far more than it shows Claude. Leave `OTEL_LOG_TOOL_CONTENT` unset if your backend shouldn’t receive what calls from code return. In that case, also leave `OTEL_LOG_TOOL_DETAILS`, `OTEL_LOG_RAW_API_BODIES`, `OTEL_LOG_ASSISTANT_RESPONSES`, and `OTEL_LOG_USER_PROMPTS` unset, because each can send parts of that output
+ * **Audit from events** : after code makes many calls, you can lose spans if Claude Code exits right away or your collector falls behind. Export [events](</docs/en/monitoring-usage#events>) too and audit from those. To avoid losing events as well, run a collector that responds quickly and accepts large requests
## Permissions and long-running code
@@ -234,7 +243,7 @@
* **Change the text** : redact `result`, `stdout`, `stderr`, and `error`. Handle a `result` that’s missing or `null`, and expect `error` only when the code failed or was stopped
* **Keep the shape** : return `code`, `stdout`, and `stderr` as strings, and return `error` as a string or leave it out. If you break this shape, Claude gets the original output
- * **Remove images, PDFs, and page errors** : if the copy has `images`, `documents`, or `imagePagesFailed` to hide, set that field to `[]`. The `imagePagesFailed` field lists the file path and error for each PDF page that couldn’t be shown
+ * **Remove images, PDFs, and page errors** : to hide `images`, `documents`, or `imagePagesFailed`, set that field to `[]` and return the copy each time the hook runs. The `imagePagesFailed` field lists the file path and error for each PDF page that couldn’t be shown
* **Remove the path to long output** : on v2.1.331 or later, omit `uncutOutputNote` from the copy. The field gives Claude a path to the uncut text
To hide the deploy token in the `notes.txt` result, print this JSON:
@@ -284,7 +293,7 @@
`it only works with Opus 5.5, Sonnet 5.5 and later models`| Pass the full name of a supported model that your account can use, for example `--model claude-opus-5-5`, or on Microsoft Foundry the name of your deployment of one. Avoid aliases such as `sonnet`, which [select older models on some providers](</docs/en/model-config#model-aliases>)
`it doesn't work in background jobs`| Start in the foreground, without `--remote-control`. If the reason shows in a teammate’s split pane, use the [in-process display mode](</docs/en/agent-teams#choose-a-display-mode>) to run teammates in Code Mode
`it needs settings that Claude Code downloads from Anthropic`| [Update Claude Code](</docs/en/setup#update-claude-code>) to meet the telemetry settings requirement. To stay on your version, unset the variable that [turns off feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>), such as `DISABLE_TELEMETRY`
-`OpenTelemetry tracing is on`| Unset `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA`, `ENABLE_ENHANCED_TELEMETRY_BETA`, and `ENABLE_BETA_TRACING_DETAILED` if you can work without [traces](</docs/en/monitoring-usage#traces-beta>)
+`OpenTelemetry tracing is on`| To keep [traces](</docs/en/monitoring-usage#traces-beta>) on, [update Claude Code](</docs/en/setup#update-claude-code>) to meet the telemetry settings requirement. To stay on your version, unset `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA`, `ENABLE_ENHANCED_TELEMETRY_BETA`, and `ENABLE_BETA_TRACING_DETAILED` if you can work without traces
`OpenTelemetry is on`| To keep events and metrics on, [update Claude Code](</docs/en/setup#update-claude-code>) and meet the telemetry settings requirement. To stay on your version, unset `CLAUDE_CODE_ENABLE_TELEMETRY` and `ENABLE_BETA_TRACING_DETAILED` if you can work without [OpenTelemetry export](</docs/en/monitoring-usage>)
`it doesn't yet work with the plugin`| [Update Claude Code](</docs/en/setup#update-claude-code>) to meet the mods requirement. To stay on your version, run `/plugin` and disable each plugin that the reason names. If your organization turned one on, ask your administrator to turn it off
`it doesn't yet work with an installed mod`| [Update Claude Code](</docs/en/setup#update-claude-code>) to meet the mods requirement. To stay on your version, run `/plugin` and disable each mod you installed
--- a/code-review-local.md
+++ b/code-review-local.md
@@ -129,7 +129,7 @@
`/code-review` is a [bundled skill](</docs/en/skills#bundled-skills>): its instructions are built into Claude Code, so there is no `SKILL.md` file on disk to open or edit. To give every review project rules to follow, add them to your `CLAUDE.md`. To go further, start from one of these pages:
- * **Replace the command** : a project or personal skill named `code-review` runs in place of the bundled one, and the `/review` alias keeps running the bundled review. See [Resolve skills that share a name](</docs/en/skills#resolve-skills-that-share-a-name>).
+ * **Replace the command** : write a project or personal skill named `code-review` to replace `/code-review`. See [Resolve skills that share a name](</docs/en/skills#resolve-skills-that-share-a-name>).
* **Build your own reviewer** : write a reviewer [subagent](</docs/en/sub-agents>) or a review [skill](</docs/en/skills>)
* **Use a neighboring command** : [`/simplify`](</docs/en/commands>) reviews for cleanup only and applies its fixes, and [`/verify`](</docs/en/commands>) runs your app to confirm a change works
Show diff (110 lines)
--- a/code-review-setup.md
+++ b/code-review-setup.md
@@ -7,7 +7,7 @@
Access| Needed for
---|---
[Owner role](</docs/en/server-managed-settings#access-control>) in your Claude organization| Every step on the admin page
-Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If you aren’t an owner, have one install and link the app before you start
+Owner of the GitHub organization| Installing the Claude GitHub App and [linking it to your Claude organization](</docs/en/admin-setup#connected-github-accounts>). If that’s someone else, have them install and link the app before you start
Write access to each repository you add, from the GitHub account you connect to Claude| Adding the repository
## Turn on Code Review
@@ -28,7 +28,7 @@
Install the Claude GitHub App
-If the repositories you want are listed in the **Add a repository** dialog, or you find them by searching there, go on to the next step. The dialog lists a repository only if the Claude GitHub App can access it, so if they aren’t there, install the app:
+If the repositories you want are listed in the **Add a repository** dialog, or you find them by searching there, go on to the next step. Otherwise, install the Claude GitHub App, because the dialog lists only repositories the app can access:
* Click **Install GitHub App**. When no repositories are listed, it’s a button in the dialog. Otherwise, it’s at the bottom of the dialog’s GitHub organization filter menu. GitHub’s install page opens in a new tab.
* Pick the GitHub organization that owns the repositories.
@@ -41,19 +41,19 @@
Choose repositories
-Select the repositories you want reviewed, then click the button that adds them, which reads **Add 2 repositories** when you’ve selected two. Adding a repository needs write access to it from the GitHub account you connected. You can add more repositories later.
+Select the repositories you want reviewed, then click the button that adds them, which reads **Add 2 repositories** when you’ve selected two. You need write access to each repository from the GitHub account you connected. You can add more repositories later.
5
Click Turn on
-In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want [PR Steward](</docs/en/pr-steward>) on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added and nothing is turned on. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
+In the **Choose what Claude does on these repositories** dialog, leave **Code review** selected. If **Steward** is selected and you can change it, clear it unless you also want [PR Steward](</docs/en/pr-steward>) on these repositories. Then click **Turn on** , which is the click that turns Code Review on.If you close the dialog any other way, your repositories stay added. To turn Code Review on then, use the switch under **Review** again.Each repository starts set to review after every push, which runs the most reviews. To run fewer, set when reviews run.
6
Verify with a test pull request
-Open a test pull request in one of the repositories you added, and don’t mark it as a draft. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
+Open a test pull request that’s ready for review in one of the repositories you added. A check run named **Claude Code Review** appears within a few minutes. If you already set the repository to **Manual (@claude review)** , comment `@claude review` on the pull request to start the first review.If no check run appears, see [No check run appears on the test pull request](</docs/en/code-review-troubleshooting#no-check-run-appears-on-the-test-pull-request>).Once the review arrives, send your developers [Read and request reviews on a pull request](</docs/en/code-review-pull-requests>), which covers the severity levels, the comment commands, and how to respond to findings.
## Set defaults for your organization
@@ -70,17 +70,17 @@
Deep| The most thorough pass. Takes the longest and costs the most
* **Organization default** : select a level under **Review level** and confirm with **Change level**. Every repository uses it unless you give that repository its own.
- * **One repository** : click **Edit** on the repository’s row, then select a **Review level** there. The first option, **Default** , follows the organization. The level saves as soon as you select it.
+ * **One repository** : click **Edit** on the repository’s row, then select a **Review level** there. To follow the organization’s level, select the first option, **Default**. The level saves as soon as you select it.
A new level applies to reviews that start after the change. For what else drives the cost of each review, see [Code Review costs and usage](</docs/en/code-review-costs>).
### Set when reviews run
-Each repository has its own **Review runs** setting, which decides when its pull requests get reviewed.
+Use each repository’s **Review runs** setting to choose when its pull requests get reviewed.
* **Once after PR creation** : a review runs when a pull request is opened, reopened, or marked ready for review
* **After every push** : a review runs on pushes to the pull request branch, catching new issues as the pull request evolves and auto-resolving threads when you fix flagged issues
- * **Manual (@claude review)** : opening or pushing to a pull request doesn’t start a review. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
+ * **Manual (@claude review)** : a review runs on request. Comment [`@claude review`](</docs/en/code-review-pull-requests#comment-commands>) to request one, or `@claude review always` to also subscribe the pull request to reviews on subsequent pushes.
Manual is useful for high-traffic repositories where you want to opt specific pull requests into review, or to start reviewing pull requests only once they’re ready. To compare what each option does to spend, see [How often reviews run](</docs/en/code-review-costs#how-often-reviews-run>). To change the setting on the [**Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) page, click **Edit** on the repository’s row in the **Repositories** table and select a **Review runs** option:
@@ -96,7 +96,7 @@
* **The repository is set to Manual** : how to request a review with a comment
* **The pull request comes from a fork** : that a maintainer can request the review
- * **A bot, or someone without write access who isn’t the pull request’s author, comments`@claude review`**: that no review was started, and who can request one
+ * **A bot comments`@claude review`, or someone without write access comments it on someone else’s pull request**: who can request a review
* **The GitHub organization isn’t linked to your Claude organization** : that reviews are paused, and how to link it
Turn the setting off to stop these comments.
@@ -113,7 +113,7 @@
## Manage repositories
-You can add repositories one at a time or cover a whole GitHub organization at once, and stop reviews wherever you don’t want them.
+You can add repositories, cover a whole GitHub organization, or turn off Code Review or remove a repository.
### Add more repositories
@@ -121,23 +121,22 @@
* **A Connect GitHub dialog opens first** : follow the step Connect your GitHub account, which ends with **Add a repository** open
* **A repository isn’t listed** : see [A repository isn’t listed in Add a repository](</docs/en/code-review-troubleshooting#a-repository-isn%E2%80%99t-listed-in-add-a-repository>).
- * **You want every repository in a GitHub organization** : cover the organization instead of selecting repositories one at a time
+ * **You want every repository in a GitHub organization** : cover the organization
* **These are your organization’s first repositories** : the **Choose what Claude does on these repositories** dialog follows. Set its checkboxes as in the step Click Turn on, then click its button, which reads **Turn on** or **Done**. Either way, Code Review is on afterward.
### Cover a whole GitHub organization
-To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. That covers every repository there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. It requires all of these:
+To turn on Code Review for every repository in a GitHub organization, set **Review runs** on the organization’s row in the **Repositories** table. Code Review then covers the repositories there that the Claude GitHub App can access, including repositories added later. This can raise spend significantly. You need all of these:
* The GitHub account you connected to Claude is an owner of that GitHub organization.
- * The organization is on github.com. GitHub Enterprise Server instances and personal GitHub accounts aren’t eligible.
+ * The organization is on github.com. Personal GitHub accounts aren’t eligible.
* A [monthly spend limit](</docs/en/code-review-costs#limit-your-spend>) is set, for your Claude organization or for Code Review.
To cover the organization, click **Edit** on its row, select a **Review runs** option, and confirm. The options are the three from Set when reviews run plus **Off**. After you confirm, these changes take effect:
* **Selected repositories** : if the Claude GitHub App was installed on selected repositories rather than all of them, Claude reviews those repositories; change the app’s repository access on GitHub to cover the rest.
- * **Existing settings** : every repository in that GitHub organization takes the option you select, including repositories you had set individually. Setting the row again does the same. Repositories you turned off on their own rows stay off.
+ * **Existing settings** : each time you set the row, every repository in that GitHub organization takes the option you select, including repositories you had set individually. Repositories you turned off on their own rows stay off.
* **Individual changes afterward** : a repository you later set differently from its organization is marked **Custom** in the table.
- * **Review level** : an organization row has no review level of its own.
### Turn off Code Review or remove a repository
--- a/code-review-troubleshooting.md
+++ b/code-review-troubleshooting.md
@@ -1,4 +1,4 @@
-When [Code Review](</docs/en/code-review>) doesn’t do what you expect on a pull request, start with the **Claude Code Review** check run. Its title says how far the review got.
+To troubleshoot [Code Review](</docs/en/code-review>) on a pull request, start with the **Claude Code Review** check run. Its title says how far the review got.
## Check how far the review got
@@ -6,11 +6,11 @@
Check run title| What it means| What to do
---|---|---
-**Code review queued…** or **Code review in progress…**| The review hasn’t finished| Wait for the title to change
-**Code review found no issues**| The review finished and posted no findings| If this isn’t the pull request’s first review, look in the review body for a count of [findings the review left out](</docs/en/code-review-pull-requests#what-a-later-review-covers>). Otherwise, nothing
+**Code review queued…** or **Code review in progress…**| The review is waiting to start or running| Wait for the title to change
+**Code review found no issues**| The review finished and posted no findings| If the pull request had an earlier review, look in the review body for a count of [findings the review omitted](</docs/en/code-review-pull-requests#what-a-later-review-covers>)
A title that says issues were found| The review finished with findings| If you don’t see them on the diff, see Find issues that aren’t showing as inline comments
-**Code review skipped — no new changes**| An automatic review didn’t run on your latest push| To get a review anyway, comment `@claude review`
-**Code review not repeated — earlier findings still open**| An automatic review didn’t run on your latest push, and Important findings from the earlier review are still open| Push a fix, or to get a review anyway, comment `@claude review`. See [When a push keeps the earlier result](</docs/en/code-review-pull-requests#when-a-push-keeps-the-earlier-result>)
+**Code review skipped — no new changes**| Code Review kept the result of an earlier review after your latest push| To get a review anyway, comment `@claude review`
+**Code review not repeated — earlier findings still open**| Code Review kept the result of an earlier review after your latest push, and Important findings from that review are still open| Push a fix, or to get a review anyway, comment `@claude review`. See [When a push keeps the earlier result](</docs/en/code-review-pull-requests#when-a-push-keeps-the-earlier-result>)
**Code review failed** or **Code review timed out**| The review didn’t finish| To run it again, see Retrigger a failed or timed-out review
**Code review not run: no policy rule uses it**| An automatic review didn’t run, because of the repository’s Claude Approvals policy| See Code review not run: no policy rule uses it
**Code review declined**| The review didn’t run| Read the check run’s summary. If it names a budget or a spend limit, see Review didn’t run and the PR shows a budget message
@@ -18,14 +18,14 @@
## A review didn’t start
-Check these cases when no **Claude Code Review** check run appears, or when Claude posts a comment saying the review was skipped. One case covers a check run whose title says that no review ran.
+Use these cases when no **Claude Code Review** check run appears, or when Claude posts a comment saying the review was skipped. One case covers a check run whose title says that no review ran.
### A comment command didn’t start a review
-After you comment `@claude review`, look for a **Claude Code Review** check run titled **Code review queued…** or **Code review in progress…** on the pull request. An 👀 reaction on your comment doesn’t confirm a review is coming. If no check run appears, check for each of these causes:
+After you comment `@claude review`, look for a **Claude Code Review** check run titled **Code review queued…** or **Code review in progress…** on the pull request. An 👀 reaction on your comment doesn’t confirm a review is coming. If no check run appears, look for each of these causes:
- * **Code Review isn’t on for this repository** : Claude posts no comment and no check run in response to the command. Ask an Owner to [add the repository](</docs/en/code-review-setup#add-more-repositories>). Where a [Claude Approvals](</docs/en/approvals>) policy reads Claude’s review, a new comment with only `@claude review` can still start one.
- * **The comment doesn’t meet a condition** : it was an inline comment or a review body rather than a new top-level comment, or the command wasn’t at the start of the comment. Editing an earlier comment instead of posting a new one doesn’t count either, and the pull request has to be open. See the [conditions for comment commands](</docs/en/code-review-pull-requests#comment-commands>) and post a new comment that meets them.
+ * **Code Review isn’t on for this repository** : ask an Owner to [add the repository](</docs/en/code-review-setup#add-more-repositories>). If a [Claude Approvals](</docs/en/approvals>) policy reads Claude’s review, a new comment with only `@claude review` can still start one.
+ * **The comment doesn’t meet a condition** : if you put the command in an inline comment, a review body, or an edit, post it again at the start of a new top-level comment. For the other requirements, see the [conditions for comment commands](</docs/en/code-review-pull-requests#comment-commands>).
* **You don’t have write access** : you need write, maintain, or admin permission on the repository. On a pull request from a fork, the permission that counts is on the base repository. Unless the pull request is yours, Claude can reply with a [tip](</docs/en/code-review-setup#turn-tip-comments-on-or-off>): “No review was started: manual reviews can only be requested by someone with write access to this repository.” Ask someone with write access to comment instead.
* **The budget ran out** : Claude posts a comment that begins with “⚠️ Code review skipped”. See Review didn’t run and the PR shows a budget message.
@@ -45,18 +45,18 @@
## Retrigger a failed or timed-out review
-If the check run’s summary says “The review session was interrupted before it could finish. A new review of this commit has been queued automatically.”, you don’t need to do anything. That review is retried once automatically. Otherwise, when the check run’s title is **Code review failed** or **Code review timed out** , run the review again with a comment or a re-run:
+If the check run’s summary says “The review session was interrupted before it could finish. A new review of this commit has been queued automatically.”, wait for the new review. Otherwise, when the check run’s title is **Code review failed** or **Code review timed out** , run the review again with a comment or a re-run:
- * **Comment`@claude review`**: post it as a top-level comment on the pull request. This starts a fresh review without subscribing the pull request to future pushes.
- * **Click Re-run** : if the pull request isn’t [from a fork](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), click **Re-run** on the **Claude Code Review** check in GitHub’s **Checks** tab. The re-run covers the pull request’s current head commit and doesn’t subscribe the pull request either.
+ * **Comment`@claude review`**: post it as a top-level comment on the pull request.
+ * **Click Re-run** : if the pull request isn’t [from a fork](</docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks>), click **Re-run** on the **Claude Code Review** check in GitHub’s **Checks** tab.
## Find issues that aren’t showing as inline comments
If the check run title says issues were found but you don’t see inline review comments on the diff, look in these other locations where findings are surfaced:
- * **Check run Details** : click **Details** next to the **Claude Code Review** check in the **Checks** tab. The severity table lists findings with their file, line, and summary regardless of whether the inline comment was accepted.
+ * **Check run table** : open the **Checks** tab and select **Claude Code Review**. The severity table lists findings with their file, line, and summary, including findings whose inline comment GitHub rejected.
* **Files changed annotations** : open the **Files changed** tab on the PR. A finding that has a line but wasn’t posted as an inline comment appears there as an annotation on the lines concerned.
- * **Whole-file comments** : open the **Conversation** tab on the PR and look for a comment from Claude on a whole file instead of on a line
+ * **Whole-file comments** : open the **Conversation** tab on the PR and look for a comment from Claude on a whole file
* **Review body** : in the **Conversation** tab, look for an **Additional findings** heading in Claude’s review
## The check run mentions REVIEW.md
@@ -64,7 +64,7 @@
These are four of the messages a check run can carry about `REVIEW.md`:
* **“This review applied the repository’s review instructions (REVIEW.md) from its default branch, which is not protected against direct pushes.”** : the review read the root file only. See [Which branch REVIEW.md is read from](</docs/en/code-review-customize#which-branch-review-md-is-read-from>) for what protecting the branch changes.
- * **“were not applied to this review: branch protection could not be confirmed”** : the review read no `REVIEW.md`.
+ * **“were not applied to this review: branch protection could not be confirmed”** : the review skipped every `REVIEW.md`.
* **“they link to a file this pull request modifies, or carry more links than the review checks”** : the review skipped the root `REVIEW.md`, or the number of subdirectory `REVIEW.md` files the message gives. Check the skipped file for each cause. For the root `REVIEW.md`, check the [files it includes](</docs/en/code-review-customize#include-other-files-in-review-md>) too:
* **Too many links** : it carries more than 64 Markdown links. Cut links to [64 or fewer](</docs/en/code-review-customize#include-other-files-in-review-md>).
* **A link the review can’t parse** : it has a malformed Markdown link. Fix or remove the link.
@@ -77,11 +77,11 @@
### A repository isn’t listed in Add a repository
-Search for the repository by name first, because the dialog doesn’t load a long list in full. The dialog lists a repository only if the Claude GitHub App can access it. Click **Install GitHub App** and give the app access to the repository. When no repositories are listed, **Install GitHub App** is a button in the dialog. Otherwise, it’s at the bottom of the dialog’s GitHub organization filter menu.
+Search for the repository by name first, because the dialog loads only part of a long list. The dialog lists a repository only if the Claude GitHub App can access it. Click **Install GitHub App** and give the app access to the repository. When no repositories are listed, **Install GitHub App** is a button in the dialog. Otherwise, it’s at the bottom of the dialog’s GitHub organization filter menu.
### No check run appears on the test pull request
-In [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>), confirm that the switch under **Review** is on and that the repository is listed under **Repositories**. Also confirm that the Claude GitHub App has access to it. Automatic reviews skip draft pull requests, and a repository set to **Manual (@claude review)** needs an `@claude review` comment to start the first review.
+In [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>), confirm that the switch under **Review** is on and that the repository is listed under **Repositories**. Also confirm that the Claude GitHub App has access to it. In a repository with automatic reviews, mark a draft pull request ready for review. In a repository set to **Manual (@claude review)** , comment `@claude review` to start the first review.
## Related resources
--- a/commands.md
+++ b/commands.md
@@ -20,8 +20,8 @@
`/add-dir <path>`| Add a working directory for file access. Type a partial path to see matching directory suggestions; press `Tab` to accept one. Most `.claude/` configuration [isn’t discovered](</docs/en/permissions#additional-directories-grant-file-access-not-configuration>) from the added directory. You can’t add most [network paths](</docs/en/errors#working-directory-is-a-network-path>), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](</docs/en/hooks#directoryadded>) run. If you run `/add-dir` while Claude is responding, Claude’s next tool call can access the directory once you confirm the add
`/advisor [model|off]`| Enable or disable the [advisor tool](</docs/en/advisor>), which consults a second model for guidance at key moments during a task. Accepts `fable`, `opus`, `sonnet`, or a full model ID. `fable` requires [Fable access](</docs/en/advisor#choose-an-advisor-model>). Without an argument, opens a picker. In a session without an interactive terminal, or over [Remote Control](</docs/en/remote-control#limitations>), pass the model or `off` as an argument; with no argument there, the command prints the current advisor as text. These forms require Claude Code v2.1.260 or later
`/agents`| Print a reminder to ask Claude to create or manage [subagents](</docs/en/sub-agents>), or to edit `.claude/agents/` or `~/.claude/agents/` directly. On v2.1.197 and earlier, opens an interactive interface for creating and managing subagent configurations
-`/artifact-capabilities`| **[Skill](</docs/en/skills#bundled-skills>).** Load the reference for the runtime capabilities a published [artifact](</docs/en/artifacts>) can use, such as [calling your connectors](</docs/en/artifacts#pull-live-data-with-mcp-connectors>) or [offering a file download](</docs/en/artifacts#offer-a-file-download>), including which ones your account has. Requires [artifacts](</docs/en/artifacts#availability>)
-`/artifact-diagramming`| **[Skill](</docs/en/skills#bundled-skills>).** Load diagramming guidance for Claude to follow in [artifacts](</docs/en/artifacts>): when a diagram helps, what to draw, and how to write inline SVG that stays legible in light and dark themes. Requires Claude Code v2.1.221 or later
+`/artifact-capabilities`| **[Skill](</docs/en/skills#bundled-skills>).** Load the reference for the runtime capabilities a published [artifact](</docs/en/artifacts>) can use, such as [calling your connectors](</docs/en/artifacts#pull-live-data-with-mcp-connectors>) or [offering a file download](</docs/en/artifacts#offer-a-file-download>), including which ones your account has. Offered in some sessions that have [artifacts](</docs/en/artifacts#availability>), so check the `/` menu for it
+`/artifact-diagramming`| **[Skill](</docs/en/skills#bundled-skills>).** Load diagramming guidance for Claude to follow in [artifacts](</docs/en/artifacts>): when a diagram helps, what to draw, and how to write inline SVG that stays legible in light and dark themes. Offered in some sessions that have [artifacts](</docs/en/artifacts#availability>), so check the `/` menu for it. Requires Claude Code v2.1.221 or later
`/artifacts`| List the [artifacts](</docs/en/artifacts#find-an-artifact-again>) you own or that are shared with you, then attach one to the session, open it in your browser, or copy its link. Available where [artifacts](</docs/en/artifacts#availability>) are
`/auto-mode-setup`| [Draft `autoMode.environment` entries](</docs/en/auto-mode-config#generate-environment-entries>) from your project and recent sessions, then review the draft and save it to your user settings. On a Pro, Max, Ultra, or Team plan, requires Claude Code v2.1.228 or later, or v2.1.233 or later on native Windows. On an Enterprise plan or with a Claude Console API key, requires v2.1.283 or later. If the command is missing, see [`/auto-mode-setup` returns “Unknown command”](</docs/en/auto-mode-config#auto-mode-setup-returns-unknown-command>)
`/autocompact [auto|<tokens>]`| Set the auto-compact window: how full the context window gets before Claude Code compacts automatically. Pass a size such as `500k`, or `auto` to return to the window tuned for your model. Claude Code saves the value to user settings and applies it to the current session. See [Set the auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) for accepted values and what overrides it. Without an argument, opens a dialog that shows the current window. Requires Claude Code v2.1.221 or later
--- a/components.md
+++ b/components.md
@@ -218,7 +218,7 @@
}
}
-The file maps each server name directly to its configuration, with no wrapper object around the map. `command` is the binary’s name, with its arguments in `args`. `extensionToLanguage` needs at least one extension, each starting with `.`. `claude plugin validate` doesn’t read this file. When any entry is invalid, the whole file is skipped at load and `Invalid LSP server config for ".lsp.json"` appears in the `/plugin` **Errors** tab. Your plugin configures the connection but doesn’t install the server binary, and each file extension gets one server:
+The file maps each server name directly to its configuration, with no wrapper object around the map. `command` is the binary’s name, with its arguments in `args`. `extensionToLanguage` needs at least one extension, each starting with `.`. An invalid `.lsp.json` file still passes the `claude plugin validate` command. To check the file, load the plugin and open the `/plugin` **Errors** tab. If any entry is invalid, you see `Invalid LSP server config for ".lsp.json"` and Claude Code skips the file. Your plugin configures the connection but doesn’t install the server binary, and each file extension gets one server:
* **Missing binary** : Claude Code starts `command` by name from the user’s `PATH`. When the binary isn’t there, the server fails to start and `claude --debug` logs `LSP server <name> failed to start`
* **Extension conflicts** : when two enabled servers claim the same extension, the first registered handles those files and the other isn’t used for them, whether the servers come from one plugin or two. The `/plugin` **Errors** tab shows the warning `LSP server "<name>" is not used for <ext> files`
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,4 +1,4 @@
-Computer use is a research preview on macOS that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. It requires an interactive session, so it is not available in non-interactive mode with the `-p` flag.
+Computer use is a research preview on macOS for Pro, Max, and Ultra plans. It is not available on Team or Enterprise plans. It requires an interactive session.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
@@ -74,7 +74,7 @@
Can open, change, or delete any file, and run apps and scripts| Finder
Can change system settings| System Settings
-These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: view only for browsers and trading platforms, click only for terminals and IDEs, and full access for most other apps. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for what each level lets Claude do.
+Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: view only for browsers and trading platforms, click only for terminals and IDEs, and full access for most other apps. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for what each level lets Claude do.
## How Claude works on your screen
@@ -149,7 +149,7 @@
---|---|---
Platforms| macOS and Windows| macOS only
Enable| Toggle in [Settings](</docs/en/desktop#enable-computer-use>)| Enable `computer-use` in `/mcp`
-Denied apps list| Configurable in Settings| Not yet available
+Personal denied apps list| Configurable in Settings| Not available
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
@@ -168,7 +168,7 @@
The server only appears on eligible setups. Check that:
* You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
- * You’re on a Pro, Max, or Ultra plan. Run `/status` to confirm your subscription.
+ * Your plan [includes computer use](</docs/en/feature-availability#availability-by-subscription-plan>). Run `/status` to confirm your subscription.
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
--- a/context-window.md
+++ b/context-window.md
@@ -68,15 +68,15 @@
## When your context fills up
-Claude Code compacts automatically as you approach the limit, so a full context window doesn’t end your session. The automatic pass works the same way as the `/compact` step in the timeline. See [When context fills up](</docs/en/how-claude-code-works#when-context-fills-up>) for what it preserves. For when Claude Code also compacts a conversation you leave idle, see [idle compaction](</docs/en/settings-reference#idlecompaction>). You can also act before the automatic pass runs:
+Claude Code compacts automatically as you approach the [auto-compact window](</docs/en/model-config#context-window-and-auto-compaction>), so a long conversation doesn’t end your session. The automatic pass works the same way as the `/compact` step in the timeline. See [When context fills up](</docs/en/how-claude-code-works#when-context-fills-up>) for what it preserves. For when Claude Code also compacts a conversation you leave idle, see [idle compaction](</docs/en/settings-reference#idlecompaction>). You can also act before the automatic pass runs:
* **Compact with a focus** : run `/compact` with instructions, like `/compact focus on the auth bug fix`, before starting a long new task. The summary keeps what you choose instead of what the automatic pass guesses is important.
* **Compact part of the conversation** : run `/rewind`, select a message, and choose **Summarize from here** or **Summarize up to here**. See [Rewind and summarize](</docs/en/checkpointing#rewind-and-summarize>) for what each option keeps and how to guide the summary.
- * **Compact earlier** : run [`/autocompact`](</docs/en/commands#all-commands>) with a token count, like `/autocompact 500k`, to set how full the context window gets before the automatic pass runs. See [Set the auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) for accepted values and overrides.
+ * **Compact earlier or later** : run [`/autocompact`](</docs/en/commands#all-commands>) with a token count, like `/autocompact 500k`, to set how full the context window gets before the automatic pass runs. See [Set the auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) for accepted values and overrides.
* **Clear between tasks** : run `/clear` when switching to unrelated work. Old conversation crowds out the files you need next and costs tokens on every message.
* **Delegate large reads** : send research to a [subagent](</docs/en/sub-agents>) so the file contents stay in its context window, not yours.
-If you need a larger window rather than a smaller conversation, Fable models, Sonnet 5 and later, Haiku 5.5, Opus 4.6 and later, and Sonnet 4.6 support a 1 million token context window. See [Extended context](</docs/en/model-config#extended-context>) for availability by plan and how to select a `[1m]` model variant. Compaction works the same way at the larger limit. The point where automatic compaction runs depends on your model and configuration. See [Default auto-compact thresholds](</docs/en/model-config#default-auto-compact-thresholds>) for the boundaries per model, and [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>) if Claude Code assumes the wrong window for your model ID, such as an [LLM gateway](</docs/en/llm-gateway>) alias.
+If you need a larger window rather than a smaller conversation, choose a model with a 1 million token context window. Fable models, Sonnet 5 and later, Haiku 5.5, Opus 4.6 and later, and Sonnet 4.6 support it. See [Extended context](</docs/en/model-config#extended-context>) for availability by plan and how to select a `[1m]` model variant. To keep a session from compacting well before 1M, see [Compaction near 400K on a 1M model](</docs/en/model-config#compaction-near-400k-on-a-1m-model>). The point where automatic compaction runs depends on your model and configuration. See [Default auto-compact thresholds](</docs/en/model-config#default-auto-compact-thresholds>) for the boundaries per model, and [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>) if Claude Code assumes the wrong window for your model ID, such as an [LLM gateway](</docs/en/llm-gateway>) alias.
## Check your own session
--- a/costs.md
+++ b/costs.md
@@ -206,7 +206,7 @@
## Reduce token usage
-Token costs scale with context size: the more context Claude processes, the more tokens you use. Claude Code automatically optimizes costs through [prompt caching](</docs/en/prompt-caching>), which reduces costs for repeated content like system prompts, and auto-compaction, which summarizes conversation history when approaching context limits. The following strategies help you keep context small and reduce per-message costs.
+Token costs scale with context size: the more context Claude processes, the more tokens you use. Claude Code automatically optimizes costs through [prompt caching](</docs/en/prompt-caching>), which reduces costs for repeated content like system prompts, and auto-compaction, which summarizes conversation history when it approaches the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>). The following strategies help you keep context small and reduce per-message costs.
### Manage context proactively
@@ -320,6 +320,7 @@
* **Long context** : Claude Code sends your full conversation with every request, and each time Claude uses tools it sends another request carrying that batch of tool results. With [prompt caching](</docs/en/prompt-caching>), Claude Code re-reads that history at the [cached token rate](<https://platform.claude.com/docs/en/about-claude/pricing>), so a one-line question in a session that has been open all day still draws usage for the whole conversation. See Manage context proactively for ways to keep your context small
* **Cache misses** : your first message after a break longer than the [cache lifetime](</docs/en/prompt-caching#cache-lifetime>) misses the cache and reprocesses your full context. See [which lifetime your requests get](</docs/en/prompt-caching#which-ttl-each-request-gets>) and [the controls for setting it](</docs/en/prompt-caching#choose-the-ttl-yourself>)
* **Scheduled tasks** : a [session-scoped scheduled task](</docs/en/scheduled-tasks>) fires on its interval even while the session is idle, sending your full context each time
+ * **Background command check-ins** : on some accounts, Claude checks on a [background command](</docs/en/interactive-mode#background-bash-commands>) that stops producing output while you’re away from the terminal. Each check-in is a turn that sends the full context. To end the check-ins, stop the command from `/tasks`. For a command the main conversation started, you see `Background command "<description>" is still running`, and you can send any message to end the check-ins and keep it running
* **Cross-session messages** : Claude Code delivers a [message from another of your sessions](</docs/en/cross-session-messaging>) as a new turn when this session sits idle, sending your full context each time. To hold inbound messages instead of delivering them, set [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) to `hold`
* **Goal check-ins** : while background work keeps an active [goal](</docs/en/goal>) waiting, Claude Code [asks Claude to check on that work](</docs/en/goal#background-work-defers-evaluation>) even when the session sits idle, starting a new turn that sends your full context. Claude Code starts at most three idle check-ins per goal between your prompts. Before v2.1.246, idle check-ins were uncapped. To turn check-ins off, set [`CLAUDE_CODE_GOAL_CHECKIN_MINUTES`](</docs/en/env-vars>) to `0`. Idle check-ins require Claude Code v2.1.236 or later
* **Subagents and workflows** : every subagent, and every agent a [dynamic workflow](</docs/en/workflows#cost>) spawns, sends its own requests on top of the main conversation’s. The attribution breakdown shows the subagent share
--- a/create-marketplace.md
+++ b/create-marketplace.md
@@ -161,7 +161,7 @@
* Unknown fields at the top level or in a plugin entry, as warnings
* Problems in the `plugin.json` of each relative-path plugin, as `plugins[N] plugin.json → <field>: <message>`
-For every message `validate` can print, see [Validation messages](</docs/en/plugins/marketplace-reference#validation-messages>). For its flags and exit codes, see [`plugin validate`](</docs/en/plugins/cli-reference#plugin-validate>).
+To look up a message, see [Validation messages](</docs/en/plugins/marketplace-reference#validation-messages>). For flags and exit codes, see [`plugin validate`](</docs/en/plugins/cli-reference#plugin-validate>).
### Problems that surface when you add or install
--- a/cross-session-messaging.md
+++ b/cross-session-messaging.md
@@ -121,7 +121,6 @@
When session A messages session B, Claude Code tells B’s Claude that the message came from another session, not from you, and limits what the message can do:
* **It can’t approve anything** : a message from another session never counts as your consent, so it can’t answer a pending permission prompt on your behalf.
- * **It can’t change configuration** : Claude Code instructs the receiving Claude never to change permission settings, `CLAUDE.md`, or other configuration because another session asked.
* **Commands don’t run** : a command in the message’s text, such as `/compact`, arrives as plain text. Claude Code never executes it.
* **Permission prompts still fire** : if acting on the message requires a permission the receiving session doesn’t have, you see the same prompt you’d see for any other work.
--- a/debug-your-config.md
+++ b/debug-your-config.md
@@ -35,7 +35,7 @@
## Check hooks
-Run `/hooks` to list every hook registered for the current session, grouped by event. If a hook you defined doesn’t appear, Claude Code didn’t load it. Check for these causes:
+If a hook you defined doesn’t appear when you run `/hooks`, check for these causes:
* The hook is defined in a standalone file. Hooks go under the `"hooks"` key in a [settings file](</docs/en/settings#settings-files>).
* The `matcher` value is an array instead of a single string. Claude Code lists the entry as an invalid setting when you start an interactive session and in `claude doctor`. If the array is under `PreToolUse`, `PermissionRequest`, or `PreSkillShellCommand`, none of that file’s other hooks load either.
@@ -58,8 +58,23 @@
* Custom commands and agents
* Custom output styles
* Custom keybindings
+ * Auto memory, workflows, custom themes, and LSP servers
+ * Status line and file-suggestion commands
-Authentication, model selection, built-in tools, and permissions work normally. If the problem disappears in safe mode, you’ve narrowed the cause to one of the items you turned off. To find it, use the check for that item, such as See what loaded into context, Check MCP servers, or Check hooks. Safe mode still applies managed hooks and settings policy from your organization. Managed plugins, skills, `CLAUDE.md`, and MCP servers are turned off. If the problem persists in safe mode, or your settings themselves are suspect, start a session with none of your own configuration and check whether the problem follows.
+Authentication, model selection, built-in tools, and permissions work normally. If the problem disappears in safe mode, you’ve narrowed the cause to one of the items you turned off. To find it, use the check for that item, such as See what loaded into context, Check MCP servers, or Check hooks. If your organization manages Claude Code, some managed configuration stays on in safe mode:
+
+ * The policy in managed settings
+ * Status line and file-suggestion commands set in managed settings
+ * Command, HTTP, prompt, and agent hooks set in managed settings
+ * Command, HTTP, prompt, and agent [hooks](</docs/en/plugins/components#hooks>) in [force-enabled plugins](</docs/en/plugins/loading#find-where-a-plugin-is-enabled>), in v2.1.326 or later
+ * [Your organization’s mods](</docs/en/plugins/mods/admin#install-your-organizations-mods>), in v2.1.326 or later
+
+Safe mode turns off this managed configuration:
+
+ * Managed skills, `CLAUDE.md` files, and MCP servers
+ * Skills, agents, commands, and MCP servers in force-enabled plugins
+
+If the problem persists in safe mode, or your settings themselves are suspect, start a session with none of your own configuration and check whether the problem follows.
1
--- a/deep-links.md
+++ b/deep-links.md
@@ -20,7 +20,7 @@
### What a launched session shows
-A deep link never executes anything on its own. The link only chooses a directory and fills the prompt box. If you click a link from a page you do not trust, the prompt is still inert: nothing reaches the model until you read what was filled in and press Enter. When the session opens, a warning line below the input box reads `Prompt from an external link` and stays visible until you send or clear the prompt. For prompts over 1,000 characters, the warning includes the character count and tells you to scroll and review the full text before pressing Enter, since long prompts can push instructions off screen. Permission rules, `CLAUDE.md`, and trust prompts for the selected directory apply the same way as for any other session.
+When the session opens, a warning line below the input box reads `Prompt from an external link` and stays visible until you send or clear the prompt. For prompts over 1,000 characters, the warning includes the character count and tells you to scroll and review the full text before pressing Enter, since long prompts can push instructions off screen. Permission rules, `CLAUDE.md`, and trust prompts for the selected directory apply the same way as for any other session.
## Build a link
--- a/dependencies.md
+++ b/dependencies.md
@@ -1,4 +1,4 @@
-A plugin dependency is another plugin that your plugin relies on, such as one whose MCP server or skill it calls. Each dependency tracks the latest version its marketplace provides unless you declare a version constraint, a semantic-version range such as `^2.0` or `~2.1.0` that you’ve tested against. This page is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases.
+A plugin dependency is another plugin that your plugin relies on, such as one whose MCP server or skill it calls. For each dependency, you can declare a version constraint, a semantic-version range such as `^2.0` or `~2.1.0` that you’ve tested against. This page is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases.
These cases are covered on other pages:
@@ -10,7 +10,7 @@
## Declare dependencies
-Without a version constraint, a dependency moves to each new release its marketplace publishes the next time users update. If that release renames an MCP tool your plugin calls, your plugin breaks for everyone who updates. With a constraint such as `~2.1.0` on a dependency from a git-backed source, users who have your plugin installed keep receiving `2.1.x` patches of the dependency and never move to `2.2`. To upgrade on your own schedule, test against a newer release and then publish a new version of your plugin with a wider constraint.
+Without a version constraint, your plugin accepts any new release of a dependency. If that release renames an MCP tool your plugin calls, your plugin breaks for everyone who updates. With a constraint such as `~2.1.0` on a dependency from a git-backed source, users who have your plugin installed keep receiving `2.1.x` patches of the dependency and never move to `2.2`. To upgrade on your own schedule, test against a newer release and then publish a new version of your plugin with a wider constraint.
### Declare a dependency with a version constraint
@@ -27,12 +27,12 @@
]
}
-An entry can be a string: the plugin name alone, such as `"audit-logger"` in this manifest, or `"name@marketplace"` to resolve it in another marketplace. With a bare string, your plugin depends on whatever version that plugin’s marketplace provides. To set a version constraint, use an object with these fields, each a string:
+An entry can be a string: the plugin name alone, such as `"audit-logger"` in this manifest, or `"name@marketplace"` to resolve it in another marketplace. With a bare string, your plugin accepts any version of the dependency. To set a version constraint, use an object with these fields, each a string:
Field| Description
---|---
`name`| The dependency’s plugin name, as it appears in its marketplace entry. Claude Code looks it up in the same marketplace as the declaring plugin unless you set `marketplace`. Required.
-`version`| A [semantic-version range](<https://github.com/npm/node-semver#ranges>) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`. The dependency installs at the highest git tag that satisfies this range, so the dependency’s maintainer must tag releases.
+`version`| A [semantic-version range](<https://github.com/npm/node-semver#ranges>) such as `~2.1.0`, `^2.0`, `>=1.4`, or `=2.1.0`. For a git-backed dependency, check that its maintainer tags releases, and see how a constraint resolves against tags.
`marketplace`| A different marketplace to resolve `name` in. An allowlist controls cross-marketplace dependencies, described in Depend on a plugin from another marketplace.
A range doesn’t match pre-release versions such as `2.0.0-beta.1` unless you opt in with a pre-release suffix such as `^2.0.0-0`.
@@ -127,7 +127,7 @@
### Constrain a dependency that has a non-git source
-Tag-based resolution applies only to git-backed sources. For a dependency with an `npm`, `archive`, or `command` [plugin source](</docs/en/plugins/marketplace-reference#plugin-sources>), the constraint doesn’t control which version is fetched. It’s still checked when the plugin loads, and the dependent plugin is disabled if the installed version doesn’t satisfy it. For `npm`, `archive`, and `command` sources, the version checked is the `version` in the dependency’s `plugin.json`. Set one there before you constrain that dependency, because a `plugin.json` that sets no version satisfies no constraint. Claude Code never installs a dependency with a `command` source itself, so users [install it first](</docs/en/plugins/marketplace-reference#command-plugin-source>). It also never runs a dependency’s [`headersHelper`](</docs/en/plugins/host-marketplace#authenticate-archive-downloads>), so users also install a dependency whose marketplace entry sets one before they install your plugin.
+Tag-based resolution applies only to git-backed sources. For a dependency with an `npm`, `archive`, or `command` [plugin source](</docs/en/plugins/marketplace-reference#plugin-sources>), your users can get a version outside the constraint. The constraint is still checked when the plugin loads, and the dependent plugin is disabled if the installed version doesn’t satisfy it. For `npm`, `archive`, and `command` sources, the version checked is the `version` in the dependency’s `plugin.json`. Set one there before you constrain that dependency, because a `plugin.json` that sets no version satisfies no constraint. Claude Code never installs a dependency with a `command` source itself, so users [install it first](</docs/en/plugins/marketplace-reference#command-plugin-source>). It also never runs a dependency’s [`headersHelper`](</docs/en/plugins/host-marketplace#authenticate-archive-downloads>), so users also install a dependency whose marketplace entry sets one before they install your plugin.
### When a dependency installs automatically
@@ -145,7 +145,7 @@
### How a constraint resolves against tags
-When a user installs a plugin that declares `{ "name": "secrets-vault", "version": "~2.1.0" }`, the dependency installs from the highest `secrets-vault--v` tag that satisfies `~2.1.0` on the repository that hosts `secrets-vault`. When no tag satisfies the range, the install either fails or uses the marketplace’s current copy:
+To resolve `{ "name": "secrets-vault", "version": "~2.1.0" }` against tags, Claude Code looks up the highest `secrets-vault--v` tag that satisfies `~2.1.0` on the repository that hosts `secrets-vault`. If that release doesn’t support a user’s Claude Code version, the user can get [an earlier release](</docs/en/plugins/publish#offer-an-earlier-compatible-release>) that satisfies `~2.1.0`. When no tag satisfies `~2.1.0`, the install either fails or uses the marketplace’s current copy:
* **Plugin with its own repository** : the install fails with a message containing `Dependency "secrets-vault@your-marketplace" has no git tag satisfying`.
* **Plugin referenced by a relative path** : the install uses the marketplace’s current copy instead, and the constraint is checked when the plugin loads. If that copy is outside the range, the dependent plugin stays disabled and `claude plugin list` shows `Requires "secrets-vault@your-marketplace" ~2.1.0, installed 3.0.0`.
@@ -158,15 +158,15 @@
### Combine constraints from several plugins
-When several installed plugins constrain the same dependency, the dependency resolves to the highest version that satisfies all of their ranges. Common combinations resolve like this:
+When several installed plugins constrain the same dependency and Claude Code installs or updates it from tags, it looks up the highest tag that satisfies all of their ranges. Common combinations resolve like this:
Plugin A requires| Plugin B requires| Result
---|---|---
-`^2.0`| `>=2.1`| One install at the highest `2.x` tag at or above `2.1.0`. Both plugins load.
+`^2.0`| `>=2.1`| A `2.x` version at or above `2.1.0` satisfies both plugins.
`~2.1`| `~3.0`| Installing plugin B fails with a `has conflicting version requirements` message. Plugin A and the dependency stay as they were.
`=2.1.0`| none| The dependency stays at `2.1.0`. Auto-update skips newer versions while plugin A is installed.
-Auto-update fetches a constrained dependency at the highest git tag that satisfies every installed plugin’s range, rather than at the marketplace’s latest version. If the installed plugins’ ranges don’t overlap, auto-update leaves that dependency at its current version, and the `/plugin` **Errors** tab shows an entry naming the constraining plugin. If they overlap but no tag falls in the range, auto-update fetches the marketplace’s current copy and skips the update when that copy’s `version` falls outside any installed plugin’s range. When a user uninstalls the last plugin that constrains a dependency, the dependency is no longer constrained to a version range and resumes tracking its marketplace entry on the next update.
+If the installed plugins’ ranges don’t overlap, auto-update leaves that dependency at its current version, and the `/plugin` **Errors** tab shows an entry naming the constraining plugin. If they overlap but no tag falls in the range, auto-update falls back to the marketplace’s current copy. It skips the update when that copy’s `version` falls outside any installed plugin’s range. When a user uninstalls the last plugin that constrains a dependency, the dependency is no longer constrained to a version range and resumes tracking its marketplace entry on the next update.
### Dependencies when your plugin loads from claude.ai
Show diff (379 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -225,7 +225,7 @@
#### Save edits in the file pane
-By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, click **Override** to write your edits over the version on disk, or **Discard** to drop your edits.
+By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, choose in the warning whether to save your edits over that version or discard them.
### Open files in other apps
@@ -378,6 +378,23 @@
In the split view, the pane you opened or clicked last has focus, and the other pane is dimmed. To change which session a pane shows, click in that pane to give it focus, then click a session in the sidebar. To take the focused session out of the split view, press **Cmd+Ctrl+W** on macOS or **Ctrl+Alt+W** on Windows.
+#### Ask Claude to open another session
+
+From a local session, ask Claude to show another local or SSH session in split view. For example, type “Open auth-fix in split view.” Requires Claude Desktop v8.23656.0 or later. You see an approval card first, except for sessions started from this one or when this session is in certain permission modes:
+
+ * **Sessions started from this one** , such as suggested tasks: usually no card appears, unless this session is in Plan.
+ * **Other sessions** : when this session is in Auto or Bypass permissions, Claude usually opens the session without a card. You still see a card in some cases, such as Auto with the other session in Bypass permissions.
+
+Work that resumes when you open a session yourself also resumes when Claude opens it, in that session’s permission mode. One example is a turn interrupted by quitting Desktop. To stop Claude in local sessions from opening sessions on screen, add this [deny rule](</docs/en/permissions#manage-permissions>) to `~/.claude/settings.json` or your organization’s managed settings:
+
+ {
+ "permissions": {
+ "deny": ["mcp__ccd_window__open_session_in"]
+ }
+ }
+
+If your organization sets [`allowManagedPermissionRulesOnly`](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add the rule to managed settings.
+
#### Run a session in its own worktree
In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on **Worktree** in the row under the prompt box.
@@ -498,20 +515,13 @@
### Sessions from Dispatch
-Dispatch isn’t available to new users. If it doesn’t appear in your Claude app, see [other ways to work away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
+Dispatch is being retired and isn’t available to new users. If you still use Dispatch, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>) for what to do before Dispatch turns off. If Dispatch doesn’t appear in your Claude app, or you want a replacement, see [other ways to work away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in [Cowork](<https://claude.com/product/cowork>). You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork.
#### Follow a session that Dispatch started
The session that Dispatch starts appears in the Code tab’s sidebar with your other sessions. With the sidebar’s default grouping and sorting, look for the newest session in the group for the folder it runs in. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions.
-
-#### Set up Dispatch
-
- * **Plans** : Dispatch requires a Pro, Max, or Ultra plan and is not available on Team or Enterprise plans
- * **Setup, pairing, and Dispatch settings** : see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>)
-
-Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
## Extend Claude Code
@@ -916,7 +926,7 @@
Select a folder on the remote machine and click **Create environment**. You keep the machine and folder together as a saved environment for later sessions. Desktop selects it for the new session, so type your task and press **Enter**.
-The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers. A plugin’s hooks might not run there: see Plugin hooks that don’t run in an SSH session.
#### Remote machine requirements for SSH sessions
@@ -1168,14 +1178,49 @@
To confirm, run the first command again. The block’s settings no longer show in its output.
+##### Sign in with Kerberos
+
+To sign in to a remote machine with Kerberos (GSSAPI), turn it on for that machine in the SSH configuration on your computer. On Windows, first make sure that you connect through the OpenSSH client, because Desktop’s built-in SSH client can’t sign in with Kerberos. This entry turns Kerberos on for `devbox`:
+
+~/.ssh/config
+
+ Host devbox
+ HostName devbox.internal.example.com
+ GSSAPIAuthentication yes
+
+Check that `ssh devbox` signs you in from a terminal on your computer. Then add an SSH connection in Desktop with the entry’s name, here `devbox`, in the **SSH host** field. If Desktop shows `Get a new Kerberos ticket, then try again`, get a new ticket on your computer and connect again:
+
+ * **macOS and Linux** : run `kinit`
+ * **Windows** : connect to your work network or VPN, then lock and unlock your computer
+
##### Forwarding settings that Desktop leaves off
-On its connection to the remote machine, Desktop leaves `ForwardAgent`, `ForwardX11`, `LocalForward`, `RemoteForward`, `DynamicForward`, and `Tunnel` off, even where your SSH configuration turns them on. In the terminal or a `!` command, expect your forwarding settings to apply only sometimes, because Desktop can start a separate `ssh` there that follows them.
+On its connection to the remote machine, Desktop leaves `ForwardAgent`, `ForwardX11`, `LocalForward`, `RemoteForward`, `DynamicForward`, `Tunnel`, and `GSSAPIDelegateCredentials` off, even where your SSH configuration turns them on. Claude Desktop v4.16336.0 or later also leaves them off in the terminal and for commands that start with `!`, with exceptions.
* **To reach a port on the remote machine** : forward it yourself
* **To use your own keys from the remote machine** : set up a credential on the remote machine itself, for example for `git push`
-To keep Desktop from forwarding your SSH agent or a port, run `ssh -G devbox` in a terminal on your computer. Then run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips. Look in both outputs for a `forwardagent` line that says anything but `no`, and for lines that begin with `localforward`, `remoteforward`, or `dynamicforward`. If you find one, remove that setting from your SSH configuration. Do the same for a host that your `ProxyCommand` reaches with `ssh`.
+##### Forwarding that Desktop doesn’t turn off
+
+ * **A version before v4.16336.0** : you still forward what your SSH configuration turns on in some terminals and `!` commands. Update Desktop. If you can’t, remove the settings.
+ * **A jump host** : at the machine that your connection passes through, Desktop follows `GSSAPIDelegateCredentials`. Remove it for the jump host unless you want it there.
+ * **A`ProxyCommand` that runs `ssh`**: that `ssh` can forward what your SSH configuration sets for the host that it signs in to. If you don’t want that, remove the settings for that host.
+ * **A shared connection (`ControlMaster` with `ControlPath`)**: on macOS or Linux, you keep what your own shared `ssh` connection forwards in a terminal or `!` command that joins it. Desktop’s own connection to the remote machine doesn’t join it. To end the forwarding:
+ 1. Remove the settings for that host.
+ 2. Close the shared connection, which ends your own `ssh` sessions on it and any Desktop terminal or `!` command that uses it. To close it, run `ssh -O exit devbox` on your computer, with your host’s name for `devbox`.
+
+To find and remove the settings for a host such as `devbox`:
+
+ 1. Run `ssh -G devbox` in a terminal on your computer.
+ 2. Run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips.
+ 3. Look in both outputs for these lines, which mean that a setting is on:
+ * `forwardagent`, then anything but `no`
+ * `forwardx11 yes`
+ * `tunnel`, then anything but `false`
+ * A line that begins with `localforward`, `remoteforward`, or `dynamicforward`
+ * `gssapidelegatecredentials yes`
+ 4. Remove each setting that you find from `~/.ssh/config` or a file that it includes. If you don’t find it there, look in the system-wide file and the files that it includes: `/etc/ssh/ssh_config`, or `%ProgramData%\ssh\ssh_config` on Windows. If you can’t change that file, ask whoever manages your computer.
+ 5. Run both commands again to confirm that neither output shows a line from step 3.
#### Reach a port on the remote machine
@@ -1189,7 +1234,7 @@
A Windows remote machine requires Claude Desktop v2.31226.0 or later. Use Microsoft’s OpenSSH Server. The machine can be x64 or ARM64. The shell that the SSH server starts can be `cmd.exe`, Windows PowerShell 5.1, or Git Bash. Windows remote machines get less testing than Linux ones. Try your own work there before you rely on it. Expect these limits, among others, on a Windows remote machine:
- * **Terminal** : the terminal doesn’t open in a session whose folder is a Windows path, such as `C:/projects/app`
+ * **Terminal** : if the terminal doesn’t open in a session whose folder is a Windows path, such as `C:/projects/app`, ask Claude to run your commands or use `ssh` in your own terminal
* **Sandbox** : Claude Code runs there on native Windows, where it runs commands unsandboxed. See [where the sandbox runs](</docs/en/sandboxing>).
* **Plugins** : Desktop doesn’t copy a plugin that holds a file or folder name Windows can’t store, such as a name with `:`. The session lists the plugins that Desktop left out.
* **MCP servers while disconnected** : to use MCP servers from your computer’s `claude_desktop_config.json` while Desktop is disconnected, connect through the OpenSSH client with Claude Desktop v6.6395.0 or later. Otherwise, keep Desktop connected while a task uses those servers.
@@ -1240,7 +1285,7 @@
* **The remote machine** : if the remote machine restarts, or ends your processes when your SSH connection closes, the running task ends. Nothing starts it again while Desktop is disconnected. Linux machines where systemd-logind’s `KillUserProcesses` is `yes` and applies to your user end your processes this way. To keep a task running there, ask the administrator to exempt your user, for example with `KillExcludeUsers`.
* **Idle terminals** : some Linux remote machines log out a terminal that nobody types in for a set time (systemd-logind’s `StopIdleSessionSec`). With Desktop on macOS or Linux, a session’s terminal and `!` commands share Desktop’s SSH connection by default. That logout then ends the connection while Desktop is connected, and the running task can end with it. Closing the terminal pane doesn’t prevent it, so keep commands out of that terminal.
* **Desktop updates** : if an update brings a new helper, Desktop replaces the helper on the remote machine at a later connection, which can end a task that still runs
- * **Long absences** : on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then.
+ * **Time limit** : on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then. If the session shows a line such as `This host stops Claude Code after 1 hour when no one is connected.`, the remote machine’s administrator has set a time limit. Your task can end once Desktop has been disconnected that long: connect before then to restart the count. To leave a task running past that limit, ask the administrator to [change the time limit](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#limit-how-long-engines-run-with-no-connection>), or keep Desktop running and connected.
File edits and some tools can fail while Desktop is disconnected. If the task needs them, keep Desktop connected:
@@ -1266,13 +1311,37 @@
If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. If a request that waited for you is gone when you come back, one cause is that Desktop restarted on its own, for example to install an update. You keep a request through a restart only if Desktop can rejoin the process, so check when Desktop can rejoin before you leave a task running. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:
- * **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>).
+ * **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>). In Auto mode, you still answer Claude’s questions and approve its plans.
* **Allow rules** : in your user settings file on the remote machine, `~/.claude/settings.json`, add [allow rules](</docs/en/permissions#manage-permissions>) for the commands the task needs. If your organization [accepts permission rules from managed settings only](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add them to the managed settings that reach the remote machine. For allow rules in a project’s `.claude/settings.json`, see [Project allow rules and workspace trust](</docs/en/permissions#project-allow-rules-and-workspace-trust>).
* **A hook that answers** : configure a [`PermissionRequest` hook](</docs/en/hooks#permissionrequest>) in `~/.claude/settings.json` on the remote machine to allow or deny requests in your place
* **A hook that alerts you** : configure a [`Notification` hook](</docs/en/hooks#notification>) with the `permission_prompt` matcher in the same file to send yourself a message when a request is waiting
* **A hook that tells you when Claude is done** : configure a [`Stop` hook](</docs/en/hooks#stop>) in the same file to send yourself a message when Claude has finished responding. It doesn’t run when an API error ends the turn. For that case, configure a [`StopFailure` hook](</docs/en/hooks#stopfailure>).
If your organization [runs managed hooks only](</docs/en/settings-reference#allowmanagedhooksonly>), ask your administrator to add the hook to the managed settings that reach the remote machine. Claude Code doesn’t auto-approve [a few actions](</docs/en/permission-modes#actions-no-mode-auto-approves>) in any permission mode, including Bypass permissions. Depending on the permission mode, Claude Code denies such an action or asks you, and the task then waits for your answer.
+
+##### Why a task waits in Auto mode or Bypass permissions
+
+In Auto mode and Bypass permissions, a task still waits for you to answer requests such as these in Desktop:
+
+ * **A question** : answer the question that Claude asks you
+ * **A plan** : approve the plan that Claude presents. In either permission mode, Claude can switch to [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>) without asking you.
+ * **A permission prompt** : answer the prompt, for example for a tool call that matches an [ask rule](</docs/en/permissions#manage-permissions>)
+
+To have Claude Code deny a step that it would otherwise ask you about, you can set [`permissions.denyInsteadOfPrompting`](</docs/en/settings-reference#permissions-denyinsteadofprompting>) in `~/.claude/settings.json` on the remote machine. Requires Claude Code v2.1.319 or later on the remote machine. Until you remove the key, expect changes such as these in the SSH session that you start, including while you are there to answer:
+
+ * **Permission prompts** : Claude Code denies a tool call that it would otherwise ask you to approve, and that step doesn’t run
+ * **Questions and plans** : Claude works without the [tools that ask you a question, switch to plan mode, or present a plan](</docs/en/settings-reference#what-else-denyinsteadofprompting-stops>)
+ * **Blocks in Auto mode** : the [prompt that follows repeated blocks](</docs/en/permission-modes#when-auto-mode-falls-back>) doesn’t appear, and the turn, or a subagent’s run, ends after [20 blocked tool calls in a row](</docs/en/settings-reference#messages-from-denyinsteadofprompting>)
+
+For the other sessions that the key changes, see [where it applies](</docs/en/settings-reference#permissions-denyinsteadofprompting>). To set the key, add it to the `permissions` object in that file before you start the session:
+
+~/.claude/settings.json
+
+ {
+ "permissions": {
+ "denyInsteadOfPrompting": true
+ }
+ }
##### Reconnect after sleep or a network loss
@@ -1447,6 +1516,119 @@
#### Use MCP servers set up on the remote machine
To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see MCP servers from `claude_desktop_config.json`.
+
+#### Plugin hooks that don’t run in an SSH session
+
+When Desktop copies a plugin to the remote machine, it sometimes omits the plugin’s [hooks](</docs/en/hooks>), and those hooks don’t run. When your computer or the remote machine runs Windows, Desktop omits them. When both run macOS or Linux, you might not get them either:
+
+ * **With a Claude account** : Desktop sends hooks for only some accounts, and you can’t look up which, so don’t count on them for a guardrail.
+ * **With a[third-party provider](</docs/en/third-party-integrations>)**: see [Plugin hooks on the remote host](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#plugin-hooks-on-the-remote-host>) for when Desktop sends them.
+
+A message in the session that the plugin “runs without its hooks” confirms that Desktop omitted them, though not every session shows one. If a message says instead that a hook “gave no usable answer”, skip to Fix a hook that gave no usable answer. If the hook is a guardrail, one that your organization relies on to block actions, define it on the remote machine whatever the session shows. For any other hook, take the step that fits what the session shows:
+
+ * **A message says to install the plugin on the remote machine** : see Install a plugin on the remote machine
+ * **The “runs without its hooks” message names a step** : take that step, then start a new session. If the step is to ask your administrator, leave the rest of this section to them.
+ * **That message comes back, or anything else** : define the hook on the remote machine
+
+##### Define a plugin’s hook on the remote machine
+
+To make a plugin’s hook run in SSH sessions whether or not Desktop sends it, define the same hook in [settings](</docs/en/hooks#hook-locations>) on each remote machine that people connect to.
+
+1
+
+Copy the hook's scripts
+
+Copy the scripts that the hook runs, and the files that they read, from the plugin to a folder on the remote machine. Make sure that everyone the hook applies to can read the folder and run the scripts. Install the programs that the scripts call, such as `python3` or `jq`.In the scripts, replace the plugin’s [variables](</docs/en/plugins/components#environment-quoting-and-matching-mcp-tools>), because a hook in settings doesn’t get them:
+
+ * **`CLAUDE_PLUGIN_ROOT`** : use the new folder’s path
+ * **`CLAUDE_PLUGIN_DATA`** : use a folder in each user’s home directory, `$HOME`, and have the script create it
+ * **`CLAUDE_PLUGIN_OPTION_<KEY>`**: use that option’s value, unless it is a secret
+
+Keep a secret, such as a token, out of the scripts and the hook’s command, which other users of the machine can read. Have the script read it from a file that only the people the hook applies to can read. Claude runs as those people, so it can read that file too: use a secret that you’re willing to give them and Claude.For a guardrail, protect its files and the programs that it calls:
+
+ * **The folder** : let only an administrator write to it, to anything in it, or to the folders above it
+ * **Programs** : name each by its full path, outside users’ folders, in the scripts, in their first lines, and in the hook’s command
+ * **Files in`$HOME`**: don’t let the decision rest on them, because users can change them
+
+2
+
+Add the hook to settings on the machine
+
+Copy the hook from the plugin’s `hooks/hooks.json`. In it, replace `${CLAUDE_PLUGIN_ROOT}` with the new folder’s path, and `${user_config.<key>}` with the option’s value. Take out each argument that holds `${CLAUDE_PLUGIN_DATA}` or a secret option, and have the script work those out itself.Put a guardrail in managed settings, and a hook for your own use in your user settings:
+
+ * **A guardrail** : add the hook to a [managed settings file or policy](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on that machine, and make sure that everyone the hook applies to can read the file. Keep the hook out of [server-managed settings](</docs/en/server-managed-settings>), because those settings also reach other computers where people sign in to your organization, and those computers lack its scripts.
+ * **Your own use** : add the hook to `~/.claude/settings.json` on the remote machine. If your organization limits hooks, as [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>) and [`strictPluginOnlyCustomization.hooks`](</docs/en/settings-reference#strictpluginonlycustomization-hooks>) do, ask your administrator to add it to managed settings instead.
+
+For example, suppose that the plugin’s `hooks/hooks.json` runs `"${CLAUDE_PLUGIN_ROOT}/scripts/guard.sh"` before each Bash command, and that you copied the plugin’s `scripts` folder to `/opt/claude-hooks/`.On a Linux machine that had no managed settings file, the new file looks like this:
+
+/etc/claude-code/managed-settings.json
+
+ {
+ "parentSettingsBehavior": "merge",
+ "hooks": {
+ "PreToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "/opt/claude-hooks/scripts/guard.sh"
+ }
+ ]
+ }
+ ]
+ }
+ }
+
+For `parentSettingsBehavior`, see the next step. In `~/.claude/settings.json`, or in managed settings that the machine already has, merge only the `hooks` block into what is there.
+
+3
+
+Check how your managed settings combine
+
+Skip this step for a hook in your user settings. For a guardrail, read on if you deliver server-managed settings, if the machine had no managed settings before, or if it has an MDM policy for Claude Code:
+
+ * **If you deliver server-managed settings** : Claude Code can skip the machine’s file or policy. To have it apply both, follow [Compose every managed source](</docs/en/managed-settings#compose-every-managed-source>), which has you set a key in the server-managed settings and says when that is safe. If you [give groups different settings](</docs/en/server-managed-settings#give-groups-different-settings>), set that key in every group’s configuration, and in the catch-all if you have set one.
+ * **If the machine had no managed settings file or policy before** : keep [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) set to `"merge"`, as in the example. Without that setting, limits that come from Desktop’s own policies can [stop applying in Claude Code](</docs/en/managed-settings#let-an-embedding-host-add-policy>).
+ * **If both of those are true** : in sessions that server-managed settings govern, Claude Code reads `parentSettingsBehavior` from them alone. To have Desktop’s limits apply there too, follow [Let an embedding host add policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>), which says what else the key lets through.
+ * **If the machine has an MDM policy for Claude Code** : Claude Code can skip a managed settings file there, because the policy outranks it. To have it apply both, follow [Compose every managed source](</docs/en/managed-settings#compose-every-managed-source>), which has you set a key and says when that is safe. Set that key in the policy, even if your server-managed settings have it, and only if it is safe wherever the policy goes.
+
+4
+
+Test the hook
+
+To tell the new hook from the plugin’s own, have the copied script create a file in `$HOME` just before it blocks or changes the action. Then test the hook in a new SSH session, under a login that it applies to:
+
+ 1. Make sure that the file isn’t there yet
+ 2. Try a harmless action that the new hook blocks or changes, and one that it leaves alone
+ 3. Check both results, and check that the file is there
+
+When the test passes, undo the change to the script and delete the file. If the new hook doesn’t act, go over the variables, permissions and programs in the first two steps again. For other causes, see [Hook not firing](</docs/en/hooks-guide#hook-not-firing>).If you later start to deliver server-managed settings or an MDM policy for Claude Code, go through the previous step and test the hook again.
+
+5
+
+Block the action when the hook fails
+
+For a guardrail, once the test passes, add `"onFailure": "block"` beside `"command"`, so that Claude Code blocks the action when the hook itself fails. Then [test the setting](</docs/en/hooks#block-the-action-when-a-hook-fails>).
+
+If Desktop sends the plugin’s hooks as well, both copies can run. If you see a hook that isn’t a guardrail act twice, remove the copy in settings. None of these steps makes the hook tamper-proof. It runs under each user’s own login, so a user can get around it, and so can Claude where it’s allowed to change that user’s files. For a limit that users can’t lift, use the machine’s own accounts and permissions.
+
+##### Install a plugin on the remote machine
+
+If a message in the session says to install the plugin on the remote machine, [install it](</docs/en/plugins/install#install-a-plugin>) in a terminal there, from the marketplace you used on your computer. If the terminal doesn’t find the `claude` command, [install Claude Code](</docs/en/setup#install-claude-code>) on that machine first, because the Claude Code that Desktop installs there isn’t on your `PATH`. Then start a new session and check that the hook runs.
+
+##### Fix a hook that gave no usable answer
+
+If the session shows `A hook of the "<plugin>" plugin gave no usable answer, so it didn't check this action`, the hook failed on the remote machine. Check that the programs the hook’s command calls, such as `python3` or `jq`, are installed on that machine. For other causes, see [Hook error in output](</docs/en/hooks-guide#hook-error-in-output>). To block the action when the hook fails, set [`onFailure: "block"`](</docs/en/hooks#block-the-action-when-a-hook-fails>) on the hook.
+
+#### Restrict hooks in SSH sessions
+
+To restrict the hooks that run in SSH sessions, set one of these keys to `true` in managed settings on the remote machine, not on your computer:
+
+ * **[`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>)** : only [hooks that your organization deploys](</docs/en/settings-reference#what-runs-under-allowmanagedhooksonly>) run. Hooks from the plugins that Desktop copies don’t
+ * **[`disableAllHooks`](</docs/en/settings-reference#disableallhooks>)** : every configured hook is disabled, managed ones included
+
+On a machine that had no managed settings before, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"`. If you deliver server-managed settings or an MDM policy for Claude Code, see Check how your managed settings combine. Then start a new session, and check that a hook that the key disables doesn’t run.
#### Open an SSH session from a link
@@ -2009,7 +2191,7 @@
*.claudeusercontent.com
*.claudemcpcontent.com
-If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
+With either list, also allow `hcaptcha.com` and `*.hcaptcha.com` for the [hCaptcha](<https://www.hcaptcha.com>) check at sign-in. If you block the hCaptcha hosts, sign-in can fail with a “couldn’t verify your browser” message. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
### Authentication and SSO
@@ -2027,6 +2209,17 @@
* **Windows** : deploy via the MSIX package. See [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) for enterprise deployment options including silent installation
For the domains to allowlist in your firewall, see network access requirements above. For proxy settings, custom certificate authorities, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
+
+#### Run the Code tab on Windows virtual desktops (VDI)
+
+Local, cloud, and SSH sessions in the Code tab don’t need nested virtualization on a Windows virtual desktop. [Cowork](<https://claude.com/docs/cowork/overview>) and [WSL sessions](</docs/en/desktop-wsl>) need nested virtualization for the virtual machine that each uses inside the virtual desktop. You can install and start Desktop without nested virtualization. To deploy Desktop, add it to your base image and persist its data:
+
+ * **Base image** : with administrator rights, run the [provisioning command](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) to add the MSIX package to the image
+ * **User data** : on non-persistent virtual desktops, persist each user’s Windows profile. If you use roaming profiles, add a profile container or another tool that persists `%LOCALAPPDATA%`, because roaming profiles exclude it by default. Make sure that your tool persists all of these folders under `%LOCALAPPDATA%`: `Claude-Data`, `Claude-3p`, and `Packages\Claude_pzs8sxrjxfjjc`. If you use FSLogix, check [what it keeps](<https://claude.com/docs/third-party/claude-desktop/data-storage#virtual-desktops>).
+
+Without those folders, users lose Desktop’s data at each Windows sign-in. For example, they sign in to their Claude account again, lose their list of local and SSH sessions, and re-add their own SSH connections. Desktop also can’t rejoin a task still running on a remote machine. To run Code tab sessions on remote machines instead of on your virtual desktops, turn off local sessions and distribute SSH connections.
+
+For what Cowork shows without nested virtualization, see [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>).
## Coming from the CLI?
@@ -2175,6 +2368,56 @@
If MCP server toggles don’t respond or servers fail to connect on Windows, check that the server is properly configured in your settings, restart the app, verify the server process is running in Task Manager, and review server logs for connection errors.
+### Sign in to an MCP server on an SSH host
+
+When an MCP server waits for a browser sign-in on a Linux remote machine, open its sign-in link on your computer, then pass the result back to the remote machine. If a line in the SSH session says that a server `didn’t start in time on` the remote machine, check for this cause. Enter `/mcp` in the prompt box, select the server in the **MCP servers** dialog, and select **View details**. A line such as `Authentication required. Waiting for authorization...` or `Another instance is running the sign-in for this server` in the server’s output confirms it.
+
+#### Finish an `mcp-remote` sign-in from a terminal
+
+Use these steps if the remote machine runs Linux and the server’s entry in `claude_desktop_config.json` on your computer runs [`mcp-remote`](<https://www.npmjs.com/package/mcp-remote>) with no `env` block, for example `npx mcp-remote https://mcp.example.com/mcp`:
+
+1
+
+Stop processes that wait for the same sign-in
+
+In a terminal on the remote machine, list your `mcp-remote` processes:
+
+ pgrep -u "$(id -un)" -af '^[^ ]*node [^ ]*/mcp-remote '
+
+If the command prints nothing, go to the next step. For each line that has your server’s URL, run `kill <pid>`, where `<pid>` is the process ID at the start of the line. If another session under your user account on that machine uses the same server, the server stops there until [Claude Code starts it again](</docs/en/mcp#stdio-servers-that-exit-or-fail-to-start>).If you leave one of these processes running, the command in the next step can print `Another instance is running the sign-in for this server` without the sign-in link.
+
+2
+
+Run the server's command
+
+In the same terminal, run the command and arguments from the server’s entry, and leave the command running:
+
+ npx mcp-remote https://mcp.example.com/mcp
+
+The command prints a sign-in link under `Please authorize this client by visiting:`.
+
+3
+
+Approve the sign-in on your computer
+
+Open the link in a browser on your computer and approve the sign-in. The browser then goes to an address that starts with `http://localhost:`, where the page can fail to load. Copy the whole address from the address bar.
+
+4
+
+Send the address to the remote machine
+
+In a second terminal on the remote machine, run this command, paste the address that you copied, and press **Enter** :
+
+ read -r url && printf 'url = "%s"\n' "$url" | curl --noproxy localhost -K -
+
+The output includes `Authorization successful!`, and the first terminal prints `Connected to remote server`.
+
+5
+
+Reconnect the server in Desktop
+
+Press `Ctrl+C` in the first terminal to stop `mcp-remote`, which has saved the sign-in under `~/.mcp-auth` on the remote machine. Then enter `/mcp` in the prompt box again and select **Reconnect** in the server’s row. When the server connects, a check mark takes the button’s place.
+
### SSH host key verification failed
Each of these messages means that Desktop refused a host key:
Show diff (109 lines)
--- a/env-vars.md
+++ b/env-vars.md
@@ -154,14 +154,14 @@
`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS`| Set to `1` to disable all built-in [subagent](</docs/en/sub-agents>) types such as Explore and Plan. Only applies in non-interactive mode (the `-p` flag). Useful for SDK users who want a blank slate. This also removes `general-purpose`, the subagent Claude Code runs when an Agent tool call omits `subagent_type`. Such a call then fails with [`subagent_type is required`](</docs/en/errors#subagent-type-is-required>)
`CLAUDE_AGENT_SDK_MCP_NO_PREFIX`| Set to `1` to skip the `mcp__<server>__` prefix on tool names from SDK-created MCP servers. Tools use their original names. SDK usage only
`CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS`| Stall timeout in milliseconds for subagents. Also covers [workflow agents](</docs/en/workflows#when-an-agent-stalls-and-restarts>) on Claude Code v2.1.286 or later. Default `600000` (10 minutes); if you raise `CLAUDE_STREAM_IDLE_TIMEOUT_MS` while the stream watchdog is on, the default rises with it, as [Handle slow or stalled API responses](</docs/en/agent-sdk/typescript#handle-slow-or-stalled-api-responses>) describes
-`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`| Set the percentage (1-100) of the auto-compact window at which auto-compaction triggers. Use lower values like `50` to compact earlier; the variable can’t raise the threshold, so values above the default percentage are ignored. It applies only in sessions that [compact before the model’s context limit](</docs/en/model-config#context-window-and-auto-compaction>). Applies to both main conversations and subagents
+`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`| Set the percentage (1-100) of the auto-compact window at which auto-compaction triggers. Lower values compact earlier in that window, and higher ones stop at its default threshold. It applies only in sessions that [compact before the model’s context limit](</docs/en/model-config#context-window-and-auto-compaction>). On [native 1M models](</docs/en/model-config#default-auto-compact-thresholds>) outside cloud sessions, it makes the default window 1M. Applies to both main conversations and subagents
`CLAUDE_AUTO_BACKGROUND_TASKS`| Set to `1` to force-enable automatic backgrounding of long-running agent tasks. When enabled, a [subagent](</docs/en/sub-agents#run-subagents-in-foreground-or-background>) moves to the background after running for approximately two minutes. If Claude queued a tool call such as a file edit behind the subagent, the subagent finishes in the foreground before that call starts. Also enables [automatic backgrounding of long MCP tool calls](</docs/en/mcp#automatic-backgrounding-of-long-tool-calls>) in non-interactive mode on Claude Code v2.1.212 or later
`CLAUDE_AX_PREPARK_MS`| In [screen reader mode](</docs/en/accessibility>), how many milliseconds Claude Code waits before it writes a new or changed line. Default `0`, so Claude Code doesn’t wait. Before v2.1.287, the default was `50`. Claude Code caps the wait at `5000`. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>). Requires Claude Code v2.1.233 or later
`CLAUDE_AX_SCREEN_READER`| Set to `1` to render screen-reader friendly output: flat text without decorative borders or animations. Set to `0` to force screen-reader mode off even when [`axScreenReader`](</docs/en/settings-reference#axscreenreader>) is `true`. The [`--ax-screen-reader`](</docs/en/cli-reference#cli-flags>) flag takes precedence. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>). Requires Claude Code v2.1.181 or later
`CLAUDE_AX_STARTUP_QUIET_MS`| In [screen reader mode](</docs/en/accessibility>), how many milliseconds Claude Code holds the first interface render after the startup confirmation line. Your screen reader can then speak the line in full before new output interrupts it. Default `3000`. Set `0` to render immediately. Claude Code caps the hold at `600000` (10 minutes). Your first keystroke ends the hold early. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>). Requires Claude Code v2.1.217 or later
`CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR`| Return to the original working directory after each Bash or PowerShell command in the main session
`CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS`| Timeout in milliseconds for the byte-level streaming idle watchdog; when set, it takes precedence over `CLAUDE_STREAM_IDLE_TIMEOUT_MS` for that watchdog and leaves the event-level watchdog unchanged. Claude Code clamps this variable to between 10 seconds and 30 minutes. Requires Claude Code v2.1.210 or later
-`CLAUDE_CLIENT_PRESENCE_FILE`| Path to a file that an external tool, such as a screen-lock listener, creates when you unlock your screen and deletes when you lock it. While the file exists, Claude Code skips [Remote Control mobile push notifications](</docs/en/remote-control#mobile-push-notifications>), so you stop getting pushes while you are actively using the computer. When the file is absent or unreadable, notifications are sent as normal. Claude Code checks the file once per push-triggering event rather than polling it. Requires Claude Code v2.1.181 or later
+`CLAUDE_CLIENT_PRESENCE_FILE`| Path to a file that an external tool, such as a screen-lock listener, creates when you unlock your screen and deletes when you lock it. While the file exists, Claude Code skips [Remote Control mobile push notifications](</docs/en/remote-control#mobile-push-notifications>) for permission prompts and questions, except in [server mode](</docs/en/remote-control#start-a-remote-control-session>). Requires Claude Code v2.1.181 or later
`CLAUDE_CODE_ACCESSIBILITY`| Set to `1` to keep the native terminal cursor visible and disable the inverted-text cursor indicator. Allows screen magnifiers like macOS Zoom to track cursor position
`CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD`| Set to `1` to load memory files from directories specified with `--add-dir`. Loads `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules/*.md`, and `CLAUDE.local.md`. By default, additional directories do not load memory files
`CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT`| Set to `1` to repaint the entire screen on every frame in [fullscreen rendering](</docs/en/fullscreen>) instead of sending incremental updates. Use this if fullscreen mode shows stale or misplaced text fragments. Claude Code enables this automatically for background sessions and [agent view](</docs/en/agent-view>) on Windows
@@ -172,6 +172,7 @@
`CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT`| Set to `0` to stop Claude [replying on its own to comments sent to it](</docs/en/artifacts#let-claude-reply-to-comments-on-its-own>). Requires Claude Code v2.1.228 or later
`CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS`| Set to `0` to stop Claude from [applying small changes](</docs/en/artifacts#turn-off-one-step-artifact-updates>) to an artifact’s local file as part of publishing it. Requires Claude Code v2.1.300 or later
`CLAUDE_CODE_ATTRIBUTION_HEADER`| Set to `0` to omit the [attribution block](</docs/en/llm-gateway-protocol#system-prompt-attribution-block>), which carries the client version and a prompt fingerprint, from the start of the system prompt. Caching on a direct connection to the Anthropic API is unaffected either way. In some direct-connection setups, Claude Code keeps the block on [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier requests even when you set `0`. In [System prompt attribution block](</docs/en/llm-gateway-protocol#system-prompt-attribution-block>), check which connections and credentials this covers. Before v2.1.181 the block included a per-request token on custom base URLs and Microsoft Foundry connections, so on those versions set it to `0` when your LLM gateway caches on the request body or forwards requests to a third-party provider, or when you connect to Microsoft Foundry directly
+`CLAUDE_CODE_ATTRIBUTION_PROJECT`| Name the claude.ai Project your usage is reported under: its UUID or ID. Set it in the launch environment. Takes precedence over [`attributionProject`](</docs/en/settings-reference#attributionproject>) and your organization’s default, and is sent under the same conditions. Requires Claude Code v2.1.305 or later
`CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS`| Removed in v2.1.283. Use `CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE` instead
`CLAUDE_CODE_AUTO_COMPACT_WINDOW`| Set the auto-compact window, which is how full the context gets before compaction, to a token count of `100000` or more. Suffixed values such as `200k` require v2.1.304 or later. For precedence over the other ways to set the window and the effect on the status line’s `used_percentage`, see [Set the auto-compact window](</docs/en/model-config#set-the-auto-compact-window>)
`CLAUDE_CODE_AUTO_CONNECT_IDE`| Override automatic [IDE connection](</docs/en/vs-code>). By default, Claude Code connects automatically when launched inside a supported IDE’s integrated terminal. Set to `false` to prevent this. Set to `true` to force a connection attempt when auto-detection fails, such as when tmux obscures the parent terminal. Takes precedence over the [`autoConnectIde`](</docs/en/settings-reference#autoconnectide>) global config setting
@@ -231,18 +232,19 @@
`CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION`| Set to `1` to stop Claude Code from re-reading the [mTLS client certificate and key](</docs/en/network-config#mtls-authentication>) when an API request fails with a connection-level error, such as a connection reset or a TLS handshake error. With the reload disabled, Claude Code loads rotated files only when it next applies settings or at the next startup. Requires Claude Code v2.1.232 or later
`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`| Set to any non-empty value, such as `1`, to disable nonessential network traffic: auto-updates, telemetry, error reporting, the `/feedback` command, [Claude-drafted feedback](</docs/en/tools-reference#sendfeedback-tool-behavior>), release notes, the [PR and MR status badge](</docs/en/interactive-mode#pr-review-status>) checks, and availability checks such as the [fast mode](</docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways>) check. It also stops the [background runs of plugin `command` sources](</docs/en/plugins/loading#when-a-command-source-re-runs>), which are local commands rather than network traffic, because they can trigger dependency installs. **Setting it to`0` or `false` still disables this traffic**, unlike most on/off variables; unset the variable to allow it again. Also disables feature-flag fetching, which makes [Remote Control](</docs/en/remote-control#requirements>) and the other features that need feature-flag fetching unavailable. Official plugin marketplace auto-install isn’t covered; disable it with `CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`. Doesn’t affect [gateway model discovery](</docs/en/llm-gateway-connect#add-gateway-models-to-the-model-picker>), which has its own opt-in
`CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK`| Set to `1` to disable the non-streaming fallback when a streaming request fails mid-stream. Useful when a proxy or gateway causes the fallback to produce duplicate tool execution
-`CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK`| Set to `1` to send the `PushNotification` tool’s desktop notification even while you are typing in or focused on the terminal. By default the tool skips both the desktop notification and the [mobile push](</docs/en/remote-control#mobile-push-notifications>) when it detects recent keyboard activity or terminal focus. This variable disables only that local check, so the server can still suppress the mobile push when it detects that you are active. Requires Claude Code v2.1.193 or later
+`CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK`| Set to `1` to keep receiving the `PushNotification` tool’s desktop notification while you are typing in or focused on the terminal. Anthropic’s servers can still suppress the tool’s [mobile push](</docs/en/remote-control#mobile-push-notifications>) when they detect that you are active. Requires Claude Code v2.1.193 or later
`CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`| Set to `1` to disable automatic registration of the official plugin marketplace. Claude Code reads the variable when it is about to register the marketplace, usually during a machine’s first interactive launch. If the variable is set at that point, Claude Code skips the registration permanently. Unsetting the variable later doesn’t undo the skip. Run `claude plugin marketplace add anthropics/claude-plugins-official` to register the marketplace at any time
`CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS`| Set to `1` to stop Claude Code from running your [`Notification` hooks for unanswered permission requests](</docs/en/hooks#notification>) in sessions where Claude Code sends them to the Agent SDK’s `canUseTool` callback, which is how Claude Desktop and the VS Code extension host Claude Code. Has no effect in terminal sessions. Requires Claude Code v2.1.233 or later
`CLAUDE_CODE_DISABLE_POLICY_SKILLS`| Set to `1` to skip loading skills from the system-wide managed skills directory. Useful for container or CI sessions that should not load operator-provisioned skills
`CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY`| Set to `1` to turn off the [PowerShell tool](</docs/en/tools-reference#powershell-tool>) check that denies the `cmd` built-ins `rd`, `rmdir`, `del`, and `erase` on a [system path](</docs/en/permission-modes#remove-item-in-powershell>), such as a drive root or your home directory. Claude Code ignores this variable in a settings file’s `env` block. Requires Claude Code v2.1.283 or later
`CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR`| Set to `1` to have Claude Code stop at startup on a plain `host:port` in `HTTPS_PROXY` or `https_proxy` even when it starts with no terminal. Claude Code ignores it in project and local settings. Requires Claude Code v2.1.327 or later
`CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK`| Set to `1` to turn off the [automatic model switch when a safety classifier flags a request](</docs/en/model-config#automatic-model-fallback>), the behavior the [`switchModelsOnFlag`](</docs/en/settings-reference#switchmodelsonflag>) setting controls
+`CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE`| Except on a direct connection to the Claude API, Claude Code can [retry a request twice](</docs/en/llm-gateway-protocol#retry-unchanged-then-without-earlier-thinking>) after a `400` or `422` that it doesn’t recognize. The first retry is unchanged, and the second omits the thinking blocks from earlier turns. Set to `1` to turn off both retries. Requires Claude Code v2.1.334 or later
`CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION`| Set to `1` to request uncompressed model responses if your [proxy](</docs/en/network-config#proxy-configuration>) leaves compressed ones unfinished. Not recommended for self-hosted runners or Remote Control. Ignored in project and local settings. Requires Claude Code v2.1.331 or later
`CLAUDE_CODE_DISABLE_SHELL_HEAD_START`| Set to `1` to turn off the head start that can run your shell startup files while Claude writes the session’s first Bash command, before that command’s permission prompt. Requires Claude Code v2.1.327 or later
`CLAUDE_CODE_DISABLE_SHIP`| Set to `1` to turn off [`/ship` and `/steward`](</docs/en/ship-command#turn-off-%2Fship-and-%2Fsteward-for-your-organization>). Requires Claude Code v2.1.331 or later
`CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS`| Set to `1` to stop Claude Code from sending the structured-output `output_config.format` field and the `anthropic-beta` value that pairs with it, for an [LLM gateway](</docs/en/llm-gateway-protocol#feature-pass-through>) whose upstream rejects them. This leaves on the other pre-release capabilities that [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS`](</docs/en/llm-gateway-protocol#disable-pre-release-capabilities>) turns off. Requires Claude Code v2.1.288 or later
-`CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT`| Set to `1` to turn off the [critical-path](</docs/en/permission-modes#critical-paths>) check for a recursive `rm` whose target is entirely the output of a command substitution, such as `rm -rf "$(pwd)"`. The other critical-path checks keep running. Set it in the environment that launches Claude Code, since Claude Code ignores a copy delivered through a settings `env` block. Requires Claude Code v2.1.281 or later
+`CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT`| Set to `1` to turn off the [critical-path](</docs/en/permission-modes#critical-paths>) check for a recursive `rm` whose target is entirely the output of a command substitution, such as `rm -rf "$(cat target.txt)"`. The other critical-path checks keep running. Set it in the environment that launches Claude Code, since Claude Code ignores a copy delivered through a settings `env` block. Requires Claude Code v2.1.281 or later
`CLAUDE_CODE_DISABLE_TERMINAL_TITLE`| Set to `1` to disable automatic terminal title updates based on conversation context. This also skips the background small/fast-model request that [generates a session title](</docs/en/sessions#name-your-sessions>), and turns off [status reports to your terminal](</docs/en/terminal-config#see-session-status-in-your-terminal>)
`CLAUDE_CODE_DISABLE_THINKING`| Set to `1` to omit the `thinking` parameter from the API requests for the main conversation’s turns, subagent turns, and the compaction summary. This is a compatibility option for proxies and gateways that reject the parameter. On models that think by default, the model may still think. To explicitly disable [extended thinking](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>) on the Anthropic API, use `MAX_THINKING_TOKENS=0` instead. See [where you can’t turn thinking off](</docs/en/model-config#where-you-cant-turn-thinking-off>)
`CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK`| Set to `1` so [`claude ultrareview`](</docs/en/ultrareview#trust-the-folder-before-the-review-runs>) doesn’t exit with `Error: Workspace not trusted` when run without a terminal or with `CI=true`. `claude ultrareview` still asks when it can. From v2.1.314, the variable also skips the trust check in `/ultrareview` and `/code-review ultra`. Set it in the launch environment, not a settings `env` block, and only where every review starts in a folder you trust. Requires Claude Code v2.1.309 or later
@@ -295,7 +297,7 @@
`CLAUDE_CODE_IDE_SKIP_VALID_CHECK`| Set to `1` to skip validation of IDE lockfile entries during connection. Use when auto-connect fails to find your IDE despite it running
`CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS`| Context size, in tokens, at which [idle compaction](</docs/en/settings-reference#idlecompaction>) applies to a conversation (default: `200000`). Accepts a positive whole number, and anything else is ignored. Values below `100000` are raised to `100000`, the lowest threshold. Idle compaction is on by default for conversations that meet its conditions. To turn it off, set `idleCompaction` to `false`. Requires Claude Code v2.1.290 or later
`CLAUDE_CODE_LOOP_KEEPALIVE`| Set to `1` to run one extra iteration of an interactive [self-paced `/loop`](</docs/en/scheduled-tasks#stop-a-loop>) when its second or later iteration ends with nothing scheduled
-`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`| How many [subagents](</docs/en/sub-agents#concurrent-subagent-limit>) can be running in one session before the Agent tool refuses to spawn another (default: 20). Accepts a positive whole number in plain digits; anything else is ignored, so the variable can adjust the cap but can’t disable it. Requires Claude Code v2.1.217 or later
+`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`| How many [subagents](</docs/en/sub-agents#concurrent-subagent-limit>) can be running in one session before the Agent tool refuses to spawn another (default: at least 20). Accepts a positive whole number in plain digits; anything else is ignored, so the variable can adjust the cap but can’t disable it. Requires Claude Code v2.1.217 or later
`CLAUDE_CODE_MAX_CONTEXT_TOKENS`| Override the context window size Claude Code assumes for the active model. As of v2.1.193, how it applies depends on how Claude Code resolves the model ID; see [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>). Use this when routing to a model through `ANTHROPIC_BASE_URL` whose context window does not match the built-in size for its name
`CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH`| Maximum length in characters of MCP tool descriptions and MCP server instructions that Claude Code sends to the model. The value you set replaces both [default limits](</docs/en/mcp#for-mcp-server-authors>): 4096, and 16384 for the description of a tool that Claude loads through tool search. Accepts a positive whole number in plain digits. Anything else is ignored and the defaults apply. Requires Claude Code v2.1.280 or later
`CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Set the maximum number of output tokens for most requests. Defaults and caps vary by model; see [max output tokens](<https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison>). Claude Code lowers a value above a model’s cap to the cap. For a model ID Claude Code [can’t resolve to a model it knows](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>), the default is 32000 and the cap is 128000
@@ -323,7 +325,7 @@
`CLAUDE_CODE_OTEL_DIAG_STDERR`| Set to `1` to write OpenTelemetry exporter diagnostic errors to stderr. By default these errors only appear with `--debug`, so a misconfigured exporter such as a Prometheus port collision otherwise fails silently. Requires Claude Code v2.1.179 or later. See [Monitoring](</docs/en/monitoring-usage>)
`CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS`| Timeout in milliseconds for flushing pending OpenTelemetry spans (default: 5000). See [Monitoring](</docs/en/monitoring-usage>)
`CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS`| Interval for refreshing dynamic OpenTelemetry headers in milliseconds (default: 1740000 / 29 minutes). See [Dynamic headers](</docs/en/monitoring-usage#dynamic-headers>)
-`CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS`| Timeout in milliseconds for the OpenTelemetry exporter to finish on shutdown (default: 2000). Increase if metrics are dropped at exit. See [Monitoring](</docs/en/monitoring-usage>)
+`CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS`| Timeout in milliseconds for the OpenTelemetry exporter to finish on shutdown (default: 2000). See [Monitoring](</docs/en/monitoring-usage>)
`CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS`| Starting delay in milliseconds of the backoff between retries of a request that the API rejects with a `529` overloaded error (default: 500). Raise it to spread the retries over a longer window when the API is at capacity. Give whole milliseconds from 500 to 32000 in plain digits; Claude Code treats any other value as unset. See [when it has no effect](</docs/en/errors#tune-retry-behavior>). Requires Claude Code v2.1.292 or later
`CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS`| Ceiling in milliseconds on the backoff between retries of a request that the API rejects with a `529` overloaded error (default: 32000). Raise it so that later retries keep spreading apart. Give whole milliseconds from 32000 to 300000 in plain digits; Claude Code treats any other value as unset. Values above 64000 require v2.1.323 or later. See [when it has no effect](</docs/en/errors#tune-retry-behavior>). Requires Claude Code v2.1.296 or later
`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`| Set to `1` to let Claude Code run your package manager’s upgrade command in the background when a new version is available. Applies to Homebrew and WinGet installations. Other package managers continue to show the upgrade command without running it. See [Auto updates](</docs/en/setup#auto-updates>)
@@ -354,7 +356,7 @@
`CLAUDE_CODE_RETRY_WATCHDOG`| Set to `1` for unattended sessions. Keeps retrying `429` and `529` capacity errors past `CLAUDE_CODE_MAX_RETRIES`. Spend limits and exhausted usage credits [can end the retries](</docs/en/errors#when-the-retry-watchdog-stops-retrying>). See [retry limits](</docs/en/errors#tune-retry-behavior>) and [fast mode](</docs/en/fast-mode#handle-rate-limits>). Requires Claude Code v2.1.186 or later
`CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS`| Maximum time in milliseconds that each API request spends waiting out `429` and `529` errors when `CLAUDE_CODE_RETRY_WATCHDOG` is set. Once that time is spent, the next such error ends the request. Give a positive whole number in plain digits, such as `1800000` for 30 minutes. When unset, the wait has no limit. Requires Claude Code v2.1.295 or later
`CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS`| Minimum interval in milliseconds between checks of whether a [usage limit](</docs/en/errors#youve-hit-your-session-limit>) was already lifted, while a request waits for that limit to reset with `CLAUDE_CODE_RETRY_WATCHDOG` set. When a check finds the limit lifted, the request goes out at once. Give a whole number in plain digits from `60000`, one minute, to `10800000`, three hours. Checks are made only for a claude.ai subscription’s session or weekly limit while usage credits aren’t in use, and not while `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` is set. When this variable is unset or its value is outside that range, no checks are made. Requires Claude Code v2.1.305 or later
-`CLAUDE_CODE_SAFE_MODE`| Set to `1` to start in safe mode: CLAUDE.md, skills, plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, custom keybindings, status line and file-suggestion commands, LSP servers, and auto memory do not load, for troubleshooting a broken configuration. Managed settings policy still applies, including policy-configured hooks, status line, and file-suggestion commands; managed plugins, managed skills, managed CLAUDE.md, and policy-configured MCP servers do not. Equivalent to passing [`--safe-mode`](</docs/en/cli-reference#cli-flags>). Directly spawned child processes inherit the variable
+`CLAUDE_CODE_SAFE_MODE`| Set to `1` to start in safe mode and troubleshoot a broken configuration. With `--bg`, pass [`--safe-mode`](</docs/en/cli-reference#cli-flags>) instead. [Some managed configuration stays on](</docs/en/debug-your-config#test-against-a-clean-configuration>)
`CLAUDE_CODE_SCRIPT_CAPS`| JSON object limiting how many times specific scripts may be invoked per session when `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` is set. Keys are substrings matched against the command text; values are integer call limits. For example, `{"deploy.sh": 2}` allows `deploy.sh` to be called at most twice. Matching is substring-based so shell-expansion tricks like `./scripts/deploy.sh $(evil)` still count against the cap. Runtime fan-out via `xargs` or `find -exec` is not detected; this is a defense-in-depth control
`CLAUDE_CODE_SCROLL_SPEED`| Set the mouse wheel scroll multiplier in [fullscreen rendering](</docs/en/fullscreen#mouse-wheel-scrolling>). Accepts any positive value up to 20, including fractional values below 1 such as `0.5` to slow accelerated trackpad and wheel scrolling in terminals that already amplify wheel events. Set to `3` to match `vim` if your terminal sends one wheel event per notch without amplification. Ignored in the JetBrains IDE terminal, where Claude Code uses its own scroll handling
`CLAUDE_CODE_SEND_FEEDBACK`| Set to `0` to turn off [Claude-drafted feedback](</docs/en/tools-reference#sendfeedback-tool-behavior>) for a session. Set to `1` to turn it on where your account already has access; the variable can’t grant access itself, and the other switches that turn feedback off, such as `DISABLE_FEEDBACK_COMMAND` and the [`feedbackDrafts`](</docs/en/settings-reference#feedbackdrafts>) setting’s `off` value, still apply
@@ -396,7 +398,7 @@
`CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDE`| On Linux and WSL, set to a comma-separated list of the kinds of processes Claude Code [excludes from the tool memory cap](</docs/en/tools-reference#memory-limit-on-linux-and-wsl>), such as `mcp` or `lsp`. Set `none` to cap every kind, or `all-new` to cap only Bash, PowerShell, and Monitor tool commands. Claude Code keeps Bash, PowerShell, and Monitor tool commands under the cap whatever you list. Requires Claude Code v2.1.246 or later
`CLAUDE_CODE_TOOL_MEMORY_LIMIT`| On Linux and WSL, set to a size such as `4G` to [cap the memory that Bash and PowerShell tool commands can use](</docs/en/tools-reference#memory-limit-on-linux-and-wsl>), and Monitor tool commands on v2.1.246 or later. Write the size in plain digits, alone for a number of bytes or with a `K`, `M`, `G`, or `T` suffix. Set `0` or `off` to turn the cap off. Once the first process Claude Code starts has turned the cap on or off, a changed value takes effect the next time you launch `claude`. Requires Claude Code v2.1.233 or later
`CLAUDE_CODE_TRANSCRIPT_LOCAL_GC`| Set to `1` to limit how large the [transcript file](</docs/en/sessions#where-transcripts-are-stored>) of a long `-p` or Agent SDK session grows. After each compaction, once the file is larger than 5 MB, Claude Code removes the history from before that compaction. On v2.1.296 or later, the file stays as it is when removing that history would shrink it by less than 10%. Resuming the session restores the same conversation whether or not the file was trimmed. Set it in the environment you start Claude Code from, since a settings `env` block can’t turn it on. Requires Claude Code v2.1.287 or later
-`CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS`| Deadline in milliseconds for the dialogs that [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) covers. Overrides that setting. For held cross-session messages, see [Control inbound messages](</docs/en/cross-session-messaging#control-inbound-messages>) and [non-interactive sessions](</docs/en/cross-session-messaging#non-interactive-sessions>). `0` or a negative value disables the deadline. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>)
+`CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS`| Deadline in milliseconds for the dialogs that [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) covers. Overrides that setting. `0` or a negative value disables the deadline. Ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>)
`CLAUDE_CODE_USE_ANTHROPIC_AWS`| Use [Claude Platform on AWS](</docs/en/claude-platform-on-aws>)
`CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD`| Use [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>)
`CLAUDE_CODE_USE_BEDROCK`| Use [Amazon Bedrock](</docs/en/amazon-bedrock>)
@@ -427,10 +429,10 @@
`CLAUDE_SUBAGENT_BG_SHELL_MAX_MS`| Removed in v2.1.260 and now a no-op. Previously capped how long a [background shell command](</docs/en/interactive-mode#background-bash-commands>) that a [subagent](</docs/en/sub-agents>) started could run, in milliseconds, with a 60-minute default. See [the background command lifetime rules](</docs/en/tools-reference#background-commands>)
`DEBUG`| Set to `1` to enable debug mode, equivalent to launching with [`--debug`](</docs/en/cli-reference#cli-flags>). Debug logs are written to `~/.claude/debug/<session-id>.txt`, or to the path set by `CLAUDE_CODE_DEBUG_LOGS_DIR`. Only the truthy values `1`, `true`, `yes`, and `on` enable debug mode, so namespace patterns like `DEBUG=express:*` set for other tools do not trigger it
`DISABLE_AUTOUPDATER`| Set to `1` to disable automatic background updates. Manual `claude update` still works. Use `DISABLE_UPDATES` to block both
-`DISABLE_AUTO_COMPACT`| Set to `1` to disable automatic compaction when approaching the context limit, along with [idle compaction](</docs/en/settings-reference#idlecompaction>). The manual `/compact` command remains available. Use when you want explicit control over when compaction occurs. Overrides the [`autoCompactEnabled`](</docs/en/settings-reference#autocompactenabled>) setting
+`DISABLE_AUTO_COMPACT`| Set to `1` to disable automatic compaction, along with [idle compaction](</docs/en/settings-reference#idlecompaction>). The manual `/compact` command remains available. Use when you want explicit control over when compaction occurs. Overrides the [`autoCompactEnabled`](</docs/en/settings-reference#autocompactenabled>) setting
`DISABLE_COMPACT`| Set to `1` to disable all compaction, including `/compact` and the [rewind menu’s summarize options](</docs/en/checkpointing#rewind-and-summarize>)
`DISABLE_COST_WARNINGS`| Set to `1` to disable cost warning messages
-`DISABLE_DOCTOR_COMMAND`| Set to `1` to hide the [`/doctor`](</docs/en/commands#all-commands>) setup checkup skill and its `/checkup` alias. Useful for managed deployments where users shouldn’t run setup diagnostics from a session. Doesn’t affect the `claude doctor` terminal command. Before v2.1.205, this variable hid the `/doctor` diagnostics screen command
+`DISABLE_DOCTOR_COMMAND`| Set to `1` to hide the [`/doctor`](</docs/en/commands#all-commands>) setup checkup skill and its `/checkup` alias. Useful for managed deployments where users shouldn’t run setup diagnostics from a session. The `claude doctor` terminal command still runs. Before v2.1.205, this variable hid the `/doctor` diagnostics screen command
`DISABLE_ERROR_REPORTING`| Set to any non-empty value, such as `1`, to opt out of error reporting. **Setting it to`0` or `false` still opts out**, unlike most on/off variables; unset the variable to turn error reporting back on
`DISABLE_EXTRA_USAGE_COMMAND`| Set to `1` to hide the `/usage-credits` command that lets users purchase additional usage beyond rate limits
`DISABLE_FEEDBACK_COMMAND`| Set to `1` to disable the `/feedback` command and [Claude-drafted feedback](</docs/en/tools-reference#sendfeedback-tool-behavior>). Also disables `/bug` and `/share`, which report through the same path; before v2.1.212 they were aliases of `/feedback`, so the command was disabled under every name. The older name `DISABLE_BUG_COMMAND` is also accepted
@@ -559,8 +561,9 @@
* Use [the advisor tool](</docs/en/advisor#requirements>), except with Claude Code v2.1.300 or later on Claude Platform on AWS or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>)
* Use [MCP tasks](</docs/en/mcp#requirements-for-mcp-tasks>) outside an interactive terminal session, or from a subagent
* Use [skills from MCP servers](</docs/en/mcp#use-skills-from-mcp-servers>)
+ * Run [`claude mcp add --web`](</docs/en/mcp#add-a-connector-from-your-terminal>)
* Have Claude read [another organization’s public artifact](</docs/en/artifacts#read-an-artifact-shared-with-you>)
- * Publish a design system as an artifact with [`/design-sync`](</docs/en/artifacts#design-sync-requirements>)
+ * Publish a design system as an artifact with `/design-sync`, unless you’re on v2.1.334 or later and turned fetching off with `DISABLE_TELEMETRY`, `DO_NOT_TRACK`, or `CLAUDE_CODE_DISABLE_FEATURE_FLAGS`. In that case, check the other [`/design-sync` requirements](</docs/en/artifacts#design-sync-requirements>)
* Get the [PowerShell tool](</docs/en/tools-reference#powershell-tool>) by default for claude.ai and Console accounts on Windows with Git Bash installed; Claude Code routes shell commands through Git Bash unless you set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1`. On Windows without Git Bash, the tool stays on
* Get [Claude-drafted feedback](</docs/en/tools-reference#sendfeedback-tool-behavior>), which Claude Code turns on through a fetched flag
Show diff (156 lines)
--- a/errors.md
+++ b/errors.md
@@ -136,6 +136,7 @@
`Couldn't read the stored credentials for MCP server "<name>", so the request didn't run`| Authentication
`A request to MCP server "<name>" was sent without your stored credentials`| Authentication
`This server's URL is missing or not a valid URL, so sign-in can't start`| Authentication
+`This service doesn't accept sign-ins from Claude Code` / `Incompatible auth server: does not support dynamic client registration`| [Use pre-configured OAuth credentials](</docs/en/mcp#use-pre-configured-oauth-credentials>)
`Issuer mismatch in authorization response (RFC 9207)`| Authentication
`Stopped an OAuth request`| Authentication
`Refusing to send credentials to non-https token endpoint` / `<short-name> from the MCP SDK for <server-url>`| Authentication
@@ -229,6 +230,7 @@
`API Error: 400 orphaned tool_result in conversation history`| Request errors
`API Error: 400 duplicate tool_use ID in conversation history`| Request errors
`Invalid data in redacted_thinking block`| Request errors
+`If other sessions work and this one keeps failing, start a new session`| [Retry unchanged, then without earlier thinking](</docs/en/llm-gateway-protocol#retry-unchanged-then-without-earlier-thinking>), on the LLM gateway protocol page
`[Unsupported tool content removed]`| Request errors
`role 'system' must precede an 'assistant' message`| Request errors
`Invalid encrypted_content in search_result block` / `Invalid encrypted_index in text block` / `Failed to decrypt web search result content`| Request errors
@@ -449,7 +451,9 @@
`The sandbox could not create <dir>, a folder it must protect from the command, because the temp disk is full`| Free space on the temp disk or repair it, then have Claude run the command again.
`Your disk quota is full on the filesystem with Claude Code's temp directory <dir> (EDQUOT)` / `The filesystem with Claude Code's temp directory <dir>, or your disk quota on it, is full (ENOSPC)`| Tool errors
`Command output was lost: the temp filesystem at <dir> is full` / `is out of inodes`| Tool errors
-`File is not valid UTF-8. It may use a legacy encoding such as Windows-1252, Shift-JIS or GBK, or be binary`| Tool errors
+`File is not valid UTF-8`| Tool errors
+`File has NUL bytes in its first 8 KB` / `File is UTF-16 big-endian (it starts FE FF), which these tools cannot write`| Ask Claude to make the change with a shell command that keeps the file’s encoding.
+`File starts with the UTF-16LE byte-order mark (FF FE) but has an odd number of bytes`| Ask Claude to fix the file’s length with a shell command.
`git is not installed on this Mac. To install it, run xcode-select --install, then try again.`| Tool errors
`Refusing to apply edits to <path>: a hook is configured for file edits in this session`| Tool errors
`no longer leads where it did` / `Could not confirm that working directory "<cwd>" is the directory that this command was permission-checked in`| Ask Claude to try again.
@@ -547,6 +551,7 @@
`Your Claude session has expired. Sign in again to continue (claude auth login).`| Configuration warnings
`Managed settings were not approved; exiting without applying them.`| Configuration warnings
`Your organization's managed settings need your approval, which couldn't be asked for here.`| Configuration warnings
+`Your organization may apply global configuration to Claude Code`| [Security approval dialogs](</docs/en/server-managed-settings#security-approval-dialogs>)
`Claude Code can't start: your organization's managed settings block the default model` / `Claude Code can't start: your organization allows only the models listed in "availableModels"`| Configuration warnings
`Your organization's managed settings allow Claude Code to use: <providers>`| Configuration warnings
`Your organization's managed settings allow Claude Code to use no API provider at all`| Configuration warnings
@@ -610,7 +615,7 @@
* A TLS certificate validation failure, such as a TLS-inspecting proxy, a missing `NODE_EXTRA_CA_CERTS` bundle, or an expired certificate. Claude Code reports the error on the first attempt, so you can fix the certificate setup right away; see SSL certificate errors. Claude Code still retries transient TLS conditions such as a handshake timeout. Before v2.1.199, Claude Code retried certificate failures through the full retry budget before showing the error.
* A server error, dropped connection, or stalled stream that arrives after Claude has completed a block of text or a tool call, or has started one after finishing its thinking, but before it finishes the response. Claude Code doesn’t re-run the request, because that could execute the same tool calls twice. It keeps what Claude completed, runs any tool calls Claude finished, and continues the turn from their results. For what you see in an interactive session and in a non-interactive one, read The response above may be incomplete. Before v2.1.199, Claude Code discarded the partial output and reported the whole turn as an error when a server error arrived mid-stream.
- * A failure that arrives after Claude has finished the response: nothing needs retrying, so Claude Code keeps the complete response and ends the turn normally.
+ * A server error, dropped connection, or stalled stream after Claude has finished the response. Claude Code keeps the complete response and ends the turn normally.
* An Amazon Bedrock streaming response with an unexpected content-type, because the gateway or proxy rewriting the response would rewrite the retry the same way. Requires Claude Code v2.1.208 or later.
* A non-streaming retry of a failed streaming request that gets a success status but no Claude API message in the body. Claude Code ends the turn with that error.
* A request that your organization’s policy check denied, which surfaces as an `API Error:` line carrying the denial message. Your organization’s administrators set up the check with [Inference hooks](<https://platform.claude.com/docs/en/manage-claude/inference-hooks>), a Claude Enterprise feature, and the message ends with the instructions they configured, or by default tells you to contact them. Claude Code doesn’t re-send the denied request to the same model or to a [fallback model](</docs/en/model-config#fallback-model-chains>), because the denial is about the request’s content rather than the model. Before v2.1.239, Claude Code could re-send a denied request, without streaming or on a configured fallback model, before showing you the denial.
@@ -762,8 +767,8 @@
In four cases, Claude Code handles the failure without showing this notice right away:
* Earlier in the response, Claude Code either retries the failure or ends the turn with a different error. See Automatic retries.
- * When one of these failures arrives after Claude has finished the response, Claude Code keeps the complete response and ends the turn normally, without this notice. Before v2.1.222, Claude Code showed this notice when the connection dropped or stalled after the response finished, and reported the turn as an error even though the response was complete.
- * In a [non-interactive session](</docs/en/headless>), such as a `-p` run, an [Agent SDK](</docs/en/agent-sdk/overview>) run, or a [cloud session](</docs/en/claude-code-on-the-web>), you don’t have to send `continue` yourself when the cut-off response is in the main conversation and contains text but no tool calls: Claude Code keeps the partial output and prompts Claude to continue from where it stopped, up to three times in a row. You see this notice for such a response only once Claude Code has used up those continuations. Before v2.1.246, Claude Code ended a non-interactive turn with this notice on the first cut-off.
+ * When a server error, dropped connection, or stall happens after Claude has finished the response, Claude Code keeps the complete response and ends the turn normally. Before v2.1.222, Claude Code showed this notice when the connection dropped or stalled after the response finished, and reported the turn as an error.
+ * In a [non-interactive session](</docs/en/headless>), when a cut-off response in the main conversation contains text but no tool calls, the turn continues from the partial output. You see this notice for such a response only once Claude Code has used up those continuations. Non-interactive sessions include `-p` runs, [Agent SDK](</docs/en/agent-sdk/overview>) runs, and [cloud sessions](</docs/en/claude-code-on-the-web>). Before v2.1.246, Claude Code ended a non-interactive turn with this notice on the first cut-off.
* In a [subagent](</docs/en/sub-agents#api-errors-in-subagents>), whether the session is interactive or not: when its cut-off response contains text but no tool calls, Claude Code prompts the subagent to continue. The notice becomes the subagent’s last message only once those continuations are used up. Before v2.1.257, a subagent showed this notice on the first cut-off.
**What to do:**
@@ -941,14 +946,12 @@
Fable 5.1 now uses usage credits · the prompt to confirm went unanswered · nothing was sent · answer it where this session is running, or /model to change
Claude stopped here because Fable 5.1 now requires usage credits.
-The messages name the session’s Fable model, so on Fable 5.2 you see text such as `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. With [Remote Control](</docs/en/remote-control>) connected, the first two messages can instead end with `Claude stopped here · send a message to be asked again, or switch models`. Before v2.1.257, the first message began `Fable 5 limit reached`. For when Claude Code closes the prompt, see [Fable and usage credits](</docs/en/model-config#fable-and-usage-credits>). **What to do:**
+The messages name the session’s Fable model, so on Fable 5.2 you see text such as `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. With [Remote Control](</docs/en/remote-control>) connected, the first two messages can instead end with `Claude stopped here · send a message to be asked again, or switch models`. Before v2.1.257, the first message began `Fable 5 limit reached`. **What to do:**
* Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](</docs/en/agent-view>) first.
* With Remote Control connected to a terminal session, you can also reply from your device and answer the prompt if it appears there
* Run `/model` to switch to a model that doesn’t bill usage credits
* To give yourself more time, set [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) to a longer value or `"never"`
-
-Before v2.1.236, these messages didn’t appear. While a Remote Control client was connected, Claude Code waited 60 seconds for an answer and then continued the turn on your default model.
### Server is temporarily limiting requests
@@ -2802,9 +2805,9 @@
**What to do:**
* For `could not be created` followed by `is full (ENOSPC)`, free disk space on the volume the message names. When it says `your disk quota on the volume holding /tmp is used up (EDQUOT)` instead, delete your own files on that volume that you no longer need
- * For the `Refusing to use it` forms, remove the named entry itself, not what a link points to, and start Claude Code again; for the `owned by uid` form, only an administrator or that user can remove it
+ * For `is not a directory`, remove the symlink that the error names, not its target, and start Claude Code again
* For `is not readable`, run `chmod 0700` on the named directory, or remove it and start again
- * In any of these cases, set [`CLAUDE_CODE_TMPDIR`](</docs/en/env-vars>) to a directory you control and start Claude Code again, leaving the refused path alone
+ * For `owned by uid`, or in any of these cases, set [`CLAUDE_CODE_TMPDIR`](</docs/en/env-vars>) to a directory you control and start Claude Code again, leaving the refused path alone
Before v2.1.309, Claude Code printed only the operating system’s error text when the volume was full or your quota was used up. An example is `ENOSPC: no space left on device, mkdir '/tmp/claude-501'`, and the same steps apply.
@@ -2893,7 +2896,6 @@
Claude Code doesn’t refuse global flags that are harmless to drop, such as `--verbose`, `--model`, or a wrapper-injected `--session-id` or `--plugin-dir`: it ignores them and Remote Control starts. Claude Code also refuses to start for a global flag it doesn’t yet recognize as harmless, so a flag added in a newer release can appear in this message until a later release marks it harmless. **What to do:**
* Remove the flag from before the verb and pass [Remote Control’s own options](</docs/en/remote-control#start-a-remote-control-session>) after it; `claude remote-control --help` lists them
- * When the refused flag is `--permission-mode`, run `claude remote-control --permission-mode <mode>` to set the permission mode for the sessions Remote Control starts
Before v2.1.248, `claude remote-control` didn’t accept its own flags when a global flag came first, and the command failed with an `unknown option` error.
@@ -4238,16 +4240,16 @@
### File is not valid UTF-8
-Claude used the Edit or NotebookEdit tool on a file whose bytes don’t decode as UTF-8, and Claude Code refused the change. Nothing was written, so the file is as it was. Those tools save the whole file back as UTF-8, which would have turned every byte they couldn’t decode into the replacement character `U+FFFD`. The message appears in the tool result:
-
- File is not valid UTF-8. It may use a legacy encoding such as Windows-1252, Shift-JIS or GBK, or be binary. This tool saves the whole file as UTF-8, which would replace every byte it cannot decode with U+FFFD. Nothing was written. Make the change with a shell command that reads and writes the file in its own encoding, or ask the user whether to convert the file to UTF-8 first.
+Claude used the Edit, Write, or NotebookEdit tool on a file whose bytes don’t decode as UTF-8. Claude Code refused the change. Nothing was written, so the file is as it was. The message appears in the tool result:
+
+ File is not valid UTF-8: it uses a legacy encoding such as Windows-1252, Shift-JIS or GBK, or it is binary. These tools write UTF-8 (or UTF-16LE behind its byte-order mark) and never convert a file's encoding on their own, so nothing was written. If the file is text, make the change with a shell command that reads and writes it in its own encoding (iconv, or PowerShell Get-Content/Set-Content -Encoding), or ask the user whether to convert it to UTF-8 first. To replace the whole file with new UTF-8 text anyway, delete it first, then Write it.
A file that is meant to be UTF-8 gets this message too when it contains even one invalid byte sequence, because the check covers the file’s bytes as a whole. **What to do:**
* To keep the file in its current encoding, let Claude make the change with a shell command that reads and writes the file in that encoding, as the message tells it to
* To keep editing the file with the Edit tool, convert it to UTF-8, or fix the invalid bytes in a file that is meant to be UTF-8, then ask Claude to make the edit again
-Before v2.1.296, Edit and NotebookEdit applied such an edit and saved every byte they couldn’t decode as `U+FFFD`. On those versions, update Claude Code.
+Before v2.1.299, Write could replace such a file and save it as UTF-8. Before v2.1.296, Edit and NotebookEdit applied such an edit and saved every byte they couldn’t decode as the replacement character `U+FFFD`. On those versions, update Claude Code.
### Refusing to apply edits: a hook is configured for file edits in this session
@@ -4649,7 +4651,7 @@
This error means a Claude Code process that the [VS Code extension](</docs/en/vs-code>) or an Agent SDK application launched didn’t report in time that it was ready. The extension or application then stopped it. In a VS Code conversation the error starts with `Claude Code did not finish starting`, for example:
- Claude Code did not finish starting: it did not answer in time. The output logs ("View output logs") show how far it got. Slow plugins, MCP servers, hooks, disks or network can each cause this.
+ Claude Code did not finish starting: it did not answer in time. The output logs ("Show logs") show how far it got. Slow plugins, MCP servers, hooks, disks or network can each cause this.
In the extension’s output logs, on its sign-in screen, and in an Agent SDK application, the error reads differently. It starts with `Subprocess initialization did not complete within` and the time limit, then gives what Claude Code reported, for example:
@@ -4658,12 +4660,12 @@
**What to do:**
* To try again in VS Code, send a message. If the error appeared while you were signing in, select the sign-in method again instead.
- * To see how far Claude Code got, click **View output logs** under a conversation’s error, or run **Claude Code: Show Logs** from the Command Palette. Include the entries around the `Subprocess initialization` line when [reporting the problem](<https://github.com/anthropics/claude-code/issues>).
+ * To see how far Claude Code got, click **Show logs** under a conversation’s error, or run **Claude Code: Show Logs** from the Command Palette. Include the entries around the `Subprocess initialization` line when [reporting the problem](<https://github.com/anthropics/claude-code/issues>).
* To check your network, see [Network configuration](</docs/en/network-config>). If the message tells you to check your sign-in or authentication, see [Login and authentication](</docs/en/troubleshoot-install#login-and-authentication>).
* If the message says that [SessionStart](</docs/en/hooks#sessionstart>) or [Setup](</docs/en/hooks#setup>) hooks hadn’t finished, [check how long yours run](</docs/en/hooks#debug-hooks>). In VS Code, the first 10 minutes in which Claude Code reports these hooks running don’t count toward the 60-second limit. Make a slow hook finish sooner, lower a non-async hook’s [`timeout`](</docs/en/hooks#common-fields>), or [remove the hook](</docs/en/hooks#disable-or-remove-hooks>).
* If your Agent SDK application calls [`startup()`](</docs/en/agent-sdk/typescript#startup>), set `initializeTimeoutMs` long enough for the whole start, or leave it unset so up to 10 minutes of reported hook time doesn’t count.
-Before VS Code extension v2.1.304 and TypeScript Agent SDK v0.3.304, all hook time counted toward the limit. With the default limit, the message contained `Subprocess initialization did not complete within 60000ms — check authentication and network connectivity`. If you see that wording, update the extension or the SDK.
+Before VS Code extension v2.1.334, click **View output logs** under a conversation’s error to open the logs. Before VS Code extension v2.1.304 and TypeScript Agent SDK v0.3.304, all hook time counted toward the limit. With the default limit, the message contained `Subprocess initialization did not complete within 60000ms — check authentication and network connectivity`. If you see that wording, update the extension or the SDK.
### Claude Code process exited with code N
@@ -4673,7 +4675,7 @@
On Windows, the native build can exit with code `4294967295` right after a turn completes. When that exit lands at a turn boundary, with no message waiting and no background task running, the [VS Code extension](</docs/en/vs-code>) closes the session quietly instead of showing this error. Your next message resumes the conversation. Before v2.1.273, the extension showed the error for that exit at every turn boundary, even though nothing was lost. **What to do:**
- * In VS Code, follow the **View output logs** link shown with the error to see the underlying failure
+ * In VS Code, follow the **Show logs** link shown with the error to see the underlying failure. Before VS Code extension v2.1.334, the link was labeled **View output logs**.
* In an Agent SDK application, catch the error around your message loop. The entries under [CLI process exit](</docs/en/agent-sdk/troubleshooting#cli-process-exit>) cover what your code receives in each SDK language.
* Run `claude` in a terminal in the same project. The failure usually reproduces there with its real error message, which you can then look up on this page.
* Run `claude doctor` in a terminal to check the installation and configuration
@@ -4992,7 +4994,7 @@
**What to do:**
- * Run `claude` in a terminal and approve the settings when the dialog appears, then run the same `claude plugin` command again. Claude Code keeps the approval and the approved settings in your [configuration directory](</docs/en/server-managed-settings#approval-memory>). If the command that stopped ran as another user or with `CLAUDE_CONFIG_DIR` set, run `claude` the same way so that both use the same directory.
+ * Run `claude` in a terminal and approve the settings if the dialog appears, then run the same `claude plugin` command again. Claude Code keeps the approval and the approved settings in your [configuration directory](</docs/en/server-managed-settings#approval-memory>). If the command that stopped ran as another user or with `CLAUDE_CONFIG_DIR` set, run `claude` the same way so that both use the same directory.
### Managed settings block the default model
--- a/fast-mode.md
+++ b/fast-mode.md
@@ -1,8 +1,8 @@
-Fast mode for Claude Fable 5.2 and Claude Opus 5.5 is available. Fast mode for Claude Opus 5 and Claude Opus 4.8 is in research preview.
-
-Fast mode is a high-speed configuration for supported models, making the model up to 2.5x faster at a higher cost per token. Toggle it on with `/fast` when you need speed for interactive work such as rapid iteration or live debugging, and toggle it off when cost matters more than latency. Fast mode uses the same model with a different API configuration that prioritizes speed over cost efficiency, so quality and capabilities stay the same. On the Anthropic API, fast mode is supported on Fable 5.2, Opus 5.5, Opus 5, and Opus 4.8, but not on Sonnet, Haiku, or other models. For the models on Google Cloud’s Agent Platform, see Use fast mode on Agent Platform.
-
-Fast mode for Opus 4.8 was deprecated on October 30, 2026, and will be removed on November 30, 2026. If Opus 4.8 is still your model with fast mode on after that date, the API rejects your requests. By that date, switch to Opus 5.5 or turn fast mode off in your session:
+Fast mode for Claude Fable 5.2 and Claude Opus 5.5 is available. Fast mode for Claude Opus 5 is in research preview.
+
+Fast mode is a high-speed configuration for supported models, making the model up to 2.5x faster at a higher cost per token. Toggle it on with `/fast` when you need speed for interactive work such as rapid iteration or live debugging, and toggle it off when cost matters more than latency. Fast mode uses the same model with a different API configuration that prioritizes speed over cost efficiency, so quality and capabilities stay the same. On the Anthropic API, fast mode is supported on Fable 5.2, Opus 5.5, and Opus 5. For the models on Google Cloud’s Agent Platform, see Use fast mode on Agent Platform.
+
+Fast mode for Opus 4.8 was deprecated on October 30, 2026, and removed on November 30, 2026. If Opus 4.8 is still your model with fast mode on, the API rejects your requests. Switch to Opus 5.5 or turn fast mode off in your session:
* **To keep fast mode** : use [`/model`](</docs/en/model-config#setting-your-model>) to switch to [Opus 5.5](</docs/en/model-config#model-aliases>), which requires Claude Code v2.1.280 or later. Fast mode stays on after the switch. If a new session still starts on Opus 4.8, see [A new session starts on a different model than you picked](</docs/en/model-config#a-new-session-starts-on-a-different-model-than-you-picked>).
* **To stay on Opus 4.8 at standard speed** : run [`/fast off`](</docs/en/commands>)
@@ -10,8 +10,8 @@
Opus 4.7 doesn’t support fast mode, so switching to it turns fast mode off. Fast mode for Opus 4.7 was deprecated on June 25, 2026, and removed on July 24, 2026. What to know:
* Use `/fast` to toggle on fast mode in the Claude Code CLI. The [VS Code extension](</docs/en/vs-code>) offers a **Toggle fast mode** command when the selected model supports fast mode. On the Anthropic API, Claude Code saves that toggle to your `fastMode` setting.
- * Anthropic’s fast mode pricing per MTok input/output: $16/$80 on Fable 5.2, $8/$40 on Opus 5.5, and $10/$50 on Opus 5 and Opus 4.8.
- * Available to Claude Code users on subscription plans (Pro/Max/Ultra/Team/Enterprise), on Claude Console, and on Google Cloud’s Agent Platform with conditions. Team and Enterprise organizations need an Owner to enable it first, and Console organizations need access provisioned first to use it with Opus 5 or Opus 4.8. Requirements describes both.
+ * Anthropic’s fast mode pricing per MTok input/output: $16/$80 on Fable 5.2, $8/$40 on Opus 5.5, and $10/$50 on Opus 5.
+ * Available to Claude Code users on subscription plans (Pro/Max/Ultra/Team/Enterprise), on Claude Console, and on Google Cloud’s Agent Platform with conditions. Team and Enterprise organizations need an Owner to enable it first, and Console organizations need access provisioned first to use it with Opus 5. Requirements describes both.
* For Claude Code users on subscription plans (Pro/Max/Ultra/Team/Enterprise), fast mode is available via usage credits only and not included in the subscription rate limits.
## Toggle fast mode
@@ -19,11 +19,11 @@
On Agent Platform, `/fast` and the `fastMode` setting work differently, so follow Use fast mode on Agent Platform instead. In the CLI, toggle fast mode in either of these ways:
* Run `/fast`, press Space to toggle on or off, then press Enter to confirm
- * On a model that supports fast mode, set `"fastMode": true` in your [user settings file](</docs/en/settings>). If you set it on any other model, you stay on that model with fast mode off. On Fable 5.2, that setting alone has no effect until you run `/fast` while using Fable 5.2.
-
-By default on the Anthropic API, fast mode you turn on in an interactive session persists across sessions on a supported model. On Fable 5.2, fast mode persists only if you turned it on while using Fable 5.2. You can configure fast mode to reset each session. See require per-session opt-in for details. Outside a cloud session, in [non-interactive mode](</docs/en/headless>) with the `-p` flag, `/fast` works only in a session launched with fast mode in its [`--settings`](</docs/en/cli-reference#cli-flags>) value, for example `claude -p --settings '{"fastMode": true}'`; the toggle then applies to that session only and isn’t saved as your default. The `-p` form requires Claude Code v2.1.205 or later. Elsewhere in non-interactive mode, the command reports that fast mode isn’t available. You can run `/fast` while Claude is working, and Claude Code toggles fast mode without waiting for the turn to end. Claude Code finishes the running turn at its original speed, so the speed change takes effect from your next turn. If your current model doesn’t support fast mode, turning it on also switches your model, and Claude Code uses the new model from its next request in that turn. For the best cost efficiency, enable fast mode at the start of a session rather than switching mid-conversation. See understand the cost tradeoff for details. When you enable fast mode with `/fast`:
-
- * On the Anthropic API, if your current model doesn’t support fast mode, Claude Code switches to Opus
+ * On a model that supports fast mode, set `"fastMode": true` in your [user settings file](</docs/en/settings>). If you set it on an unsupported model other than Opus 4.8, you stay on that model with fast mode off. On Fable 5.2, that setting alone has no effect until you run `/fast` while using Fable 5.2.
+
+By default on the Anthropic API, fast mode you turn on in an interactive session persists across sessions on a supported model. On Fable 5.2, fast mode persists only if you turned it on while using Fable 5.2. You can configure fast mode to reset each session. See require per-session opt-in for details. Outside a cloud session, in [non-interactive mode](</docs/en/headless>) with the `-p` flag, `/fast` works only in a session launched with fast mode in its [`--settings`](</docs/en/cli-reference#cli-flags>) value, for example `claude -p --settings '{"fastMode": true}'`; the toggle then applies to that session only and isn’t saved as your default. The `-p` form requires Claude Code v2.1.205 or later. Elsewhere in non-interactive mode, the command reports that fast mode isn’t available. For the best cost efficiency, enable fast mode at the start of a session rather than switching mid-conversation. See understand the cost tradeoff for details. When you enable fast mode with `/fast`:
+
+ * On the Anthropic API, if your current model doesn’t support fast mode and isn’t Opus 4.8, Claude Code switches to Opus
* Fast mode on Fable 5.2 requires Claude Code v2.1.321 or later
* You’ll see a confirmation message: “Fast mode ON”
* A small `↯` icon appears next to the prompt while fast mode is active
@@ -31,12 +31,17 @@
On the Anthropic API, Opus 5.5 is the fast mode default in Claude Code v2.1.280 and later. Before v2.1.280, fast mode defaulted to Opus 5 from v2.1.219. When you disable fast mode with `/fast` again, you remain on your current model. To switch to a different model, use `/model`.
+### Toggle fast mode while Claude is working
+
+You can run `/fast` while Claude is working, and the speed change takes effect from your next turn. If turning fast mode on also switches your model, Claude Code uses the new model from its next request in the running turn.
+
### Switch models while fast mode is on
Fast mode follows your model switches:
- * **Switch away** : when you switch to a model that doesn’t support fast mode, Claude Code turns fast mode off. This includes Opus 4.7; before v2.1.221, fast mode stayed on after a switch to Opus 4.7 and the API rejected the requests.
+ * **Switch away** : when you switch to an unsupported model other than Opus 4.8, such as Opus 4.7, Claude Code turns fast mode off. Before v2.1.221, fast mode stayed on after a switch to Opus 4.7 and the API rejected the requests.
* **Switch back** : fast mode comes back on a supported Opus model when your saved preference is on. With per-session opt-in, run `/fast` instead.
+ * **Switch to Opus 4.8 on the Anthropic API** : requests fail while fast mode is on. Fast mode stays on through the switch, or comes back when your saved preference is on and per-session opt-in isn’t set. To use Opus 4.8 at standard speed, run `/fast off`.
* **Switch to Fable 5.2** : fast mode turns off unless you turned it on while using Fable 5.2. To turn it on, run `/fast` on Fable 5.2. Unless you’ve set per-session opt-in, that choice lasts across sessions on the Anthropic API until you turn fast mode off or turn it on with another model.
Whenever a model switch turns fast mode on or off, Claude Code shows a `Fast mode ON` or `Fast mode OFF` confirmation, and the `↯` icon appears while fast mode is on. This holds whether you switch with `/model`, with [`/config model=<model>`](</docs/en/settings>), or from a device connected through [Remote Control](</docs/en/remote-control>).
@@ -54,7 +59,6 @@
Fable 5.2| $16| $80
Opus 5.5| $8| $40
Opus 5| $10| $50
-Opus 4.8| $10| $50
Fast mode pricing is flat across the full 1M token context window. For the standard rate to compare against, see the [Claude pricing reference](<https://platform.claude.com/docs/en/about-claude/pricing>). The first time you enable fast mode in a conversation, you pay the full fast mode uncached input token price for the entire conversation context. The deeper into a conversation you are, the more this costs, so the charge is smallest when you enable fast mode at the start. Fast mode and standard speed keep [separate caches](</docs/en/prompt-caching#turning-on-fast-mode>), so each later switch reads part or all of the conversation uncached again.
@@ -95,7 +99,7 @@
Fast mode requires all of the following:
- * **Supported provider** : fast mode is available through the Anthropic Console API, for Claude subscription plans using usage credits, and on Google Cloud’s Agent Platform with conditions. It is not available on Amazon Bedrock, Microsoft Foundry, or Claude Platform on AWS, where `/fast` reports “Fast mode is not available on this provider”. Console organizations must also have fast mode access provisioned to use it with Opus 5 or Opus 4.8.
+ * **Supported provider** : fast mode is available through the Anthropic Console API, for Claude subscription plans using usage credits, and on Google Cloud’s Agent Platform with conditions. It is not available on Amazon Bedrock, Microsoft Foundry, or Claude Platform on AWS, where `/fast` reports “Fast mode is not available on this provider”. Console organizations must also have fast mode access provisioned to use it with Opus 5.
* **Usage credits turned on for subscription plans** : on a Pro, Max, Ultra, Team, or Enterprise plan, your account must have [usage credits](</docs/en/costs#add-usage-credits-to-your-subscription>) turned on, which allows billing beyond your plan’s included usage. Until they’re on, `/fast` reports “Fast mode requires usage credits”. To turn them on, follow the step for your plan:
* On Pro, Max, and Ultra, turn them on in the **Usage credits** section of [**Settings > Usage**](<https://claude.ai/settings/usage>) on claude.ai, or run `/usage-credits` to open that page.
* On Team and Enterprise, a member with billing access turns them on for the organization at [**Organization settings > Usage**](<https://claude.ai/admin-settings/usage>), and a member without it runs `/usage-credits` to send the organization’s admins a request.
@@ -119,7 +123,7 @@
* **Console** (API customers): an admin enables it in [Claude Code preferences](<https://platform.claude.com/claude-code/preferences>)
* **Claude AI** (Team and Enterprise): an Owner enables it at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>)
-Console organizations that use Claude Opus 5 or Claude Opus 4.8 also need provisioned access, as described in [fast mode on the Claude API](<https://platform.claude.com/docs/en/build-with-claude/fast-mode>). Without that access, fast mode requests on those models hit the fast mode rate limit and fall back to standard speed until access is provisioned. Another option to disable fast mode entirely is to set `CLAUDE_CODE_DISABLE_FAST_MODE=1`. See [Environment variables](</docs/en/env-vars>).
+Console organizations that use Claude Opus 5 also need provisioned access, as described in [fast mode on the Claude API](<https://platform.claude.com/docs/en/build-with-claude/fast-mode>). Until your organization has that access, fast mode requests on Opus 5 hit the fast mode rate limit and fall back to standard speed. Another option to disable fast mode entirely is to set `CLAUDE_CODE_DISABLE_FAST_MODE=1`. See [Environment variables](</docs/en/env-vars>).
### Use fast mode on Agent Platform
@@ -191,7 +195,7 @@
## Research preview
-Fast mode for Claude Opus 5 and Claude Opus 4.8 is a research preview feature, which means:
+Fast mode for Claude Opus 5 is a research preview feature, which means:
* The feature may change based on feedback
* Availability and pricing are subject to change
--- a/feature-availability.md
+++ b/feature-availability.md
@@ -56,7 +56,7 @@
These features work in the local CLI but depend on a server-side capability that not every provider exposes. Feature| Claude subscription| Anthropic Console| Amazon Bedrock| Claude Platform on AWS| Google Cloud (Anthropic managed)| Google Cloud (Google managed)| Microsoft Foundry
---|---|---|---|---|---|---|---
[Web search](</docs/en/tools-reference#websearch-tool-behavior>)| ✓| ✓| ✗| ✓| ✓| See note 1| ✓
-[Fast mode](</docs/en/fast-mode>)| ✓ ([Owner-enabled](</docs/en/fast-mode#enable-fast-mode-for-your-organization>) on Team and Enterprise)| ✓ (Opus 5 and 4.8 need provisioning)| ✗| ✗| ✗| ✓ ([Fable 5.2, with conditions](</docs/en/fast-mode#use-fast-mode-on-agent-platform>))| ✗
+[Fast mode](</docs/en/fast-mode>)| ✓ ([Owner-enabled](</docs/en/fast-mode#enable-fast-mode-for-your-organization>) on Team and Enterprise)| ✓ (Opus 5 needs provisioning)| ✗| ✗| ✗| ✓ ([Fable 5.2, with conditions](</docs/en/fast-mode#use-fast-mode-on-agent-platform>))| ✗
[Auto mode](</docs/en/auto-mode-config>)| ✓| ✓| See note 2| ✓| ✓| See note 2| See note 2
[Advisor](</docs/en/advisor>)| ✓| ✓| ✗| ✓ (Claude Code v2.1.300 or later)| ✓ (Claude Code v2.1.300 or later)| ✗| ✗
[Code Mode](</docs/en/code-mode>)| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))| ✓ (experimental, [requirements apply](</docs/en/code-mode#requirements>))
@@ -138,7 +138,7 @@
**Alternatives:** for scheduling, use [`/loop`](</docs/en/scheduled-tasks>) instead of `/schedule`. For cloud sessions, use [GitHub Actions](</docs/en/github-actions>).
-**Not available:** all features that require a Claude subscription.Everything in CLI capabilities that vary by provider is available, except that [fast mode](</docs/en/fast-mode>) with Claude Opus 5 or Claude Opus 4.8 requires [provisioned access](</docs/en/fast-mode#enable-fast-mode-for-your-organization>). [Server-managed settings](</docs/en/server-managed-settings>) that you configure in a claude.ai Team or Enterprise organization don’t reach a session that authenticates with a Console API key. See [Platform availability](</docs/en/server-managed-settings#platform-availability>) for how to cover those sessions.**Partial support:**
+**Not available:** all features that require a Claude subscription.Everything in CLI capabilities that vary by provider is available, except that [fast mode](</docs/en/fast-mode>) with Claude Opus 5 requires [provisioned access](</docs/en/fast-mode#enable-fast-mode-for-your-organization>). [Server-managed settings](</docs/en/server-managed-settings>) that you configure in a claude.ai Team or Enterprise organization don’t reach a session that authenticates with a Console API key. See [Platform availability](</docs/en/server-managed-settings#platform-availability>) for how to cover those sessions.**Partial support:**
* [Desktop](</docs/en/desktop>): via [Claude Desktop on 3P with the Claude API](<https://claude.com/docs/third-party/claude-desktop/claude-api>)
@@ -153,8 +153,8 @@
[Remote Control](</docs/en/remote-control>)| ✓| ✓| ✓| Admin-enabled| Admin-enabled
[Channels](</docs/en/channels>)| ✓| ✓| ✓| Admin-enabled| Admin-enabled
[Skills from MCP servers](</docs/en/mcp#requirements-for-skills-from-mcp-servers>)| ✓| ✓| ✓| Admin-enabled| Admin-enabled
-[Computer use](</docs/en/computer-use>)| ✓| ✓| ✓| ✗| ✗
-Dispatch ([Desktop](</docs/en/desktop#sessions-from-dispatch>))| Not available to new users| Not available to new users| Not available to new users| ✗| ✗
+Computer use ([CLI](</docs/en/computer-use>))| ✓| ✓| ✓| ✗| ✗
+Dispatch ([Desktop](</docs/en/desktop#sessions-from-dispatch>))| Not available to new users| Not available to new users| Not available to new users| Not available to new users| Not available to new users
[Code Review](</docs/en/code-review>)| ✗| ✗| ✗| ✓| ✓
[PR Steward](</docs/en/pr-steward>)| ✗| ✗| ✗| ✓| ✓
[Claude Approvals](</docs/en/approvals>)| ✗| ✗| ✗| ✓| ✓
--- a/fullscreen.md
+++ b/fullscreen.md
@@ -23,7 +23,7 @@
CLAUDE_CODE_NO_FLICKER=1 claude
-For how the [`tui`](</docs/en/settings-reference#tui>) setting and the variable combine when both are set, see the setting’s entry. After a failed fullscreen start, Claude Code still honors the variable but not the setting. The `/tui` command clears `CLAUDE_CODE_NO_FLICKER` from the relaunched process so the setting it writes takes effect.
+For how the [`tui`](</docs/en/settings-reference#tui>) setting and the variable combine when both are set, see the setting’s entry. After a failed fullscreen start, Claude Code still honors the variable but not the setting. If you set the variable in your shell, you can still run `/tui default` to switch to the classic renderer.
### Fullscreen by default
--- a/gallery.md
+++ b/gallery.md
@@ -76,7 +76,7 @@
Swap in a sample
-Copy a sample from this page. In `register.js`, paste it over `Text({ children: ['Plain text'] })`, so that it follows `return`, and save the file. Run `/gallery` again to see the new sample.
+Copy a sample from this page. In `register.js`, paste it over `Text({ children: ['Plain text'] })`, so that it follows the `return` keyword, and save the file. Run `/gallery` again to see the new sample.
## Pick an element
--- a/glossary.md
+++ b/glossary.md
@@ -77,7 +77,7 @@
### Compaction
-Automatic summarization of your conversation when the context window approaches its limit. Project-root CLAUDE.md and auto memory survive compaction, but instructions given only in conversation may not. Run `/compact` to trigger manually, optionally with a focus like `/compact focus on the API changes`. Learn more: [What survives compaction](</docs/en/context-window#what-survives-compaction>) · [When context fills up](</docs/en/how-claude-code-works#when-context-fills-up>) · [When Claude Code compacts a conversation you leave idle](</docs/en/settings-reference#idlecompaction>)
+Automatic summarization of your conversation when it approaches the [auto-compact window](</docs/en/model-config#context-window-and-auto-compaction>). Project-root CLAUDE.md and auto memory survive compaction, but instructions given only in conversation may not. Run `/compact` to trigger manually, optionally with a focus like `/compact focus on the API changes`. Learn more: [What survives compaction](</docs/en/context-window#what-survives-compaction>) · [When context fills up](</docs/en/how-claude-code-works#when-context-fills-up>) · [When Claude Code compacts a conversation you leave idle](</docs/en/settings-reference#idlecompaction>)
### Connector
@@ -91,7 +91,7 @@
### Dispatch
-A phone-initiated task router that spawns a Claude Code session in the Desktop app when you send a coding task from the Claude mobile app. Your prompt routes to the right tool automatically. Not available to new users. Learn more: [Sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>)
+A phone-initiated task router that spawns a Claude Code session in the Desktop app when you send a coding task from the Claude mobile app. Your prompt routes to the right tool automatically. Being retired and not available to new users. Learn more: [Sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>)
## E
@@ -207,7 +207,7 @@
### Subagent
-A specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It works on a delegated task and returns a summary to the main conversation. Use subagents to keep large explorations out of your primary context or to run parallel research. A subagent stays inside the session that spawned it. To pass findings between separate sessions you run yourself, use [cross-session messaging](</docs/en/cross-session-messaging>). Built-in subagents include Explore, Plan, and general-purpose. Learn more: [Create custom subagents](</docs/en/sub-agents>)
+A specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and your permission rules. It works on a delegated task and returns a summary to the main conversation. Use subagents to keep large explorations out of your primary context or run parallel research. A subagent stays inside the session that spawned it. To pass findings between separate sessions, use [cross-session messaging](</docs/en/cross-session-messaging>). Built-in subagents include Explore, Plan, and general-purpose. Learn more: [Create custom subagents](</docs/en/sub-agents>)
### Surface
--- a/goal.md
+++ b/goal.md
@@ -67,7 +67,7 @@
### Resume with an active goal
-When you resume a session, Claude Code restores a goal that was still active when the session ended. Claude Code restores it on every resume route: `--continue`, `--resume` with a session ID, name, or [transcript file path](</docs/en/sessions#resume-a-session>), and the [session picker](</docs/en/sessions#use-the-session-picker>). Before v2.1.239, Claude Code restored the goal on every route except the `claude --resume` picker. Claude Code carries the condition over but resets the turn count, timer, and token-spend baseline. It doesn’t restore a goal that was already achieved or cleared.
+When you resume a session, Claude Code restores a goal that was still active when the session ended. Claude Code restores it on every resume route: `--continue`, `--resume` with a session ID, name, or [transcript file path](</docs/en/sessions#resume-a-session>), and the [session picker](</docs/en/sessions#use-the-session-picker>). Before v2.1.239, Claude Code restored the goal on every route except the `claude --resume` picker. The goal’s turn count and timer reset.
### Run non-interactively
--- a/headless.md
+++ b/headless.md
@@ -144,7 +144,7 @@
claude -p "Explain recursion" --output-format stream-json --verbose --include-partial-messages
-Find each [`result` message](</docs/en/agent-sdk/typescript#sdkresultmessage>) by `type`, because a message such as a task notification can follow a result and start another turn. A successful `result` message holds any final response text, the running cost total, and session metadata. If your consumer reads the stream slowly, Claude Code waits for the queued output to drain before exiting, scaling the wait with how much is still queued, capped at 30 seconds. The following example uses [jq](<https://jqlang.org/>) to filter for text deltas and display only the streaming text. The `-r` flag outputs raw strings (no quotes) and `-j` joins without newlines so tokens stream continuously:
+Find each [`result` message](</docs/en/agent-sdk/typescript#sdkresultmessage>) by `type`, because a message such as a task notification can follow a result and start another turn. A successful `result` message holds any final response text, the running cost total, and session metadata. If your program reads the stream slowly, Claude Code waits up to 30 seconds for queued output to drain before exiting. The following example uses [jq](<https://jqlang.org/>) to filter for text deltas and display only the streaming text. The `-r` flag outputs raw strings (no quotes) and `-j` joins without newlines so tokens stream continuously:
claude -p "Write a poem" --output-format stream-json --verbose --include-partial-messages | \
jq -rj 'select(.type == "stream_event" and .event.delta.type? == "text_delta") | .event.delta.text'
@@ -153,7 +153,7 @@
#### Follow subagent messages
-Messages from [subagents](</docs/en/sub-agents>) and from skills that [run in a subagent](</docs/en/skills#run-skills-in-a-subagent>) appear in the stream as `assistant` and `user` messages. Their `parent_tool_use_id` field says which run each one belongs to. Messages from the main conversation carry `null` in that field. The first message from a forked skill, or from a subagent running in the [foreground](</docs/en/sub-agents#run-subagents-in-foreground-or-background>), is a `user` message carrying the prompt or skill content that drives it. After that first message, Claude Code emits:
+Messages from [subagents](</docs/en/sub-agents>) and from skills that [run in a subagent](</docs/en/skills#run-skills-in-a-subagent>) appear in the stream as `assistant` and `user` messages. Their `parent_tool_use_id` field says which run each one belongs to. Messages from the main conversation carry `null` in that field. The first message from a forked skill, or from a [foreground](</docs/en/sub-agents#run-subagents-in-foreground-or-background>) subagent other than a [fork](</docs/en/sub-agents#fork-the-current-conversation>), is a `user` message with the subagent’s prompt or the skill’s content. After that first message, Claude Code emits:
* **By default** : the run’s `tool_use` and `tool_result` blocks.
* **With[`--forward-subagent-text`](</docs/en/cli-reference#cli-flags>) or [`CLAUDE_CODE_FORWARD_SUBAGENT_TEXT`](</docs/en/env-vars>)**: the run’s text and thinking blocks too, so you can reconstruct each run’s transcript.
--- a/hooks.md
+++ b/hooks.md
@@ -794,7 +794,7 @@
* `WorktreeCreate`: worktree creation fails with an error.
* `Notification`, `PreCompact`, and `PostModelSwitch`: Claude Code logs the failure and continues. To block compaction when a `PreCompact` callback times out, set `onFailure: "block"`.
-The first time a `Stop` or `SessionStart` callback times out in the main session, Claude Code also adds an [`SDKInformationalMessage`](</docs/en/agent-sdk/typescript#sdkinformationalmessage>) to the message stream saying the app driving the session didn’t respond. Later timeouts don’t repeat that message while your app stays unresponsive. If you interrupt the query while a callback is pending, Claude Code cancels the pending tool call. Before v2.1.208, the tool call could still proceed if you interrupted during a pending `PreToolUse` callback. If your callback needs more time, set a higher `timeout` on its `HookMatcher`. In TypeScript, use the `AbortSignal` from the third callback argument to handle cancellation gracefully when the timeout fires.
+The first time a `Stop` or `SessionStart` callback times out in the main session, your message stream also includes an [`SDKInformationalMessage`](</docs/en/agent-sdk/typescript#sdkinformationalmessage>) object saying the app driving the session didn’t respond. While your app stays unresponsive, at most one such message arrives per hook type. If you interrupt the query while a callback is pending, Claude Code cancels the pending tool call. Before v2.1.208, the tool call could still proceed if you interrupted during a pending `PreToolUse` callback. If your callback needs more time, set a higher `timeout` on its `HookMatcher`. In TypeScript, use the `AbortSignal` from the third callback argument to handle cancellation gracefully when the timeout fires.
### Tool blocked unexpectedly
--- a/hooks-guide.md
+++ b/hooks-guide.md
@@ -644,7 +644,13 @@
#### Filter by tool name and arguments with the `if` field
-The `if` field uses [permission rule syntax](</docs/en/permissions>) to filter hooks by tool name and arguments together. For example, this configuration runs a hook only when Claude uses `git` commands rather than all Bash commands:
+The `if` field uses [permission rule syntax](</docs/en/permissions>) to filter hooks by tool name and arguments together. Add a pattern in parentheses, such as `Bash(git *)`, after these tool names:
+
+ * **`Bash`, `PowerShell`, [`Monitor`](</docs/en/hooks#match-monitor-commands>)**: matches the command
+ * **`Read`, `Edit`, `Write`, `NotebookEdit`**: matches the file path. To cover `Edit` and `Write`, use two handlers: `"Edit(*.ts)"` and `"Write(*.ts)"`
+ * **`Grep`, `Glob`**: matches the call’s `pattern` argument
+
+For other tools, use the tool’s full name alone and check the input in your script. The following configuration runs a hook when Claude uses `git` commands:
{
"hooks": {
@@ -673,7 +679,7 @@
`Bash(git *)`| `echo $(date)`| no| no subcommand matches `git *`
`Bash(git push *)`| `echo $(date)`| yes| patterns that specify more than the command name run the hook anyway on `$()`, backticks, or `$VAR`
-When Claude Code can’t split the Bash input into subcommands, it runs your hook regardless of the pattern. The [Bash matching table](</docs/en/hooks#bash-if-matching>) covers the command shapes Claude Code can and can’t narrow by subcommand. Because the filter is best-effort, use the [permission system](</docs/en/permissions>) rather than a hook to enforce a hard allow or deny. The `if` field accepts the same patterns as permission rules: `"Bash(git *)"`, `"Edit(*.ts)"`, and so on. To match multiple tool names, use separate handlers each with its own `if` value, or match at the `matcher` level where pipe alternation is supported.
+When Claude Code can’t split the Bash input into subcommands, it runs your hook regardless of the pattern. The [Bash matching table](</docs/en/hooks#bash-if-matching>) covers the command shapes Claude Code can and can’t narrow by subcommand. Because the filter is best-effort, use the [permission system](</docs/en/permissions>) rather than a hook to enforce a hard allow or deny. To match multiple tool names, use separate handlers each with its own `if` value, or match at the `matcher` level where pipe alternation is supported.
`if` only works on `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`, and `PreSkillShellCommand`. If you add it on any other event, the hook doesn’t run.
@@ -691,13 +697,13 @@
[Skill](</docs/en/skills>) frontmatter| See [Hooks in skills and agents](</docs/en/hooks#hooks-in-skills-and-agents>)| Yes, defined in the skill file
[Subagent](</docs/en/sub-agents>) frontmatter| While that subagent is running| Yes, defined in the subagent file
-Run [`/hooks`](</docs/en/hooks#the-%2Fhooks-menu>) in Claude Code to browse all configured hooks grouped by event. To disable hooks, set `"disableAllHooks": true` in your settings file. Claude Code reads the value left after [settings precedence](</docs/en/hooks#disable-or-remove-hooks>) applies, so a project’s settings file can override yours. Hooks configured in managed settings still run unless `disableAllHooks` is also set there. For the full reach of each level, see [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>). If you edit settings files directly while Claude Code is running, the file watcher normally picks up hook changes automatically.
+Run [`/hooks`](</docs/en/hooks#the-%2Fhooks-menu>) in Claude Code to browse your configured hooks grouped by event. To disable hooks, set `"disableAllHooks": true` in your settings file. Claude Code reads the value left after [settings precedence](</docs/en/hooks#disable-or-remove-hooks>) applies, so a project’s settings file can override yours. Hooks configured in managed settings still run unless `disableAllHooks` is also set there. For the full reach of each level, see [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>). If you edit settings files directly while Claude Code is running, the file watcher normally picks up hook changes automatically.
## Prompt-based hooks
For decisions that require judgment rather than deterministic rules, use `type: "prompt"` hooks. Instead of running a shell command, Claude Code sends your prompt and the hook’s input data to a Claude model to make the decision. You can specify a different model with the `model` field if you need more capability. The model’s only job is to return its decision as JSON:
- * `"ok": true`: the action proceeds
+ * `"ok": true`: Claude Code handles the action as it would without this hook, so permission prompts still apply
* `"ok": false`: what happens depends on the event:
* `Stop` and `SubagentStop`: the `reason` is fed back to Claude so it keeps working, unless the response also sets `"impossible": true` to mark the condition as one that can never be satisfied, in which case Claude Code allows the stop and the turn ends
* `PreToolUse`: the tool call is denied; by default the turn ends and the deny `reason` appears in the chat as a warning line. Set `continueOnBlock: true` on the hook to instead return the `reason` to Claude as the tool error, so it can adjust and continue
@@ -727,7 +733,7 @@
Agent hooks are experimental. Behavior and configuration may change in future releases. For production workflows, prefer [command hooks](</docs/en/hooks#command-hook-fields>).
-When verification requires inspecting files or running commands, use `type: "agent"` hooks. Unlike prompt hooks, which make a single LLM call, agent hooks spawn a subagent that can read files, search code, and use other tools to verify conditions before returning a decision. Agent hooks use the `"ok"` / `"reason"` response format with a longer default timeout of 60 seconds and up to 50 tool-use turns. They don’t support the prompt-hook `impossible` field. On `ok: false`, Claude Code handles an agent hook the way it handles a prompt hook with `continueOnBlock: true` on the same event, so on `PreToolUse` and `PostToolUse` the turn continues; agent hooks have no `continueOnBlock` field. See [agent hook configuration](</docs/en/hooks#agent-hook-configuration>) for the fields, including the `$ARGUMENTS` placeholder that Claude Code replaces with the hook’s JSON input. This example verifies that tests pass before allowing Claude to stop:
+When verification requires inspecting files or running commands, use `type: "agent"` hooks. Unlike prompt hooks, which make a single LLM call, agent hooks spawn a subagent that can read files, search code, and use other tools to verify conditions before returning a decision. Agent hooks use the `"ok"` / `"reason"` response format and run for up to 50 tool-use turns. They don’t support the prompt-hook `impossible` field. On `ok: false`, Claude Code handles an agent hook the way it handles a prompt hook with `continueOnBlock: true` on the same event, so on `PreToolUse` and `PostToolUse` the turn continues; agent hooks have no `continueOnBlock` field. This example verifies that tests pass before allowing Claude to stop, and uses the `$ARGUMENTS` placeholder to insert the hook’s JSON input into the prompt:
{
"hooks": {
@@ -787,7 +793,7 @@
* Hook timeouts vary by type. Override per hook with the `timeout` field in seconds.
* `command`, `http`, `mcp_tool`: 10 minutes. Claude Code lowers this default to 30 seconds for `UserPromptSubmit`, `PreModelSwitch`, and `PostModelSwitch` hooks, and to 10 seconds for `MessageDisplay`.
* `prompt`: 30 seconds.
- * `agent`: 60 seconds.
+ * `agent`: 60 seconds, or 30 on `UserPromptSubmit`.
* [`SessionEnd`](</docs/en/hooks#sessionend>) hooks of any type share a 1.5-second budget. If your settings set a longer per-hook `timeout`, Claude Code raises the budget to match, up to 60 seconds.
* `PostToolUse` hooks can’t undo actions since the tool has already executed.
* [`PermissionRequest`](</docs/en/hooks#permissionrequest>) hooks fire when Claude Code is about to ask you for permission. In a [`-p` run](</docs/en/headless>) with no [permission host](</docs/en/headless#turn-off-permission-prompts-in-unattended-runs>), outside [`dontAsk` mode](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>), a call that would prompt you is denied unless something approves it, such as one of these hooks.
--- a/host-marketplace.md
+++ b/host-marketplace.md
@@ -227,7 +227,7 @@
### Uninstall removed plugins from users’ machines
-To uninstall a removed plugin from users’ machines rather than leave a copy behind, set `"forceRemoveDeletedPlugins": true` at the top level of `marketplace.json`. Without the field, a removed plugin stays installed and reports `Plugin "<name>" not found in marketplace` when a session loads it. With it, Claude Code does the following at each session start:
+To uninstall a removed plugin from users’ machines rather than leave a copy behind, set `"forceRemoveDeletedPlugins": true` at the top level of `marketplace.json`. After a user’s copy of your marketplace picks up your changes, Claude Code does the following when it starts a session on that user’s machine:
1. Compares what users installed from your marketplace against the entries and the `renames` map, and treats any plugin that is neither listed nor renamed as removed.
2. Uninstalls each removed plugin from the user, project, and local scopes. Plugins that only managed settings installed stay in place.
@@ -316,7 +316,7 @@
---|---
User settings, a `--settings` file, or a managed settings file on the machine| Without asking, including during a background marketplace refresh
A project’s `.claude/settings.json` or `.claude/settings.local.json`| Only after the user accepts the [workspace trust dialog](</docs/en/permissions#what-runs-before-you-trust-a-folder>) for that folder itself. A `-p` or SDK session doesn’t count as accepting it, and neither does trust granted to a parent folder
-Server-managed settings| In an interactive session, only after the user approves the delivered settings in the [security approval dialog](</docs/en/server-managed-settings#security-approval-dialogs>)
+Server-managed settings| In an interactive session where Claude Code [asks for approval](</docs/en/server-managed-settings#security-approval-dialogs>), only after the user approves the delivered settings. In one where Claude Code skips the dialog, without asking
For an [inline plugin entry](</docs/en/settings-reference#extraknownmarketplaces>) in one of these files, Claude Code requires the same folder trust or settings approval as for a marketplace-level command in that file, and the user also accepts the entry’s command on each install or update.
--- a/how-claude-code-works.md
+++ b/how-claude-code-works.md
@@ -91,7 +91,7 @@
#### When context fills up
-Claude Code manages context automatically as you approach the limit. It compacts the conversation into a summary. The summary keeps your requests and key code snippets, but detailed instructions from early in the conversation may be lost. Put persistent rules in CLAUDE.md. To control what’s preserved during compaction, add a “Compact Instructions” section to CLAUDE.md or run `/compact` with a focus (like `/compact focus on the API changes`). If a single file or tool output is so large that context refills immediately after each summary, Claude Code stops auto-compacting after a few attempts and shows an error instead of looping. See [Auto-compaction stops with a thrashing error](</docs/en/troubleshooting#auto-compaction-stops-with-a-thrashing-error>) for recovery steps. Run `/context` to see what’s using space. MCP tool definitions are deferred by default and loaded on demand via [tool search](</docs/en/mcp#scale-with-mcp-tool-search>), so only tool names and server instructions consume context until Claude uses a specific tool.
+Claude Code manages context automatically as you approach the [auto-compact window](</docs/en/model-config#context-window-and-auto-compaction>). It compacts the conversation into a summary. The summary keeps your requests and key code snippets, but detailed instructions from early in the conversation may be lost. Put persistent rules in CLAUDE.md. To control what’s preserved during compaction, add a “Compact Instructions” section to CLAUDE.md or run `/compact` with a focus (like `/compact focus on the API changes`). If a single file or tool output is so large that context refills immediately after each summary, Claude Code stops auto-compacting after a few attempts and shows an error instead of looping. See [Auto-compaction stops with a thrashing error](</docs/en/troubleshooting#auto-compaction-stops-with-a-thrashing-error>) for recovery steps. Run `/context` to see what’s using space. MCP tool definitions are deferred by default and loaded on demand via [tool search](</docs/en/mcp#scale-with-mcp-tool-search>), so only tool names and server instructions consume context until Claude uses a specific tool.
#### Manage context with skills and subagents
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -335,7 +335,7 @@
* [`/model`](</docs/en/model-config#setting-your-model>): once you confirm the [cache warning](</docs/en/prompt-caching#switching-models>), if Claude Code shows one, Claude Code uses the new model from the next request it makes in that turn
* `/effort`: the next message you send runs at the new level. To [start it in the turn Claude is already working on](</docs/en/model-config#when-a-new-effort-level-starts>), queue a message while Claude is running tool calls
- * [`/fast`](</docs/en/fast-mode#toggle-fast-mode>): Claude Code keeps the fast mode setting that was active when the turn started, so your speed change applies from your next turn. If your current model doesn’t support fast mode, turning it on also [switches your model](</docs/en/prompt-caching#turning-on-fast-mode>), and Claude Code uses the new model from its next request in that turn
+ * [`/fast`](</docs/en/fast-mode#toggle-fast-mode>): Claude Code keeps the fast mode setting that was active when the turn started, so your speed change applies from your next turn. If turning fast mode on also [switches your model](</docs/en/prompt-caching#turning-on-fast-mode>), Claude Code uses the new model from its next request in that turn
### Background a session with messages queued
@@ -415,7 +415,7 @@
* **Knew this already** : closes the note and marks the topic as known.
* **Dismiss** : closes the note.
-The main agent doesn’t see a note unless you send it with **Chat in main session**. Claude Code keeps your recent notes and the topics you marked as known in a file whose name starts with `cc-plugin-you-should-know` under `~/.claude/plugins/store/`. Each check, in this session and later ones, lists them to the side agent as ones not to repeat. Claude Code deletes the file once it has gone [`cleanupPeriodDays`](</docs/en/settings-reference#cleanupperioddays>) without a session reading or writing it. To clear them sooner, delete that file while no session is running.
+The main agent doesn’t see a note unless you send it with **Chat in main session**. Claude Code keeps your recent notes and the topics you marked as known in a file whose name starts with `cc-plugin-you-should-know` under `~/.claude/plugins/store/`. Claude Code deletes the file once no session has read or written it for the number of days in the [`cleanupPeriodDays`](</docs/en/settings-reference#cleanupperioddays>) setting. To clear the notes and topics sooner, delete that file while no session is running.
### Turn off You should know
@@ -542,7 +542,7 @@
The panel also opens on its own once Claude starts editing files, if your terminal is at least 144 columns wide. After you’ve opened it yourself with `/diff`, later sessions open it as soon as Claude edits a file in any terminal wide enough to fit it. Close the panel and it stays closed, in this session and later ones, until you run `/diff` again. While the panel is open, you can:
* **Jump to a file** : click its row in the list. Scroll the panel with the mouse wheel. When the file list itself is too long to fit, scroll it with `Alt+Up` and `Alt+Down`, or `Ctrl+Up` and `Ctrl+Down`.
- * **Ask Claude about a file’s changes** : click `ask`, at the right of the file’s name above its diff. Claude Code attaches that file’s diff to your next prompt, and the button reads `asked ✓` until you send that prompt. Asking on a second file replaces the first.
+ * **Ask Claude about a file’s changes** : in the `Current` view, click the `ask` button at the right of the file’s name above its diff. Your next prompt includes that file’s diff, and the button reads `asked ✓` until you send that prompt. If you ask about another file, that file’s diff replaces the first.
* **Show one turn’s edits** : click the `source` picker in the panel’s header, then choose a turn with `Up` and `Down` and press `Enter`. Turns are labeled `T1`, `T2`, and so on. The picker appears once Claude has edited files, and `Current` returns you to the working tree.
* **Show the files the panel leaves out** : the list skips test files and generated files, and collapses changes from before this session into one line at the bottom. Click either count line to expand it.
* **Change what the panel compares against** : press `Ctrl+X B` to cycle from this session’s changes, to your uncommitted changes as one list, to everything since your branch split from the default branch. Claude Code remembers the choice for each repository.
@@ -556,7 +556,7 @@
* **Up and Down** : select a file.
* **Enter** : open the selected file’s diff. Scroll it with Up and Down, or PageUp and PageDown.
* **Esc** : return from a file’s diff to the list, or close the dialog from the list.
- * **Tab** : move to the `source` picker, then choose `Current` or a turn view with Up and Down and press Enter. In a file’s diff, Tab moves to the `ask` button. Press Enter to attach that file’s diff to your next prompt.
+ * **Tab** : move to the `source` picker, then choose the `Current` view or a turn view with Up and Down and press Enter. In a file’s diff in the `Current` view, press Tab until the `ask` button is highlighted. Press Enter to attach that file’s diff to your next prompt.
## Side questions with /btw
--- a/interface.md
+++ b/interface.md
@@ -234,7 +234,7 @@
return Box({ flexDirection: 'column', children: [theirs, Text({ children: ['under the spinner'] })] })
})
-While Claude works, the spinner animates as before, and `under the spinner` appears below it. The permission prompt isn’t a render site, so a mod can’t change what it shows. The question dialog, `AskUserQuestion`, is one, so a mod can change that dialog when Claude asks a question. A tree for the dialog has to hold the reference exactly once, with your elements above it. Otherwise, Claude Code draws its own dialog.
+While Claude works, the spinner animates as before, and `under the spinner` appears below it. To add to the question dialog, `AskUserQuestion`, return a tree that holds the reference exactly once, with your elements above it. Otherwise, Claude Code draws its own dialog.
### Open a pane at the right time
@@ -776,7 +776,7 @@
* **Old version** : if `/status` in the Code tab shows a version before v2.1.329, [update the Desktop app](</docs/en/desktop#claude-code-version-in-the-code-tab>) and start a new local session. On those versions, the call fails with an error such as `theme.set does not know the attribute "sound"`.
* **Mod not loaded** : follow [Find out why a mod does nothing](</docs/en/plugins/mods/troubleshoot#find-out-why-a-mod-does-nothing>).
* **Value out of range** : the call fails, so with the example’s `catch` block the theme loads without sound. Find the error that the example logs in the transcript, and fix the field it names, as in `sound.cues.done.layers[0].gain is a number, 0 to 1`.
- * **Another`$.theme` call**: when any mod makes a later `$.theme.set` call without `sound`, or calls `$.theme.clear()`, the sound and the button disappear. In your own mod, pass `sound` in the same call as the rest of the theme. Turn off any other mod that sets a theme.
+ * **Another`$.theme` call**: when any mod makes a later `$.theme.set` call without `sound`, or calls `$.theme.clear()`, the sound disappears. The button disappears too unless the app is showing it for a [`$.audio.play` clip](</docs/en/plugins/mods/troubleshoot#an-audio-clip-doesnt-play>). In your own mod, pass `sound` in the same call as the rest of the theme. Turn off any other mod that sets a theme.
## Build a tree from elements
@@ -1122,7 +1122,7 @@
Keep it in| It lasts until| Use it for
---|---|---
-A module-level variable| The module reloads, such as when you edit the module during development| Values you can lose, such as `tab` in `hello-tabs`
+A module-level variable| The module reloads, such as when you edit the module during development| Values you can lose, such as the `tab` variable in the `hello-tabs` mod
`$.state`| The session ends, or the user runs `/clear`, `/resume`, or `/branch`| Values a drawing depends on that should survive a reload
`$.store`| Your mod deletes it, or no session reads or writes the store for [`cleanupPeriodDays`](</docs/en/settings-reference#cleanupperioddays>). In an Anthropic-hosted cloud session, values can be missing sooner.| Settings, history, anything the user expects to find next time
--- a/large-codebases.md
+++ b/large-codebases.md
@@ -140,7 +140,7 @@
}
}
-Deny rules cover Claude’s built-in file tools. In Bash, they cover the file commands Claude Code recognizes, such as `cat`, `head`, `grep`, and `find`, when a denied path appears as an argument, and the target of a [redirection](</docs/en/permissions#redirections>) such as `< file`. Claude Code also makes a best-effort attempt to leave denied paths out of the results of the built-in Grep and Glob tools. A Bash search such as `grep -r` or `find` over a directory that contains denied files still includes them in its output. Deny rules don’t cover subprocesses that open files themselves. For the full pattern syntax, see [Read and Edit permission rules](</docs/en/permissions#read-and-edit>).
+Deny rules cover Claude’s built-in file tools. In Bash, they [can cover](</docs/en/permissions#what-read-and-edit-rules-cover>) file commands Claude Code recognizes, such as `cat` and `head`, when a denied path appears as an argument, and the target of a [redirection](</docs/en/permissions#redirections>) such as `< file`. Claude Code also makes a best-effort attempt to exclude denied paths from the results of the built-in Grep and Glob tools. A Bash search such as `grep -r` or `find` over a directory that contains denied files includes them in its output. For the full pattern syntax, see [Read and Edit permission rules](</docs/en/permissions#read-and-edit>).
### Reduce file reads with code intelligence
--- a/llm-gateway-protocol.md
+++ b/llm-gateway-protocol.md
@@ -120,7 +120,7 @@
---|---
`x-claude-code-request-class`| What kind of request this is: `main` for a turn of the main conversation, `subagent` for a turn of a [subagent](</docs/en/sub-agents>), `workflow` for an agent running inside a workflow, `compaction` for the summarization request that compacts a conversation, or `auxiliary` for side requests such as session titles, classifiers, and summaries. Sent on every request
`x-claude-code-agent-type`| The kind of subagent that issued the request: a built-in agent type name such as `Explore`, `Plan`, or `general-purpose`, or `custom` for a user-defined agent, `teammate` for an [agent team](</docs/en/agent-teams>) member running in the lead’s process, or `fork` for a [fork](</docs/en/sub-agents#fork-the-current-conversation>). Present only on a subagent’s own turns; a subagent’s compaction or side requests keep the agent ID but carry no type. A user-chosen agent name is never sent
-`x-claude-code-compaction`| Present on the request that summarizes the conversation during a [compaction](</docs/en/prompt-caching#compacting-the-conversation>). The value says what triggered it: `auto` when the context window approached capacity, `manual` for `/compact`, or `reactive` when the API rejected a request as too long. The value is also `auto` for [idle compaction](</docs/en/settings-reference#idlecompaction>) in an interactive terminal session. Absent on every other request, including one that writes a summary in the background before a compaction
+`x-claude-code-compaction`| Present on the request that summarizes the conversation during a [compaction](</docs/en/prompt-caching#compacting-the-conversation>). The value says what triggered it: `auto` when the conversation approached the [auto-compact window](</docs/en/model-config#context-window-and-auto-compaction>), `manual` for `/compact`, or `reactive` when the API rejected a request as too long. The value is also `auto` for [idle compaction](</docs/en/settings-reference#idlecompaction>) in an interactive terminal session. Absent on every other request, including one that writes a summary in the background before a compaction
`x-claude-code-context-compacted`| Present once, on the first main-conversation request after a compaction, with the same values as `x-claude-code-compaction`. The conversation prefix before this request is no longer used, so a cache keyed on it can be dropped
`x-claude-code-prev-tool-durations`| Measured run time of the tool calls whose results this request carries, as `<name>=<ms>;<name>=<ms>`, for example `Bash=742;Read=9`. Sent on the next request of the same conversation after a batch of tool calls, from the main session or a subagent
`x-claude-code-prompt-id`| Random UUID that identifies the user prompt a request serves. Requests serving one prompt share the value, including the turns of subagents that prompt started. Requests not attributed to a prompt omit it. Use it to group a session’s requests by prompt. Requires Claude Code v2.1.283 or later
@@ -153,8 +153,8 @@
Claude Code prepends a short attribution block to the system prompt containing the client version and a fingerprint derived from the conversation. The `api.anthropic.com` endpoint strips the block before processing when it arrives unchanged as the first system block, so it doesn’t affect first-party prompt caching. Any other upstream receives it as part of the prompt. The strip is positional, so it only works when the gateway forwards the `system` array unchanged. To keep the block out of the prompt without losing other system content:
- * Forward the `system` array exactly as received, keeping the block first: prepending another system block, reordering the array, or converting it to a single string defeats the strip, and the block then reaches the model and the prompt cache key.
- * Keep the block in its own array entry: the endpoint treats a merged block that starts with the attribution header as attribution in its entirety and drops everything merged into it, including the rest of the system prompt.
+ * Forward the `system` array exactly as received, keeping the block first. Prepending another system block or reordering the array defeats the strip, and the block then reaches the model and the prompt cache key.
+ * Keep the block in its own array entry, and don’t convert `system` to a single string. The endpoint treats a merged block that starts with the attribution header as attribution in its entirety and drops everything merged into it, including the rest of the system prompt.
* If your gateway must reshape system content, set [`CLAUDE_CODE_ATTRIBUTION_HEADER=0`](</docs/en/env-vars>) so Claude Code omits the block. Anthropic and the cloud providers’ Claude endpoints read the block for attribution, so omit it at the client rather than stripping or moving it in the gateway.
The variable exists for gateway and third-party caching compatibility, not as a privacy control: on a direct connection the full request already goes to the Anthropic API either way. When both of these hold, Claude Code keeps the block on [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier requests even when you set the variable to `0`:
@@ -194,7 +194,7 @@
When the upstream rejects one of these capabilities, Claude Code can retry the request on its own with the rejected part removed or changed:
* When a `400` says the `thinking.type` value `enabled` or `adaptive` isn’t supported, Claude Code retries once with the other type and keeps the `thinking` field. Later requests to that model keep the switched type until Claude Code exits. Before v2.1.121, Claude Code didn’t retry, so [`thinking.type.enabled is not supported`](</docs/en/errors#thinking-type-enabled-is-not-supported-for-this-model>) reached the developer
- * When the upstream rejects a `role: "system"` entry inside `messages`, Claude Code retries once without those mid-conversation system messages and carries their text in user messages instead. Later requests in the conversation keep that shape until the developer runs `/clear` or the conversation compacts
+ * When the upstream rejects a `role: "system"` entry inside the `messages` array, Claude Code moves the mid-conversation system text into user messages and retries once. After a successful retry, later requests in the conversation keep that text in user messages until the developer runs the `/clear` command or the conversation compacts
* When the upstream rejects only the `cache_control` marker on a mid-conversation system message, Claude Code keeps the system messages and retries once with the marker moved. The marker goes on the last entry in `messages` that isn’t a system message, in that retry and in later requests until Claude Code exits
* When the upstream rejects a [thinking signature](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>), including with a `400` whose message says the block is `bound to a different conversation`, Claude Code removes earlier thinking blocks from the request, retries, and keeps them out of every later request. New responses still include thinking
* When the gateway or its upstream rejects the [advisor tool](</docs/en/advisor>) entry in `tools` as an unrecognized tool type, Claude Code retries once without that entry and its `anthropic-beta` value. Later requests omit them. Claude Code recognizes this rejection by a `400` or `422` response whose message names the tool type after `Input tag`, such as `Input tag 'advisor_20260301'`. Before v2.1.280, Claude Code didn’t retry this rejection
@@ -208,6 +208,23 @@
The `bound to a different conversation` rejection comes from the API’s [preserved thinking](<https://platform.claude.com/docs/en/build-with-claude/preserved-thinking>) check, which fails when `system`, `tools`, or earlier `messages` content differs from the request that produced the thinking. A gateway that rewrites any of that content can cause the rejection itself; [Libraries, proxies, and gateways](<https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#libraries-proxies-gateways>) covers what to pass through unchanged. Most of this retry logic matches on the upstream’s error wording, so forward error response bodies unmodified. A gateway that wraps upstream errors in its own envelope breaks the recovery path, even when it preserves the status code, unless the envelope’s message carries a stable `capability_rejected:` token. [Claude apps gateway substitutes those tokens for cloud providers’ error wording](</docs/en/claude-apps-gateway-config#upstream-error-messages>), for example `capability_rejected: prompt_too_long`.
+#### Retry unchanged, then without earlier thinking
+
+If Claude Code doesn’t recognize the error body of your gateway’s `400` or `422`, it can retry a request that carried `thinking` or `redacted_thinking` blocks from earlier turns. Claude Code retries once in case the error was transient, and once to test whether your gateway rewrote the upstream’s error body for a rejected thinking signature. Look for the two retries in your gateway’s log:
+
+ 1. The same body again
+ 2. The same body without those blocks, sent only if your gateway answers the first retry with another `400` or `422` that Claude Code doesn’t recognize
+
+Find your gateway’s response to the retries in the first column:
+
+Your gateway| What follows| What you do
+---|---|---
+Accepts the first retry| Later requests still carry those blocks| Nothing
+Rejects the first retry, then accepts the second| Later requests omit those blocks too| Nothing, unless your gateway rewrites the upstream’s error bodies. Then forward them unmodified, or put `capability_rejected: thinking_signature` in the rewritten message when the upstream rejects a thinking signature. Claude Code then recognizes the rejection and sends a single retry without the blocks.
+Rejects both retries| Another retry of the same request can follow, such as the retry without tool search. If none does, the developer sees the original error, followed by `If other sessions work and this one keeps failing, start a new session`. Later requests carry those blocks again.| If your gateway rewrites the upstream’s error bodies, forward them unmodified, so that Claude Code can recognize the error. Otherwise, nothing.
+
+To disable both retries, for example because your gateway rejects requests itself under a content policy, have developers set [`CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE`](</docs/en/env-vars>) to `1`, which requires Claude Code v2.1.334 or later. With the retries disabled, a conversation that the second retry would have recovered keeps failing until the developer starts a new session.
+
#### Retry without a rejected beta value
When a `400` rejects by name an `anthropic-beta` value that this retry covers, the gateway sees the request once more without it. Later requests omit the value. Most values it covers require v2.1.314 or later. Your gateway needs no change if the message of the `400` it returns carries the value in either of these forms:
--- a/loading.md
+++ b/loading.md
@@ -42,7 +42,7 @@
`@<marketplace>`| You installed it from a marketplace you added| `"<name>@<marketplace>": true` or `false` under `enabledPlugins` in a settings file
`@inline`| You started Claude Code with `--plugin-dir` or `--plugin-url`, set [`CLAUDE_CODE_PLUGIN_DIRS`](</docs/en/env-vars#variables>), or an Agent SDK app passed the `plugins` option. It loads for that session only| On for the session unless the manifest sets `defaultEnabled: false` or a settings file sets `"<name>@inline": false`
`@skills-dir`| You saved a plugin directory that has a `.claude-plugin/plugin.json` under `~/.claude/skills/` or the project’s `.claude/skills/`| The manifest’s `defaultEnabled`, unless a settings file sets `"<name>@skills-dir"` to `true` or `false`
-`@synced`| You or your organization turned it on for your claude.ai account, and Claude Code downloaded it| On unless the manifest sets `defaultEnabled: false` or a settings file sets `"<name>@synced": false`. A plugin your organization marks as required loads regardless
+`@synced`| You or your organization turned it on for your claude.ai account, and Claude Code downloaded it| On unless the manifest sets `defaultEnabled: false` where that applies or a settings file sets `"<name>@synced": false`. A plugin your organization marks as required loads either way
For a marketplace plugin, `<name>` is the entry name in `marketplace.json`; for `@inline` and `@skills-dir` it’s the `name` in the plugin’s manifest. The origin names in this table are reserved, so no marketplace can be named `inline`, `skills-dir`, or `synced`.
@@ -123,7 +123,7 @@
* **Every synced plugin on a machine** : set [`syncClaudeAiPlugins`](</docs/en/settings-reference#syncclaudeaiplugins>) to `false` in your user settings, or your organization sets it in [managed settings](</docs/en/managed-settings>). Claude Code stops downloading, and the next time you start it, it moves the plugins it already synced to `~/.claude/plugins/.trash/` and no longer loads them. If your organization turns off Skills on claude.ai, plugins stop syncing too
* **A plugin your organization requires** : a plugin that your organization marks as required on claude.ai loads even if you disabled it earlier. `claude plugin disable` refuses it with `Plugin "<name>@synced" is required by your organization and can't be disabled here. Contact your admin to change it.`, and `claude plugin list` marks it `required by your org`
-For removing a plugin on claude.ai, see [Manage installed plugins](</docs/en/plugins/install#manage-installed-plugins>).
+For removing a plugin on claude.ai, see [Manage installed plugins](</docs/en/plugins/install#manage-installed-plugins>). In a cloud Cowork session started from a claude.ai chat, Claude Code ignores [`defaultEnabled: false`](</docs/en/plugins/manifest-reference#defaultenabled>) when it loads a synced plugin. To keep the plugin off there, [turn it off for your account on claude.ai](<https://claude.com/docs/plugins/overview#manage-installed-plugins>), unless your organization requires it.
## Find where a plugin is enabled
--- a/managed-settings.md
+++ b/managed-settings.md
@@ -75,7 +75,7 @@
* **Running sessions** : most changes reach a running session on the schedule in the delivery mechanism table, without a restart.
* Changes to [`forceRemoteSettingsRefresh`](</docs/en/settings-reference#forceremotesettingsrefresh>), [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>), and [some user-editable keys](</docs/en/settings#when-edits-take-effect>) take effect at the next session start.
* A new or changed [`policyHelper`](</docs/en/settings-reference#policyhelper>) entry takes effect at the next launch. If server-managed settings shadow the helper at that launch, the helper runs as soon as a fetch reports those settings removed.
- * **Changes that need approval** : apart from the [updates that wait for the next launch](</docs/en/server-managed-settings#fetch-and-caching-behavior>), a server-managed change to a setting that [needs approval](</docs/en/server-managed-settings#security-approval-dialogs>), such as a hook or an `env` variable, waits for the developer to accept the dialog in an interactive session, and applies for the current run in a session an IDE extension or the Agent SDK hosts. Other server-managed changes apply on the next poll.
+ * **Changes that need approval** : a server-managed change that [needs approval](</docs/en/server-managed-settings#security-approval-dialogs>), such as a hook or an `env` variable, waits for the developer’s approval when Claude Code asks for it. It applies without asking in interactive sessions where Claude Code skips the dialog, and for the current run in a session that an IDE extension or the Agent SDK hosts. In each case, [some updates](</docs/en/server-managed-settings#fetch-and-caching-behavior>) wait for the next launch.
* **Long-lived sessions** : a session left open for weeks can still lag a rollout. [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) blocks an outdated binary from starting and doesn’t end a session that’s already running.
### Where each mechanism stores the policy
@@ -312,7 +312,7 @@
`strictPluginOnlyCustomization`| Treated as `true`, locking all four surfaces, when the value is neither a boolean nor an array. An array entry that this version doesn’t recognize as a surface locks nothing; a status note counts such entries so you can check them for typos.
`enabledPlugins`| An invalid entry is dropped with a warning and the other entries stay enforced. A value that isn’t a map of plugin IDs, or whose every entry is invalid, is dropped whole with a warning.
-`allowedHttpHookUrls` and `httpHookAllowedEnvVars` merge across settings files, so entries in your user, project, or local settings still apply while the managed list is empty. The fallbacks for those two keys and for `allowedChannelPlugins` require Claude Code v2.1.267 or later; earlier versions drop the whole key when its value or any entry is invalid. The `strictKnownMarketplaces` and `blockedMarketplaces` fallbacks require Claude Code v2.1.277 or later; earlier versions drop the whole key when its value or any entry is invalid. The `strictPluginOnlyCustomization` and `enabledPlugins` fallbacks require Claude Code v2.1.282 or later. `requiredMinimumVersion` and `requiredMaximumVersion` fail open by design: an invalid value is dropped rather than enforced. This tolerance applies only to managed settings. User, project, and local settings files remain strict: a file whose JSON or top-level shape fails validation is rejected as a whole and reported, and an individual entry that fails, such as a malformed permission rule, is skipped with a warning while the rest of the file applies.
+`allowedHttpHookUrls` and `httpHookAllowedEnvVars` merge across settings files, so entries in your user, project, or local settings still apply while the managed list is empty. The fallbacks for those two keys and for `allowedChannelPlugins` require Claude Code v2.1.267 or later; earlier versions drop the whole key when its value or any entry is invalid. The `strictKnownMarketplaces` and `blockedMarketplaces` fallbacks require Claude Code v2.1.277 or later; earlier versions drop the whole key when its value or any entry is invalid. The `strictPluginOnlyCustomization` and `enabledPlugins` fallbacks require Claude Code v2.1.282 or later. `requiredMinimumVersion` and `requiredMaximumVersion` fail open by design: an invalid value is dropped rather than enforced.
#### Invalid values inside `sandbox`
--- a/manifest-reference.md
+++ b/manifest-reference.md
@@ -11,7 +11,7 @@
* A `userConfig` option or a `channels` entry: the User configuration and Channels schemas
* `${CLAUDE_PLUGIN_ROOT}` or another variable a plugin can reference: Environment variables
* Where each component’s files go: Standard layout
- * A message from `claude plugin validate`: the [troubleshooting page](</docs/en/plugins/troubleshooting>) lists each message with its fix and links to the relevant sections on this page
+ * A message from the `claude plugin validate` command: [Troubleshoot plugins](</docs/en/plugins/troubleshooting>)
## Manifest file
@@ -170,7 +170,7 @@
### `defaultEnabled`
-Whether the plugin starts enabled when the user hasn’t set it in [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>). Defaults to `true`. A plugin that an enabled plugin depends on starts enabled regardless. The same field in the marketplace entry overrides this one. Once a user’s `enabledPlugins` entry is written, it persists across plugin updates, so changing `defaultEnabled` in a later release doesn’t change the setting for an existing user.
+Whether the plugin starts enabled when the user hasn’t set it in [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>). Defaults to `true`. The same field in the marketplace entry overrides this one. For a plugin synced from the user’s claude.ai account, see [Control which synced plugins load](</docs/en/plugins/loading#control-which-synced-plugins-load>). When a user installs a marketplace plugin and it starts enabled, the marketplace plugins it depends on also start enabled, even when those plugins set this field to `false`. Once a user’s `enabledPlugins` entry is written, it persists across plugin updates, so changing `defaultEnabled` in a later release doesn’t change the setting for an existing user.
### `dependencies`
@@ -277,7 +277,7 @@
`settings`| No| Settings sent by `workspace/didChangeConfiguration`
`workspaceFolder`| No| Workspace folder path for the server
`startupTimeout`| No| Milliseconds to wait for startup, a positive integer
-`shutdownTimeout`| No| Milliseconds to wait for a graceful shutdown, a positive integer. When the timeout elapses, Claude Code terminates the server process. When unset, no timeout applies
+`shutdownTimeout`| No| Milliseconds to wait for a graceful shutdown, a positive integer. When the timeout elapses, Claude Code terminates the server process. Defaults to `60000` on v2.1.333 or later
`requestTimeout`| No| Milliseconds to wait for the server to answer a request, a positive integer. Defaults to `60000`, so a request the server never answers fails after 60 seconds. Requires v2.1.288 or later
`restartOnCrash`| No| Whether to restart the server after it crashes. Defaults to `true`. Set to `false` to leave a crashed server stopped instead of restarting it
`maxRestarts`| No| Restart attempts before giving up, zero or more
@@ -594,4 +594,4 @@
* [Add components to a plugin](</docs/en/plugins/components>): what each component does at runtime, with an example that validates
* [Marketplace reference](</docs/en/plugins/marketplace-reference>): the entry fields a marketplace can set for your plugin
* [Plugin commands reference](</docs/en/plugins/cli-reference#plugin-validate>): `claude plugin validate` flags and output
- * [Troubleshoot plugins](</docs/en/plugins/troubleshooting#claude-plugin-validate-reports-errors>): each validation message with its fix
+ * [Troubleshoot plugins](</docs/en/plugins/troubleshooting#claude-plugin-validate-reports-errors>): validation messages with their fixes
--- a/marketplace-reference.md
+++ b/marketplace-reference.md
@@ -10,7 +10,7 @@
* **The marketplace file** : Top-level fields and Plugin entries
* **An entry’s`source`**: Plugin sources
* **A`source` object in settings**: Marketplace sources
- * **Output from[`claude plugin validate <path>`](</docs/en/plugins/cli-reference>)**: Validation messages, which maps each message to the field it names
+ * **Output from[`claude plugin validate <path>`](</docs/en/plugins/cli-reference>)**: Validation messages
## Marketplace file
@@ -76,7 +76,7 @@
The entry’s fields apply differently to a fetched plugin that has its own `.claude-plugin/plugin.json` and to one that doesn’t:
- * **No`plugin.json`**: the entry is the manifest regardless of `strict`. Every manifest field that the entry accepts applies, including [`mcpServers`, `lspServers`, `userConfig`, and `channels`](</docs/en/plugins/manifest-reference>).
+ * **No`plugin.json`**: the entry is the manifest regardless of `strict`. Entry fields such as [`mcpServers`, `lspServers`, `userConfig`, and `channels`](</docs/en/plugins/manifest-reference>) apply.
* **`plugin.json` present**: `plugin.json` is the manifest. Strict mode decides whether the entry’s six component fields, `commands`, `agents`, `skills`, `hooks`, `outputStyles`, and `themes`, are combined with it or rejected as a conflict. Entry `mcpServers`, `lspServers`, `userConfig`, and `channels` don’t apply. Declare them in `plugin.json`.
#### Hooks in an entry
@@ -346,7 +346,7 @@
`sparsePaths`| `github`, `git`| Array of directories for a sparse checkout, such as `[".claude-plugin", "plugins"]`. `claude plugin marketplace add --sparse` sets it
`skipLfs`| `github`, `git`| Accepted and has no effect. See [Keep plugin files out of Git LFS](</docs/en/plugins/host-marketplace#keep-plugin-files-out-of-git-lfs>)
`name`| `settings`| Must equal the `extraKnownMarketplaces` key and can’t be a reserved name
-`plugins`| `settings`| The inline catalog, with no hosted file. Each item takes `name`, `source`, `description`, `version`, `strict`, `headers`, and `headersHelper`. Write each item’s `source` as an object type, because a relative path has no repository to resolve against
+`plugins`| `settings`| The inline catalog, with no hosted file. Each item takes `name`, `source`, `description`, `version`, `strict`, `engines`, `headers`, and `headersHelper`. Write each item’s `source` as an object type, because a relative path has no repository to resolve against
To keep refreshes and auto-updates from moving a `github` or `git` marketplace off a commit you’ve reviewed, set `ref` to that commit’s full SHA, as in this source:
--- a/mcp.md
+++ b/mcp.md
@@ -828,7 +828,7 @@
## Related resources
* **[Custom tools guide](</docs/en/agent-sdk/custom-tools>)** : Build your own MCP server that runs in-process with your SDK application
- * **[Permissions](</docs/en/agent-sdk/permissions>)** : Control which MCP tools your agent can use with `allowedTools` and `disallowedTools`
+ * **[Permissions](</docs/en/agent-sdk/permissions>)** : Pre-approve MCP tools with `allowedTools` and deny them with `disallowedTools`
* **[TypeScript SDK reference](</docs/en/agent-sdk/typescript>)** : Full API reference including MCP configuration options
* **[Python SDK reference](</docs/en/agent-sdk/python>)** : Full API reference including MCP configuration options
* **[MCP server directory](<https://github.com/modelcontextprotocol/servers>)** : Browse available MCP servers for databases, APIs, and more
--- a/memory.md
+++ b/memory.md
@@ -342,7 +342,7 @@
### Share one file with other coding tools
-When Claude isn’t reading your `AGENTS.md` directly, you can still keep it as the one file every tool shares by putting an `@AGENTS.md` import in a `CLAUDE.md` next to it. Do this when your project also has a `CLAUDE.md`, when you’ve set **Project instructions** to `claude-md`, or in sessions that can’t load `AGENTS.md`. Add any Claude-specific instructions below the import, and Claude reads the imported file first, then the rest:
+When Claude isn’t reading your `AGENTS.md` directly, you can still keep it as the one file every tool shares by putting an `@AGENTS.md` import in a `CLAUDE.md` next to it. Do this when your project also has a `CLAUDE.md`, when you’ve set **Project instructions** to `claude-md`, or in sessions that can’t load `AGENTS.md`. Add any Claude-specific instructions below the import:
CLAUDE.md
--- a/mobile.md
+++ b/mobile.md
@@ -33,9 +33,9 @@
[Cloud sessions](</docs/en/claude-code-on-the-web>)| A session on cloud infrastructure, Anthropic-managed by default| Your repository is on GitHub and the task should keep running after you put your phone away. See the [cloud quickstart](</docs/en/web-quickstart>) to set up.
[Projects](</docs/en/claude-projects>)| A conversation where Claude coordinates parallel threads of work and reports back| You have a stream of related work rather than one task and want to see which threads finished or need you.
[Remote Control](</docs/en/remote-control>)| A Claude Code session running on your computer| The work needs your local filesystem, tools, or MCP servers.
-[Dispatch](</docs/en/desktop#sessions-from-dispatch>)| The Desktop app on your computer| You want to message a task and let Dispatch decide how to run it. Not available to new users. Requires a Pro, Max, or Ultra plan.
+[Dispatch](</docs/en/desktop#sessions-from-dispatch>)| The Desktop app on your computer| You want to message a task and let Dispatch decide how to run it. Being retired and not available to new users.
-If your computer will be off, use cloud sessions or a project, which run in the cloud and continue with your laptop closed. Remote Control and Dispatch drive your own machine, so it needs to stay on with Claude Code or the Desktop app running. If your machine sleeps during a Remote Control session, Claude Code reconnects when the machine comes back online. For a fuller comparison, see [work when you are away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>). Cloud sessions and Remote Control run from the **Code** tab. For Dispatch, which you message as a task in the app, see [sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>).
+If your computer will be off, use cloud sessions or a project, which run in the cloud and continue with your laptop closed. Remote Control and Dispatch drive your own machine, so it needs to stay on with Claude Code or the Desktop app running. If your machine sleeps during a Remote Control session, Claude Code reconnects when the machine comes back online. For more options, see [work when you are away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>). Cloud sessions and Remote Control run from the **Code** tab. For Dispatch, which you message as a task in the app, see [sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>).
### Start and monitor cloud sessions
@@ -60,7 +60,6 @@
* **Local-only commands** : commands that only run in the terminal interface, such as `/plugin` and `/resume`, don’t work from the app. The [Remote Control limitations](</docs/en/remote-control#limitations>) list the commands that do work from mobile and how their behavior differs.
* **Permission modes** : cloud sessions offer Accept edits, Plan, and Auto, and Remote Control sessions offer Manual, Accept edits, Plan, and Auto. You can’t select Bypass permissions from the app in either case. See [switch permission modes](</docs/en/permission-modes#switch-permission-modes>) for when Auto is available.
- * **Dispatch plans** : Dispatch requires a Pro, Max, or Ultra plan and isn’t available on Team or Enterprise.
## Related resources
Show diff (143 lines)
--- a/model-config.md
+++ b/model-config.md
@@ -76,8 +76,10 @@
When you’re signed in with `/login` and continue on Fable at the terminal or in VS Code, Claude Code saves that choice for later sessions. With [Remote Control](</docs/en/remote-control>) connected in an interactive terminal session, you can also answer the mid-session prompt on your device, and that answer lasts for that session. Answering on your device requires Claude Code v2.1.323 or later. The mid-session prompt waits until you answer. It can instead close at the [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) deadline, five minutes by default, in these sessions:
- * **Remote Control connected, or a[split-pane teammate](</docs/en/agent-teams#choose-a-display-mode>)**: press the right arrow key at the terminal to cancel the deadline.
- * **[Background session](</docs/en/agent-view>), or an [Agent SDK](</docs/en/agent-sdk/overview>) application such as VS Code**: answer before the deadline, even with Remote Control connected.
+ * A session with Remote Control connected
+ * A [split-pane teammate](</docs/en/agent-teams#choose-a-display-mode>) session
+ * A [background session](</docs/en/agent-view>)
+ * A session in an [Agent SDK](</docs/en/agent-sdk/overview>) application such as VS Code
If the deadline passes, Claude Code ends the turn without sending the request and keeps your model. The prompt returns with your next message on Fable. If you send a message while the prompt is open, the turn can end the same way. In [non-interactive mode](</docs/en/headless>) with the `-p` flag, and in an Agent SDK application that doesn’t show the prompt, Claude Code never asks for consent. When a Fable request there would bill to usage credits, Claude Code bills it without asking.
@@ -126,7 +128,7 @@
"model": "opus"
}
-When the active model at startup comes from project or managed settings rather than your own selection, the startup header shows which settings file set it. Run `/model` to override; the project or managed setting reapplies in new sessions. On platforms that embed Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](</docs/en/env-vars>), the host’s model configuration takes precedence over managed model settings. A managed `availableModels` allowlist stays in force unless the host supplies its own. [Exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>) says which keys and variables the host overrides.
+To override a model set in project or managed settings, run `/model`. The project or managed setting reapplies in new sessions. On platforms that embed Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](</docs/en/env-vars>), the host’s model configuration takes precedence over managed model settings. A managed `availableModels` allowlist stays in force unless the host supplies its own. [Exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>) says which keys and variables the host overrides.
#### Which model a resumed session uses
@@ -173,7 +175,7 @@
When you pick a model with `/model` and your next session starts on something else, these are the usual causes:
* **You chose it for one session.** Pressing `s` in the picker, launching with `--model`, and running `/model` in non-interactive mode all apply to the current session and leave your saved default alone.
- * **Something with higher priority sets the model.** A `model` value in project or managed settings, `ANTHROPIC_MODEL` in your shell, or an organization default set to override user choices applies again at every new-session launch. Your `/model` choice is still saved; it’s outranked. When project or managed settings set the model, the startup header names the file.
+ * **Something with higher priority sets the model.** A `model` value in project or managed settings, the `ANTHROPIC_MODEL` variable in your shell, or an organization default set to override user choices applies again at every new-session launch. Your `/model` choice is still saved.
* **Claude Code couldn’t save your choice.** `/model` writes `model` to `~/.claude/settings.json`. If you can’t write to that file, for example because another tool generates it or links it to a read-only copy, the model you chose lasts for the session and the next launch reads the old value. Set `model` in the tool that generates the file, or make the file writable. See [A change you made in Claude Code is lost in new sessions](</docs/en/settings#a-change-you-made-in-claude-code-is-lost-in-new-sessions>).
* **You resumed a session.** A session you resume with `claude --resume` or `--continue` usually keeps the model it was using rather than your current default.
@@ -244,14 +246,12 @@
#### When the allowlist limits Cowork
-On Team plans, claude.ai applies a non-empty `availableModels` list from your [server-managed settings](</docs/en/server-managed-settings>) to Cowork. On Enterprise plans, it does the same until Anthropic turns this off for your organization. With the list applied:
+On Team plans, claude.ai applies a non-empty `availableModels` list from your [server-managed settings](</docs/en/server-managed-settings>) to Cowork. On an Enterprise plan, you can’t use the list to limit members’ Cowork sessions or their conversations in the [new unified Claude experience](<https://support.claude.com/en/articles/17444462-set-up-and-manage-the-new-unified-claude-experience-for-your-enterprise-organization>). claude.ai stopped applying it to them on November 30, 2026. Claude Code outside Cowork still follows the list. To keep a model out of Cowork and those conversations on an Enterprise plan, disable it in [**Organization settings > Models**](<https://claude.ai/admin-settings/models>), which sets organization model restrictions. The Models page has no switch for Haiku models or for a model that isn’t generally available. You can’t disable a model there for one product alone, so members lose it in Claude Code and chat as well as Cowork. On a Team plan, members meet the list in Cowork’s picker and in sessions that run remotely:
* **Model picker** : Cowork’s picker normally hides or greys out the models outside the list, wherever the session runs
* **Remote Cowork sessions** : the server also checks the model a user picks, and rejects one outside the list
- * **Unified conversations** : a conversation in the [new unified Claude experience](<https://support.claude.com/en/articles/17444462-set-up-and-manage-the-new-unified-claude-experience-for-your-enterprise-organization>) isn’t checked until it runs in a remote Cowork session, for example to run code or work with files. One that moves there on a model outside the list normally switches to a listed model with no notice. There, a pick outside the list fails, normally with a message starting `Your organization's settings don't allow this model here`.
+ * **Unified conversations** : a conversation in the new unified Claude experience isn’t checked until it runs in a remote Cowork session, for example to run code or work with files. One that moves there on a model outside the list normally switches to a listed model with no notice. There, a pick outside the list fails, normally with a message starting `Your organization's settings don't allow this model here`.
* **Sessions on the user’s machine** : the list isn’t enforced beyond the picker. [Where and when a policy applies](</docs/en/managed-settings#where-and-when-a-policy-applies>) covers which device policy reaches those sessions.
-
-After Anthropic turns this off, claude.ai doesn’t apply the list to members’ Cowork sessions or unified conversations. Claude Code outside Cowork still follows it. Models outside the list can then appear in Cowork’s picker, and a member whose default model in Cowork is outside the list can start on it without picking it. A scheduled Cowork task saved on such a model can run on it. On an Enterprise plan, don’t count on the list to keep a model out of Cowork or unified conversations. No setting shows whether Anthropic has turned this off. For any model but Haiku, disable it in [**Organization settings > Models**](<https://claude.ai/admin-settings/models>), which sets organization model restrictions. You can’t disable a model there for one product alone, so members lose it in Claude Code and chat as well as Cowork.
### Default model behavior
@@ -645,7 +645,7 @@
#### Haiku 5.5 context window and pricing
-On the Anthropic API, Haiku 5.5 runs with the 1M context window on every plan, with no `[1m]` suffix to select. Its model ID is `claude-haiku-5-5`. To use it, run `/model claude-haiku-5-5` in a session, or start Claude Code from your shell with `claude --model claude-haiku-5-5`. A Haiku 5.5 request costs more per token when its prompt is longer than 100K tokens. See [Anthropic pricing](<https://platform.claude.com/docs/en/about-claude/pricing>) for both rates. Sessions auto-compact at about 967K tokens by default. To compact earlier, set a smaller auto-compact window for the model.
+On the Anthropic API, Haiku 5.5 runs with the 1M context window on every plan, with no `[1m]` suffix to select. Its model ID is `claude-haiku-5-5`. To use it, run `/model claude-haiku-5-5` in a session, or start Claude Code from your shell with `claude --model claude-haiku-5-5`. A Haiku 5.5 request costs more per token when its prompt is longer than 100K tokens. See [Anthropic pricing](<https://platform.claude.com/docs/en/about-claude/pricing>) for both rates. By default, a Haiku 5.5 session compacts near 400K tokens, or later in some cases. To compact earlier, set a smaller auto-compact window for the model.
## Context window and auto-compaction
@@ -687,13 +687,53 @@
If you don’t set an auto-compact window, Claude Code compacts when the conversation reaches the model’s context limit, except in these sessions:
- * [Cloud sessions](</docs/en/claude-code-on-the-web>) compact as the conversation approaches the model’s limit
* Sonnet 4.6 and Opus 4.6 without extended context compact at the 200K boundary
* When you set [`CLAUDE_CODE_DISABLE_1M_CONTEXT=1`](</docs/en/env-vars>), models with a native 1M window, such as Sonnet 5 and the Fable models, compact at the 200K boundary
- * Models running with a native 1M window compact before the window fills, at about 967K tokens by default. These include the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later. Behind a custom `ANTHROPIC_BASE_URL`, see the context window behind a gateway
+ * Current models with a native 1M window compact near 400K tokens by default or later in some cases. These models include the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later. Behind a custom `ANTHROPIC_BASE_URL`, see the context window behind a gateway
* Sessions on a model ID Claude Code doesn’t recognize, such as an [LLM gateway](</docs/en/llm-gateway>) alias, compact at the context window Claude Code assumes for the ID; see Correct the window for a gateway or custom model ID
+ * [Cloud sessions](</docs/en/claude-code-on-the-web#manage-context>) can compact before these thresholds
See the [`idleCompaction`](</docs/en/settings-reference#idlecompaction>) setting for when Claude Code also compacts a conversation you leave idle.
+
+#### Compaction near 400K on a 1M model
+
+By default, your session uses `auto`, an auto-compact window that Anthropic tunes per model for the best cost and performance. On current models with a native 1M context window, `auto` is 400K, so your session compacts near 400K tokens, or later in some cases. Your later requests are smaller when compaction runs sooner, so long sessions use fewer tokens. A notice like this one means your session is on `auto` at 400K:
+
+ This session is on auto, which now autocompacts near 400k tokens instead of 1m to lower the cost of long sessions. To opt out, run /autocompact 1m.
+
+On `auto` at 400K, compaction runs at about 367K tokens. The [status line’s](</docs/en/statusline#context-window-fields>) `used_percentage` then reads about 37%, because it counts against the full 1M. `auto` is the recommended setting, so you can keep working as you are. To use the full 1M, set the window yourself:
+
+ * **Use the full 1M on the current model** : run `/autocompact 1M` in your session. On your own machine, the size is saved for later sessions on that model version, and compaction runs at about 967K tokens.
+ * **Keep 1M for your organization** : in [managed settings](</docs/en/managed-settings>), add a [`modelSettings`](</docs/en/settings-reference#modelsettings>) entry for each 1M model version, such as `"claude-opus-5-5": { "autoCompactWindow": 1000000 }`. The managed entry replaces the size a developer saved for that model. A developer can still override it with `--autocompact` or `CLAUDE_CODE_AUTO_COMPACT_WINDOW`. If a computer that runs the Desktop app has no managed settings yet, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"` so [Desktop’s own policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) still applies. If Desktop users on Windows work in WSL, also [allow WSL sessions](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>), which Desktop turns off on managed devices.
+ * **Use the full 1M in cloud sessions** : run `/autocompact 1M` for the current [cloud session](</docs/en/claude-code-on-the-web#manage-context>). For later sessions on one repository, commit the same `modelSettings` entry to its `.claude/settings.json`. Or add `CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000` to your cloud environment’s [variables](</docs/en/cloud-environments#set-environment-variables>), which applies to every model. A [project’s threads](</docs/en/claude-projects#choose-models-and-let-claude-manage-context>) keep their own window.
+ * **Set a size for every model or in scripts** : see Set the auto-compact window.
+
+A conversation you leave idle can still compact below the size you set. To prevent that, turn off [idle compaction](</docs/en/settings-reference#idlecompaction>). To check your session’s auto-compact window, run `/autocompact` with no value. In a resumed conversation, wait for a reply from Claude first. Check again after you switch to a newer model, because Anthropic continues to evaluate `auto` for future models and can set a different window.
+
+#### Answer the one-time 400K prompt
+
+If you see a prompt titled **Autocompact now defaults to 400k tokens** , choose which of your native 1M models use `auto` at 400K:
+
+If you choose| What happens to those models
+---|---
+**Apply (all models)**| They move to `auto`, and you lose the sizes you saved for them
+**Apply** for the current model only| That model moves to `auto`. The others keep their saved size, or get 1M saved if they were on `auto`.
+**Keep**| Your saved sizes stay, and models in your `/model` picker that were on `auto` get 1M saved. When you switch to a model version released later, you have no saved size for it.
+
+If you close the prompt, no setting changes, so models on `auto` compact near 400K. In a cloud session, your answer lasts for that session. To change your answer later, run `/autocompact 1M` or `/autocompact auto` for the model you’re using.
+
+#### Sessions that run past 400K by default
+
+In cases such as these, your session’s auto-compact window on a current native 1M model is larger than 400K, so the session can run past 400K tokens before it compacts:
+
+Case| Auto-compact window your session uses
+---|---
+You send more than about 180K tokens of system prompt, tools, and instruction files with each request| Raised for that conversation
+You start the session by resuming a conversation that’s already past 400K tokens, such as with `claude --resume`| 1M until the conversation compacts
+You run a [Desktop scheduled task](</docs/en/desktop-scheduled-tasks>), a [cloud scheduled task](</docs/en/routines>), or a session in a [self-hosted environment](</docs/en/self-hosted-environments>)| 1M
+You run a Claude Code version before v2.1.334. For a local Desktop session, check the [Code tab’s Claude Code version](</docs/en/desktop#claude-code-version-in-the-code-tab>), which can differ from your terminal’s.| 1M
+
+To compact sooner, update Claude Code if you run an older version, or set a smaller window. If you see the notice `Raised this conversation's auto-compact window`, use fewer tools or shorter instruction files instead, because a smaller window can refill right after each compaction. In a terminal session, run `/autocompact` to see the raised size.
### Correct the window for a gateway or custom model ID
@@ -759,20 +799,20 @@
### Pin models for third-party deployments
-When deploying Claude Code through [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), or [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), pin model versions before rolling out to users. Without pinning, Claude Code uses model aliases such as `fable`, `opus`, `sonnet`, and `haiku` that resolve to a built-in default model ID for each provider. That default can lag the newest Anthropic release, and the model it points to may not yet be enabled in a user’s account. When the default is unavailable:
+Pin model versions before rolling out Claude Code on [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>). Without pinning, Claude Code uses model aliases such as `fable`, `opus`, `sonnet`, and `haiku` that resolve to a built-in default model ID for each provider. That default can lag the newest Anthropic release, and the model it points to may not yet be enabled in a user’s account. When the default is unavailable:
* **Amazon Bedrock and Google Cloud’s Agent Platform** : after a [startup check](</docs/en/amazon-bedrock#startup-model-checks>), users see a notice and the session falls back to an earlier version of the default model. When the default is an Opus model and no Opus version is available, the session falls back to the default Sonnet model.
* **Microsoft Foundry** : Claude Code switches to an older model or the request fails.
On Amazon Bedrock and Google Cloud’s Agent Platform, a user who starts the session on a specific Sonnet or Opus version, for example with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, pins that version as the session’s default for the matching alias: the startup check skips the built-in default it replaces and shows no fallback notice. Before v2.1.211, the check ran and could show a notice even when a session model was explicitly configured.
-Set the model environment variables to specific version IDs as part of your initial setup. Pinning lets you control when your users move to a new model.On [Google Cloud’s Agent Platform](<https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/sonnet-4-5>) and [Microsoft Foundry](<https://platform.claude.com/docs/en/about-claude/model-deprecations>), move off Sonnet 4.5 before it retires there on November 30, 2026:
-
- * **On Claude Code before v2.1.332** : the `sonnet` alias resolves to Sonnet 4.5, and so does the default model on Microsoft Foundry. Set `ANTHROPIC_DEFAULT_SONNET_MODEL` to a newer model such as `claude-sonnet-5`, or on Microsoft Foundry to your deployment’s name. Set `ANTHROPIC_DEFAULT_OPUS_MODEL` too, or the default model on Agent Platform can become the Sonnet model you set.
+Set the model environment variables to specific version IDs as part of your initial setup. Pinning lets you control when your users move to a new model.If you use [Google Cloud’s Agent Platform](<https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/sonnet-4-5>), [Microsoft Foundry, Claude Platform on AWS, or Claude Models on Google Cloud (Anthropic managed)](<https://platform.claude.com/docs/en/about-claude/model-deprecations>), move off Sonnet 4.5. The model’s retirement date on these platforms is November 30, 2026, so update your configuration:
+
+ * **On any Claude Code version** : replace Sonnet 4.5 wherever your configuration names it, such as in the `ANTHROPIC_DEFAULT_SONNET_MODEL` or `ANTHROPIC_MODEL` environment variable, the `--model` flag, or the `availableModels` allowlist.
+ * **Before Claude Code v2.1.332, on Agent Platform or Microsoft Foundry** : the `sonnet` alias resolves to Sonnet 4.5, and so does the default model on Microsoft Foundry. Set the `ANTHROPIC_DEFAULT_SONNET_MODEL` environment variable to a newer model such as `claude-sonnet-5`, or on Microsoft Foundry to the newer model’s deployment name. Set the `ANTHROPIC_DEFAULT_OPUS_MODEL` environment variable too, or the default model on Agent Platform can become the Sonnet model you set.
* If an enforced `availableModels` list has `sonnet` and no Opus, put the newer model’s ID there in its place.
- * **On any version** : replace Sonnet 4.5 wherever your configuration names it, such as `ANTHROPIC_MODEL`, `--model`, or `availableModels`.
-
-After that date, requests to Sonnet 4.5 on those platforms stop working, including background tasks.
+
+After Sonnet 4.5 retires on your platform, requests to it stop working, including background tasks.
Use the following environment variables with version-specific model IDs for your provider:
--- a/monitoring-usage.md
+++ b/monitoring-usage.md
@@ -30,6 +30,8 @@
To verify a setup that exports metrics, check your backend for the `claude_code.session.count` metric, which Claude Code emits when a session starts. To verify a logs-only setup, submit a prompt and check for the `claude_code.user_prompt` event. If nothing arrives, start Claude Code with `claude --debug-file <path>` and check the log it writes to that path. Claude Code reports failures from the exporters you configure as `[3P telemetry]` errors, where 3P means third-party. Lines prefixed `[Anthropic telemetry]` describe [Anthropic’s separate operational telemetry](</docs/en/data-usage#telemetry-services>) and don’t indicate a problem with your setup. For full configuration options, see the [OpenTelemetry specification](<https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options>).
## Administrator configuration
+
+If you set **OTLP endpoint** under **Telemetry & updates** in the [Enterprise Admin Console](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code>), terminal sessions that export there don’t follow your endpoint, protocol, or gRPC certificate variables. To send their data somewhere else, change that field in the console. If you set `OTEL_EXPORTER_OTLP_ENDPOINT`, even in managed settings, those sessions still export to the console’s collector.Run `/status` to check a session on Claude Code v2.1.331 or later. Only terminal sessions that get their collector from the console show a **Telemetry** row, which lists that collector’s host. If the row starts with `not sent to`, the session isn’t exporting. See [which computers follow the console](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority>), [what else it replaces](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference#managed-settings-beside-the-console>), and which certificate variables to set.
Administrators can configure OpenTelemetry settings for all users through the [managed settings file](</docs/en/managed-settings#delivery-mechanisms>). See the [settings precedence](</docs/en/settings#settings-precedence>) for more information about how settings are applied. Example managed settings configuration:
@@ -48,7 +50,7 @@
### How managed settings lock the OTLP destination
-When you set an `OTEL_EXPORTER_OTLP_*` variable in managed settings, Claude Code removes conflicting developer-set variables at startup and logs a warning in the debug log. What it removes depends on which variable you set:
+Skip this section for sessions that export to the Enterprise Admin Console’s collector. When you set an `OTEL_EXPORTER_OTLP_*` variable in managed settings, Claude Code removes conflicting developer-set variables at startup and logs a warning in the debug log. What it removes depends on which variable you set:
* **Endpoints** : when you set `OTEL_EXPORTER_OTLP_ENDPOINT`, Claude Code removes every developer-set per-signal endpoint. Developers can’t point one signal at a different collector, so you don’t need to also set the per-signal endpoint variables in managed settings.
* **Protocols** : when you set `OTEL_EXPORTER_OTLP_PROTOCOL`, Claude Code removes every developer-set per-signal protocol.
@@ -90,7 +92,7 @@
`OTEL_LOG_TOOL_DETAILS`| Enable logging of tool parameters and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, user-authored workflow names, and tool input. Also enables custom, plugin, and MCP command names on `user_prompt` events, and real agent, skill, plugin, and MCP server and tool names on the cost and token counters (default: disabled). For Claude Desktop’s built-in servers, in sessions Claude Desktop owns, `mcp_server_name`/`mcp_tool_name` emit on `tool_decision`/`tool_result` even with the flag off. The exception requires Claude Code v2.1.214 or later| `1` to enable
`OTEL_LOG_TOOL_CONTENT`| Enable logging of tool content in the `tool.output` span event (default: disabled). Span attributes carry tool content under their own gates. Requires tracing. Content is truncated at the content limit (60 KB by default)| `1` to enable
`OTEL_LOG_MANAGED_SETTINGS`| Add the redacted managed settings, and a SHA-256 digest of the settings before redaction, to managed settings resolved events (default: disabled). A value in project or local settings doesn’t turn it on. Requires Claude Code v2.1.274 or later| `1` to enable
-`OTEL_LOG_RAW_API_BODIES`| Emit the full Anthropic Messages API request and response JSON as `api_request_body` / `api_response_body` log events (default: disabled). Bodies can include the entire conversation history. Enabling this implies consent to everything `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT` would reveal| `1` for inline bodies truncated at the content limit (60 KB by default), or `file:<dir>` for untruncated bodies on disk with a `body_ref` pointer in the event
+`OTEL_LOG_RAW_API_BODIES`| Emit the full Anthropic Messages API request and response JSON as `api_request_body` / `api_response_body` log events (default: disabled). Bodies can include the entire conversation history. Enabling this implies consent to everything `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT` would reveal. In [Code Mode](</docs/en/code-mode#trace-calls-from-code>), your backend can receive output through the last two that the bodies lack| `1` for inline bodies truncated at the content limit (60 KB by default), or `file:<dir>` for untruncated bodies on disk with a `body_ref` pointer in the event
`CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH`| Content limit: the maximum length of content-bearing attributes such as model responses, tool content, system prompts, and raw API bodies, truncation marker included, in UTF-16 code units (default: 61440, i.e. 60 KB). The default is sized for backends that cap attribute values at 64 KB; raise it only if your backend accepts larger values, or lower it to cut telemetry volume. When an OpenTelemetry SDK attribute limit, `OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT` or one of its logrecord and span variants, is set lower, Claude Code truncates at that smaller value so the `[TRUNCATED ...]` marker stays within the SDK limit| `262144`
`OTEL_RESOURCE_INCLUDE_HOST`| Add the machine’s name and ID to the resource attributes of metrics, events, and traces (default: disabled). See Identify the machine a session ran on. Requires Claude Code v2.1.326 or later| `1` to enable
`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE`| Metrics temporality preference (default: `delta`). Set to `cumulative` if your backend expects cumulative temporality| `delta`, `cumulative`
@@ -107,7 +109,7 @@
`http/protobuf`, `http/json`| `CLAUDE_CODE_CLIENT_CERT`, `CLAUDE_CODE_CLIENT_KEY`, and optionally `CLAUDE_CODE_CLIENT_KEY_PASSPHRASE`. See [Network configuration](</docs/en/network-config#mtls-authentication>)| `NODE_EXTRA_CA_CERTS`
`grpc`| `OTEL_EXPORTER_OTLP_CLIENT_KEY` and `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`, or the per-signal variants such as `OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY` to use a different certificate per signal| `OTEL_EXPORTER_OTLP_CERTIFICATE`
-For `grpc`, the OpenTelemetry SDK reads the standard OTLP variables directly, so existing configurations that set the per-signal metrics variables continue to work. On machines with managed settings, Claude Code may remove developer-set per-signal credentials and endpoints at startup.
+For `grpc`, the OpenTelemetry SDK reads the standard OTLP variables directly, so existing configurations that set the per-signal metrics variables continue to work. On machines with managed settings, Claude Code may remove developer-set per-signal credentials and endpoints at startup. For a session that exports to the Enterprise Admin Console’s collector, use the variables in the `http/protobuf`, `http/json` row, whichever protocol you chose in the console. Claude Code ignores the variables in the `grpc` row for that collector, including `OTEL_EXPORTER_OTLP_CERTIFICATE`. If the collector uses a private CA, [set `NODE_EXTRA_CA_CERTS`](</docs/en/network-config#custom-ca-certificates>) to trust it.
### Metrics cardinality control
@@ -172,7 +174,7 @@
#### Span hierarchy
-Each user prompt starts a `claude_code.interaction` root span. API calls, tool calls, and hook executions are recorded as its children. Tool spans have two child spans of their own: one for the time spent waiting on a permission decision and one for the execution itself. When the Agent tool, or legacy Task tool, spawns a subagent, the subagent’s API and tool spans nest under the parent’s `claude_code.tool` span.
+Each user prompt starts a `claude_code.interaction` root span. API calls, tool calls, and hook executions are recorded as its children. Tool spans have two child spans of their own: one for the time spent waiting on a permission decision and one for the execution itself. When the Agent tool, or legacy Task tool, spawns a subagent, the subagent’s API and tool spans nest under the parent’s `claude_code.tool` span. In Code Mode, [calls from code](</docs/en/code-mode#trace-calls-from-code>) nest under the `REPL` tool’s `claude_code.tool.execution` span.
claude_code.interaction
├── claude_code.llm_request
@@ -245,7 +247,7 @@
`parent_agent_id`| Identifier of the agent that spawned this one. Absent for the main session and for agents spawned directly from it|
`workflow.run_id`| Run identifier of the Workflow tool run that spawned this agent, prefixed `wf_`. Absent for agents not spawned by a workflow|
`workflow.name`| Name of the workflow that spawned this agent. User-authored names are replaced with `custom` unless the gate is set| `OTEL_LOG_TOOL_DETAILS`
-`tool_use_id`| The model’s `tool_use` block id for this call. Matches the `tool_use_id` on the tool_result and tool_decision events and in hook payloads, so you can join the span to those records|
+`tool_use_id`| The model’s `tool_use` block id for this call, or an ID that Claude Code generates for a [call from code](</docs/en/code-mode#monitor-code-mode-with-opentelemetry>) in Code Mode. Matches the `tool_use_id` on the tool_result and tool_decision events and in hook payloads, so you can join the span to those records|
`gen_ai.tool.call.id`| Same value as `tool_use_id`. OpenTelemetry GenAI semantic convention|
`file_path`| Target file path for Read, Edit, and Write tools| `OTEL_LOG_TOOL_DETAILS`
`full_command`| Command string for the Bash tool| `OTEL_LOG_TOOL_DETAILS`
@@ -318,7 +320,7 @@
`system_prompt_preview`| `claude_code.llm_request`| First 500 characters of the complete system prompt sent with the request| `OTEL_LOG_USER_PROMPTS`
`user_system_prompt`| `claude_code.llm_request`| Only the system prompt text you provide via the `systemPrompt` SDK option or `--system-prompt` and `--append-system-prompt` flags. Emitted once per session rather than per request| `OTEL_LOG_USER_PROMPTS`
`response.model_output`| `claude_code.llm_request`| Text of the model’s response to the request| `OTEL_LOG_USER_PROMPTS`
-`new_context`| `claude_code.tool`| The tool call’s result, whatever the tool| `OTEL_LOG_TOOL_CONTENT`
+`new_context`| `claude_code.tool`| The tool call’s result. Absent for `REPL` and `Poll`, the tools that run [Code Mode](</docs/en/code-mode#trace-calls-from-code>) code and return its output| `OTEL_LOG_TOOL_CONTENT`
`tool_input`| `claude_code.tool`| The tool call’s serialized input| `OTEL_LOG_TOOL_DETAILS`
Under detailed beta tracing with `OTEL_LOG_USER_PROMPTS=1`, Claude Code also emits a `claude_code.system_prompt` event that carries the complete system prompt, truncated at the content limit. It arrives the first time a session sends each distinct system prompt, and again after compaction.
@@ -477,6 +479,7 @@
* **Let sessions reach the collector** : Claude Code sends the export through the session’s network, so whether it reaches the host in your `OTEL_EXPORTER_OTLP_ENDPOINT` depends on the environment’s [network access level](</docs/en/cloud-environments#access-levels>). If sessions can’t reach the collector’s domain at the level you chose, [add the domain to the environment’s allowlist](</docs/en/cloud-environments#allow-specific-domains>), because no server-managed setting adds domains to an environment’s network allowlist.
* **Claude Tag channels** : make the allowlist and any environment-variable changes on the [shared environment](</docs/en/cloud-environments#organization-shared-environments>) set as your organization’s default or pinned to the channel.
+ * **Start a new session after you change the allowlist** : the telemetry export doesn’t pick up [allowlist changes](</docs/en/cloud-environments#network-access>) in a session that’s already running. In a Claude Tag channel, send [`@Claude !restart`](<https://claude.com/docs/claude-tag/users/commands#restart-a-stuck-or-wrong-context-session>).
* **Cowork is configured separately** : Cowork sessions don’t receive server-managed settings, as the [surface coverage table](</docs/en/model-config#surface-coverage>) shows, so the server-managed `env` block doesn’t configure their telemetry.
### Attribute telemetry to cloud sessions
@@ -1059,7 +1062,7 @@
* `skill_path_count`: number of skill directories the plugin declares
* `command_path_count`: number of command directories the plugin declares
* `agent_path_count`: number of agent directories the plugin declares
- * `safe_mode`: `"true"` when the session was started with [`--safe-mode`](</docs/en/cli-reference>), `"false"` otherwise. In safe mode this event reports configured inventory only; the plugin’s commands, skills, hooks, and MCP servers don’t load. Requires Claude Code v2.1.169 or later
+ * `safe_mode`: `"true"` when the session was started with [`--safe-mode`](</docs/en/cli-reference>), `"false"` otherwise. In safe mode, this event also fires for plugins that don’t load. Requires Claude Code v2.1.169 or later
#### Skill activated event
@@ -1457,7 +1460,7 @@
### Send events to a SIEM
-Point `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` at your SIEM’s OTLP receiver, or at an OpenTelemetry Collector that forwards to your SIEM’s native ingest API. The following managed-settings example exports events only, with full tool detail enabled for MCP and Bash auditing:
+For sessions that export to the Enterprise Admin Console’s collector, skip these steps and forward events to your SIEM from that collector. Point `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` at your SIEM’s OTLP receiver, or at an OpenTelemetry Collector that forwards to your SIEM’s native ingest API. The following managed-settings example exports events only, with full tool detail enabled for MCP and Bash auditing:
{
"env": {
@@ -1545,6 +1548,7 @@
* Raw Anthropic Messages API request and response bodies aren’t logged by default. To include them, set `OTEL_LOG_RAW_API_BODIES` in your shell, user settings, or managed settings. It’s ignored in [project and local settings](</docs/en/settings-reference#variables-claude-code-ignores-in-env>). The bodies can contain the full conversation history, including the system prompt, every prior user and assistant turn, and tool results. Enabling this implies consent to everything the other `OTEL_LOG_*` content flags would reveal. Claude Code always redacts Claude’s extended-thinking content from these bodies, regardless of other settings. The value you set determines how Claude Code delivers the bodies:
* With `=1`, Claude Code emits `api_request_body` and `api_response_body` log events for each API call. The events’ `body` attribute carries the JSON-serialized payload, truncated at the content limit (60 KB by default)
* With `=file:<dir>`, Claude Code writes untruncated bodies to `.request.json` and `.response.json` files under that directory, and the events carry a `body_ref` path instead of the inline body. Ship the directory with a log collector or sidecar rather than through the telemetry stream. For each successful response, Claude Code also appends one line to `index.jsonl` in that directory, linking the response file to the request file that produced it and to the transcript message it became. Each line holds no message content, and the API response body event section lists its fields. The index file requires Claude Code v2.1.274 or later
+ * In [Code Mode](</docs/en/code-mode#trace-calls-from-code>), review `OTEL_LOG_TOOL_CONTENT` and `OTEL_LOG_TOOL_DETAILS` separately from raw bodies. With either set, your backend can receive output that code read but didn’t return to Claude, which the bodies can lack
* The machine’s name and ID aren’t included by default. To include them as `host.name` and `host.id`, set `OTEL_RESOURCE_INCLUDE_HOST=1`. A host name often contains a person’s name, and `host.id` is a lasting identifier for the machine. If you set the variable in managed settings, tell the people who use those machines, because Claude Code shows them no notice.
## Monitor Claude Code on Amazon Bedrock
--- a/network-config.md
+++ b/network-config.md
@@ -78,7 +78,7 @@
Claude Code reads the certificate and key files at startup and re-reads them each time it applies settings, such as when your organization changes the `env` block in [managed settings](</docs/en/server-managed-settings>) mid-session. To rotate the certificate and key, replace the files at the same paths. Claude Code picks up the replacement in a running session without a restart. When an API request fails with a connection-level error, such as a connection reset or a TLS handshake error, it re-reads both files and retries the request with the new pair. Before v2.1.232, Claude Code didn’t re-read on connection errors, so it kept the pair it had already loaded until it next applied settings or you restarted. Claude Code re-reads the files in response to failed requests, not by watching them for changes:
* **Timing** : Claude Code does nothing at the moment you replace the files. It presents the new pair on the retry after a qualifying failure, or on the next request after it applies settings, whichever comes first.
- * **Gateway rejections** : Claude Code re-reads when your gateway resets the connection or rejects the TLS handshake after it stops accepting the old pair. It doesn’t re-read when the gateway completes the handshake and answers with an HTTP error. In that case, Claude Code loads the new pair when it next applies settings or when you restart it.
+ * **Gateway rejections** : if your gateway refuses the old certificate by resetting the connection or rejecting the TLS handshake, Claude Code re-reads the certificate and key files. If requests keep failing with an HTTP error after you replace the files, restart Claude Code to load the new certificate and key.
* **Half-written rotations** : when Claude Code re-reads while your rotation is mid-write, such as reading a certificate and key that don’t match each other, it keeps the previous pair and re-reads on the next failure.
* **OTLP telemetry exporters** : Claude Code keeps the certificate the [exporters](</docs/en/monitoring-usage#mtls-authentication>) loaded at first use, so restart Claude Code for a rotated certificate to reach your telemetry collector.
* **Turn the reload off** : set [`CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION=1`](</docs/en/env-vars#variables>) to turn off the connection-error re-read. Claude Code then picks up rotated files only when it next applies settings or at the next startup.
@@ -162,6 +162,7 @@
`claude.com`| claude.ai account sign-in opens a `claude.com` page in the browser, which redirects to `claude.ai`; pre-approved WebFetch documentation lookups also reach this host from the CLI
`platform.claude.com`| Anthropic Console account authentication. OAuth token exchange, refresh, and revocation also go to this host for claude.ai accounts, so both Console and claude.ai sign-ins require it
`sso.claude.com`| Part of the browser sign-in flow for organizations that use single sign-on (SSO). If a proxy blocks this host, those sign-ins can fail
+`hcaptcha.com`, `*.hcaptcha.com`| The hCaptcha check that runs in the browser you sign in with, for claude.ai and Anthropic Console accounts. If a proxy blocks these hosts, the sign-in can fail with a “couldn’t verify your browser” message
`mcp-proxy.anthropic.com`| [MCP connectors from claude.ai](</docs/en/mcp#use-mcp-servers-from-claude-ai>), including connectors an organization administrator configures. Connector traffic routes through this proxy; connectors are enabled by default for claude.ai-authenticated users. To stop Claude Code from fetching them, set [`ENABLE_CLAUDEAI_MCP_SERVERS=false`](</docs/en/env-vars>) or the [`disableClaudeAiConnectors`](</docs/en/settings-reference#disableclaudeaiconnectors>) setting
`downloads.claude.ai`| Plugin executable downloads; native installer, native auto-updater, and update version checks
`storage.googleapis.com`| Plugin install counts and metadata shown in `/plugin`
--- a/org.md
+++ b/org.md
@@ -147,7 +147,7 @@
`blockedMarketplaces`| Blocklist of marketplace sources, checked before the allowlist| Doesn’t block a marketplace already registered from a source it doesn’t match
`syncClaudeAiPlugins`| Set `false` to stop Claude Code downloading and loading the plugins [synced from claude.ai](</docs/en/plugins/loading#synced-plugins>) for each user’s account. Requires Claude Code v2.1.273 or later| Doesn’t turn off one synced plugin. For that, set `"<name>@synced": false` in [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>)
`enabledPlugins`| `true` force-enables, `false` blocks at every scope and hides the plugin| Doesn’t install a plugin whose marketplace isn’t registered or allowed
-`disableSideloadFlags`| Rejects `--plugin-dir`, `--plugin-url`, `--agents`, the Agent SDK `plugins` option, and folders named in the [`CLAUDE_CODE_PLUGIN_DIRS`](</docs/en/env-vars#variables>) variable at startup, and `--mcp-config` too unless every server in it is an in-process `type: "sdk"` entry. Refuses plugin folders an Agent SDK application adds mid-session with [`addPlugins`](</docs/en/agent-sdk/typescript#load-more-plugin-folders-with-addplugins>)| Doesn’t restrict `.mcp.json`, `claude mcp add`, or SDK-provided servers. Pair it with [`allowedMcpServers`](</docs/en/managed-mcp>)
+`disableSideloadFlags`| Rejects `--plugin-dir`, `--plugin-url`, `--agents`, the Agent SDK `plugins` option, and folders named in the [`CLAUDE_CODE_PLUGIN_DIRS`](</docs/en/env-vars#variables>) variable at startup, and `--mcp-config` too unless every server in it is an in-process `type: "sdk"` entry. Refuses plugin folders an Agent SDK application adds mid-session with the [`addPlugins`](</docs/en/agent-sdk/typescript#load-more-plugin-folders-with-addplugins>) option| Doesn’t restrict `.mcp.json`, `claude mcp add`, or servers a local Agent SDK application adds with the [`setMcpServers()`](</docs/en/agent-sdk/typescript#mcpsetserversresult>) method. Pair it with the [`allowedMcpServers`](</docs/en/managed-mcp>) setting
`disableCommandPluginSources`| Blocks plugins with a `command` source from installing, updating, or loading. A `command` source is one whose plugin directory is produced by running a command on the machine. When unset, it takes the value of `allowManagedHooksOnly`| Doesn’t affect other source types
`allowManagedHooksOnly`| Restricts which hooks run. See [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>)| Doesn’t trust hooks from plugins users enable themselves
`strictPluginOnlyCustomization`| Blocks skills, agents, hooks, and MCP servers from user and project sources. It also stops skills-directory plugins loading. Set `true` to cover all four types, or an array of `skills`, `agents`, `hooks`, and `mcp` values such as `["skills", "hooks"]` to cover some| Doesn’t restrict which plugins users install, or reject the CLI flags that sideload plugins, agents, and MCP servers. Pair it with `strictKnownMarketplaces` and `disableSideloadFlags`
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -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 and blocks the ones it judges risky. It looks for actions that go beyond your request, target unrecognized infrastructure, or follow hostile content Claude read. 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 lets Claude execute without routine permission prompts. A separate classifier model reviews actions before they run and blocks the ones it judges risky. It looks for actions that go beyond your request, target unrecognized infrastructure, or follow hostile content Claude read. 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. 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.
@@ -273,7 +273,7 @@
Where the server reviews the actions, its verdicts decide them. Two other outcomes are possible:
- * **The server doesn’t review the session** : a response completes with no review results, or the server answers that it doesn’t review this session. The most common causes are an LLM gateway or proxy that drops the request for review or the results, and a platform, region, or credential that doesn’t have server-side checks yet. Claude Code falls back to its own classifier requests. Once that fallback holds for the rest of the session, it shows a [notice about classifier request charges](</docs/en/auto-mode-classifier-billing>) on accounts where those requests are billed.
+ * **The server doesn’t review the session** : a response completes with no review results, or the server answers that it doesn’t review this session. The most common causes are an LLM gateway or proxy that drops the request for review or the results, and a platform, region, or credential without server-side checks yet. Claude Code can fall back to its own classifier requests. On accounts where those requests are billed, see [Auto mode classifier request charges](</docs/en/auto-mode-classifier-billing>).
* **The server gives no verdict for an action** : Claude Code denies the action rather than run it unreviewed. On any connection, this happens when the response ends before the review results arrive or the results arrive in a form Claude Code can’t read. An LLM gateway or proxy that cuts responses short or rewrites the results can cause either. On a direct connection to the Anthropic API, it also happens when the server’s check fails for the action, for example by timing out. [The server returned no safety verdict](</docs/en/errors#the-server-returned-no-safety-verdict>) covers the denial message, what happens when denials repeat, and what to do. If a [hook](</docs/en/hooks#pretooluse-updatedinput-in-auto-mode>) or [mod](</docs/en/plugins/mods/overview>) changes an action’s input after the server’s review, Claude Code can deny the action with no verdict. In interactive terminal and VS Code sessions on a direct connection to the Anthropic API, the denial’s text includes `a hook changed this call's input after auto mode reviewed it`. [Its error entry](</docs/en/errors#hook-changed-input-after-review>) covers what to do.
To skip asking the server and always use Claude Code’s own classifier requests, set [`CLAUDE_CODE_AUTO_MODE_SERVER=0`](</docs/en/env-vars>). On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later. Setting it to `1` there turns server review on in a session that doesn’t have it yet, unless you’ve also set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`. If you set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` and leave `CLAUDE_CODE_AUTO_MODE_SERVER` unset, Claude Code also stops asking the server, except as [Disable pre-release capabilities](</docs/en/llm-gateway-protocol#disable-pre-release-capabilities>) describes.
@@ -431,6 +431,15 @@
The thresholds of 3 blocks in a row and 20 blocks total are not configurable. The total counter persists for the session and resets only when its own limit triggers a fallback. Claude Code doesn’t count a denial toward either threshold when a safety check separate from auto mode refuses the classifier’s own request. A [non-interactive](</docs/en/headless>) `-p` run without a [`--permission-prompt-tool`](</docs/en/cli-reference#cli-flags>) has no prompt to fall back to. When repeated blocks reach a threshold, the action doesn’t run and Claude keeps working. Claude Code doesn’t stop the run. Repeated blocks usually mean the classifier is missing context about your infrastructure. Use `/feedback` to report false positives, or have an administrator [configure trusted infrastructure](</docs/en/auto-mode-config>).
+#### Countdown after three blocks in a row
+
+If you see `Claude Code will automatically block this request` after three blocks in a row, you have two minutes to answer.
+
+ * **To keep the prompt waiting** : press the Up or Down arrow key
+ * **If the time runs out** : Claude Code blocks the action and Claude keeps working. To let Claude retry, [approve the action](</docs/en/auto-mode-config#review-denials>) on the **Recently blocked** tab in `/permissions`. Outside [Code Mode](</docs/en/code-mode>), the next prompt in that run of blocks waits until you answer
+
+In terminal sessions with the countdown, blocks count as in a row even when Claude reads files or runs a command your allow rules cover in between.
+
### How auto mode evaluates actions
The following sections cover the order Claude Code evaluates an action in, how the classifier reviews subagent work, and what classifier calls add in cost and latency.
@@ -439,7 +448,7 @@
Each action goes through a fixed decision order. The first matching step wins:
- 1. Actions matching your [allow, ask, or deny rules](</docs/en/permissions#manage-permissions>) resolve immediately, with these exceptions:
+ 1. Actions matching your [allow, ask, or deny rules](</docs/en/permissions#manage-permissions>) resolve immediately apart from cases such as these:
* Writes to protected paths route to the classifier even when an allow rule matches. When the protected path is the file that a symlinked settings file points to, the write can prompt you instead, as the protected paths list describes
* No allow rule approves recognized `rm` and `rmdir` critical-path removals
* MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>) prompt you directly even when an allow rule matches, and so do connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>) in sessions where that setting reaches Claude Code
@@ -469,7 +478,7 @@
* `Agent` allow rules
* [`Monitor`](</docs/en/tools-reference#monitor-tool>) allow rules, because Claude Code runs Monitor commands through the shell
-Narrow rules like `Bash(npm test)` stay in effect. Claude Code restores the dropped rules when you leave auto mode. Before v2.1.236, Claude Code left `Monitor` allow rules in effect in auto mode, so a rule that matched the whole tool approved Monitor commands without classifier review.Claude Code can also run `git status` itself before a command that would discard uncommitted work, such as `git reset --hard` or `rm -rf`, and show the classifier whether staged, modified, or untracked work is present. Claude Code reports untracked files in that check even when the repository’s git configuration sets `status.showUntrackedFiles=no`.Under server-side classifier review, `git reset --hard` can be blocked on a clean working tree. After the block, the classifier can see the clean status and allow Claude’s retry.In the classifier requests sent by Claude Code itself, the classifier sees user messages, tool calls other than read-only lookups such as file reads and searches, and your CLAUDE.md content. Tool results are stripped from those requests, so hostile content in a file or web page can’t manipulate the classifier directly.You can annotate a call’s result with a [PostToolUse hook’s `classifierContext` field](</docs/en/hooks#annotate-a-result-for-the-auto-mode-classifier>), which the classifier reads as application-provided context. The field requires Claude Code v2.1.236 or later.A separate server-side probe scans incoming tool results and flags suspicious content before Claude reads it. For more on how these layers work together, see the [auto mode announcement](<https://claude.com/blog/auto-mode>) and the [engineering deep dive](<https://www.anthropic.com/engineering/claude-code-auto-mode>).
+Narrow rules like `Bash(npm test)` stay in effect. Claude Code restores the dropped rules when you leave auto mode. Before v2.1.236, Claude Code left `Monitor` allow rules in effect in auto mode, so a rule that matched the whole tool approved Monitor commands without classifier review.Claude Code can also run `git status` itself before a command that would discard uncommitted work, such as `git reset --hard` or `rm -rf`, and show the classifier whether staged, modified, or untracked work is present. Claude Code reports untracked files in that check even when the repository’s git configuration sets `status.showUntrackedFiles=no`.Under server-side classifier review, `git reset --hard` can be blocked on a clean working tree. After the block, the classifier can see the clean status and allow Claude’s retry.In Claude Code’s own classifier requests, the classifier sees inputs that include user messages, your CLAUDE.md content, and tool calls other than some read-only lookups such as file reads.You can annotate a call’s result with a [PostToolUse hook’s `classifierContext` field](</docs/en/hooks#annotate-a-result-for-the-auto-mode-classifier>), which the classifier reads as application-provided context. The field requires Claude Code v2.1.236 or later.A separate server-side probe scans incoming tool results and flags suspicious content before Claude reads it. For more on how these layers work together, see the [auto mode announcement](<https://claude.com/blog/auto-mode>) and the [engineering deep dive](<https://www.anthropic.com/engineering/claude-code-auto-mode>).
How auto mode handles subagents
@@ -483,7 +492,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.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.
+Claude Code’s classifier requests can run on a model other than your `/model` selection. See which model they run on.Claude Code’s own classifier requests 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 request sends a portion of the transcript plus the pending action, adding a round-trip before execution.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/platforms.md
+++ b/platforms.md
@@ -6,7 +6,7 @@
Platform| Best for| What you get
---|---|---
-[CLI](</docs/en/quickstart>)| Terminal workflows, scripting, remote servers| Full feature set, [Agent SDK](</docs/en/headless>), [computer use](</docs/en/computer-use>) on macOS (Pro, Max, and Ultra), third-party providers
+[CLI](</docs/en/quickstart>)| Terminal workflows, scripting, remote servers| Full feature set, [Agent SDK](</docs/en/headless>), [computer use](</docs/en/computer-use>) on macOS with a [supported plan](</docs/en/feature-availability#availability-by-subscription-plan>), third-party providers
[Desktop](</docs/en/desktop>)| Visual review, parallel sessions, managed setup| Diff viewer, app preview, [computer use](</docs/en/desktop#let-claude-use-your-computer>) on Pro, Max, and Ultra
[VS Code](</docs/en/vs-code>)| Working inside VS Code without switching to a terminal| Inline diffs, integrated terminal, file context
[JetBrains](</docs/en/jetbrains>)| Working inside IntelliJ, PyCharm, WebStorm, or other JetBrains IDEs| Diff viewer, selection sharing, terminal session
@@ -31,11 +31,10 @@
## Work when you are away from your terminal
-Claude Code offers several ways to work when you’re not at your terminal. They differ in what triggers the work, where Claude runs, and how much you need to set up. [Dispatch](</docs/en/desktop#sessions-from-dispatch>) isn’t available to new users.
+Claude Code offers several ways to work when you’re not at your terminal. They differ in what triggers the work, where Claude runs, and how much you need to set up. [Dispatch](</docs/en/desktop#sessions-from-dispatch>) is being retired and isn’t available to new users.
| Trigger| Claude runs on| Setup| Best for
---|---|---|---|---
-[Dispatch](</docs/en/desktop#sessions-from-dispatch>)| Message a task from the Claude mobile app| Your machine (Desktop)| [Pair the mobile app with Desktop](<https://support.claude.com/en/articles/13947068>)| Delegating work while you’re away, minimal setup
[Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI, Desktop, or VS Code)| Run [`claude remote-control` or `/remote-control`](</docs/en/remote-control#start-a-remote-control-session>)| Steering in-progress work from another device
[Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages
[Self-hosted environments](</docs/en/self-hosted-environments>)| Start a [cloud session](</docs/en/claude-code-on-the-web>) and pick your organization’s environment| Your organization’s infrastructure| [Deploy runners](</docs/en/self-hosted-environments-quickstart>), on Team and Enterprise plans| Cloud sessions that must run inside your network
@@ -66,7 +65,6 @@
### Remote access
- * [Dispatch](</docs/en/desktop#sessions-from-dispatch>): message a task from your phone and it can spawn a Desktop session
* [Remote Control](</docs/en/remote-control>): drive a running session from your phone or browser
* [Channels](</docs/en/channels>): push events from chat apps or your own servers into a session
* [Scheduling options](</docs/en/scheduled-tasks#compare-scheduling-options>): run prompts on a recurring schedule
--- a/pr-steward-pull-requests.md
+++ b/pr-steward-pull-requests.md
@@ -12,7 +12,7 @@
A progress comment| Before and after a piece of work
Commits whose author and committer are `Claude <noreply@anthropic.com>`| When it pushes a fix
-The progress comment after a push names the commits to revert if you want to undo the push.
+To undo a push, find the commits to revert in the progress comment after that push.
### Example of a fix for a failing check
@@ -86,7 +86,7 @@
### Choose what PR Steward works on
-To tell PR Steward what to work on, for every pull request that you open, use the toggles in your settings. A repository’s `.claude/skills/steward/SKILL.md` can say something else, so see which instructions take priority.
+Use the toggles in your settings to choose what PR Steward works on. A repository’s `.claude/skills/steward/SKILL.md` can say something else, so see which instructions take priority.
1. Go to [**PR Steward**](<https://claude.ai/settings/claude-code#pr-steward>) in **Settings > Code** on claude.ai
2. For **How much should Steward do on its own?** , select **Customize**
@@ -101,11 +101,11 @@
**Customize** also changes when PR Steward starts: it follows each repository’s own setting. If you had **Off** or **Only when tagged** selected before, it can then start by itself.
-While **Include my draft PRs** is on, PR Steward works on your drafts in repositories that an Owner set to include drafts. PR Steward also works on your drafts in a repository that an Owner set to **Manual** , when someone asks for it on the draft. While it’s off, PR Steward doesn’t start on your drafts. While **Failing CI and merge conflicts** is on, you can also say when PR Steward merges the base branch into yours. Set **Updating my branch from the base branch** to **Whenever my branch falls behind** , **Only when there is a conflict** , or **Never, I update it myself**.
+To have PR Steward work on your drafts in repositories that an Owner set to include drafts, leave the **Include my draft PRs** toggle on. PR Steward also works on your drafts in a repository that an Owner set to **Manual** , when someone asks for it on the draft. To keep PR Steward from starting on your drafts in both cases, turn the toggle off. While **Failing CI and merge conflicts** is on, you can also say when PR Steward merges the base branch into yours. Set **Updating my branch from the base branch** to **Whenever my branch falls behind** , **Only when there is a conflict** , or **Never, I update it myself**.
### Save PR Steward instructions for every pull request you open
-To give PR Steward the same instructions on every pull request that you open, go to [**PR Steward**](<https://claude.ai/settings/claude-code#pr-steward>) in **Settings > Code** on claude.ai. Under **My instructions for Steward** , enter up to 1,000 characters. These instructions ask for small commits and no replies to reviewers:
+To give PR Steward the same instructions on every pull request that you open, go to [**PR Steward**](<https://claude.ai/settings/claude-code#pr-steward>) in **Settings > Code** on claude.ai. Under **My instructions for Steward** , enter up to 1,000 characters. These instructions ask PR Steward to keep commits small and let you answer reviewers:
Keep commits small.
Don't reply to reviewers for me.
@@ -158,14 +158,14 @@
`@claude steward`| Starts PR Steward
`@claude babysit`, `@claude watch`, `@claude babysit stop`, `@claude watch stop`| Other spellings of the start and stop commands
-After a stop command, PR Steward removes its labels and confirms in a comment. After you remove the label, it stops without a comment. PR Steward stays stopped when you push or comment later. To restart it, comment `@claude steward` or add the label again. If it doesn’t start, see [PR Steward didn’t start on a pull request](</docs/en/pr-steward-troubleshooting#pr-steward-didn%E2%80%99t-start-on-a-pull-request>).
+After you post a stop command, PR Steward removes its labels and confirms in a comment. PR Steward stays stopped when you push or comment later. To restart it, comment `@claude steward` or add the label again. If it doesn’t start, see [PR Steward didn’t start on a pull request](</docs/en/pr-steward-troubleshooting#pr-steward-didn%E2%80%99t-start-on-a-pull-request>).
### Undo a fix that PR Steward pushed
-After a revert, PR Steward can make the same fix again, so take these steps in order:
+After you revert a fix, PR Steward can make the same fix again, so take these steps in order:
1. **Hold PR Steward back** : stop it.
- 2. **Revert the commits** : revert the commits by `Claude <noreply@anthropic.com>` that you don’t want.
+ 2. **Revert the commits** : revert the commits by `Claude <noreply@anthropic.com>` that you want to undo.
### Keep PR Steward off a pull request from the start
@@ -177,7 +177,7 @@
### Who can start and stop PR Steward
-Starting or stopping PR Steward takes this access to the repository:
+To start or stop PR Steward, you need this access to the repository:
Action| Who can do it
---|---
--- a/pr-steward-security.md
+++ b/pr-steward-security.md
@@ -40,7 +40,7 @@
### Requests left to GitHub’s branch rules
-Anthropic’s service allows requests such as these. GitHub’s branch rules control them, on the branches that have rules:
+Anthropic’s service allows requests such as these. You control them with GitHub’s branch rules, on the branches that have rules:
* **Merging, turning on auto-merge, and force-pushing** : before GitHub’s branch rules apply, two checks run on the commands that Claude runs
* **Pushing to a branch other than the pull request’s** : a session can push to any branch in that repository that GitHub lets the Claude GitHub App push to
--- a/pr-steward-setup.md
+++ b/pr-steward-setup.md
@@ -40,7 +40,7 @@
Protect other branches
-Add rules to any other branch that PR Steward shouldn’t push to, and block force pushes where you don’t want them.
+Add rules to any other branch that you want to protect from PR Steward’s pushes. Block force pushes on the branches whose history you want to keep.
Where a [Claude Approvals policy lets Claude approve](</docs/en/approvals-github-rules#merges-without-human-review>), Claude’s review can count as the approval in step 1. An approval from a session in a self-hosted environment can count as well.
@@ -95,7 +95,7 @@
## Roll out PR Steward to more pull requests
-When PR Steward’s fixes match what your reviewers would do, set the repository to **On**. For each repository that you add later, require reviews there first. Then repeat these steps from Turn on PR Steward and add repositories: add the repository, turn on PR Steward for it, and test PR Steward. PR Steward can be on in up to 256 repositories.
+When PR Steward’s fixes match what your reviewers would do, set the repository to **On**. For each repository that you add later, require reviews there first. Then repeat these steps from Turn on PR Steward and add repositories: add the repository, turn on PR Steward for it, and test PR Steward. You can turn on PR Steward in up to 256 repositories.
### Choose when PR Steward starts in each repository
@@ -106,11 +106,11 @@
Option| When PR Steward starts
---|---
**Manual (@claude steward)**| When a person with write access comments `@claude steward` or adds the `claude-pr-steward-watching` label
-**On**| When a pull request that [PR Steward doesn’t skip](</docs/en/pr-steward#when-pr-steward-starts>) is opened, reopened, or marked ready for review. Also at the next push to an open one that it hasn’t started on before
+**On**| When an [eligible pull request](</docs/en/pr-steward#when-pr-steward-starts>) is opened, reopened, or marked ready for review. Also at the next push to an open one that it hasn’t started on before
**On (including drafts)**| The same as **On** , and on draft pull requests
**Off**| PR Steward doesn’t start in the repository
-In a **Manual** repository, a comment or the label can start PR Steward on [a draft](</docs/en/pr-steward-pull-requests#choose-what-pr-steward-works-on>). It doesn’t start PR Steward on the other pull requests that [PR Steward skips](</docs/en/pr-steward#when-pr-steward-starts>). PR Steward also starts there on the pull requests of a developer who selects [**Act on its own**](</docs/en/pr-steward-pull-requests#turn-off-or-limit-pr-steward-on-all-your-pull-requests>).
+In a **Manual** repository, a comment or the label can start PR Steward on [a draft](</docs/en/pr-steward-pull-requests#choose-what-pr-steward-works-on>). It doesn’t start PR Steward on the other pull requests that [PR Steward skips](</docs/en/pr-steward#when-pr-steward-starts>). If a developer selects [**Act on its own**](</docs/en/pr-steward-pull-requests#turn-off-or-limit-pr-steward-on-all-your-pull-requests>), PR Steward also starts on their pull requests in a **Manual** repository.
### Limit which authors PR Steward works for
@@ -155,7 +155,7 @@
PR Steward works unattended and [reads pull request text that other people write](</docs/en/pr-steward-security#pr-steward%E2%80%99s-session-environment>), which could steer how it uses a credential. [Limit each credential](<https://claude.com/docs/claude-tag/admins/add-connections#limit-access-to-specific-resources>) to the hosts and permissions that building and testing your code needs.
-To turn on the bundle for PR Steward:
+When you turn on a bundle for PR Steward, the switch covers every credential in it, for every pull request that PR Steward works on in your organization. To turn on the bundle for PR Steward:
1
@@ -169,7 +169,7 @@
Under **Where it applies** , turn on the switch in the **PR Steward** row and click **Save changes**.
-The bundle is then on for PR Steward across your organization, and the switch covers every credential in the bundle. An install or a test in a PR Steward session can fail with a 403 that starts with this text:
+An install or a test in a PR Steward session can fail with a 403 that starts with this text:
denied by policy: this host's bundle of logins and rules isn't turned on for PR Steward
--- a/pr-steward-troubleshooting.md
+++ b/pr-steward-troubleshooting.md
@@ -20,7 +20,7 @@
Cause| What to do
---|---
The pull request is a draft| Mark it ready for review. For work on drafts, see [**Include my draft PRs**](</docs/en/pr-steward-pull-requests#choose-what-pr-steward-works-on>)
-The pull request comes from a fork, a bot opened it, or its author lacks write access to the repository| PR Steward doesn’t start on these
+The pull request comes from a fork, a bot opened it, or its author lacks write access to the repository| Fix failing checks and answer review comments yourself
The description contains `<!-- claude-pr-steward-disable -->`| Remove the marker from the description, then comment `@claude steward`
Another Claude session is already watching the pull request, for example a cloud session with [auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) on| Turn off auto-fix in that session, then comment `@claude steward` again
@@ -68,7 +68,7 @@
---|---|---
`PR Steward is paused on this pull request`| Usage credits ran out while PR Steward was working, or billing setup is unfinished, as the comment says| Ask an Owner to add usage credits or raise the spend limit, or to finish billing setup as the comment describes. PR Steward picks up again at the next push or comment
`Claude PR Steward stopped watching this pull request: this session's spend reached the repository's PR Steward budget`| This session reached the [spend cap](</docs/en/pr-steward-setup#set-pr-steward%E2%80%99s-spend-limits>) that’s set for the repository| Finish the remaining work yourself, or add the `claude-pr-steward-watching` label again to start a new session
-`Claude PR Steward stopped watching this pull request because your organization's PR Steward settings no longer cover it`| An Owner turned off PR Steward, or removed the repository or the author| After the settings cover the pull request again, add the label or comment `@claude steward`
+`Claude PR Steward stopped watching this pull request because your organization's PR Steward settings no longer cover it`| An Owner turned off PR Steward, or removed the repository or the author| Ask an Owner to change the settings back. After they do, add the label or comment `@claude steward`
`Claude PR Steward stopped watching this pull request because for <N> days no person has commented or reviewed here`| No person has commented or reviewed, and nobody but PR Steward has pushed, for the number of days that the comment gives| Add the label or comment `@claude steward`
## Auto-fix is unavailable
--- a/prompt-caching.md
+++ b/prompt-caching.md
@@ -65,7 +65,7 @@
[Fast mode](</docs/en/fast-mode>) and standard speed keep separate caches, so after you turn fast mode on or off, the next request can’t use what the other speed cached. The first time you turn fast mode on in a conversation, the next request reads the whole conversation so far uncached at [fast mode rates](</docs/en/fast-mode#understand-the-cost-tradeoff>). To keep that cost small, turn it on at the start of a session.
* If you turn it on while Claude is working, that turn finishes at standard speed, and you pay for any uncached read on your next turn’s first request.
- * If your current model doesn’t support fast mode, running `/fast` also [switches your model](</docs/en/fast-mode#toggle-fast-mode>). That model switch starts a fresh cache on its own from the next request in the running turn.
+ * If running `/fast` also [switches your model](</docs/en/fast-mode#toggle-fast-mode>), that model switch starts a fresh cache on its own from the next request in the running turn.
Each later toggle reads uncached whatever the speed you switch to doesn’t have cached. Speed changes Claude Code makes on its own, such as the [fallback to standard speed](</docs/en/fast-mode#handle-rate-limits>) after a rate limit and the return to fast mode later, count as toggles too.
--- a/publish.md
+++ b/publish.md
@@ -169,6 +169,24 @@
Tag the release in git when other plugins declare a version range on yours, because those ranges resolve against tags. To tag, run `claude plugin tag` in your shell from the plugin directory. It creates a `{name}--v{version}` tag. Add `--push` to send the tag to `origin`. The [`plugin tag` reference](</docs/en/plugins/cli-reference#plugin-tag>) lists its flags.
+### Offer an earlier compatible release
+
+To keep serving users whose Claude Code version is outside your newest release’s [`engines` range](</docs/en/plugins/manifest-reference#fields>), tag an earlier release that supports their version. Those users can then get that release when they install from your marketplace or update from a lower version. They need Claude Code v2.1.323 or later. For a `github`, `url`, `git-subdir`, or relative-path [source](</docs/en/plugins/marketplace-reference#plugin-sources>), set up your tags and marketplace entry so that Claude Code can find the release:
+
+ * **Tag each release** : set `version` in `plugin.json`, then [create and push a tag](</docs/en/plugins/dependencies#create-a-release-tag>) in [the repository that hosts the plugin](</docs/en/plugins/dependencies#tag-plugin-releases-for-version-resolution>). To tag a past release, check out its commit first
+ * **Keep a compatible release among your five highest tags** : Claude Code tries up to five, highest first. It skips pre-release versions and tags at or above the out-of-range release’s version, so increment `version` when you change the range
+ * **Match the names** : give the entry the same `name` as `plugin.json`, because Claude Code looks up tags by the entry’s name
+ * **Leave`engines` out of the entry**: set the range in `plugin.json`. Claude Code applies the entry’s range to an earlier release that sets none, which can exclude those users
+ * **Leave the source unpinned** : omit `ref` and `sha` from the source. For a relative path, tell users to add your marketplace’s git repository without a ref such as `#stable`
+ * **Plan for users with no GitHub SSH key** : for a source written as `owner/repo`, or a relative path in a marketplace added that way, tell them to set [`CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1`](</docs/en/env-vars#variables>) so that the tag lookup uses HTTPS
+
+To test the setup:
+
+ 1. [Install a Claude Code version](</docs/en/setup#install-a-specific-version>), v2.1.323 or later, that the earlier release supports and the newest doesn’t.
+ 2. Add the marketplace from its git host.
+ 3. With the plugin not yet installed, run `claude plugin install deploy-helper@your-marketplace` in your shell.
+ 4. Look for text such as `Installed 1.4.0, the newest that works on your version`.
+
### Rename or remove a plugin
Never change a published plugin’s `name`. After a rename, users who already installed it lose the plugin, because their install is recorded under the old name. A `renames` entry in your marketplace file migrates them instead. Change `displayName` when you want a different label. If a rename is unavoidable, use the marketplace file’s `renames` map so that existing installs migrate instead of failing with [`Plugin "<name>" not found in marketplace`](</docs/en/plugins/troubleshooting#plugin-not-found-in-marketplace>). To remove a plugin from the marketplace, or for the full `renames` details, see [Rename or remove a plugin](</docs/en/plugins/host-marketplace#rename-or-remove-a-plugin>) on the hosting page. The [marketplace reference](</docs/en/plugins/marketplace-reference#top-level-fields>) has the field.
--- a/python.md
+++ b/python.md
@@ -1009,12 +1009,12 @@
---|---|---
`description`| Yes| Natural language description of when to use this agent
`prompt`| Yes| The agent’s system prompt
-`tools`| No| Array of allowed tool names. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>)
+`tools`| No| Array of tool names available to this agent. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>)
`disallowedTools`| No| Array of tool names to remove from the agent’s tool set. MCP server-level patterns are also accepted: `mcp__server` or `mcp__server__*` removes every tool from that server, and `mcp__*` removes every MCP tool from any server
`model`| No| Model override for this agent. Accepts an alias such as `"sonnet"`, `"opus"`, `"haiku"`, or `"inherit"`, or a full model ID. When you omit it, Claude Code picks the model in the [subagent model order](</docs/en/sub-agents#choose-a-model>)
`skills`| No| List of skill names to preload into the agent’s context at startup. Unlisted skills remain invocable through the Skill tool
`memory`| No| Memory source for this agent: `"user"`, `"project"`, or `"local"`
-`mcpServers`| No| MCP servers available to this agent. Each entry is a server name or an inline `{name: config}` dict
+`mcpServers`| No| MCP servers to add to any that this agent inherits. Each entry is a server name or an inline `{name: config}` dict
`initialPrompt`| No| Auto-submitted as the first user turn when this agent runs as the main thread agent
`maxTurns`| No| Maximum number of agentic turns before the agent stops
`background`| No| Run this agent as a non-blocking background task when invoked
--- a/remote-control.md
+++ b/remote-control.md
@@ -58,7 +58,7 @@
Press `w` at runtime to toggle between `same-dir` and `worktree`. The mode you switch to becomes the default for this project.
`--capacity <N>`| Maximum number of concurrent sessions. Default is 32. Cannot be used with `--spawn=session`.
`--[no-]create-session-in-dir`| Pre-create one session in the current directory when the server starts, so you have somewhere to type immediately. In `worktree` mode this session stays in the current directory while on-demand sessions get isolated worktrees. On by default. If you pass `--no-create-session-in-dir` to start with none, Claude Code archives the server’s sessions when you stop it, so there’s nothing to resume.
-`--permission-mode <mode>`| Set the starting [permission mode](</docs/en/permission-modes>), such as `acceptEdits`. Accepts `manual` as an alias for `default`; an unrecognized mode stops the server at startup and lists the valid modes.
+`--permission-mode <mode>`| Set the starting [permission mode](</docs/en/permission-modes>), such as `acceptEdits`. Accepts `manual` as an alias for `default`; an unrecognized mode stops the server at startup and lists the valid modes. To set a project thread’s permission mode, see [Run a thread on your own computer](</docs/en/claude-projects#run-a-thread-on-your-own-computer>).
`--settings <file>`| Apply a JSON settings file to the server’s sessions, at the same [precedence](</docs/en/settings#settings-precedence>) as `claude --settings`. Give a file path, not a JSON string. Requires Claude Code v2.1.321 or later.
`--chrome` / `--no-chrome`| Turn [Chrome integration](</docs/en/chrome>) on or off in the sessions the server creates, so Claude can use Chrome on your machine while you work from another device. Without either flag, the session the server pre-creates and any session you start yourself from claude.ai/code or the Claude app begin with Chrome off, even if you [enabled Chrome by default](</docs/en/chrome#enable-chrome-by-default>). A session the server starts for one of your [project](</docs/en/claude-projects>) threads follows that setting instead, except in `bypassPermissions` mode. Requires Claude Code v2.1.273 or later.
`-d`, `--debug[=<filter>]`| Turn on debug logging for the server, optionally filtered by category. Pass a filter only in the `=` form, such as `--debug=api,hooks`. Requires Claude Code v2.1.282 or later.
@@ -76,7 +76,7 @@
claude --remote-control "My Project"
-This gives you a full interactive session in your terminal that you can also control from claude.ai or the Claude app. Unlike `claude remote-control` (server mode), you can type messages locally while the session is also available remotely.
+You can type messages locally while the session is also available remotely.
If you’re already in a Claude Code session and want to continue it remotely, use the `/remote-control` (or `/rc`) command:
@@ -240,11 +240,10 @@
## Remote Control vs cloud sessions
-Remote Control and [cloud sessions](</docs/en/claude-code-on-the-web>) both use the claude.ai/code interface. The key difference is where the session runs: Remote Control executes on your machine, so your local MCP servers, tools, and project configuration stay available. A cloud session executes on cloud infrastructure, Anthropic-managed by default. Use Remote Control when you’re in the middle of local work and want to keep going from another device. Use a cloud session when you want to start a task without any local setup, work on a repo you don’t have cloned, or run multiple tasks in parallel. A [project](</docs/en/claude-projects>) combines the two: its threads run in the cloud, and it uses Remote Control to [run a thread on your computer](</docs/en/claude-projects#run-a-thread-on-your-own-computer>) when you ask for one there. Claude Code offers several ways to work when you’re not at your terminal. They differ in what triggers the work, where Claude runs, and how much you need to set up. [Dispatch](</docs/en/desktop#sessions-from-dispatch>) isn’t available to new users.
+Remote Control and [cloud sessions](</docs/en/claude-code-on-the-web>) both use the claude.ai/code interface. The key difference is where the session runs: Remote Control executes on your machine, so your local MCP servers, tools, and project configuration stay available. A cloud session executes on cloud infrastructure, Anthropic-managed by default. Use Remote Control when you’re in the middle of local work and want to keep going from another device. Use a cloud session when you want to start a task without any local setup, work on a repo you don’t have cloned, or run multiple tasks in parallel. A [project](</docs/en/claude-projects>) combines the two: its threads run in the cloud, and it uses Remote Control to [run a thread on your computer](</docs/en/claude-projects#run-a-thread-on-your-own-computer>) when you ask for one there. Claude Code offers several ways to work when you’re not at your terminal. They differ in what triggers the work, where Claude runs, and how much you need to set up. [Dispatch](</docs/en/desktop#sessions-from-dispatch>) is being retired and isn’t available to new users.
| Trigger| Claude runs on| Setup| Best for
---|---|---|---|---
-[Dispatch](</docs/en/desktop#sessions-from-dispatch>)| Message a task from the Claude mobile app| Your machine (Desktop)| [Pair the mobile app with Desktop](<https://support.claude.com/en/articles/13947068>)| Delegating work while you’re away, minimal setup
[Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI, Desktop, or VS Code)| Run [`claude remote-control` or `/remote-control`](</docs/en/remote-control#start-a-remote-control-session>)| Steering in-progress work from another device
[Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages
[Self-hosted environments](</docs/en/self-hosted-environments>)| Start a [cloud session](</docs/en/claude-code-on-the-web>) and pick your organization’s environment| Your organization’s infrastructure| [Deploy runners](</docs/en/self-hosted-environments-quickstart>), on Team and Enterprise plans| Cloud sessions that must run inside your network
@@ -284,7 +283,7 @@
* On iOS, Focus modes and notification summaries can suppress or delay pushes. Check Settings → Notifications → Claude.
* On Android, aggressive battery optimization can delay delivery. Exempt the Claude app from battery optimization in system settings.
-Claude Code skips mobile push notifications while you are typing in or focused on the connected terminal. To extend this to any time you are at the machine, even in another window, set [`CLAUDE_CLIENT_PRESENCE_FILE`](</docs/en/env-vars>) to a marker file path: notifications are skipped while the file exists. Configure a screen-lock listener or similar tool to create the file when your screen unlocks and delete it when your screen locks.
+While you type in the connected terminal, Claude Code skips mobile push notifications. Outside server mode, set the [`CLAUDE_CLIENT_PRESENCE_FILE`](</docs/en/env-vars>) variable to a marker file path to skip pushes for permission prompts and questions any time you are at the machine. Configure a screen-lock listener or similar tool to create the file when your screen unlocks and delete it when your screen locks.
## Limitations
@@ -297,8 +296,8 @@
* **Interactive session** : keep working locally. Until your terminal shows a Remote Control failure, Claude Code keeps retrying and reconnects on its own when the network returns. If your terminal shows a failure, wait until the network is back, then follow the steps to reconnect after a failure.
* **Attachments that don’t download** : if a file you attach from your phone or browser can’t be downloaded to your machine, Claude still receives your message and the files that were downloaded. In place of the missing files, Claude Code adds a note such as `[1 of 3 attachments did not arrive]` to the message.
* **Presence heartbeats failing** : if an interactive session disconnects with `could not reach the Remote Control server for about 30 minutes`, run `/remote-control` to reconnect.
- * **Forwarded dialogs expire** : Claude Code keeps permission prompts and `AskUserQuestion` questions open until you answer them. When Claude Code forwards another kind of dialog to the remote session, such as the model-choice prompt shown after a safety refusal, it waits five minutes by default, then closes the dialog and continues with the dialog’s no-action default. Set [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) to adjust or disable the deadline. Requires Claude Code v2.1.224 or later.
- * **Unanswered Fable usage-credits prompts can end the turn** : the [consent prompt](</docs/en/model-config#fable-and-usage-credits>) can close at the [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) deadline. Claude Code then [ends the turn](</docs/en/errors#the-prompt-to-confirm-went-unanswered>) without sending the request. In an interactive session in a terminal, the prompt can also appear on your connected device, and you can answer it there. Requires Claude Code v2.1.323 or later.
+ * **Forwarded dialogs expire** : Claude Code keeps forwarded permission prompts and `AskUserQuestion` questions open until you answer them. Some other forwarded dialogs, such as the model-choice prompt shown after a safety refusal, close after five minutes by default, and Claude Code continues with the dialog’s no-action default. Set [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) to adjust or disable the deadline. Requires Claude Code v2.1.224 or later.
+ * **Unanswered Fable usage-credits prompts can end the turn** : the [consent prompt](</docs/en/model-config#fable-and-usage-credits>) can close at the [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) deadline. Claude Code then [ends the turn](</docs/en/errors#the-prompt-to-confirm-went-unanswered>) without sending the request.
* **Some commands are local-only** : commands that only run in the terminal interface, such as `/plugin` or `/resume`, work only from the local CLI, whether or not you pass an argument. `/claude-api` is also unavailable when you type it from mobile or web. Claude can still [load that skill on its own](</docs/en/skills#work-on-claude-api-projects>) there. The following work from mobile and web:
* Text-output commands: `/compact`, `/clear`, `/context`, `/usage`, `/exit`, `/usage-credits`, `/recap`, and `/reload-plugins`. `/usage-credits` replies in text, such as where to manage usage credits. `/reload-plugins` works only when the session runs in an interactive terminal; a session without one declines it.
* `/model`, `/effort`, `/fast`, `/color`, and `/rename`: pass the value as an argument, for example `/model sonnet` or `/effort high`. From mobile and web, `/model` and `/effort` take the argument in place of the terminal picker or slider.
@@ -470,7 +469,6 @@
* [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): run sessions in the cloud instead of your machine, configured through [cloud environments](</docs/en/cloud-environments>)
* [Cross-session messaging](</docs/en/cross-session-messaging>): let Claude message your sessions on other machines or your [cloud sessions](</docs/en/claude-code-on-the-web>)
* [Channels](</docs/en/channels>): forward Telegram, Discord, or iMessage into a session so Claude reacts to messages while you’re away
- * [Dispatch](</docs/en/desktop#sessions-from-dispatch>): message a task from your phone and it can spawn a Desktop session to handle it
* [Authentication](</docs/en/authentication>): set up `/login` and manage credentials for claude.ai
* [CLI reference](</docs/en/cli-reference>): full list of flags and commands including `claude remote-control`
* [Security](</docs/en/security>): how Remote Control sessions fit into the Claude Code security model
--- a/scheduled-tasks.md
+++ b/scheduled-tasks.md
@@ -83,7 +83,7 @@
`.claude/loop.md`| Project-level. Takes precedence when both files exist.
`~/.claude/loop.md`| User-level. Applies in any project that does not define its own.
-The file is plain Markdown with no required structure. Write it as if you were typing the `/loop` prompt directly. The following example keeps a release branch healthy:
+Write the `loop.md` file in plain Markdown, as in this example that keeps a release branch healthy:
.claude/loop.md
@@ -194,10 +194,10 @@
* Tasks only fire while Claude Code is running and idle. Closing the terminal or letting the session exit stops them firing. [Backgrounding the session](</docs/en/agent-view#from-inside-a-session>) carries `/loop` tasks over to a background session, which keeps running without a terminal.
* No catch-up for missed fires. If a task’s scheduled time passes while Claude is busy on a long-running request, it fires once when Claude becomes idle, not once per missed interval.
* In a [background session](</docs/en/agent-view#from-inside-a-session>), a self-paced loop stops if its next wakeup comes due while the session’s process isn’t running, such as after a crash. When the process starts again, the transcript shows a [notice that the wakeup won’t fire](</docs/en/errors#restarted-after-its-next-loop-wakeup-was-due>). To continue the loop, [reply to the session](</docs/en/agent-view#peek-and-reply>) and ask Claude to keep it running.
- * When you resume with `claude --resume` or `claude --continue`, Claude Code restores tasks scheduled with `CronCreate`, except expired recurring tasks and one-shot tasks whose time has passed. You also lose session-scoped tasks if you exit between turns by choosing `Exit and stop tasks`. A self-paced `/loop` isn’t restored either. To restart a loop that didn’t come back, run `/loop` again.
+ * When you resume with `claude --resume` or `claude --continue`, Claude Code restores tasks scheduled with `CronCreate`, except expired recurring tasks and one-shot tasks whose time has passed. You also lose session-scoped tasks if you exit between turns by choosing `Exit and stop tasks`. After you resume, rerun your earlier `/loop` command to restart a self-paced loop or another loop you lost.
* A restored recurring task doesn’t fire for the runs it missed while the session wasn’t running. Its next run is the first one due after you resume, and jitter applies to that run.
* When you resume with `claude --resume` or `claude --continue`, Claude Code doesn’t restart the background Bash commands and monitors that were running when the session ended. If you still need one, ask Claude to start it again.
- * With [feature-flag fetching off](</docs/en/env-vars#features-that-need-feature-flag-fetching>), Claude Code stores a task you asked to keep across sessions in the project’s `.claude/scheduled_tasks.json` file. When the `.claude` directory or that file is a symlink, Claude Code returns an error instead of scheduling the task. A saved task runs only in the project folder where you created it. If you copy the file into another folder, such as a new worktree, sessions there list the copied tasks but don’t run them, so create the task again in that folder.
+ * With [feature-flag fetching off](</docs/en/env-vars#features-that-need-feature-flag-fetching>), Claude Code stores a task you asked to keep across sessions in the project’s `.claude/scheduled_tasks.json` file. When the `.claude` directory or that file is a symlink, Claude Code returns an error. To run a saved task in another folder, such as a new worktree, create it again in that folder.
For cron-driven automation that needs to run unattended:
--- a/secure-deployment.md
+++ b/secure-deployment.md
@@ -185,7 +185,7 @@
export HTTP_PROXY="http://localhost:8080"
export HTTPS_PROXY="http://localhost:8080"
-Claude Code and the Agent SDK respect these standard environment variables, routing all HTTP traffic through the proxy. For HTTPS, the proxy creates an encrypted CONNECT tunnel: it cannot see or modify request contents without TLS interception.
+Claude Code and the Agent SDK then route HTTP traffic through the proxy. For HTTPS, the proxy creates an encrypted CONNECT tunnel: it cannot see or modify request contents without TLS interception.
### Implementing a proxy
--- a/security.md
+++ b/security.md
@@ -82,14 +82,14 @@
When you use [cloud sessions](</docs/en/claude-code-on-the-web>), additional security controls are in place. By default, a session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure, where isolation, network egress, and git credentials are your deployment’s responsibility. In Anthropic-hosted environments:
- * **Network access controls** : Network access is limited by default and can be configured to be disabled or allow only specific domains
+ * **Network access controls** : The session VM’s network access is limited by default and can be configured to be disabled or allow only specific domains. See [Access levels](</docs/en/cloud-environments#access-levels>) for what sessions can reach at every level
* **Credential protection** : GitHub credentials are stored encrypted on Anthropic’s servers and never enter the session VM. The VM holds a short-lived credential scoped to that session, and GitHub traffic goes through an [Anthropic proxy](</docs/en/cloud-environments#github-proxy>) that attaches the GitHub credential on the server side. See [GitHub authentication options](</docs/en/claude-code-on-the-web#github-authentication-options>) for how you grant access
* **Push restrictions** : The [GitHub proxy](</docs/en/cloud-environments#github-proxy>) rejects branch deletions and pushes of anything other than a branch, such as a tag. GitHub decides which branches a session can update by applying your repository’s branch protection rules and rulesets to the GitHub access you connected. A rule that access can bypass doesn’t block a session’s push
* **Audit logging** : All operations in cloud sessions are logged for compliance and audit purposes
* **Automatic cleanup** : Session VMs are reclaimed after a period of inactivity
* **Deletion** : You can [delete a session](</docs/en/claude-code-on-the-web#delete-sessions>) at any time. See [Cloud execution data flow](</docs/en/data-usage#cloud-execution-data-flow-and-dependencies>) for what Anthropic stores for a cloud session
-For more details on cloud execution, see [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>); to configure network access for cloud sessions, see [Configure cloud environments](</docs/en/cloud-environments#network-access>). [Remote Control](</docs/en/remote-control>) sessions work differently: the web interface connects to a Claude Code process running on your local machine. All code execution and file access stays local, and session traffic travels through the Anthropic API over TLS; while connected, the session transcript is stored on Anthropic servers to sync the conversation across devices, as described in [Connection and security](</docs/en/remote-control#connection-and-security>). No cloud VMs or sandboxing are involved. The connection uses multiple short-lived, narrowly scoped credentials, each limited to a specific purpose and expiring independently, to limit the blast radius of any single compromised credential.
+For more details on cloud execution, see [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>). [Remote Control](</docs/en/remote-control>) sessions work differently: the web interface connects to a Claude Code process running on your local machine. All code execution and file access stays local, and session traffic travels through the Anthropic API over TLS; while connected, the session transcript is stored on Anthropic servers to sync the conversation across devices, as described in [Connection and security](</docs/en/remote-control#connection-and-security>). No cloud VMs or sandboxing are involved. The connection uses multiple short-lived, narrowly scoped credentials, each limited to a specific purpose and expiring independently, to limit the blast radius of any single compromised credential.
## Security best practices
--- a/security-guidance.md
+++ b/security-guidance.md
@@ -15,7 +15,8 @@
`/plugin` opens an interactive panel in the terminal CLI. Outside the terminal, install another way:
- * **Claude desktop app, local or SSH session** : use the **Desktop app** tab under [Install a plugin](</docs/en/plugins/install#install-a-plugin>)
+ * **Claude desktop app, local session** : use the **Desktop app** tab under [Install a plugin](</docs/en/plugins/install#install-a-plugin>)
+ * **Claude desktop app, SSH session** : [install the plugin on the remote machine](</docs/en/desktop#install-a-plugin-on-the-remote-machine>), where the prerequisites apply. Don’t rely on a copy on your computer: the plugin’s reviews are hooks, and Desktop [doesn’t always send a plugin’s hooks](</docs/en/desktop#plugin-hooks-that-dont-run-in-an-ssh-session>) to the remote machine. After the install, start a new session. To check that the plugin’s reviews run there, see Troubleshooting: the log that it names is on the remote machine.
* **VS Code extension** : install from the [**Manage plugins** dialog](</docs/en/vs-code#manage-plugins>)
* **Cloud sessions** : a cloud session doesn’t load plugins from your user settings, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. For plugins your organization distributes through managed settings, see [Manage plugins for your organization](</docs/en/plugins/org>)
--- a/self-hosted-environments-deploy.md
+++ b/self-hosted-environments-deploy.md
@@ -145,7 +145,7 @@
### Use the Anthropic git proxy
-With the Anthropic git proxy, also called Anthropic-managed git, the runner image needs no SSH keys, credential helper, `.netrc`, or other git credentials for the session itself. Instead, the runner asks Anthropic to serve git for its sessions. For a user’s session that Anthropic serves, the runner’s clone and the session’s own fetches and pushes go through Anthropic, which uses the GitHub OAuth token stored for the session’s creator. How Anthropic serves git for a session covers bot and agent sessions. The git proxy is off unless you turn it on. A runner that reaches your git host with its own credentials doesn’t need it, and its git works with any git host. In exchange, the git proxy limits what the runner supports and changes what it needs:
+With the Anthropic git proxy, also called Anthropic-managed git, the runner image needs no SSH keys, credential helper, `.netrc`, or other git credentials for the session itself. Instead, the runner asks Anthropic to serve git for its sessions. For a user’s session that Anthropic serves, the runner’s clone and the session’s own fetches and pushes go through Anthropic, which uses the GitHub OAuth token stored for the session’s creator. How Anthropic serves git for a session covers bot and agent sessions. A runner that reaches your git host with its own credentials doesn’t need the git proxy, and its git works with any git host. In exchange, the git proxy limits what the runner supports and changes what it needs:
* **github.com only** : Anthropic serves a session only when all of its repositories are on github.com, and the git proxy doesn’t support GitHub Enterprise Server yet. On a runner with the git proxy, a session with a repository on another git host fails to start.
* **Credentials for the session’s repositories only** : Anthropic supplies git credentials for the repositories that are part of the session, not for other repositories on the same git host. A private submodule, a dependency that your package manager fetches with git, or a plugin marketplace in another repository gets no credential from Anthropic. Ask the people who create sessions to [add every repository](</docs/en/web-quickstart#start-a-task>) a session needs when they create it. Each run of a [cloud scheduled task](</docs/en/routines>) is a session with the task’s repositories, so ask each task’s owner to [add every repository its runs need](</docs/en/routines#edit-and-control-routines>).
@@ -164,7 +164,7 @@
Before you start the runner with `--use-anthropic-git-proxy`, confirm that the runner host meets each of these requirements. The runner refuses to start when the capacity or git requirement is unmet:
- * **Claude Code v2.1.267 or later** : earlier versions accept the flag but don’t report the request for Anthropic to serve git or print the `Registering as opted in` line, so Anthropic doesn’t serve their sessions.
+ * **Claude Code v2.1.267 or later**
* **`--capacity 1`, the default**: each runner process handles one session at a time, so run more replicas for parallelism.
* **Git 2.32 or later** : older git ignores the per-session git configuration that the runner sets up for the git proxy.
@@ -188,7 +188,7 @@
On a runner started with `--use-anthropic-git-proxy`, a session fails to start when Anthropic doesn’t serve its git. Look in the runner’s log for a git error that names an `api.anthropic.com` address containing `/git_proxy/`. For each session, a runner on Claude Code v2.1.267 or later also logs either a `[runner:session]` line containing `governed git ACTIVE` when Anthropic serves the session’s git, or one `[runner:warn]` line containing `the server withheld Anthropic-managed git for this session` when it doesn’t. Find the line you’re seeing among these cases:
- * **Neither`governed git ACTIVE` nor the `withheld` line**: if the runner is older than Claude Code v2.1.267, Anthropic doesn’t serve its sessions. Update the runner to v2.1.267 or later by following Pin the version.
+ * **Neither`governed git ACTIVE` nor the `withheld` line**: if the runner is older than Claude Code v2.1.267, update the runner by following Pin the version.
* **The`withheld` line**: Anthropic didn’t serve the session. A runner that worked with the git proxy before can fail this way with no change on your side.
* **A repository isn’t on github.com** : a session with even one repository on another git host, such as GitHub Enterprise Server, isn’t served, including its github.com repositories. Turn the Anthropic git proxy off for that environment’s runners.
* **Every repository is on github.com** : report the failure to your Anthropic account team with the session ID from the `withheld` line. Anthropic records the reason on its side.
--- a/server-managed-settings.md
+++ b/server-managed-settings.md
@@ -63,7 +63,7 @@
}
}
-Because hooks execute shell commands, users in interactive sessions see a security approval dialog before Claude Code applies them.To configure the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier so it knows which repos, buckets, and domains your organization trusts, deliver an `autoMode` block the same way; see [Configure auto mode](</docs/en/auto-mode-config>) for how the `autoMode` entries affect what the classifier blocks and important warnings about the `environment`, `allow`, `soft_deny`, and `hard_deny` fields.
+Because hooks execute shell commands, users approve them first when Claude Code asks for approval.To configure the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier so it knows which repos, buckets, and domains your organization trusts, deliver an `autoMode` block the same way; see [Configure auto mode](</docs/en/auto-mode-config>) for how the `autoMode` entries affect what the classifier blocks and important warnings about the `environment`, `allow`, `soft_deny`, and `hard_deny` fields.
3
@@ -73,7 +73,7 @@
### Verify settings delivery
-To confirm that settings are being applied, ask a user to restart Claude Code. If the configuration includes settings that trigger the security approval dialog, the user sees a prompt describing the managed settings the next time Claude Code fetches them: at the next start, or within an hour in a running interactive session. You can also verify that managed permission rules are active by having a user run `/permissions` to view their effective permission rules. In a session, have the user run `/status`. The [`Setting sources` line](</docs/en/managed-settings#read-the-source-in-/status>) lists `Enterprise managed settings` with `remote` in parentheses when server-managed settings apply. To check the fetch outcome on a specific machine, have the user run `claude doctor` and read the `Managed settings (remote)` line. Requires Claude Code v2.1.248 or later. The line reports one of four outcomes:
+To confirm that managed permission rules are active, have a user restart Claude Code and run `/permissions` to view their effective permission rules. In a session, have the user run `/status`. The [`Setting sources` line](</docs/en/managed-settings#read-the-source-in-/status>) lists `Enterprise managed settings` with `remote` in parentheses when server-managed settings apply. To check the fetch outcome on a specific machine, have the user run `claude doctor` and read the `Managed settings (remote)` line. Requires Claude Code v2.1.248 or later. The line reports one of four outcomes:
* The delivered settings loaded
* Your organization has no server-managed settings configured
@@ -121,7 +121,7 @@
Click **Switch to group-based configurations** in the banner at the top of the page and confirm. Members receive their configurations within about an hour, apart from the keys that apply only at the next launch. To go back, switch to organization-wide mode from the same banner: the organization-wide configuration applies again, if you have one, and your group configurations are kept.
-A group’s model limits hold in local Claude Code sessions. Cloud sessions are held to the [`availableModels`](</docs/en/model-config#restrict-model-selection>) list in the catch-all. claude.ai applies it to Cowork and unified conversations until Anthropic [turns that off](</docs/en/model-config#when-the-allowlist-limits-cowork>). Without a catch-all, that list comes from your organization-wide configuration, even after you switch to group-based mode. If you omit `availableModels` from the catch-all, members aren’t limited by that list in cloud sessions, Cowork, or unified conversations. If you use a group’s configuration to set where API requests go, that applies only to Claude Code, not to other tools that call the API.
+A group’s model limits hold in local Claude Code sessions. Cloud sessions are held to the [`availableModels`](</docs/en/model-config#restrict-model-selection>) list in the catch-all. Without a catch-all, that list comes from your organization-wide configuration, even after you switch to group-based mode. If you omit `availableModels` from the catch-all, members aren’t limited by that list in cloud sessions. On Enterprise plans, claude.ai [doesn’t apply an `availableModels` list from server-managed settings to Cowork](</docs/en/model-config#when-the-allowlist-limits-cowork>), whichever mode you use. If you use a group’s configuration to set where API requests go, that applies only to Claude Code, not to other tools that call the API.
#### Copy a setting into group configurations from a script
@@ -219,7 +219,7 @@
* The configuration-directory selector `CLAUDE_CONFIG_DIR`
* Credential-source and configuration-directory selectors, in Claude Code v2.1.223 or later: the Workload Identity Federation variables such as `ANTHROPIC_FEDERATION_RULE_ID` and `ANTHROPIC_IDENTITY_TOKEN`, the profile and configuration-directory selectors `ANTHROPIC_PROFILE` and `ANTHROPIC_CONFIG_DIR`, and the operating-system directory variables `HOME`, `XDG_CONFIG_HOME`, `APPDATA`, and `USERPROFILE`
-Claude Code reads the Workload Identity Federation variables and the `ANTHROPIC_PROFILE` and `ANTHROPIC_CONFIG_DIR` selectors only at startup, so a server-delivered value for them doesn’t switch the session’s credential source even after the fetch succeeds. To deliver those selectors on Claude Code v2.1.223 or later, use [endpoint-managed settings](</docs/en/managed-settings#delivery-mechanisms>) such as MDM or `managed-settings.json`. For `CLAUDE_CONFIG_DIR` and the operating-system directory variables, the withholding itself is the protection: the cached value stays out of the environment until the server confirms the payload. Every other key in the cached `env` block applies at startup. Once the server confirms the payload, and you approve it if it needs security approval, the withheld variables apply for the rest of the session. If the fetch needs a proxy, set `HTTPS_PROXY` in one of:
+To use Anthropic profiles or federation credentials in [sessions that support them](</docs/en/authentication#anthropic-profiles-and-federation-credentials>), set `ANTHROPIC_PROFILE`, `ANTHROPIC_CONFIG_DIR`, or federation variables in the shell or service launching `claude`. Keep these variables out of server-managed and endpoint-managed `env` blocks, because sessions connecting directly to `api.anthropic.com` decide whether to use these credentials before either block applies. With federation, which the settings fetch doesn’t use, deliver policy through endpoint-managed settings. If the fetch needs a proxy, set `HTTPS_PROXY` in one of:
* An [endpoint-managed](</docs/en/managed-settings#delivery-mechanisms>) `env` block through MDM or `managed-settings.json`. This source requires Claude Code v2.1.223 or later. Before v2.1.223, use the shell environment or user settings so the proxy applies alongside a cached server payload.
* The shell environment
@@ -261,15 +261,21 @@
### Security approval dialogs
-Certain settings that could pose security risks require explicit user approval before Claude Code applies them in an interactive session:
+In an interactive session that can show the approval dialog, Claude Code v2.1.315 or later skips it and applies delivered settings without asking when both of these apply:
+
+ * Claude Code fetches the settings from `api.anthropic.com` with a Team or Enterprise claude.ai login saved by `/login` or `claude auth login`
+ * The [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) setting in the machine’s [MDM policy or managed settings file](</docs/en/managed-settings#which-managed-source-supplies-login-keys>) is unset or includes the login’s organization
+
+In other interactive sessions that can show the dialog, Claude Code asks the user before it applies settings that need approval. That includes sessions that fetch the settings with an API key, the `CLAUDE_CODE_OAUTH_TOKEN` variable, or a [Claude apps gateway](</docs/en/claude-apps-gateway>) sign-in. Where these docs say the dialog appears, they describe these sessions. In those sessions, settings such as these need the user’s approval, and Claude Code exits if the user rejects them:
* **Shell command settings** : settings that execute shell commands, such as `apiKeyHelper`, `statusLine`, and `otelHeadersHelper`
* **Sandbox binary settings** : `sandbox.bwrapPath`, `sandbox.socatPath`, and `sandbox.ripgrep`. Each of these settings points at an executable, and Claude Code runs that executable
* **Sandbox network and isolation settings** : [sandbox](</docs/en/sandboxing>) settings that let the sandbox proxy read, reroute, or authenticate traffic, or that weaken the sandbox’s isolation: `sandbox.network.tlsTerminate`, `sandbox.network.httpProxyPort`, `sandbox.network.socksProxyPort`, `sandbox.credentials`, `sandbox.allowAppleEvents`, `sandbox.allowNestedUserNamespaces`, `sandbox.enableWeakerNestedSandbox`, `sandbox.enableWeakerNetworkIsolation`, `sandbox.filesystem.disabled`, `sandbox.network.allowAllUnixSockets`, `sandbox.network.allowUnixSockets`, and `sandbox.network.allowMachLookup`. A `sandbox.credentials` block that contains only `deny` rules doesn’t need approval, since it restricts the sandbox without giving the proxy a credential. Before v2.1.251, Claude Code applied these settings without approval
* **Custom environment variables** : delivered `env` variables that require the user’s approval, such as proxy and base-URL variables; see Environment variables and the approval dialog
* **Hook configurations** : any hook definition
-
-When these settings are present, users see a security dialog explaining what is being configured. Users must approve to proceed. If a user rejects the settings, Claude Code exits. A managed CLAUDE.md delivered through the [`claudeMd`](</docs/en/settings-reference#claudemd>) key doesn’t require approval, because it’s instruction text for Claude rather than a command Claude Code runs. Claude Code still checks [permissions](</docs/en/permissions>) for the tools Claude uses while following those instructions. Before v2.1.260, a `claudeMd` value required approval too.
+ * **Plugins** : a marketplace plugin listed in the `prependPlugins` or `appendPlugins` setting
+
+A managed CLAUDE.md delivered through the [`claudeMd`](</docs/en/settings-reference#claudemd>) key doesn’t require approval, because it’s instruction text for Claude rather than a command Claude Code runs. Claude Code still checks [permissions](</docs/en/permissions>) for the tools Claude uses while following those instructions. Before v2.1.260, a `claudeMd` value required approval too. If you see `Your organization may apply global configuration to Claude Code`, keep working: it’s a notice for Team and Enterprise users.
#### Approval memory
@@ -279,7 +285,7 @@
* **A[Claude apps gateway](</docs/en/claude-apps-gateway>) sign-in**: one approval per gateway. If you sign out and back in to the same gateway, Claude Code doesn’t show the dialog again while the settings that require approval are unchanged. Claude Code shows it again when those settings change, when you sign in to a different gateway, and when you accept a new certificate for the same gateway. Claude Code saves no approval for a loopback development gateway reached over plain HTTP, so the dialog appears again after each sign-in.
* **Any other credential** , such as an API key or `CLAUDE_CODE_OAUTH_TOKEN`: one approval for the delivered settings, kept with the cached copy of the settings in that configuration directory. Claude Code shows the dialog again when the settings that require approval change, and after you run `/logout` or `claude auth logout`, either of which deletes the cached copy.
-An approval for `sandbox.credentials` or `sandbox.network.tlsTerminate` also covers the [`sandbox.network.allowedDomains`](</docs/en/settings-reference#sandbox-network-alloweddomains>) entries in those same delivered settings, because both settings act on that allowlist. The dialog appears again when your administrator adds or removes one of those entries, even though `sandbox.network.allowedDomains` doesn’t require approval on its own. With a saved claude.ai login:
+An approval for `sandbox.credentials` or `sandbox.network.tlsTerminate` also covers the [`sandbox.network.allowedDomains`](</docs/en/settings-reference#sandbox-network-alloweddomains>) entries in those same delivered settings, because both settings act on that allowlist. The dialog appears again when your administrator adds or removes one of those entries, even though `sandbox.network.allowedDomains` doesn’t require approval on its own. With a saved claude.ai login in a session where Claude Code asks for approval, such as on a version before v2.1.315:
* If you sign out and back in, or switch to another organization and later return, Claude Code doesn’t show the dialog again while those settings are unchanged, unless another account approved them for that organization in the same configuration directory in between.
* If you sign in to the same organization with a different account, Claude Code shows the dialog again even when the settings are unchanged. That account’s approval replaces the previous one, so when you switch back, Claude Code shows the dialog once more.
@@ -302,7 +308,7 @@
* Terminal UI and accessibility options
* Numeric limits, budgets, and timeouts
-Other delivered variables can require the user’s approval before they take effect. For example, in interactive sessions these always do, at any non-empty value:
+Other delivered variables can require the user’s approval before they take effect. For example, in sessions where Claude Code asks for approval, it asks about these variables at any non-empty value:
* A proxy or base-URL variable
* `OTEL_EXPORTER_OTLP_ENDPOINT`
--- a/settings.md
+++ b/settings.md
@@ -132,11 +132,11 @@
### Confirm what loaded
-Run `/status` inside Claude Code to see which settings sources are active. The **Status** tab includes a `Setting sources` line that lists each settings file Claude Code loaded for the current session, such as `User settings` or `Project local settings`. When [managed settings](</docs/en/admin-setup#decide-how-settings-reach-devices>) are in effect, the managed settings entry shows in parentheses how they reached your machine. The line confirms which files Claude Code read; it doesn’t show which file supplied each key. To list entries Claude Code rejected, run [`claude doctor`](</docs/en/debug-your-config>); for a model that project or managed settings set, the startup header names the file that set it. `/status` and `/config` open the same dialog on different tabs, and the **Config** tab isn’t a view of your `settings.json` contents.
+Run `/status` inside Claude Code to see which settings sources are active. The **Status** tab includes a `Setting sources` line that lists each settings file Claude Code loaded for the current session, such as `User settings` or `Project local settings`. When [managed settings](</docs/en/admin-setup#decide-how-settings-reach-devices>) are in effect, the managed settings entry shows in parentheses how they reached your machine. To list settings entries Claude Code rejected, run [`claude doctor`](</docs/en/debug-your-config>).
### Fix a broken settings file
-If you mistype JSON or set a key to a value Claude Code doesn’t accept, Claude Code tells you at the start of an interactive session. What it shows depends on how much of the file is affected:
+Claude Code reports broken JSON and some invalid values at the start of an interactive session:
* **Settings Error** : a user, project, or local file has invalid JSON or a value the schema rejects. At the start of an interactive session Claude Code shows a dialog that lets you fix the file with Claude’s help, exit, or continue without the broken settings.
* **Settings Warning** : only individual entries fail, such as a malformed permission rule or an unknown hook event name. Claude Code skips those values and keeps the rest of the file in effect.
@@ -188,7 +188,7 @@
#### Organization settings override everything
-Your organization’s managed settings set it to `true`. Nothing you put in user, project, or local settings turns tips off, and neither does `--settings`. Managed is the top level. You can’t get your value back. Run `/status` to see which managed source applies, and ask your administrator if the policy should change.
+If your organization’s managed settings set the `spinnerTipsEnabled` key to `true`, that value overrides user, project, and local settings and the `--settings` flag. To turn the tips off, ask your administrator to change the managed value. Run `/status` to see which managed source applies.
#### The command line overrides your files for one session
Show diff (159 lines)
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -26,6 +26,8 @@
`attribution.commit`| Change or hide the trailer Claude Code adds to commits| Git and attribution| Any file
`attribution.pr`| Change or hide the attribution line in pull request descriptions| Git and attribution| Any file
`attribution.sessionUrl`| Omit the claude.ai session link from [cloud](</docs/en/claude-code-on-the-web>) and [Remote Control](</docs/en/remote-control>) commits| Git and attribution| Any file
+`attributionProject`| Name the claude.ai Project your usage is reported under| Privacy and telemetry| Any file
+`attributionProjectPolicy`| Set your organization’s default Project for usage reports| Privacy and telemetry| Managed
`autoCompactEnabled`| Turn [automatic compaction](</docs/en/context-window>) off or on| Memory and context| Any file
`autoCompactWindow`| Set how full the context gets before Claude Code [compacts](</docs/en/context-window>)| Memory and context| Any file
`autoConnectIde`| Connect to a running [VS Code](</docs/en/vs-code>) or [JetBrains](</docs/en/jetbrains#from-external-terminals>) IDE automatically from an external terminal| Global config settings| Global config
@@ -421,7 +423,7 @@
### `fastMode`
-Turn [fast mode](</docs/en/fast-mode>) on for sessions where it’s available, for interactive work such as rapid iteration or live debugging where you want speed at a higher cost per token. You don’t usually edit this key yourself. Running `/fast` writes `fastMode: true` to `~/.claude/settings.json`, and running it again to turn fast mode off removes the key. On the Anthropic API, only Fable 5.2, Opus 5.5, Opus 5, and Opus 4.8 support fast mode. Running `/fast` from another model switches you to Opus, and switching to an unsupported model turns fast mode off. See [Switch models while fast mode is on](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>). On Google Cloud’s Agent Platform, [`/fast` switches you to Fable 5.2](</docs/en/fast-mode#use-fast-mode-on-agent-platform>) instead and doesn’t write this key, and Claude Code ignores a saved `true`.
+Turn [fast mode](</docs/en/fast-mode>) on for sessions where it’s available, for interactive work such as rapid iteration or live debugging where you want speed at a higher cost per token. You don’t usually edit this key yourself. Running `/fast` writes `fastMode: true` to `~/.claude/settings.json`, and running it again to turn fast mode off removes the key. On the Anthropic API, Fable 5.2, Opus 5.5, and Opus 5 support fast mode. Running `/fast` from an unsupported model other than Opus 4.8 switches you to Opus. See [Switch models while fast mode is on](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>). On Google Cloud’s Agent Platform, [`/fast` switches you to Fable 5.2](</docs/en/fast-mode#use-fast-mode-on-agent-platform>) instead and doesn’t write this key, and Claude Code ignores a saved `true`.
* **Scope** : `Any file`
* **Type** : Boolean
@@ -934,7 +936,7 @@
### `permissions.deny`
-List the tool uses Claude Code blocks. Use it for files that hold API keys, secrets, or environment values: Claude Code excludes matching files from file discovery and search results, denies reads of them, and blocks the [Edit and Write tools](</docs/en/permissions#read-and-edit>) on the matching paths. Read and Edit deny rules apply to Claude’s built-in file tools, to file commands Claude Code recognizes in Bash, such as `cat`, `head`, `tail`, `sed`, and `tee`, and to the targets of Bash [redirections](</docs/en/permissions#redirections>) such as `> file` and `< file`; they don’t apply to a command that reads files without naming them, such as `grep -r pattern .`, or to arbitrary subprocesses, so for OS-level enforcement [enable the sandbox](</docs/en/sandboxing>).
+List the tool uses Claude Code blocks. Use it for files that hold API keys, secrets, or environment values: Claude Code excludes matching files from file discovery and search results, denies reads of them, and blocks the [Edit and Write tools](</docs/en/permissions#read-and-edit>) on the matching paths. Read and Edit deny rules apply to Claude’s built-in file tools and to [some Bash commands](</docs/en/permissions#what-read-and-edit-rules-cover>), such as `cat .env`. These rules aren’t a complete block. For example, they don’t apply to a script that opens files itself or to a command that reads files without naming them, such as `grep -r pattern .`. For OS-level enforcement, [enable the sandbox](</docs/en/sandboxing>).
* **Scope** : `Any file`
* **Type** : array of permission rule strings
@@ -1101,7 +1103,7 @@
}
}
-The key applies in `-p` runs, interactive terminal sessions, the [VS Code extension](</docs/en/vs-code>), local sessions in the [Desktop app](</docs/en/desktop>), [subagents](</docs/en/sub-agents>), and [agent teams](</docs/en/agent-teams>). To deny what would prompt in a single [non-interactive](</docs/en/headless>) run instead, pass [`--permission-prompts none`](</docs/en/headless#turn-off-permission-prompts-in-unattended-runs>) with `-p`.
+The key applies in `-p` runs, interactive terminal sessions, the [VS Code extension](</docs/en/vs-code>), local sessions and [SSH sessions](</docs/en/desktop#why-a-task-waits-in-auto-mode-or-bypass-permissions>) in the [Desktop app](</docs/en/desktop>), [subagents](</docs/en/sub-agents>), and [agent teams](</docs/en/agent-teams>). To deny what would prompt in a single [non-interactive](</docs/en/headless>) run instead, pass [`--permission-prompts none`](</docs/en/headless#turn-off-permission-prompts-in-unattended-runs>) with `-p`.
#### What else `denyInsteadOfPrompting` stops
@@ -2188,11 +2190,11 @@
### `autoCompactEnabled`
-Have Claude Code [compact the conversation automatically](</docs/en/context-window#when-your-context-fills-up>) when context approaches the limit. Appears in `/config` as **Auto-compact** , and toggling it there writes this key to your user settings.
-
- * **Scope** : `Any file`
- * **Type** : Boolean
- * `true`: Claude Code compacts the conversation automatically when context approaches the limit
+Have Claude Code [compact the conversation automatically](</docs/en/context-window#when-your-context-fills-up>) when context approaches the auto-compact window. Appears in `/config` as **Auto-compact** , and toggling it there writes this key to your user settings.
+
+ * **Scope** : `Any file`
+ * **Type** : Boolean
+ * `true`: Claude Code compacts the conversation automatically when context approaches the auto-compact window
* `false`: Claude Code doesn’t compact automatically
* **Default** : `true`
* **Per-session overrides** : [`DISABLE_AUTO_COMPACT`](</docs/en/env-vars>) turns auto-compact off for one session; whichever of the two turns it off, the other can’t turn it back on
@@ -2211,7 +2213,7 @@
* **Scope** : `Any file`
* **Type** : number of tokens, at least `100000`. Claude Code caps the value at your model’s context window; the [models overview](<https://platform.claude.com/docs/en/about-claude/models/overview>) lists each model’s window
- * **Default** : unset, so Claude Code picks a window tuned for your model
+ * **Default** : unset, so Claude Code picks a [window tuned for your model](</docs/en/model-config#default-auto-compact-thresholds>)
* **Per-session overrides** : [`--autocompact`](</docs/en/cli-reference#cli-flags>) takes precedence over this key for one session, and [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) takes precedence over both unless Claude Code [ignores the variable’s value](</docs/en/model-config#claude_code_auto_compact_window-values>)
settings.json
@@ -2365,6 +2367,7 @@
* [`CLAUDE_CODE_MESSAGING_SOCKET` and `CLAUDE_CODE_MESSAGING_TOKEN`](</docs/en/env-vars#variables>), which Claude Code exports itself, are ignored from every file. Ignoring the socket variable requires Claude Code v2.1.224 or later, and ignoring the token requires v2.1.228 or later.
* [`CLAUDE_CODE_PROJECT_DIR_NAME`](</docs/en/sessions#name-the-project-directory-yourself>), which Claude Code reads from the launch environment only, is ignored from every file; requires v2.1.234 or later.
* [`CLAUDE_CODE_RESTRICTED`](</docs/en/env-vars#variables>), which Claude Code reads from the launch environment only, is ignored from every file.
+ * [`CLAUDE_CODE_ATTRIBUTION_PROJECT`](</docs/en/env-vars#variables>), which Claude Code reads from the launch environment only, is ignored from every file; requires Claude Code v2.1.305 or later. To name a Project in a settings file, use `attributionProject`.
* [`CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY`](</docs/en/env-vars#variables>), which Claude Code reads from the launch environment only, is ignored from every file. The variable requires Claude Code v2.1.283 or later.
* [`CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT`, `CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT`, `CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT`, `CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT`, `CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT`, and `CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK`](</docs/en/env-vars#variables>), which Claude Code reads from the launch environment only, are ignored from every file.
* [`CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS`](</docs/en/env-vars#variables>), which Claude Code reads from the launch environment only, is ignored from every file.
@@ -4033,11 +4036,11 @@
### `enabledPlugins`
-Turn individual [plugins](</docs/en/plugins/overview>) on or off, keyed by `plugin-name@marketplace-name`. A plugin with no entry at any scope falls back to its [`defaultEnabled`](</docs/en/plugins/manifest-reference#fields>) value. When you enable or disable a plugin with `/plugin` or `claude plugin enable`, Claude Code writes this key for you.
+Turn individual [plugins](</docs/en/plugins/overview>) on or off, keyed by `plugin-name@marketplace-name`. A marketplace plugin with no entry at any scope stays off, and when you install one, Claude Code writes its entry from [`defaultEnabled`](</docs/en/plugins/manifest-reference#defaultenabled>). For a plugin loaded another way, such as with `--plugin-dir`, see [how each plugin origin turns on or off](</docs/en/plugins/loading#find-where-a-plugin-came-from>). When you enable or disable a plugin with `/plugin` or `claude plugin enable`, Claude Code writes this key for you.
* **Scope** : `Any file`
* **Type** : object mapping `plugin-name@marketplace-name` to a Boolean
- * **Default** : unset, so each plugin follows its `defaultEnabled` value
+ * **Default** : unset
This example enables two plugins from the `team-tools` marketplace and disables one from `personal`:
@@ -5295,6 +5298,72 @@
Control how long Claude Code keeps session data and what it sends. The switches that turn off usage metrics and error reports are environment variables, not settings keys: set `DISABLE_TELEMETRY`, `DISABLE_ERROR_REPORTING`, or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` in the `env` key or in the shell. [Telemetry services](</docs/en/data-usage#telemetry-services>) says what each one stops. Two exceptions turn off from a settings file: `feedbackDrafts` below for Claude-drafted feedback, and `feedbackSurveyRate` below for the session survey.
+### `attributionProject`
+
+Set this key so that your organization’s usage reports group your Claude Code usage under a claude.ai Project. Requires Claude Code v2.1.305 or later. Reporting usage by Project is available only for organizations with Project tags enabled; Project tags are the tags an organization sets on its claude.ai Projects. Claude Code sends this key’s Project to Anthropic only in a session that meets all of these:
+
+ * You signed in with your claude.ai account
+ * Claude Code uses the Anthropic API provider itself, not an LLM gateway, a [Claude apps gateway](</docs/en/claude-apps-gateway>), or a custom `ANTHROPIC_BASE_URL`. It also isn’t set to use Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry
+ * The session isn’t a [cloud session](</docs/en/claude-code-on-the-web>)
+ * [`CLAUDE_CODE_ATTRIBUTION_HEADER`](</docs/en/env-vars#variables>) isn’t set to `0`
+
+For a Project whose address has a UUID after `/project/`, such as `https://claude.ai/project/<uuid>`, set the key to that UUID. For a project on the new version, use the ID that starts with `chan_` after `/project/`, stopping at any question mark. Requires Claude Code v2.1.318 or later. For a Project at `https://claude.ai/project/4b1d7e2a-9c3f-4e8a-b6d1-2f5a7c9e0b13`, add this to `~/.claude/settings.json` to use it for your own sessions by default:
+
+~/.claude/settings.json
+
+ {
+ "attributionProject": "4b1d7e2a-9c3f-4e8a-b6d1-2f5a7c9e0b13"
+ }
+
+The next time you start an interactive session, a line at startup names the Project and the file it came from:
+
+ This session names claude.ai Project 4b1d7e2a-9c3f-4e8a-b6d1-2f5a7c9e0b13 for usage reports (~/.claude/settings.json)
+
+Claude Code checks only the value’s format, so if the line shows a UUID, compare it with the Project’s address. No startup line appears in any `claude -p` or SDK run.
+
+ * **Scope** : `Any file`
+ * **Type** : string, a Project UUID or a Project ID, or a billing group on a Claude apps gateway
+ * **Default** : unset, so your usage is reported under your organization’s default Project, if an administrator set one with `attributionProjectPolicy`
+
+To use the key from a repository’s own settings files, [trust the repository’s folder](</docs/en/permissions#project-allow-rules-and-workspace-trust>), or a folder above it whose trust covers it. `claude -p` and SDK runs read this key from a repository’s files only if that trust is already in place, directly or through a folder above it.
+
+#### Usage through a Claude apps gateway
+
+Usage reports can’t show Claude apps gateway usage by Project. If your administrator set `admin.billing_group_tag`, set `attributionProject` to one of your IdP groups to log your spend under that billing group. Requires v2.1.327 or later on the gateway and your machine. The gateway gets the value even when `CLAUDE_CODE_ATTRIBUTION_HEADER` is `0`, and removes it before forwarding the request. In a gateway session, Claude Code skips the Project ID check.
+
+#### Which source sets the Project
+
+When more than one place names a Project, Claude Code sends the first of these with a valid value:
+
+ 1. The [`CLAUDE_CODE_ATTRIBUTION_PROJECT`](</docs/en/env-vars#variables>) environment variable
+ 2. The highest-precedence [settings file](</docs/en/settings#settings-precedence>) that sets `attributionProject`. If that value isn’t a valid Project ID, Claude Code skips the lower files and goes to the organization default.
+ 3. Your organization’s default from `attributionProjectPolicy`
+
+#### Fix startup line problems in an interactive session
+
+To fix a startup warning or a missing startup line, find what you see:
+
+ * **The line also says`ignored the invalid`**: the value it names isn’t valid, so Claude Code used the next source in the order of sources. Correct that value.
+ * **The line starts with`No claude.ai Project for usage reports`**: the value it names isn’t a Project UUID or Project ID. Copy the ID from the Project’s address again, the part after `/project/` and before any question mark. If the line says to ask your administrator, ask them to correct the value in managed settings or the organization default.
+ * **No line appears** : the session can’t send a Project, or nothing names one. Check your Claude Code version and the requirements for sending the Project, then check that one of the sources holds a value that isn’t empty.
+
+### `attributionProjectPolicy`
+
+Set your organization’s default Project for usage reports. Claude Code sends the default under the same conditions as `attributionProject`, unless an earlier source has a valid value. Requires Claude Code v2.1.305 or later.
+
+ * **Scope** : `Managed`. Claude Code ignores the key in user, project, and local settings and in `--settings`, with a warning. On Windows it also ignores the key, with a warning, in the user-writable HKCU registry.
+ * **Type** : object with one field:
+ * `default`: string, the Project’s UUID or ID
+ * **Default** : none
+
+managed-settings.json
+
+ {
+ "attributionProjectPolicy": {
+ "default": "0189c4f2-7d3a-7b1e-9c5d-2f6a8b0e1d34"
+ }
+ }
+
### `cleanupPeriodDays`
Set how many days Claude Code keeps [session transcripts and other application data](</docs/en/claude-directory#cleaned-up-automatically>) before deleting them. Claude Code runs the deletion as a background sweep after a session starts, as long as it can safely determine the retention period. The sweep deletes transcripts without showing a message, so a session you haven’t used for longer than the retention period no longer appears in the [`/resume`](</docs/en/sessions#resume-a-session>) picker. By default, Claude Code keeps transcripts of sessions you started or most recently continued in Claude Desktop or Cowork past this period, even if you set this key yourself. This period [still applies to them in some cases](</docs/en/claude-directory#cleaned-up-automatically>), such as under the HIPAA configuration. Before v2.1.248, Claude Code deleted them after this period.
--- a/ship-command.md
+++ b/ship-command.md
@@ -1,6 +1,6 @@
-`/ship` is a Claude Code command that opens a GitHub pull request for your change if your branch doesn’t have one. Claude reviews your change and works on feedback and failing checks to help get it ready to merge. If your pull request is already open and you don’t want a review, type `/steward`. It skips the review, and Claude does the same work on feedback and failing checks.
-
-Run either command from the Claude Code CLI in a terminal, in your local clone of the repository. Cloud sessions don’t have them.
+`/ship` is a Claude Code command that opens a GitHub pull request for your change if your branch doesn’t have one. Claude reviews your change and works on feedback and failing checks to help get it ready to merge. If your pull request is already open and you want to skip the review, type `/steward`.
+
+Run either command from the Claude Code CLI in a terminal, in your local clone of the repository.
After you type `/ship`, your change goes through these steps:
@@ -16,7 +16,7 @@
With either command, Claude works on your pull request’s feedback and failing checks. Choose between `/ship` and `/steward` by where your change is:
* **`/ship`** : your change is finished, and you want Claude to review it and then work on the feedback and failing checks that follow
- * **`/steward`** : your pull request is already open and you don’t want a review first, or a watch ended and you want to start it again
+ * **`/steward`** : your pull request is already open and you want to skip the review, or a watch ended and you want to start it again
Both commands run in your session, so their work counts against your usage. If you want something else, such as a review alone or fixes from a cloud session, use one of these:
@@ -54,7 +54,7 @@
If you made the change with Claude, use that same session, because Claude writes the commit message from the session’s conversation. Anyone who can see the pull request can read that message.
-`/ship` proceeds with no confirmation prompt. After you press Enter, it can commit your work, push your branch, and open the pull request as you. Before the commit, and again before the push, a line that ends `Esc to cancel` says what’s about to happen. If you do nothing, `/ship` continues after a few seconds.
+After you press Enter, `/ship` can commit your work, push your branch, and open the pull request as you. Before the commit, and again before the push, a line that ends `Esc to cancel` says what’s about to happen. To cancel, press `Esc` within a few seconds, before `/ship` continues automatically.
If you cancel before the push, a commit that `/ship` made stays. To undo it and keep your files, run `git reset HEAD~1` in your shell.
@@ -75,11 +75,11 @@
* Your repository’s pull request template
* A pull request on [GitHub Enterprise or from a fork](</docs/en/ship-command-troubleshooting#github-enterprise-and-forks>)
-If `/ship` commits or pushes nothing and these cases don’t say why, see [/ship committed or pushed nothing](</docs/en/ship-command-troubleshooting#%2Fship-committed-or-pushed-nothing>).
+For other cases where `/ship` leaves the commit or the push to you, see [/ship committed or pushed nothing](</docs/en/ship-command-troubleshooting#%2Fship-committed-or-pushed-nothing>).
### Start a watch with /steward
-To start a watch with no review first, type `/steward` at the Claude Code prompt. Use it on your own open pull request, or to start again after a watch ends. Before you leave a watch alone, see Code that a watch runs on your computer. `/steward` is separate from [PR Steward](</docs/en/pr-steward>), the agent that an organization sets up. Where PR Steward is already working on your pull request, no watch starts.
+To skip the review and start a watch, type `/steward` at the Claude Code prompt. Use it on your own open pull request, or to start again after a watch ends. Before you leave a watch alone, see Code that a watch runs on your computer. `/steward` is separate from [PR Steward](</docs/en/pr-steward>), the agent that an organization sets up. Where PR Steward is already working on your pull request, no watch starts.
## What Claude does during a watch
@@ -143,7 +143,7 @@
To tell Claude how to look after pull requests in a repository, save a file at `.claude/skills/steward/SKILL.md` in the repository’s top folder. [PR Steward reads the same file](</docs/en/pr-steward-pull-requests#save-pr-steward-instructions-for-everyone-in-a-repository>), so one file can serve both, and that section has an example. During a watch, Claude reads the copy in your checkout and follows it as instructions, for example on which checks matter and how to run the tests, within these limits:
* **Installs and downloads** : Claude can skip a line that installs or downloads something, such as the `npm install` line in that example
- * **Blocked commands** : the file doesn’t change what Claude Code blocks during a watch
+ * **Blocked commands** : what Claude Code blocks during a watch stays the same
* **Changes to the file** : if you add or edit it yourself while a watch runs, the watch ends. For whose other changes can reach it, see Code that a watch runs on your computer
## Check, stop, or restart a watch
@@ -152,7 +152,7 @@
### Check whether a watch is running
-Type `/tasks` at the Claude Code prompt. Once the review is done and while Claude isn’t working, a running watch appears in the list as a scheduled task whose name starts with `/steward --tend`.
+Type `/tasks` at the Claude Code prompt. Once the review is done and while Claude is idle, a running watch appears in the list as a scheduled task whose name starts with `/steward --tend`.
### What ends a watch
@@ -179,7 +179,7 @@
When Claude acts without a message from you, Claude Code blocks `gh` and `git` commands that merge the pull request, approve it, turn on auto-merge, or force-push. At those times, Claude Code also limits Claude’s `gh` and `git` commands to a short list, and refuses tools that the watch doesn’t need, such as connectors, `WebFetch`, and `WebSearch`. To see these limits in Claude Code, type `/ship terms` at the prompt.
-The limits on a watch don’t cover everything. The watch uses your `gh` and `git` sign-ins, so it could merge a pull request that your repository’s branch rules let you merge without another person’s approval. See When a watch can lead to a merge. A setting in your session, such as a permission rule or a hook, can [let commands past the limits](</docs/en/ship-command-troubleshooting#messages-during-a-watch>).
+The watch uses your `gh` and `git` sign-ins, so it could still merge a pull request that your repository’s branch rules let you merge without another person’s approval. See When a watch can lead to a merge. A setting in your session, such as a permission rule or a hook, can [let commands past the limits](</docs/en/ship-command-troubleshooting#messages-during-a-watch>).
### Code that a watch runs on your computer
--- a/ship-command-troubleshooting.md
+++ b/ship-command-troubleshooting.md
@@ -13,11 +13,11 @@
## /ship or /steward is missing or doesn’t start
-Start here when the command isn’t offered, or when it prints a message.
+Start here when the command is missing, or when it prints a message.
### /ship isn’t available in your session
-`/ship` is missing from the `/` menu, typing it starts `/code-review`, or you see `Unknown command: /ship`. Cloud sessions don’t have `/ship`. On your own machine, take these steps:
+`/ship` is missing from the `/` menu, typing it starts `/code-review`, or you see `Unknown command: /ship`. If you’re in a cloud session, run `/ship` from the Claude Code CLI in your local clone instead. On your own machine, take these steps:
1. Run `claude update` in your shell, then quit and start `claude` again.
2. If `/ship` is still missing, quit and start `claude` once more, because a new feature [can take a second start](</docs/en/env-vars#first-session-after-an-install-or-upgrade>) to show.
@@ -27,7 +27,7 @@
### A skillOverrides entry turns off /ship or /steward
-`Skill "ship-local" is disabled via skillOverrides`, or the same message for `steward`, means that a [`skillOverrides`](</docs/en/skills#override-skill-visibility-from-settings>) entry in your settings turns off the command. Remove the entry. To change an entry in managed settings, ask your administrator.
+If you see `Skill "ship-local" is disabled via skillOverrides`, or the same message for `steward`, remove the command’s [`skillOverrides`](</docs/en/skills#override-skill-visibility-from-settings>) entry from your settings. To change an entry in managed settings, ask your administrator.
### /ship or /steward printed a message and didn’t start
@@ -58,7 +58,7 @@
## /ship committed or pushed nothing
-In some cases, `/ship` leaves the commit or the push to you and says why. Its message can start with `Nothing committed or pushed`, `Nothing pushed`, `I didn't push anything`, `There is no pull request to watch`, or `This branch has no open pull request`. On a host other than GitHub, `/ship` doesn’t commit or push when it starts, so see [Watch a branch on another host](</docs/en/ship-command#watch-a-branch-on-another-host>). Find your case, take the step in its row, then run `/ship` again. In these cases, if nothing is pushed and the branch has no pull request, Claude reviews your change and no watch starts.
+In some cases, `/ship` leaves the commit or the push to you and says why. Its message can start with `Nothing committed or pushed`, `Nothing pushed`, `I didn't push anything`, `There is no pull request to watch`, or `This branch has no open pull request`. On a host other than GitHub, `/ship` doesn’t commit or push when it starts, so see [Watch a branch on another host](</docs/en/ship-command#watch-a-branch-on-another-host>). Find your case, take the step in its row, then run `/ship` again.
### Public repositories and files that /ship doesn’t commit
@@ -68,7 +68,7 @@
---|---
`For a public repository /ship doesn't commit anything for you`| Commit your work yourself, on a branch other than the default branch
`By its name, this file may hold secrets` or `By their names, these files may hold secrets`, for a changed file such as `.env` or `password.txt`| If it holds no secret, commit your work yourself, on a branch other than the default branch. Otherwise, set it aside, for example with `git stash push -u -- <file>` in your shell
-The message names empty files that you didn’t create, such as `.bashrc` or `.gitconfig`| On Linux and WSL2, the [sandbox](</docs/en/sandboxing>) keeps empty files in your checkout while a sandboxed command runs. The sandbox needs them until the command ends, so don’t stash, commit, or delete them before then. Stop the command, for example from [`/tasks`](</docs/en/commands#all-commands>), or wait for it to end, and the sandbox removes them. If they stay with no sandboxed command running, [remove the leftover files](</docs/en/errors#stale-sandbox-mask-files-left-by-a-killed-session>)
+The message names empty files that you didn’t create, such as `.bashrc` or `.gitconfig`| On Linux and WSL2, the [sandbox](</docs/en/sandboxing>) keeps empty files in your checkout while a sandboxed command runs. The sandbox needs them until the command ends, so don’t stash, commit, or delete them before then. Stop the command, for example from [`/tasks`](</docs/en/commands#all-commands>), or wait for it to end, and the sandbox removes them. If they stay after every sandboxed command has ended, [remove the leftover files](</docs/en/errors#stale-sandbox-mask-files-left-by-a-killed-session>)
You changed a file that configures git, CI, or a coding agent, such as `.gitignore`, `CLAUDE.md`, or anything under `.github/`| Commit your work yourself, on a branch other than the default branch
### Branches that /ship can’t commit to or push
@@ -136,7 +136,7 @@
`gh` isn’t installed or signed in| See The GitHub CLI isn’t ready
`this gh is too old for a watch`| Update the GitHub CLI to 2.63 or later, then type `/steward`
A deny rule forbids a command that the watch needs, such as `git push`| Claude’s message names the command and the settings that hold the rule. If whoever set it agrees, remove it there. To change a rule in managed settings, ask your administrator
-The project sets a hook that could approve commands, for example a `PreToolUse` or `PermissionRequest` [hook](</docs/en/hooks>) on shell commands in the checkout’s `.claude/settings.json`| The message names the file and says what to change
+The project sets a hook that could approve commands, for example a `PreToolUse` or `PermissionRequest` [hook](</docs/en/hooks>) on shell commands in the checkout’s `.claude/settings.json`| Follow the message, which names the file and says what to change
### Cases where no watch can start
Show diff (133 lines)
--- a/sub-agents.md
+++ b/sub-agents.md
@@ -1,4 +1,4 @@
-Subagents are specialized AI assistants that handle specific types of tasks. Use one when a side task would flood your main conversation with search results, logs, or file contents you won’t reference again: the subagent does that work in its own context and returns only the summary. Define a custom subagent when you keep spawning the same kind of worker with the same instructions. Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It also sends its own requests, which count toward the same [usage limits](</docs/en/costs#plan-usage-breakdown>) as your main conversation. When Claude encounters a task that matches a subagent’s description, it delegates to that subagent, which works independently and returns results. To see the context savings in practice, the [context window visualization](</docs/en/context-window>) walks through a session where a subagent handles research in its own separate window.
+Subagents are specialized AI assistants that handle specific types of tasks. Use one when a side task would flood your main conversation with search results, logs, or file contents you won’t reference again: the subagent does that work in its own context and returns only the summary. Define a custom subagent when you keep spawning the same kind of worker with the same instructions. Each subagent runs in its own context window with a custom system prompt, specific tool access, and your [permission rules](</docs/en/permissions>). It also sends its own requests, which count toward the same [usage limits](</docs/en/costs#plan-usage-breakdown>) as your main conversation. To see how a subagent saves context, open the [context window visualization](</docs/en/context-window>).
Subagents work within a single session. To run many independent sessions in parallel and monitor them from one place, see [background agents](</docs/en/agent-view>). For separate sessions that pass messages to each other, see [cross-session messaging](</docs/en/cross-session-messaging>). For a coordinated team of sessions Claude spawns and supervises, see [agent teams](</docs/en/agent-teams>).
@@ -24,12 +24,12 @@
* Other
-A fast, read-only agent optimized for searching and analyzing codebases.
+A fast agent optimized for searching and analyzing codebases.
* **Model** : the parent conversation’s model. When the parent conversation runs Fable, Explore runs on Opus or stays on Fable, based on how you connect.
* With a Claude subscription, an Anthropic Console account, or an [LLM gateway](</docs/en/llm-gateway>) reached through `ANTHROPIC_BASE_URL`, Explore runs on the Opus model that the [`opus` alias](</docs/en/model-config#model-aliases>) resolves to.
* On Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or a [Claude apps gateway](</docs/en/claude-apps-gateway>), Explore stays on Fable.
- * **Tools** : read-only tools; Write and Edit are denied
+ * **Tools** : includes Bash and MCP tools; excludes Edit, Write, and NotebookEdit
* **Purpose** : file discovery, code search, codebase exploration
A user or project subagent named `Explore` overrides the built-in and keeps its own `model` field, so define one with `model: haiku` to run exploration on a lower-cost model. To force one model onto every subagent, Explore included, see Run every subagent on one model.Claude delegates to Explore when it needs to search or understand a codebase without making changes. This keeps exploration results out of your main conversation context.When invoking Explore, Claude specifies a thoroughness level: **quick** for targeted lookups, **medium** for balanced exploration, or **very thorough** for comprehensive analysis.
@@ -37,7 +37,7 @@
A research agent used during [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>) to gather context before presenting a plan.
* **Model** : inherits from the parent conversation, unless you set `CLAUDE_CODE_SUBAGENT_MODEL` and force it onto every subagent
- * **Tools** : read-only tools; Write and Edit are denied
+ * **Tools** : includes Bash and MCP tools; excludes Edit, Write, and NotebookEdit
* **Purpose** : codebase research for planning
When you’re in plan mode and Claude needs to understand your codebase, it delegates research to the Plan subagent so that exploration output stays in a separate context window while the main conversation remains read-only.
@@ -229,7 +229,7 @@
`maxTurns`| No| Maximum number of agentic turns before the subagent stops. When the subagent reaches the limit, Claude Code returns its output marked as partial, and Claude can resume it to continue. The partial marking requires Claude Code v2.1.246 or later
`autoCompactWindow`| No| Lower the auto-compact window for this subagent to a token count of `100000` or more. Requires Claude Code v2.1.296 or later
`skills`| No| [Skills](</docs/en/skills>) to preload into the subagent’s context at startup. The full skill content is injected, not only the description. Subagents can still invoke unlisted project, user, and plugin skills through the Skill tool
-`mcpServers`| No| [MCP servers](</docs/en/mcp>) available to this subagent. Each entry is either a server name referencing an already-configured server (e.g., `"slack"`) or an inline definition with the server name as key and a full [MCP server config](</docs/en/mcp#installing-mcp-servers>) as value. Ignored for plugin subagents
+`mcpServers`| No| [MCP servers](</docs/en/mcp>) to add to any that this subagent inherits. Each entry is the name of an already-configured server, such as `"slack"`, or an inline definition with the server name as key and a full [MCP server config](</docs/en/mcp#installing-mcp-servers>) as value. Ignored for plugin subagents
`hooks`| No| Lifecycle hooks scoped to this subagent. Ignored for plugin subagents
`memory`| No| Persistent memory scope: `user`, `project`, or `local`. Enables cross-session learning
`background`| No| Set to `true` to keep this subagent in the background even when Claude asks to wait for it. By default, custom subagents Claude spawns from the main conversation already start in the background
@@ -371,7 +371,7 @@
#### Restrict which tools a subagent can use
-To restrict tools, use the `tools` field as an allowlist or the `disallowedTools` field as a denylist. If both are set, `disallowedTools` is applied first, then `tools` is resolved against the remaining pool. A tool listed in both is removed. This example uses `tools` to allow only Read, Grep, Glob, and Bash. The subagent has no Edit, Write, or MCP tools but can still change files through Bash:
+To restrict tools, use the `tools` field as an allowlist or the `disallowedTools` field as a denylist. If both are set, `disallowedTools` is applied first, then `tools` is resolved against the remaining pool. A tool listed in both is removed. This example uses `tools` to allow only Read, Grep, Glob, and Bash. The subagent can still change files through Bash:
---
name: safe-researcher
@@ -543,7 +543,7 @@
* The subagent’s system prompt includes instructions for reading and writing to the memory directory.
* The subagent’s system prompt also includes the first 200 lines or 25KB of `MEMORY.md` in the memory directory, whichever comes first, with instructions to curate `MEMORY.md` if it exceeds that limit.
- * Read, Write, and Edit tools are automatically enabled so the subagent can manage its memory files.
+ * Claude Code adds Read, Write, and Edit to the subagent’s tools, and they work outside the memory directory too. To remove one, list it in `disallowedTools`.
##### Persistent memory tips
@@ -559,7 +559,7 @@
#### Conditional rules with hooks
-For more dynamic control over tool usage, use `PreToolUse` hooks to validate operations before they execute. This is useful when you need to allow some operations of a tool while blocking others. This example creates a subagent that only allows read-only database queries. The `PreToolUse` hook runs the script specified in `command` before each Bash tool call executes:
+For more dynamic control over tool usage, use `PreToolUse` hooks to validate operations before they execute. This is useful when you need to allow some operations of a tool while blocking others. This example creates a subagent whose hook blocks commands that contain common SQL write keywords. The hook lets other writes through, so connect with a read-only database user. The `PreToolUse` hook runs the script specified in `command` before each Bash tool call executes:
---
name: db-reader
@@ -626,7 +626,7 @@
Frontmatter hooks fire when the agent is spawned as a subagent through the Agent tool or an @-mention, and when the agent runs as the main session via `--agent` or the `agent` setting. In the main-session case they run alongside any hooks defined in [`settings.json`](</docs/en/hooks>).
-To let a project-level subagent’s frontmatter hooks run, accept the [workspace trust dialog](</docs/en/permissions#project-allow-rules-and-workspace-trust>) for the folder that contains the agent file. Hooks from user-level subagents in `~/.claude/agents/` and from definitions you pass with `--agents` run without this step. If you added a folder with `--add-dir` from outside your trusted workspace’s repository, trust that folder separately: its `.claude/agents/` hooks don’t inherit the workspace’s grant. Until you trust the folder, the subagent still runs, but Claude Code skips its frontmatter hooks and logs an error to the debug log explaining how to trust the folder. This is a stricter rule than the one for hooks in settings files: trusting a parent folder isn’t enough, and a `-p` session doesn’t count as trusted. [What runs before you trust a folder](</docs/en/permissions#what-runs-before-you-trust-a-folder>) compares the two. All [hook events](</docs/en/hooks#hook-events>) are supported. The most common events for subagents are:
+To let a project-level subagent’s frontmatter hooks run, accept the [workspace trust dialog](</docs/en/permissions#project-allow-rules-and-workspace-trust>) for the folder that contains the agent file. Hooks from user-level subagents in `~/.claude/agents/` and from definitions you pass with `--agents` run without this step. If you added a folder with `--add-dir` from outside your trusted workspace’s repository, trust that folder separately: its `.claude/agents/` hooks don’t inherit the workspace’s grant. Until you trust the folder, the subagent still runs, but Claude Code skips its frontmatter hooks and logs an error to the debug log explaining how to trust the folder. This is a stricter rule than the one for hooks in settings files: trusting a parent folder isn’t enough, and a `-p` session doesn’t count as trusted. [What runs before you trust a folder](</docs/en/permissions#what-runs-before-you-trust-a-folder>) compares the two. The most common hook events for subagents are:
Event| Matcher input| When it fires
---|---|---
@@ -708,7 +708,7 @@
@"code-reviewer (agent)" look at the auth changes
-Your full message still goes to Claude, which writes the subagent’s task prompt based on what you asked. Subagents provided by an enabled [plugin](</docs/en/plugins/overview>) appear in the typeahead under their scoped name, such as `my-plugin:code-reviewer` or `my-plugin:review:security` when the plugin organizes agents into subfolders. Named background subagents currently running in the session also appear in the typeahead, showing their status next to the name. You can also type the mention manually without using the picker: `@agent-<name>` for local subagents, or `@agent-` followed by the scoped name for plugin subagents, for example `@agent-my-plugin:code-reviewer`. While you type this form the typeahead shows file matches rather than agents. The agent mention still resolves when you submit. **Run the whole session as a subagent.** Pass [`--agent <name>`](</docs/en/cli-reference>) to start a session where the main thread itself takes on that subagent’s tool restrictions and model:
+Your full message still goes to Claude, which writes the subagent’s task prompt based on what you asked. Subagents from an enabled [plugin](</docs/en/plugins/overview>) appear in the typeahead under their scoped name, such as `my-plugin:code-reviewer` or `my-plugin:review:security` when the plugin organizes agents into subfolders. You can also type the mention manually without using the picker: `@agent-<name>` for local subagents, or `@agent-` followed by the scoped name for plugin subagents, for example `@agent-my-plugin:code-reviewer`. While you type this form the typeahead shows file matches rather than agents. The agent mention still resolves when you submit. **Run the whole session as a subagent.** Pass [`--agent <name>`](</docs/en/cli-reference>) to start a session where the main thread itself takes on that subagent’s tool restrictions and model:
claude --agent code-reviewer
@@ -860,7 +860,7 @@
### Concurrent subagent limit
-By default, when 20 subagents are running in a session, spawning another with the Agent tool fails with `Concurrent subagent limit reached`, and the error tells Claude not to retry. Spawning succeeds again when the running count drops below the limit. To change the limit, set [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](</docs/en/env-vars>) to any positive whole number. Sessions with [ultracode](</docs/en/model-config#adjust-effort-level>) active are exempt: the limit isn’t enforced there. Requires Claude Code v2.1.217 or later. The limit blocks only subagents Claude spawns with the Agent tool, but other runs occupy the same slots:
+By default, at least 20 subagents can run at once in a session. At the limit, spawning another with the Agent tool fails with `Concurrent subagent limit reached`, and the error tells Claude not to retry. Spawning succeeds again when the running count drops below the limit. To change the limit, set [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](</docs/en/env-vars>) to any positive whole number. Requires Claude Code v2.1.217 or later. Sessions with [ultracode](</docs/en/model-config#adjust-effort-level>) active are exempt from the limit. The limit blocks only subagents Claude spawns with the Agent tool, but other runs occupy the same slots:
* An in-session fork you start with `/subtask` takes a slot while it runs and is never blocked by the limit.
* Resuming a subagent that already finished takes a fresh slot without checking the limit, so resumes can push the running count past it.
@@ -920,7 +920,7 @@
#### Auto-compaction
-Subagents support automatic compaction. Compaction triggers as the subagent’s own context window fills, and `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` applies to subagents as well. See [environment variables](</docs/en/env-vars>) for when the override takes effect. Compaction events are logged in subagent transcript files:
+Subagents support automatic compaction. Compaction triggers as the subagent’s own context approaches the [auto-compact window](</docs/en/model-config#context-window-and-auto-compaction>), and `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` applies to subagents as well. See [environment variables](</docs/en/env-vars>) for when the override takes effect. Compaction events are logged in subagent transcript files:
{
"type": "system",
@@ -1016,7 +1016,7 @@
### Code reviewer
-A subagent that reviews code without the Edit and Write tools. It can still change files through Bash.
+A subagent that reviews code. It can change files through Bash.
---
name: code-reviewer
@@ -1121,7 +1121,7 @@
### Database query validator
-A subagent that allows Bash access but validates commands to permit only read-only SQL queries. This example shows how to use `PreToolUse` hooks for conditional validation when you need finer control than the `tools` field provides.
+A subagent with Bash access whose hook blocks commands that contain common SQL write keywords. The hook lets other writes through, so connect with a read-only database user. Use a `PreToolUse` hook like this when you need finer control than the `tools` field provides.
---
name: db-reader
@@ -1171,7 +1171,9 @@
chmod +x ./scripts/validate-readonly-query.sh
-On Windows, write the validation script in PowerShell and add `shell: powershell` to the hook entry. See [running hooks in PowerShell](</docs/en/hooks#windows-powershell-tool>). See [Hooks](</docs/en/hooks#exit-code-output>) for details on exit codes and [Hook input](</docs/en/hooks#pretooluse-input>) for the complete input schema. The system prompt tells the subagent to refuse write requests, so the hook is a backstop: if the subagent attempts a write anyway, Claude Code blocks the command and the subagent sees the `Blocked: Write operations not allowed. Use SELECT queries only.` message.
+On Windows, write the validation script in PowerShell and add `shell: powershell` to the hook entry. See [running hooks in PowerShell](</docs/en/hooks#windows-powershell-tool>). See [Hooks](</docs/en/hooks#exit-code-output>) for details on exit codes and [Hook input](</docs/en/hooks#pretooluse-input>) for the complete input schema.
+
+The system prompt tells the subagent to refuse write requests, so the hook is a backstop. If a command contains one of the keywords in the script, Claude Code blocks the command and the subagent sees the `Blocked: Write operations not allowed. Use SELECT queries only.` message.
## Next steps
--- a/subagents.md
+++ b/subagents.md
@@ -129,12 +129,12 @@
---|---|---|---
`description`| `string`| Yes| Natural language description of when to use this agent
`prompt`| `string`| Yes| The agent’s system prompt defining its role and behavior
-`tools`| `string[]`| No| Array of allowed tool names; listing one doesn’t [pre-approve](</docs/en/agent-sdk/permissions#allow-and-deny-rules>) it. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>)
+`tools`| `string[]`| No| Array of tool names available to this agent; listing one doesn’t [pre-approve](</docs/en/agent-sdk/permissions#allow-and-deny-rules>) it. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>)
`disallowedTools`| `string[]`| No| Array of tool names to remove from the agent’s tool set. MCP server-level patterns are also accepted: `mcp__server` or `mcp__server__*` removes every tool from that server, and `mcp__*` removes every MCP tool from any server
`model`| `string`| No| Model override for this agent. Accepts an alias such as `'fable'`, `'opus'`, `'sonnet'`, `'haiku'`, `'inherit'`, or a full model ID. `'inherit'` uses the model of the agent that spawned this one. When you omit `model`, Claude Code picks the model in the [subagent model order](</docs/en/sub-agents#choose-a-model>)
`skills`| `string[]`| No| List of skill names to preload into the agent’s context at startup. At most the [first 32 distinct names](</docs/en/sub-agents#preload-skills-into-subagents>) in the list are preloaded. Unlisted skills remain invocable through the Skill tool
`memory`| `'user' | 'project' | 'local'`| No| Memory source for this agent
-`mcpServers`| `(string | object)[]`| No| MCP servers available to this agent, by name or inline config
+`mcpServers`| `(string | object)[]`| No| MCP servers to add to any that this agent inherits, by name or inline config
`initialPrompt`| `string`| No| Auto-submitted as the first user turn when this agent runs as the main thread agent. Ignored when the agent is invoked as a subagent
`maxTurns`| `number`| No| Maximum number of agentic turns before the agent stops. When the agent reaches the limit, Claude Code returns its output marked as partial, and you can resume the agent to continue. The partial marking requires Claude Code v2.1.246 or later
`autoCompactWindow`| `number`| No| Lower the [auto-compact window](</docs/en/sub-agents#subagent-auto-compact-window>) for this agent when it runs as a subagent, to a token count of `100000` or more. Requires TypeScript Agent SDK v0.3.296 or later. The Python SDK’s [`AgentDefinition`](</docs/en/agent-sdk/python#agentdefinition>) doesn’t have this field
@@ -507,7 +507,7 @@
Use the `tools` field to limit what a subagent can do:
* **Omit`tools`**: the subagent gets every [tool available to subagents](</docs/en/sub-agents#available-tools>)
- * **List tools** : the subagent gets those. With [`memory`](</docs/en/sub-agents#enable-persistent-memory>) enabled, it also gets Read, Write, and Edit. A code reviewer that shouldn’t edit files, for example, gets `["Read", "Grep", "Glob"]`
+ * **List tools** : the subagent gets those. With [`memory`](</docs/en/sub-agents#enable-persistent-memory>) enabled, it also gets Read, Write, and Edit. For a code reviewer that shouldn’t edit files, list `["Read", "Grep", "Glob"]`
This example creates a read-only analysis agent that can examine code but can’t modify files or run commands.
@@ -577,7 +577,7 @@
Limit| Set it with| Default| What Claude Code does at the limit
---|---|---|---
Depth| [`CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`](</docs/en/env-vars>)| `3` layers of subagents below your main agent. `1` stops your subagents from spawning any of their own| Leaves a subagent at the bottom layer unable to spawn, so it does its delegated work itself. See [nested subagents](</docs/en/sub-agents#let-subagents-spawn-their-own-subagents>)
-Concurrency| [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](</docs/en/env-vars>)| `20` subagents running at once, counting every subagent Claude spawns with the Agent tool| Refuses to spawn another subagent, returning `Concurrent subagent limit reached`, until the running count drops below the limit. Sessions with [ultracode](</docs/en/model-config#adjust-effort-level>) active are never refused. See the [concurrent subagent limit](</docs/en/sub-agents#concurrent-subagent-limit>)
+Concurrency| [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](</docs/en/env-vars>)| At least `20` subagents running at once, counting every subagent Claude spawns with the Agent tool| Refuses to spawn another subagent, returning `Concurrent subagent limit reached`, until the running count drops below the limit. Sessions with [ultracode](</docs/en/model-config#adjust-effort-level>) active are exempt. See the [concurrent subagent limit](</docs/en/sub-agents#concurrent-subagent-limit>)
Spend| `maxBudgetUsd` in TypeScript, `max_budget_usd` in Python| No limit. Counts the call’s own spend, subagent requests included| Enforces the cap in three ways: refuses to spawn more subagents, returning `Budget limit reached`, stops background subagents that are still running, and ends the query with the `error_max_budget_usd` result subtype. For how the caps behave across a session, see [turns and budget](</docs/en/agent-sdk/agent-loop#turns-and-budget>)
The two SDKs treat the `env` option differently: the TypeScript SDK replaces the subprocess environment with it, so spread `process.env` into it to keep variables like `PATH`, while the Python SDK merges it into the inherited environment. This example turns nesting off, allows at most five subagents at a time, and stops the query once the estimated spend reaches $5:
--- a/terminal-config.md
+++ b/terminal-config.md
@@ -101,7 +101,7 @@
* **Claude Code version** : status reporting requires Claude Code v2.1.295 or later. Run `claude --version` in your shell to check.
* **tmux** : inside tmux, Claude Code checks tmux for support instead of your terminal, and `allow-passthrough` has no effect on that. Start the session outside tmux.
- * **Background session** : a [background session](</docs/en/agent-view>) doesn’t report its status to your terminal, even while you’re attached to it. Agent view shows its status instead.
+ * **Background session** : [attach to the session](</docs/en/agent-view#attach-to-a-session>) to see its status in your terminal, or check its row in [agent view](</docs/en/agent-view>). Status reporting while you’re attached requires Claude Code v2.1.326 or later. If the session still runs an earlier version after you update, run [`claude respawn <id>`](</docs/en/agent-view#manage-sessions-from-the-shell>) in your shell to restart it.
* **[`CLAUDE_CODE_DISABLE_TERMINAL_TITLE`](</docs/en/env-vars#variables>)** : if you set this variable to `1`, Claude Code doesn’t check for support or report status. Unset it.
The tab title doesn’t start with a status glyph in a terminal that reports support for the protocol. The terminal shows the session’s state itself, so Claude Code leaves out the glyph it puts in front of the title in other terminals.
--- a/tools-reference.md
+++ b/tools-reference.md
@@ -31,7 +31,7 @@
`PushNotification`| Sends a desktop notification from a local session, and a phone push with [Remote Control](</docs/en/remote-control>) or in a [cloud session](</docs/en/claude-code-on-the-web>). Push delivery runs through Anthropic-hosted infrastructure, which is not accessible from Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry| No
`Read`| Reads the contents of files. See Read tool behavior| No
`ReadMcpResourceTool`| Reads a specific MCP resource by URI| No
-`RemoteTrigger`| Creates, updates, runs, and lists [cloud scheduled tasks](</docs/en/routines>), formerly routines, on claude.ai. Backs the `/schedule` command. The [`RemoteTrigger` input reference](</docs/en/agent-sdk/typescript#remotetrigger>) documents every action and the organization policies that remove the tool. Cloud scheduled tasks live on claude.ai and require a Pro, Max, Ultra, Team, or Enterprise plan. This tool is therefore not accessible from Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry| No
+`RemoteTrigger`| Creates, updates, runs, and lists [cloud scheduled tasks](</docs/en/routines>), formerly routines, on claude.ai. Backs the `/schedule` command. Creating, changing, or running a task needs permission on Claude Code v2.1.317 or later. The [`RemoteTrigger` input reference](</docs/en/agent-sdk/typescript#remotetrigger>) documents its actions and the organization policies that remove the tool. Requires a Pro, Max, Ultra, Team, or Enterprise plan. Not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry| Some actions
`REPL`| Runs the JavaScript that Claude writes in [Code Mode](</docs/en/code-mode>). Available only when Code Mode is on. For how Claude Code checks the tool calls in that code, see [Permission checks](</docs/en/code-mode#permission-checks>)| No
`ReportFindings`| Reports code-review findings as a structured list, with a file, summary, and failure scenario per finding, so Claude Code can render them instead of printing them as text. Claude calls it when active code-review instructions tell it to. A finding can also carry an optional `category` slug, such as `correctness` or `test-coverage`, shown next to the file location in the rendered list| No
`ScheduleWakeup`| Reschedules the next iteration of a [self-paced `/loop`](</docs/en/scheduled-tasks#let-claude-choose-the-interval>). Claude calls this at the end of each iteration to pick when the next one runs, between one minute and one hour out; you don’t call it directly. To end the loop instead, Claude calls it with `stop: true`, which cancels the pending wakeup. The pending wakeup appears in `session_crons` in [Stop hook input](</docs/en/hooks#stop-input>)| No
@@ -40,7 +40,7 @@
`SendFeedback`| Drafts a feedback report about Claude Code, covering a product problem or Claude’s own behavior in the session, and queues it on your machine for you to review. Claude Code sends nothing until you choose to send the draft. See SendFeedback tool behavior. Requires Claude Code v2.1.238 or later| No
`SendMessage`| Sends a message to another agent: an [agent team](</docs/en/agent-teams>) teammate, a [subagent it resumes](</docs/en/sub-agents#resume-subagents>) by agent ID or name, or one of your other Claude Code sessions, on this machine or beyond it. Messaging other sessions requires Claude Code v2.1.224 or later. [Cross-session messaging](</docs/en/cross-session-messaging>) covers which sessions Claude can reach, [what a message looks like when it arrives](</docs/en/cross-session-messaging#what-a-message-looks-like>), and [how Claude gets a notice when another session goes idle](</docs/en/cross-session-messaging#get-a-notice-when-another-session-goes-idle>). Claude can include an optional `summary` input, typically 5-10 words, that Claude Code shows as a one-line preview. When Claude omits it on a [plain-text message](</docs/en/cross-session-messaging#limitations>), Claude Code uses the first line of the message as the summary. Claude Code truncates a summary longer than 200 characters with an ellipsis| No
`SendUserFile`| Sends files from the session to you with an optional caption, so a generated report, diagram, screenshot, or built artifact reaches your device instead of only being mentioned in the transcript. The optional `display` input controls presentation: `render` opens the file inline in the client, `attach` shows a download card only, and when unset the client decides by file type. Available when a [Remote Control](</docs/en/remote-control>) client is connected or in a [cloud session](</docs/en/claude-code-on-the-web>). Delivery runs through Anthropic-hosted infrastructure, so the tool is not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry| No
-`ShareOnboardingGuide`| Uploads `ONBOARDING.md` and returns a share link teammates can open in Claude Code. Called from `/team-onboarding` after the guide is written. Available to claude.ai subscribers on Team and Enterprise plans| Yes
+`ShareOnboardingGuide`| Uploads `ONBOARDING.md` and returns a share link teammates can open in Claude Code. Called from `/team-onboarding` after the guide is written. Available to claude.ai subscribers on Team and Enterprise plans| No
`Skill`| Executes a [skill](</docs/en/skills#control-who-invokes-a-skill>) within the main conversation. Can prompt for skills that set `allowed-tools`, `disallowed-tools`, or `hooks`, and for [skills from MCP servers](</docs/en/mcp#approvals-for-mcp-skills>)| Some skills
`SubagentHandback`| Delivers a subagent’s final report to whichever conversation receives that subagent’s result. Provided only in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), to subagents that the Agent tool runs locally other than [forks](</docs/en/sub-agents#fork-the-current-conversation>), and available in the terminal CLI, IDE extensions, cloud sessions, and the Agent SDK; the classifier reviews the report before it’s delivered. Requires Claude Code v2.1.271 or later| No
`SuggestPluginInstall`| Shows a [card of suggested plugins](</docs/en/claude-code-on-the-web#plugin-suggestions-in-the-conversation>) you can add. Available in the same sessions as `ListPlugins`| No
@@ -67,7 +67,6 @@
* in the `--allowedTools` and `--disallowedTools` [CLI flags](</docs/en/cli-reference>)
* in the Agent SDK’s [`allowedTools` and `disallowedTools`](</docs/en/agent-sdk/permissions#allow-and-deny-rules>) options
* in a [skill’s `allowed-tools`](</docs/en/skills#frontmatter-reference>) frontmatter
- * in a hook’s [`if` condition](</docs/en/hooks-guide#filter-by-tool-name-and-arguments-with-the-if-field>)
All of these accept the same rule format, `ToolName(specifier)`. The specifier depends on the tool, and several tools share a format:
@@ -82,7 +81,7 @@
`WebFetch(domain:example.com)`| WebFetch| [Domain matching](</docs/en/permissions#webfetch>)
`WebSearch`| WebSearch| No specifier; allow or deny the tool as a whole
-Tools not listed here, such as `ExitPlanMode` or `ShareOnboardingGuide`, accept only the bare tool name with no specifier. An `Edit(...)` allow rule also grants read access to the same path, so you don’t need a matching `Read(...)` rule. A `Read(...)` deny rule also blocks the Edit and Write tools on the same path, including creating a new file there, because both tools change content Claude has to be able to read back. For the Write tool, the `Read` deny check requires Claude Code v2.1.228 or later. Hook `matcher` fields use bare tool names, not the parenthesized rule format. See [matcher patterns](</docs/en/hooks#matcher-patterns>) for the matching rules. For the field names each tool passes to `tool_input` in hooks, see the [PreToolUse input reference](</docs/en/hooks#pretooluse-input>).
+To [match all uses](</docs/en/permissions#match-all-uses-of-a-tool>) of another tool, such as `ExitPlanMode` or `ShareOnboardingGuide`, write its name without parentheses. For narrower deny and ask rules, see [Match by input parameter](</docs/en/permissions#match-by-input-parameter>). For a hook’s `if` condition, see [which tools accept a pattern](</docs/en/hooks-guide#filter-by-tool-name-and-arguments-with-the-if-field>). An `Edit(...)` allow rule also grants read access to the same path, so you don’t need a matching `Read(...)` rule. A `Read(...)` deny rule also blocks the Edit and Write tools on the same path, including creating a new file there, because both tools change content Claude has to be able to read back. For the Write tool, the `Read` deny check requires Claude Code v2.1.228 or later. Hook `matcher` fields use bare tool names, not the parenthesized rule format. See [matcher patterns](</docs/en/hooks#matcher-patterns>) for the matching rules. For the field names each tool passes to `tool_input` in hooks, see the [PreToolUse input reference](</docs/en/hooks#pretooluse-input>).
## Agent tool behavior
@@ -98,7 +97,7 @@
* **`disallowedTools` only**: the subagent gets every parent tool except the listed ones.
* **Both set** : `disallowedTools` takes precedence. A tool listed in both is removed.
-In every case, the resolved set is limited to the [tools available to subagents](</docs/en/sub-agents#available-tools>): a tool that isn’t available to subagents is never granted, even when listed in `tools`. Where the conditions in the `SubagentHandback` tools-table entry hold, Claude Code also gives the subagent that tool, even if you leave it out of `tools` or list it in `disallowedTools`. If every entry in a subagent’s `tools` list fails to match a usable tool, the Agent tool usually returns an error naming the entries instead of launching the subagent; see [Agent would be spawned with zero tools](</docs/en/errors#agent-would-be-spawned-with-zero-tools>) for the message and how to fix each entry. Launching the subagent doesn’t itself prompt for permission. Claude Code checks the subagent’s own tool calls against your permission rules as it runs. Where you see a subagent’s permission prompts depends on whether it runs in the foreground or the background. Claude Code runs subagents in the background by default, apart from the [cases that run in the foreground](</docs/en/sub-agents#run-subagents-in-foreground-or-background>).
+In every case, the resolved set is limited to the [tools available to subagents](</docs/en/sub-agents#available-tools>): a tool that isn’t available to subagents is never granted, even when listed in `tools`. Where the conditions in the `SubagentHandback` tools-table entry hold, Claude Code also gives the subagent that tool, even if you leave it out of `tools` or list it in `disallowedTools`. If no entry in `tools` matches a usable tool, see [Agent would be spawned with zero tools](</docs/en/errors#agent-would-be-spawned-with-zero-tools>). Launching the subagent doesn’t itself prompt for permission. Claude Code checks the subagent’s own tool calls against your permission rules as it runs. Where you see a subagent’s permission prompts depends on whether it runs in the foreground or the background. Claude Code runs subagents in the background by default, apart from the [cases that run in the foreground](</docs/en/sub-agents#run-subagents-in-foreground-or-background>).
* **Foreground subagents** show the same permission prompts you would see in the main conversation, at the moment each tool call happens.
* **Background subagents** surface permission prompts in your main session. The prompt names which subagent is asking, and pressing Esc denies that one tool call without stopping the subagent.
@@ -111,7 +110,9 @@
### Question auto-continue timeout
-Questions stay open until you answer them. If you want a question you leave unanswered to eventually close and let Claude continue without you, set the [`askUserQuestionTimeout`](</docs/en/settings-reference#askuserquestiontimeout>) setting to `60s`, `5m`, or `10m`, either in your user `settings.json` or from the **Question auto-continue timeout** row in `/config`. After a question sits that long with no input, the dialog closes on its own: it submits any options you’d already selected and tells Claude you may be away from your keyboard, so Claude proceeds on its own judgment and can re-ask later. You see a countdown for the last 20 seconds. Press any key to restart the timer. While your terminal reports that its window is focused, the timer doesn’t count down. The timer never starts for a question Claude asks in a [background session](</docs/en/agent-view>), in [screen reader mode](</docs/en/accessibility>), or while the session is connected to [Remote Control](</docs/en/remote-control>). Those questions wait until you answer them. The timeout applies only to `AskUserQuestion`’s multiple-choice questions; permission prompts, including plan approval, never auto-resolve on idle.
+Questions stay open until you answer them. If you want a question you leave unanswered to eventually close and let Claude continue without you, set the [`askUserQuestionTimeout`](</docs/en/settings-reference#askuserquestiontimeout>) setting to `60s`, `5m`, or `10m`, either in your user `settings.json` or from the **Question auto-continue timeout** row in `/config`. After a question sits that long with no input, the dialog closes on its own: it submits any options you’d already selected and tells Claude you may be away from your keyboard, so Claude proceeds on its own judgment and can re-ask later. You see a countdown for the last 20 seconds. Press any key to restart the timer. While your terminal reports that its window is focused, the timer doesn’t count down.
+
+A question Claude asks in a [background session](</docs/en/agent-view>), in [screen reader mode](</docs/en/accessibility>), or while the session is connected to [Remote Control](</docs/en/remote-control>) waits until you answer it. The timeout applies only to `AskUserQuestion`’s multiple-choice questions.
## Bash tool behavior
@@ -221,7 +222,7 @@
### Non-UTF-8 files
-Claude can’t use NotebookEdit on a file that isn’t valid UTF-8. The same goes for Edit, unless the file starts with a little-endian UTF-16 byte-order mark. When Claude tries, the tool refuses the change and leaves the file untouched. Refused files include non-ASCII text saved in a legacy encoding such as Windows-1252 or Shift-JIS, binary files, and UTF-8 with an invalid byte sequence. The tools refuse because they save the whole file back as UTF-8, which would replace every byte they can’t decode with the replacement character `U+FFFD`. Instead, the [error Claude receives](</docs/en/errors#file-is-not-valid-utf-8>) tells it to make the change with a shell command that keeps the file’s encoding, or to ask you about converting it to UTF-8 first. Claude can still replace such a file with Write, unless the new content contains `U+FFFD`, the character Read shows Claude in place of bytes it can’t decode. That guard stops Claude from writing back the garbled text it read. When Write does replace the file, it saves the new content as UTF-8, so the file’s original encoding is lost.
+The Edit, Write, and NotebookEdit tools refuse to change a file that isn’t valid UTF-8 and lacks a little-endian UTF-16 byte-order mark. Refused files include non-ASCII text saved in a legacy encoding such as Windows-1252 or Shift-JIS, binary files, and UTF-8 with an invalid byte sequence. The [error message](</docs/en/errors#file-is-not-valid-utf-8>) tells Claude to make the change with a shell command that keeps the file’s encoding, or to ask you about converting the file to UTF-8 first. Claude can still replace a refused file by deleting it and creating it again with Write. The new file is UTF-8, so the original encoding is lost.
## EndConversation tool behavior
@@ -269,7 +270,7 @@
## Grep tool behavior
-The Grep tool searches file contents for patterns. Where Glob finds files by name, Grep finds lines inside them. On macOS, Linux, and WSL, Grep is absent by default under the same conditions as Glob. See Glob tool behavior for when both tools are available. Grep is built on [ripgrep](<https://github.com/BurntSushi/ripgrep>) and uses ripgrep’s regex syntax, not POSIX grep. Patterns that include regex metacharacters need escaping. For example, finding `interface{}` in Go code takes the pattern `interface\{\}`. A pattern, glob, or file type that ripgrep rejects returns an error that includes ripgrep’s diagnostic, so Claude can correct the input and search again. Before v2.1.208, Claude Code reported a rejected input as `No files found` instead of an error, even when the searched-for text existed in the target files. Three output modes control what comes back:
+The Grep tool searches file contents for patterns. On macOS, Linux, and WSL, Grep is absent by default under the same conditions as Glob. See Glob tool behavior for when both tools are available. Grep is built on [ripgrep](<https://github.com/BurntSushi/ripgrep>) and uses ripgrep’s regex syntax, not POSIX grep. Patterns that include regex metacharacters need escaping. For example, finding `interface{}` in Go code takes the pattern `interface\{\}`. A pattern, glob, or file type that ripgrep rejects returns an error that includes ripgrep’s diagnostic, so Claude can correct the input and search again. Before v2.1.208, Claude Code reported a rejected input as `No files found` instead of an error, even when the searched-for text existed in the target files. Three output modes control what comes back:
* `files_with_matches`: file paths only, no line content. This is the default.
* `content`: matching lines with file and line number. When the tool’s `offset` parameter points past the last match for a pattern that has matches, Grep returns `No entries at this offset`, so Claude widens or resets the offset instead of concluding the pattern doesn’t match.
@@ -347,7 +348,7 @@
* `insert`: add a new cell after the target. With no `cell_id`, the new cell goes at the start of the notebook. Requires `cell_type` set to `code` or `markdown`.
* `delete`: remove the target cell.
-NotebookEdit refuses a notebook file that doesn’t decode as UTF-8, under the same rule as Edit, and writes nothing. Permission rules use the `Edit(...)` path format. A rule like `Edit(notebooks/**)` covers NotebookEdit calls on files in that directory.
+NotebookEdit refuses to change some non-UTF-8 files, such as a Windows-1252 notebook. Permission rules use the `Edit(...)` path format. A rule like `Edit(notebooks/**)` covers NotebookEdit calls on files in that directory.
### Replacing a cell clears its saved outputs in the file
@@ -651,7 +652,7 @@
## Write tool behavior
-The Write tool creates a new file or overwrites an existing one with the full content provided. It doesn’t append or merge. Write also overwrites an existing file whose bytes don’t decode and saves the new content as UTF-8, as described under non-UTF-8 files. Whether Claude must read an existing file in the current conversation before overwriting it depends on the model and the file:
+The Write tool creates a new file or overwrites an existing one with the full content provided. Write refuses to overwrite some non-UTF-8 files, such as Shift-JIS text. Whether Claude must read an existing file in the current conversation before overwriting it depends on the model and the file:
* Claude Opus 4.6, Claude Haiku 4.5, and older models always require the read, so a Write to an unread existing file fails with an error.
* Newer models can overwrite a file they never read this session under the same conditions as read-before-edit: reading it wouldn’t need a permission prompt and the Read tool is available.
--- a/troubleshoot.md
+++ b/troubleshoot.md
@@ -272,6 +272,16 @@
* **The VS Code extension is older than 2.1.299** : the chat panel draws for mods from [extension version](</docs/en/vs-code#install-the-extension>) 2.1.299. Check the version in VS Code’s Extensions view and update the extension there.
* **The extension is older than 2.1.304 and the session doesn’t fetch feature flags** : update the extension, or run `claude` in VS Code’s integrated terminal instead. Sessions on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry skip the fetch. For the others that skip it, such as a [Claude apps gateway](</docs/en/claude-apps-gateway>) session, see [Features that need feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>).
+## An audio clip doesn’t play
+
+If [`$.audio.play`](</docs/en/plugins/mods/reference#look-up>) is silent in a [cloud session](</docs/en/claude-code-on-the-web>) in the Desktop app’s Code tab, check whether sound is off, whether the window has focus, and whether the call rejects:
+
+ * **Sound is off** : once the app receives a clip, a speaker button appears in the session’s title bar. If the button is crossed out, select it to turn on sound, then trigger the clip again.
+ * **The window doesn’t have focus, or a permission prompt or question is waiting** : a clip that starts then is skipped unless it loops. Click in the window or respond, then trigger the clip again.
+ * **The call rejects** : catch the error and pass `error.message` to [`$.ui.log`](</docs/en/plugins/mods/api#show-something-without-starting-a-turn>), then fix the cause it names. If the message includes `the app that shows this session can't play the clip`, convert the clip to a PCM WAV file of at most 1 MiB.
+
+If the clip stays silent after these checks, or the speaker button is missing, follow Find out why a mod does nothing.
+
## An edit or a value is lost
The mod runs, and a change you made or a value it kept isn’t there.
--- a/typescript.md
+++ b/typescript.md
@@ -1114,7 +1114,7 @@
Field| Required| Description
---|---|---
`description`| Yes| Natural language description of when to use this agent
-`tools`| No| Array of allowed tool names. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>). To preload Skills into the agent’s context, use the `skills` field rather than listing `'Skill'` here
+`tools`| No| Array of tool names available to this agent. If omitted, inherits every [tool available to subagents](</docs/en/sub-agents#available-tools>). To preload Skills into the agent’s context, use the `skills` field
`disallowedTools`| No| Array of tool names to explicitly disallow for this agent. MCP server-level patterns are also accepted: `mcp__server` or `mcp__server__*` removes every tool from that server, and `mcp__*` removes every MCP tool from any server
`prompt`| Yes| The agent’s system prompt
`model`| No| Model override for this agent. Accepts an alias such as `'fable'`, `'opus'`, `'sonnet'`, `'haiku'`, `'inherit'`, or a full model ID. `'inherit'` uses the model of the agent that spawned this one. When you omit `model`, Claude Code picks the model in the [subagent model order](</docs/en/sub-agents#choose-a-model>)
@@ -1779,7 +1779,7 @@
#### `startup_failure_reason`
-Why Claude Code refused to start, so your application can offer the fix instead of a retry. Claude Code sets it on the `error_during_execution` result it writes before exiting on a known startup failure. That result carries zeroed totals, and its `errors` array carries the failure message. The field is absent on every other result. Requires Agent SDK v0.3.274 or later. Set `CLAUDE_CODE_STARTUP_FAILURE_RESULTS` to `1` in `env` to receive this result for every `SDKStartupFailureReason` value. Without that variable, Claude Code writes the result only for these failures, and the rest end with stderr output, a non-zero exit, and no result message:
+Why Claude Code refused to start, so your application can offer the fix instead of a retry. Claude Code sets it on the `error_during_execution` result it writes before exiting on a known startup failure. That result carries zeroed totals, and its `errors` array carries the failure message. The field is absent on every other result. Requires Agent SDK v0.3.274 or later. Set `CLAUDE_CODE_STARTUP_FAILURE_RESULTS` to `1` in the `env` option to receive this result for every `SDKStartupFailureReason` value. When the variable is unset, check stderr and the exit code for a startup failure. You still receive the result in cases such as these:
* A resume that Claude Code stops because it [can’t return the session to its worktree](</docs/en/worktrees#the-session-resumes-outside-its-worktree>), with `worktree_unverified` or `worktree_resume_refused`. That section says which error carries which value.
* A refused `continue` of a conversation that a background session holds, with `session_held_by_background`. For a refused `resume` of such a conversation, Claude Code writes the result only when the variable is set.
@@ -3003,7 +3003,7 @@
metadata?: { source?: string };
};
-Asks the user clarifying questions during execution. See [Handle approvals and user input](</docs/en/agent-sdk/user-input#handle-clarifying-questions>) for usage details. When a user skips a question, describe the skip in `answers`. To tell a skip from an answer in `tool_use_result`, also set `unanswered` on that question’s entry in `updatedInput.annotations`. Set `unanswered` only when `SDKSystemMessage.capabilities` lists `ask_user_question_unanswered_v1`. This `canUseTool` return value sets `answers` and `unanswered`:
+Asks the user clarifying questions during execution. See [Handle approvals and user input](</docs/en/agent-sdk/user-input#handle-clarifying-questions>) for usage details. When a user skips a question, describe the skip in the `answers` field. To tell a skip from an answer in the `tool_use_result` field, also set the `unanswered` field on the skipped question’s entry in `updatedInput.annotations`. Set `unanswered` only when `SDKSystemMessage.capabilities` lists `ask_user_question_unanswered_v1`. This `canUseTool` return value sets `answers` and `unanswered`:
return {
behavior: "allow",
--- a/voice-dictation.md
+++ b/voice-dictation.md
@@ -58,7 +58,7 @@
* **Three words or more** : Claude Code submits the prompt automatically.
* **Fewer words** : the transcript is inserted but not submitted, so an accidental tap does not send a stray word.
-The three-word threshold counts words for languages written without spaces. Japanese, Chinese, and Thai transcripts count individual words, so they auto-submit in tap mode and in hold mode with `autoSubmit`. You tap once to start or resume a recording, and it can stop without a second tap:
+The three-word threshold counts words for languages written without spaces. Japanese, Chinese, and Thai transcripts count individual words, so they auto-submit in tap mode and in hold mode with `autoSubmit`. In [shell mode](</docs/en/interactive-mode#shell-mode-with-prefix>), Claude Code inserts the transcript and waits for you to press `Enter`, both in tap mode and with the `autoSubmit` setting on. Requires Claude Code v2.1.333 or later. You tap once to start or resume a recording, and it can stop without a second tap:
* **Start** : the first tap starts recording when the prompt input is empty, so you can still type spaces normally while composing a message. To add to a recording that stopped by itself, resume it.
* **Stop** : recording also stops when you send or edit the prompt. It stops by itself after 60 seconds with no recognized words or after 10 minutes total.
Show diff (145 lines)
--- a/vs-code.md
+++ b/vs-code.md
@@ -93,7 +93,7 @@
* `/plan` with a task, such as `/plan fix the auth bug`: switches to plan mode and starts planning that task.
* `/plan open`: when you’re already in plan mode, opens the plan file in the editor.
* **Edit automatically** : Claude makes edits without asking.
- * **Model** : select **Switch model…** from the command menu to change the model mid-session. You can also click the model name at the bottom of the prompt box to open the same picker. With Claude Code v2.1.284 or later, typing `/model` on its own in the prompt box opens the picker too. When the current model supports [effort levels](</docs/en/model-config#adjust-effort-level>), the picker also shows an **Effort** row and the model name button shows the selected level. When you pick a level other than `max`, Claude Code saves it for the current model as your default, under [`modelSettings`](</docs/en/settings-reference#modelsettings>) in your user settings; `max` applies to the current session only. The model name button and the **Effort** row require Claude Code v2.1.257 or later. When [dynamic workflows](</docs/en/workflows>) are enabled and the current model supports it, an **Ultracode** switch appears under the **Effort** row. Turn it on to have Claude plan a [workflow](</docs/en/workflows#let-claude-decide-with-ultracode>) for each substantive task in this session, at the selected effort level. While it’s on, the model name button shows `· Ultracode` after the level. The switch requires Claude Code v2.1.284 or later.
+ * **Model** : select **Switch model** from the command menu to change the model mid-session. You can also click the model name at the bottom of the prompt box to open the same picker. With Claude Code v2.1.284 or later, typing `/model` on its own in the prompt box opens the picker too. When the current model supports [effort levels](</docs/en/model-config#adjust-effort-level>), the picker also shows an **Effort** row and the model name button shows the selected level. When you pick a level other than `max`, Claude Code saves it for the current model as your default, under [`modelSettings`](</docs/en/settings-reference#modelsettings>) in your user settings; `max` applies to the current session only. The model name button and the **Effort** row require Claude Code v2.1.257 or later. When [dynamic workflows](</docs/en/workflows>) are enabled and the current model supports it, an **Ultracode** switch appears under the **Effort** row. Turn it on to have Claude plan a [workflow](</docs/en/workflows#let-claude-decide-with-ultracode>) for each substantive task in this session, at the selected effort level. While it’s on, the model name button shows `· Ultracode` after the level. The switch requires Claude Code v2.1.284 or later.
* **Command menu** : click `/` or type `/` to open the command menu. Options include attaching files and switching models. The Customize section includes entries such as MCP servers, commands, output styles, hooks, memory, instructions, permissions, and plugins. Items with a terminal icon open in the integrated terminal.
* To browse commands such as `/usage` or [`/remote-control`](</docs/en/remote-control>), select **Slash commands** in the Customize section. A dialog lists them with a filter box. Pick one to run it. Typing `/` in the prompt box still suggests commands inline. Requires Claude Code v2.1.257 or later. Typing `/skills` also opens this dialog. Each [skill](</docs/en/skills>) row shows its [visibility](</docs/en/skills#override-skill-visibility-from-settings>), such as **On** or **Name only**. Click the visibility to change it, except on rows marked **locked** , such as plugin skills. The `/skills` shortcut and the visibility controls require Claude Code v2.1.280 or later.
* Select **Output styles** in the Customize section to pick an [output style](</docs/en/output-styles>), including your custom styles. Requires Claude Code v2.1.257 or later. To create a custom style instead, select **Build a custom style** from the **Output styles** menu. Claude Code writes the [style file](</docs/en/output-styles#create-a-custom-output-style>) for you at the project or user level. Requires Claude Code v2.1.261 or later.
@@ -104,9 +104,9 @@
* Select **Status** in the Customize section, or type `/status`, to check the session’s Claude Code version, account, model, and MCP server details. Requires Claude Code v2.1.280 or later.
* Select **Sandbox** in the Customize section, or type `/sandbox`, to see whether Claude’s Bash commands run [sandboxed](</docs/en/sandboxing>). You can switch the sandbox mode and add [excluded commands](</docs/en/settings-reference#sandbox-excludedcommands>) there. Requires Claude Code v2.1.280 or later.
* Select **Claude in Chrome** in the Customize section, or type `/chrome`, to check and manage the [Claude in Chrome](</docs/en/chrome>) connection. Both require signing in with a claude.ai account. Requires Claude Code v2.1.280 or later.
- * Select **Export conversation** in the Context section, or type `/export`, to copy the conversation as plain text or save it to a file. Add a file name, such as `/export notes.txt`, to skip the dialog and choose where to save the file. Requires Claude Code v2.1.280 or later.
+ * Select **Export session** in the Context section, or type `/export`, to copy the conversation as plain text or save it to a file. Add a file name, such as `/export notes.txt`, to skip the dialog and choose where to save the file. Requires Claude Code v2.1.280 or later.
* The Settings section includes **Enable Remote Control for all sessions** , which sets [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) to control whether [new interactive sessions connect to Remote Control automatically](</docs/en/remote-control#enable-remote-control-for-all-sessions>). Requires Claude Code v2.1.203 or later. When you turn the toggle on or off in a VS Code window, the change isn’t limited to sessions you start afterwards. It also applies to the sessions already open in that VS Code window. If you turn it off, the open sessions disconnect. With Claude Code v2.1.261 or later, the change also reaches sessions open in your other VS Code windows.
- * The Settings section also includes **Focus view** , which hides tool calls, tool results, and thinking behind expandable rows, leaving your prompts and Claude’s responses. Toggle it there, with `Ctrl+Option+F` (Mac) / `Ctrl+Alt+F` (Windows/Linux), or from the Command Palette with **Claude Code: Toggle Focus view**. The change applies to every open session and persists across sessions. Requires Claude Code v2.1.221 or later. Claude’s latest to-do list stays visible, and so does the text a pending question from Claude is asking about; this requires Claude Code v2.1.225 or later. While Claude runs [subagents](</docs/en/sub-agents>), live progress rows with their latest activity appear under the tool-call group that started them. This requires Claude Code v2.1.269 or later.
+ * The Settings section also includes **Focus view** , which hides tool calls, tool results, and thinking behind expandable rows, leaving your prompts and Claude’s responses. Toggle it there, with `Ctrl+Option+F` (Mac) / `Ctrl+Alt+F` (Windows/Linux), or from the Command Palette with **Claude Code: Toggle Focus View**. The change applies to every open session and persists across sessions. Requires Claude Code v2.1.221 or later. Claude’s latest to-do list stays visible, and so does the text a pending question from Claude is asking about; this requires Claude Code v2.1.225 or later. While Claude runs [subagents](</docs/en/sub-agents>), live progress rows with their latest activity appear under the tool-call group that started them. This requires Claude Code v2.1.269 or later.
* To sign out of your Anthropic account, select **Sign out** in the Settings section, or type `/logout`. On a third-party provider, the menu doesn’t offer either. Requires Claude Code v2.1.277 or later.
* To report a bug, click **Report a problem** at the bottom of the menu, or type `/bug` or `/feedback` with an optional description that prefills the report. When you submit the report and you’re signed in to Anthropic on a first-party connection, Claude Code sends it to Anthropic. Requires Claude Code v2.1.229 or later. On a third-party provider, or without Anthropic credentials, nothing is sent. The dialog says so before you write. Submitting saves the report as a [local archive under `~/.claude/feedback-bundles/`](</docs/en/data-usage#telemetry-services>) with known API key and token patterns redacted. Saving the report on your computer requires Claude Code v2.1.284 or later. After the report is saved, the confirmation names the file and includes a **Show folder** button. Send that file to your Anthropic account representative or attach it to a support request. If your organization’s policy turns product feedback off, **Report a problem** doesn’t appear in the menu, and `/bug` and `/feedback` show a `Feedback is turned off by your organization's policy or this environment's settings.` notice instead of opening the report. With Claude Code v2.1.284 or later, if you set the `DISABLE_FEEDBACK_COMMAND` or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` environment variable, feedback is also turned off and opening the report shows that notice instead.
* **Side questions** : type `/btw` followed by a question to ask about your session [without adding to the conversation](</docs/en/interactive-mode#side-questions-with-%2Fbtw>). The answer opens in a panel beside the chat, where you can ask follow-up questions. Requires Claude Code v2.1.227 or later. The thread survives window reloads. Claude Code keeps the newest 20 exchanges and expires stored threads on the [`cleanupPeriodDays`](</docs/en/settings-reference#cleanupperioddays>) schedule, as long as Claude Code can [safely determine the retention period](</docs/en/claude-directory#cleaned-up-automatically>). To clear a thread, click the trash icon in the panel.
@@ -194,7 +194,7 @@
### Resume past conversations
-Click the **Session history** button at the top of the Claude Code panel to access your conversation history. You can search by keyword or browse by time. Click any conversation to resume it. If the conversation is already open in another tab of the current window, clicking it switches to that tab. When a notice says the conversation is still open somewhere else, see how to continue it in this window. If the conversation opens with no messages showing, see why a resumed conversation is blank at first. For more on resuming sessions, see [Manage sessions](</docs/en/sessions>).
+Click the **Session history** button at the top of the Claude Code panel to access your conversation history. You can search by keyword or browse by time. Click any conversation to resume it. If the conversation is already open in another tab of the current window, clicking it switches to that tab. When a notice says the session is still open somewhere else, see how to continue it in this window. If the conversation opens with no messages showing, see why a resumed conversation is blank at first. For more on resuming sessions, see [Manage sessions](</docs/en/sessions>).
* **Session titles** : new sessions receive AI-generated titles based on your first message.
* **Rename and archive** : hover over a session to reveal these actions. Rename to give it a descriptive title, or archive to move it to the **Archived sessions** group at the bottom of the list.
@@ -214,14 +214,14 @@
#### The conversation is still open somewhere else
-To continue in this window when a notice says the conversation is still open somewhere else, click **Open here anyway** after the step for your case:
+To continue in this window when a notice says the session is still open somewhere else, click **Open here anyway** after the step for your case:
* **You have nothing else open** : a Claude process from before the extension restarted may still have the conversation open. That process usually ends on its own within about 10 minutes, so wait that long and then click. If you click before it ends, the conversation is open in two places until it does.
* **You have the conversation open somewhere else** : close it there first, for example by exiting `claude` in a terminal or closing its tab in another VS Code window
When the conversation is still open in another Claude Code process, this notice appears in place of the prompt box:
- This conversation is still open somewhere else. Using it in two places at once can mix up its messages. If the extension restarted recently, a Claude process from before the restart may still be finishing. It usually ends on its own within about 10 minutes. This notice stays until you choose Open here anyway.
+ This session is still open somewhere else. Using it in two places at once can mix up its messages. If the extension restarted recently, a Claude process from before the restart may still be finishing. It usually ends on its own within about 10 minutes. This notice stays until you choose Open here anyway.
With `claudeProcessWrapper` set, the extension skips this check and opens the conversation directly.
@@ -268,9 +268,9 @@
The VS Code extension supports checkpoints, which track Claude’s file edits and let you rewind to a previous state. Hover over any message to reveal the rewind button, then choose from three options:
- * **Fork conversation from here** : start a new conversation branch from this message while keeping all code changes intact
+ * **Fork session from here** : start a new conversation branch from this message while keeping all code changes intact
* **Rewind code to here** : revert file changes back to this point in the conversation while keeping the full conversation history
- * **Fork conversation and rewind code** : start a new conversation branch and revert file changes to this point
+ * **Fork session and rewind code** : start a new conversation branch and revert file changes to this point
To fork from the latest message, type `/fork` in the prompt box once Claude finishes responding. Text you add, as in `/fork try the other approach`, waits unsent in the fork’s prompt box. Requires Claude Code v2.1.330 or later. For full details on how checkpoints work and their limitations, see [Checkpointing](</docs/en/checkpointing>).
@@ -310,7 +310,7 @@
* **Editor tab** : the conversation comes back with its tab.
* **Sidebar** : the conversation comes back if you sent a message or Claude responded in it within the last 10 minutes. If it doesn’t come back, resume the conversation from Session history.
-If a notice in place of the prompt box says the conversation is still open somewhere else, see how to continue the conversation here. If the messages stay blank at first, see why they’re blank and when they appear.
+If a notice in place of the prompt box says the session is still open somewhere else, see how to continue the conversation here. If the messages stay blank at first, see why they’re blank and when they appear.
#### Interrupted steps after a reload
@@ -526,19 +526,19 @@
Command| Shortcut| Description
---|---|---
Focus Input| `Cmd+Esc` (Mac) / `Ctrl+Esc` (Windows/Linux)| Toggle focus between editor and Claude
-Focus last message| -| Move keyboard focus to the newest message in the conversation, or to a waiting permission prompt, so you can read from there with the keyboard or a screen reader. Not available in terminal mode. Requires Claude Code v2.1.268 or later
+Focus Last Message| -| Move keyboard focus to the newest message in the conversation, or to a waiting permission prompt, so you can read from there with the keyboard or a screen reader. Not available in terminal mode. Requires Claude Code v2.1.268 or later
Open in Side Bar| -| Open Claude in the sidebar. To prefill a new conversation on Claude Code v2.1.330 or later, bind a key to `claude-vscode.sidebar.open` with `"args": { "prompt": "Review this file" }`
Open in Terminal| -| Open Claude in terminal mode
Open in New Tab| `Cmd+Shift+Esc` (Mac) / `Ctrl+Shift+Esc` (Windows/Linux)| Open a new conversation as an editor tab
Open in New Window| -| Open a new conversation in a separate window
-New Conversation| `Cmd+N` (Mac) / `Ctrl+N` (Windows/Linux)| Start a new conversation. Requires Claude to be focused and `enableNewConversationShortcut` set to `true`
+New Session| `Cmd+N` (Mac) / `Ctrl+N` (Windows/Linux)| Start a new conversation. Requires Claude to be focused and `enableNewConversationShortcut` set to `true`
Reopen Closed Session| `Cmd+Shift+T` (Mac) / `Ctrl+Shift+T` (Windows/Linux)| Reopen the most recently closed Claude session tab. Falls through to VS Code’s normal reopen-closed-editor when the last closed tab wasn’t a Claude session. Disable with `enableReopenClosedSessionShortcut`
Insert @-Mention Reference| `Option+K` (Mac) / `Alt+K` (Windows/Linux)| Insert a reference to the current file and selection (requires editor to be focused)
Add Cell to Chat| -| Add a notebook cell, its text output or error, and an @-mention of the notebook to the prompt box. Requires Claude Code v2.1.331 or later
Resolve Merge Conflicts| -| Put a conflict-resolution request in the prompt box. Click this command’s button in a conflicted file’s **Editor Toolbar** or on Source Control’s **Merge Changes**. Requires Claude Code v2.1.331 or later
Accept Change at Cursor| -| Accept the change at the cursor while reviewing a proposed edit one change at a time. Requires Claude Code v2.1.275 or later
Reject Change at Cursor| -| Revert the change at the cursor while reviewing a proposed edit one change at a time. Requires Claude Code v2.1.275 or later
-Toggle Focus view| `Ctrl+Option+F` (Mac) / `Ctrl+Alt+F` (Windows/Linux)| Hide or show tool activity in the conversation. Works while a Claude panel or sidebar is visible. On Windows/Linux, `Ctrl+Alt+F` opens VS Code’s Find instead while focus is in the Debug Console or a searchable list such as the Explorer. Focus an editor or the Claude panel and press it again. Requires Claude Code v2.1.221 or later
+Toggle Focus View| `Ctrl+Option+F` (Mac) / `Ctrl+Alt+F` (Windows/Linux)| Hide or show tool activity in the conversation. Works while a Claude panel or sidebar is visible. On Windows/Linux, `Ctrl+Alt+F` opens VS Code’s Find instead while focus is in the Debug Console or a searchable list such as the Explorer. Focus an editor or the Claude panel and press it again. Requires Claude Code v2.1.221 or later
Rename Session Tab| -| Rename the session in the active Claude tab. Requires Claude Code v2.1.257 or later
Add Session Tab to Group| -| Add the session in the active Claude tab to a session group you pick or create. Requires Claude Code v2.1.257 or later
Mark Session as Unread| -| Mark the session in the active Claude tab as unread in the sessions list. Requires Claude Code v2.1.257 or later
@@ -587,7 +587,7 @@
You configure the extension in VS Code’s extension settings and the Claude Code settings file:
- * **Extension settings** in VS Code: control the extension’s behavior within VS Code. Open with `Cmd+,` (Mac) or `Ctrl+,` (Windows/Linux), then go to **Extensions > Claude Code**. You can also type `/` and select **General config…** to open settings.
+ * **Extension settings** in VS Code: control the extension’s behavior within VS Code. Open with `Cmd+,` (Mac) or `Ctrl+,` (Windows/Linux), then go to **Extensions > Claude Code**. You can also type `/` and select **General config** to open settings.
* **Claude Code settings** in `~/.claude/settings.json`: shared between the extension and CLI. Use it for allowed commands, environment variables, hooks, and MCP servers. With Claude Code v2.1.283 or later, you can also use it as one input to the permission mode conversations start in. On earlier versions, you can do this only on Pro, Max, Ultra, and Team plans. [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>) lists the order. See [Settings](</docs/en/settings>) for details.
Add `"$schema": "https://json.schemastore.org/claude-code-settings.json"` to your `settings.json` to get autocomplete and inline validation for all available settings directly in VS Code.
@@ -610,6 +610,7 @@
`scrollToBottomOnSend`| `true`| Scroll the conversation to the bottom when you send a message. When off, the conversation stays where you left it. Requires Claude Code v2.1.275 or later
`pinPrompt`| `true`| Keep your message pinned at the top while you scroll through Claude’s reply. Requires Claude Code v2.1.330 or later
`showMessageTimestamps`| `true`| Show when each message was sent. A date line marks where the day changes. Requires Claude Code v2.1.284 or later. Before v2.1.290, the default was `false`
+`promptSuggestions`| `true`| Show a suggested next prompt in the chat panel’s prompt box after Claude replies. Requires Claude Code v2.1.326 or later
`spinnerVerbs`| `{"mode": "append", "verbs": []}`| Set the verbs the conversation spinner rotates through while a turn runs, with the same `mode` and `verbs` fields as the CLI’s [`spinnerVerbs`](</docs/en/settings-reference#spinnerverbs>).
`escapeStopsClaude`| `true`| Stop Claude mid-turn with `Esc`. When off, click **Stop** instead. `Esc` still closes menus and declines permission requests and questions. Requires Claude Code v2.1.330 or later
`contextUsageThreshold`| `50`| Show the context indicator when context usage exceeds this percentage. Requires Claude Code v2.1.330 or later
@@ -682,7 +683,7 @@
* **Tool steps** : “Claude” plus the tool name, such as “Claude, Bash”
* **Thinking blocks** : “Claude, thinking”
-Because the extension exposes the transcript as a labeled region, you can also move focus to the transcript itself with `Tab` and read it at your own pace. To move focus to the newest message or a waiting permission prompt instead, run **Claude Code: Focus last message** from the Command Palette. When a permission prompt option saves a permission rule or directory access, its label names where the approval is saved, such as “all projects” or “this session”. To change the destination:
+Because the extension exposes the transcript as a labeled region, you can also move focus to the transcript itself with `Tab` and read it at your own pace. To move focus to the newest message or a waiting permission prompt instead, run **Claude Code: Focus Last Message** from the Command Palette. When a permission prompt option saves a permission rule or directory access, its label names where the approval is saved, such as “all projects” or “this session”. To change the destination:
* With that option focused, press the `Left` or `Right` arrow key. The extension announces each destination as you move to it. The arrow keys require Claude Code v2.1.268 or later.
* Click the destination in the label.
@@ -697,7 +698,6 @@
MCP server config| Yes| Yes: add and manage servers with `/mcp` in the chat panel
Checkpoints| Yes| Yes
`!` Bash shortcut| Yes| No
-Tab completion| Yes| No
### Run CLI in VS Code
@@ -797,7 +797,7 @@
`Could not locate the Claude CLI on PATH`| [Could not locate the Claude CLI on PATH](</docs/en/errors#could-not-locate-the-claude-cli-on-path>)
`The connection to Claude Code ended before this message completed`| [The connection to Claude Code ended before this message completed](</docs/en/errors#the-connection-to-claude-code-ended-before-this-message-completed>)
`The Claude Code program for this computer, the <build> build, could not be found`| [The Claude Code program for this computer could not be found](</docs/en/errors#the-claude-code-program-for-this-computer-could-not-be-found>)
-`Failed to set model: Settings file is not valid JSON`| [Fix a broken settings file](</docs/en/settings#fix-a-broken-settings-file>)
+`Couldn’t set the model: Settings file is not valid JSON` / `Failed to set model: Settings file is not valid JSON`| [Fix a broken settings file](</docs/en/settings#fix-a-broken-settings-file>)
`claude` isn’t found in VS Code’s integrated terminal| Run CLI in VS Code
### Extension won’t install
@@ -826,7 +826,7 @@
2. Go to Keyboard, then Keyboard Shortcuts, then Game Controllers
3. Clear the Game Overlay checkbox
-Alternatively, rebind the extension to a different key: open the VS Code [Keyboard Shortcuts editor](<https://code.visualstudio.com/docs/configure/keybindings>) (`Cmd+K Cmd+S`), search for `Claude Code: Focus input`, and assign a new binding.
+Alternatively, rebind the extension to a different key: open the VS Code [Keyboard Shortcuts editor](<https://code.visualstudio.com/docs/configure/keybindings>) (`Cmd+K Cmd+S`), search for `Claude Code: Focus Input`, and assign a new binding. If the command appears twice in the results, assign the same keybinding to both rows so that it works both in the editor and on VS Code’s Welcome page.
### Ctrl+J adds a new line in the prompt box
--- a/web-quickstart.md
+++ b/web-quickstart.md
@@ -41,7 +41,7 @@
Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser.
-On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Organization settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code cloud sessions” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members.
+On Team and Enterprise plans, connecting github.com in the browser works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Organization settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, you might see “GitHub access is required for Claude Code cloud sessions” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>).
1
@@ -62,7 +62,7 @@
A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan:
* **Pro, Max, and Ultra** : you get an environment named **Default** automatically.
- * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead.
+ * **Team and Enterprise** : in some organizations, claude.ai/code creates **Default** for you. If you see a **Create your first cloud environment** form instead, keep the prefilled name and network access and click the **Create & finish** button to create the **Default** environment.
**Default** uses [**Limited** network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>).
--- a/worktrees.md
+++ b/worktrees.md
@@ -86,7 +86,7 @@
## Isolate subagents with worktrees
-Subagents can run in their own worktrees so parallel edits don’t conflict. Ask Claude to “use worktrees for your agents”, or make the isolation permanent for a [custom subagent](</docs/en/sub-agents#supported-frontmatter-fields>) by adding `isolation: worktree` to its frontmatter. This subagent in `.claude/agents/` always runs in its own worktree:
+Subagents can run in their own worktrees so parallel edits don’t conflict. Ask Claude to “use worktrees for your agents”, or add `isolation: worktree` to the frontmatter of a [custom subagent](</docs/en/sub-agents#supported-frontmatter-fields>). This subagent in `.claude/agents/` sets the field:
---
name: refactorer
@@ -171,21 +171,14 @@
### Reuse a worktree name
-If a worktree with the name you pass to `--worktree` already exists, Claude Code opens it instead of creating a new one. If Claude Code stops with an error containing `belongs to a different repository` or `is a leftover worktree`, see The worktree directory `belongs to a different repository`. With the default `"fresh"` base, a reopened worktree resets to the repository’s default branch instead of continuing at its old tip when all of the following hold:
+If a worktree with the name you pass to `--worktree` already exists, Claude Code opens it instead of creating a new one. If Claude Code stops with an error containing `belongs to a different repository` or `is a leftover worktree`, see The worktree directory `belongs to a different repository`. Claude Code reopens the worktree at its old tip or resets it to the repository’s default branch. A reset needs the default `"fresh"` base and all of these conditions:
* The [sandbox](</docs/en/sandboxing#filesystem-isolation>) isn’t restricting file writes in your session, and neither the worktree’s nor the main checkout’s `.claude` settings files enable the sandbox.
- * The worktree has no uncommitted changes or untracked files.
+ * The worktree has no uncommitted changes or untracked files that git reports. Gitignored files don’t count.
* It is still on the branch Claude Code created for it.
- * It has no commits of its own, or its pull request or merge request was merged and its remote branch deleted.
-
-Claude Code detects the merged case from git state alone: the remote branch the worktree pushed to no longer exists, and every commit in the worktree is already on the default branch. In every other case, Claude Code reopens the worktree at its old tip:
-
- * The worktree or session fails any of the conditions.
- * Claude Code can’t verify the worktree’s state.
- * `worktree.baseRef` is `"head"`.
- * The name is a pull request or merge request reference.
-
-If you use the sandbox with the `"fresh"` base, run `git fetch origin`, then pass a new name to `--worktree` to start from the latest default branch.
+ * It has no commits of its own, or its work was merged: its remote branch is deleted and its non-merge commits are already on the default branch.
+
+Claude Code skips the reset in other cases too, such as when it can’t verify the worktree’s state or the name is a pull request or merge request reference. If you use the sandbox with the `"fresh"` base, run `git fetch origin`, then pass a new name to `--worktree` to start from the latest default branch.
### Replace worktree creation with a hook
--- a/slack.md
+++ b/slack.md
@@ -1,4 +0,0 @@
-The earlier Claude Code in Slack is retired. In a workspace that isn’t connected to Claude Tag, `@Claude` replies that the workspace isn’t set up for Claude Tag.
-
- * **Team and Enterprise plans:** use [Claude Tag](<https://claude.com/docs/claude-tag/overview>) if it’s in your channel. If it isn’t, see [how to set it up](<https://claude.com/docs/claude-tag/admins/setup-overview>). To move a workspace from the earlier version, see [the migration guide](<https://claude.com/docs/claude-tag/admins/migrate-from-earlier>).
- * **Pro, Max, and Ultra plans:** Claude Tag isn’t available on individual plans. Start tasks in [Projects](</docs/en/claude-projects>) if your account has them, or in [cloud sessions](</docs/en/claude-code-on-the-web>).