Changes on
47 changes detected
--- a/admin-setup.md
+++ b/admin-setup.md
@@ -38,7 +38,7 @@
Windows: `C:\Program Files\ClaudeCode\managed-settings.json`| Medium| All
Windows user registry| `HKCU\SOFTWARE\Policies\ClaudeCode`| Lowest| Windows only
-Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](</docs/en/claude-apps-gateway>), or use one of the file-based or OS-level mechanisms instead. If your organization mixes providers, configure [server-managed settings](</docs/en/server-managed-settings>) for claude.ai users plus a [file-based or plist/registry fallback](</docs/en/managed-settings#delivery-mechanisms>) so other users still receive managed policy. The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel. By default, WSL reads only the Linux file path at `/etc/claude-code`. To extend your Windows registry and `C:\Program Files\ClaudeCode` policy to WSL on the same machine, set [`wslInheritsWindowsSettings: true`](</docs/en/settings-reference#wslinheritswindowssettings>) in either of those admin-only Windows sources. Whichever mechanism you choose, managed values take precedence over user and project settings, apart from a few security-sensitive [exceptions](</docs/en/settings#exceptions-to-managed-settings-precedence>). Array settings such as `permissions.allow` and `permissions.deny` merge entries from [lower-precedence settings](</docs/en/settings#lists-merge-instead-of-overriding>) into [the managed settings that apply](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), so developers can extend managed lists but not remove from them. For `fallbackModel`, `availableModels`, and [`modelPicker`](</docs/en/settings-reference#modelpicker>), the managed value replaces lower layers rather than merging.
+Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](</docs/en/claude-apps-gateway>), or use one of the file-based or OS-level mechanisms instead. If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, see [which settings take priority](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority>) in the Enterprise Admin Console guide. If your organization mixes providers, configure [server-managed settings](</docs/en/server-managed-settings>) for claude.ai users plus a [file-based or plist/registry fallback](</docs/en/managed-settings#delivery-mechanisms>) so other users still receive managed policy. The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel. By default, WSL reads only the Linux file path at `/etc/claude-code`. To extend your Windows registry and `C:\Program Files\ClaudeCode` policy to WSL on the same machine, set [`wslInheritsWindowsSettings: true`](</docs/en/settings-reference#wslinheritswindowssettings>) in either of those admin-only Windows sources. Whichever mechanism you choose, managed values take precedence over user and project settings, apart from a few security-sensitive [exceptions](</docs/en/settings#exceptions-to-managed-settings-precedence>). Array settings such as `permissions.allow` and `permissions.deny` merge entries from [lower-precedence settings](</docs/en/settings#lists-merge-instead-of-overriding>) into [the managed settings that apply](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), so developers can extend managed lists but not remove from them. For `fallbackModel`, `availableModels`, and [`modelPicker`](</docs/en/settings-reference#modelpicker>), the managed value replaces lower layers rather than merging.
### WSL sessions in Claude Code Desktop
@@ -70,7 +70,9 @@
[Customization lockdown](</docs/en/settings-reference#strictpluginonlycustomization>)| Block skills, agents, hooks, and MCP servers from user and project sources. Locking skills also stops the [skills your developers enable on claude.ai](</docs/en/skills#where-synced-skills-load>) from syncing| `strictPluginOnlyCustomization`
[Disable claude.ai sync](</docs/en/settings-reference#syncclaudeaiskills>)| Stop Claude Code from loading the [skills](</docs/en/skills#how-synced-skills-behave>) and [plugins](</docs/en/plugins/loading#synced-plugins>) your developers enable on claude.ai. If you turn off Skills for your organization on claude.ai, Claude Code stops syncing both, and on v2.1.273 or later it also removes the ones it already synced. To stop either one without turning Skills off, set its key to `false` in managed settings| `syncClaudeAiSkills`, `syncClaudeAiPlugins`
[Hook restrictions](</docs/en/settings-reference#allowmanagedhooksonly>)| Restrict which hooks run and restrict HTTP hook URLs; see [what runs under `allowManagedHooksOnly`](</docs/en/settings-reference#what-runs-under-allowmanagedhooksonly>) for the full effect list| `allowManagedHooksOnly`, `allowedHttpHookUrls`
-[Login enforcement](</docs/en/settings-reference#forceloginmethod>)| Restrict login to a specific method or Anthropic organization. The method restriction applies across the VS Code extension, Agent SDK, `claude setup-token`, and `/install-github-app`, and the terminal’s interactive login screen, reached by `/login` or first-run onboarding, pre-selects the method without enforcing it; Claude Code verifies the organization for claude.ai account logins in the terminal, VS Code extension, and Agent SDK, and doesn’t check it for Claude Console logins or for [gateway](</docs/en/claude-apps-gateway>) sign-in. Before v2.1.212, only terminal logins applied either key. When set, sessions authenticated by `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` are blocked at startup; cloud provider sessions aren’t affected unless one of those credentials, or an API key saved by an earlier Claude Console login, is also present| `forceLoginMethod`, `forceLoginOrgUUID`
+[Login method enforcement](</docs/en/settings-reference#forceloginmethod>)| Restrict login to a specific method. The restriction applies across the VS Code extension, Agent SDK, `claude setup-token`, and `/install-github-app`. Don’t rely on a `claudeai` or `console` value to block other logins at the terminal’s interactive login screen, reached by `/login` or first-run onboarding. Before v2.1.212, only terminal logins applied this key or `forceLoginOrgUUID`| `forceLoginMethod`
+[Login organization enforcement](</docs/en/settings-reference#forceloginorguuid>)| Restrict claude.ai logins to your organization in the terminal, VS Code extension, and Agent SDK. Don’t rely on this key to restrict the organization for Claude Console logins. Claude Code doesn’t check it for [gateway](</docs/en/claude-apps-gateway>) sign-in| `forceLoginOrgUUID`
+[Credentials the login keys block](</docs/en/authentication#restrict-login-to-your-organization>)| With either key set, sessions authenticated by `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` are blocked at startup. Cloud provider sessions aren’t affected unless one of those credentials, or an API key saved by an earlier Claude Console login, is also present| `forceLoginMethod`, `forceLoginOrgUUID`
[Provider restrictions](</docs/en/settings-reference#allowedproviders>)| Limit which API providers a machine may use. A session on a provider that isn’t listed is refused at startup, at login, and when it next contacts the API. Requires Claude Code v2.1.285 or later| `allowedProviders`
[Disable agent view](</docs/en/agent-view#how-background-sessions-are-hosted>)| Turn off `claude agents`, `--bg`, `/background`, and the on-demand supervisor| `disableAgentView`
[Configure the corporate launcher](</docs/en/corporate-launcher>)| Prefix the [background-agent supervisor](</docs/en/agent-view#how-background-sessions-are-hosted>), its workers, and the [other covered background processes](</docs/en/corporate-launcher#what-the-launcher-covers>) with a required corporate launcher instead of turning agent view off| `processWrapper`
@@ -96,12 +98,52 @@
### Connected GitHub accounts
-On Team and Enterprise plans, the GitHub section of [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control>) lists the GitHub organizations and personal accounts linked to your Claude organization through the [Claude GitHub App](<https://github.com/apps/claude>). Claude Code, [Claude Tag](<https://claude.com/docs/claude-tag/admins/configure-github>), and Claude Security share the list. Opening the page requires an [Owner role](</docs/en/server-managed-settings#access-control>) in your Claude organization. The Admin role can’t open it. Someone can link an account from the Git providers page or by connecting GitHub to Claude:
+On Team and Enterprise plans, the GitHub section of [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control>) lists the GitHub organizations and personal accounts linked to your Claude organization through the [Claude GitHub App](<https://github.com/apps/claude>). Claude Code, [Claude Tag](<https://claude.com/docs/claude-tag/admins/configure-github>), and Claude Security share the list. Opening the page requires an [Owner role](</docs/en/server-managed-settings#access-control>) in your Claude organization. The Admin role can’t open it. By default, someone can link an account from the Git providers page or by connecting GitHub to Claude:
* **Owner connection** : an Owner clicks **Connect** in that section, or **Add organization** once an account is connected, and installs the Claude GitHub App on a GitHub organization. Linking an organization this way requires an Owner of your Claude organization who also owns the GitHub organization.
* **Member connection** : when a member connects their GitHub account to Claude, for example while [setting up cloud sessions](</docs/en/web-quickstart#connect-github>), Claude links the GitHub accounts that member owns where the Claude GitHub App is already installed. That can include their personal account and GitHub organizations they own.
-A row marked **Not linked** comes from your own GitHub sign-in. It’s an account you can see on GitHub where the Claude GitHub App is installed. To unlink an account from your Claude organization, open its row’s menu and select **Unlink from this workspace**. Unlinking leaves the Claude GitHub App installed on GitHub, and the account is linked again the next time one of its owners connects GitHub to Claude. To keep it from being linked again, uninstall the Claude GitHub App from that account on GitHub. On Enterprise plans, the [Compliance API](<https://platform.claude.com/docs/en/api/compliance/activities/list>) activity types for linking and unlinking are `github_app_installation_linked` and `github_app_installation_unlinked`.
+A row marked **Not linked** can come from your own GitHub sign-in. That’s an account you can see on GitHub where the Claude GitHub App is installed. To unlink an account from your Claude organization, open its row’s menu and select **Unlink from this workspace**. The Claude GitHub App stays installed on GitHub. Unless you limit which accounts can be linked, the account is linked again the next time one of its owners connects GitHub to Claude. To keep it from being linked again, uninstall the Claude GitHub App from that account on GitHub.
+
+To stop new links to accounts you haven’t approved, or to keep an account unlinked without uninstalling the app, limit which accounts can be linked.
+
+On Enterprise plans, the [Compliance API](<https://platform.claude.com/docs/en/api/compliance/activities/list>) activity types for linking and unlinking are `github_app_installation_linked` and `github_app_installation_unlinked`.
+
+#### Limit which GitHub accounts can be linked
+
+To restrict which github.com organizations and personal accounts can be linked to your Claude organization, allow the ones you approve and turn on **Only allowed accounts can be linked**. For example, if you allow only `example-corp`, neither members nor Owners can link a member’s personal account. Accounts that are already linked keep working until you unlink them, even if they aren’t allowed. When an account is linked, Claude can act on its repositories as the Claude GitHub App, for features such as [Code Review](</docs/en/code-review>) and Claude Tag. Members can still connect GitHub to Claude while the setting is on. Their own cloud sessions use [each member’s GitHub access](</docs/en/claude-code-on-the-web#github-authentication-options>), so don’t rely on this setting to limit which repositories those sessions reach.
+
+1
+
+Allow organizations
+
+As an Owner on a Team or Enterprise plan, open the GitHub section of [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control>) in your browser and click **Choose organizations**. Select the organizations you approve in the table and click **Allow**. Include ones that are already linked, because they aren’t allowed automatically.
+
+2
+
+Allow other accounts by name
+
+To allow a personal account, or an organization that isn’t in the table, click **Allow by name** and enter its GitHub username or organization name. If prompted, connect your own GitHub account first. You don’t link any accounts by connecting from that prompt.
+
+3
+
+Turn on the setting
+
+Above the table, turn on **Only allowed accounts can be linked** , which is off by default.
+
+4
+
+Unlink accounts you don't approve
+
+When you unlink an account, features such as Code Review stop working on its repositories for your Claude organization. Scheduled tasks that a [Claude agent identity](<https://claude.com/docs/claude-tag/concepts/agent-identity>) runs on those repositories turn off. Members’ own [cloud scheduled tasks](</docs/en/routines>) stay on.To see the accounts that aren’t allowed, expand **Not allowed** for organizations and **Linked personal accounts** for personal accounts. Select the linked accounts to remove and click **Unlink** , or click **Allow** for the ones to keep.
+
+5
+
+Get allowed accounts linked
+
+If an allowed account shows **Not linked** , ask someone who owns it on GitHub to link it through an Owner or member connection. For a member connection, have them [install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on the account first.
+
+To take an account off the allowed list and keep its link, select it under **Allowed** and click **Disallow**. If you unlink an allowed account, it also comes off the allowed list.
## Set up usage visibility
--- a/agent-teams.md
+++ b/agent-teams.md
@@ -247,7 +247,7 @@
When one agent sends another a message over `SendMessage`, Claude Code tells the receiving agent the message came from another Claude session, not from you. A teammate can’t approve a permission prompt or supply consent on your behalf, and a teammate that was denied an action can’t relay it to another teammate to bypass the check. The same rules apply to a message that arrives from [one of your other Claude Code sessions](</docs/en/cross-session-messaging#how-a-session-treats-an-incoming-message>), outside the team entirely. In [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), the classifier applies two checks to messages between agents:
* It treats an approval claim relayed from another agent as untrusted input rather than confirmation from you.
- * It reviews 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>).
+ * 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>).
### Context and communication
--- a/agent-view.md
+++ b/agent-view.md
@@ -533,7 +533,7 @@
claude agents --permission-mode plan --model opus --effort high
-`--effort` here accepts the same values as the [top-level `--effort` flag](</docs/en/cli-reference#cli-flags>), including `ultracode`. `--agent` sets the [subagent](</docs/en/sub-agents>) used when a dispatch prompt doesn’t name one, either with `@name` or as the first word. It defaults to the [`agent` setting](</docs/en/settings-reference#agent>) if one is set, otherwise the built-in catch-all `claude` agent. Naming a subagent in the dispatch input overrides both. `claude agents` also accepts `--dangerously-skip-permissions` as shorthand for `--permission-mode bypassPermissions`, and `--allow-dangerously-skip-permissions` to make `bypassPermissions` available in each dispatched session’s `Shift+Tab` cycle without starting in that mode. Both match the [top-level CLI flags](</docs/en/cli-reference>). Pass `--restricted` to start every session you dispatch from the view in [restricted mode](</docs/en/cli-reference#cli-flags>), as if each were launched with the top-level `--restricted` flag. Requires Claude Code v2.1.248 or later. The active defaults appear in the footer below the dispatch input. A background session started in `bypassPermissions` mode needs your [acceptance of the bypass disclaimer](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) on record, since that mode lets a session you aren’t watching act without approval. Passing `--dangerously-skip-permissions` or `--permission-mode bypassPermissions` to `claude agents` shows the same disclaimer when you haven’t accepted it before, and accepting applies `bypassPermissions` to the sessions you launch from the view. Passing `--allow-dangerously-skip-permissions` shows the same disclaimer too, and accepting makes `bypassPermissions` available in the `Shift+Tab` cycle of those sessions without starting them in it.
+`--effort` here accepts the same values as the [top-level `--effort` flag](</docs/en/cli-reference#cli-flags>), including `ultracode`. `--agent` sets the [subagent](</docs/en/sub-agents>) used when a dispatch prompt doesn’t name one, either with `@name` or as the first word. It defaults to the [`agent` setting](</docs/en/settings-reference#agent>) if one is set, otherwise the built-in catch-all `claude` agent. Naming a subagent in the dispatch input overrides both. `claude agents` also accepts `--dangerously-skip-permissions` as shorthand for `--permission-mode bypassPermissions`, and `--allow-dangerously-skip-permissions` to make `bypassPermissions` available in each dispatched session’s `Shift+Tab` cycle without starting in that mode. Both match the [top-level CLI flags](</docs/en/cli-reference>). Pass `--restricted` to start every session you dispatch from the view in [restricted mode](</docs/en/cli-reference#cli-flags>), as if each were launched with the top-level `--restricted` flag. Requires Claude Code v2.1.248 or later. A background session started in `bypassPermissions` mode needs your [acceptance of the bypass disclaimer](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) on record, since that mode lets a session you aren’t watching act without approval. Passing `--dangerously-skip-permissions` or `--permission-mode bypassPermissions` to `claude agents` shows the same disclaimer when you haven’t accepted it before, and accepting applies `bypassPermissions` to the sessions you launch from the view. Passing `--allow-dangerously-skip-permissions` shows the same disclaimer too, and accepting makes `bypassPermissions` available in the `Shift+Tab` cycle of those sessions without starting them in it.
#### What persists across restarts
--- a/api.md
+++ b/api.md
@@ -145,7 +145,7 @@
## Run work in the background
-Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](</docs/en/plugins/mods/reference#limits>) on its own execution time. Time spent waiting on `next` or on a mods API call doesn’t count, except a `$.clock.sleep`. `$.clock.every` and `$.clock.after` take the place of `setInterval` and `setTimeout`, with the delay in milliseconds first: `$.clock.after(5000, fn)` calls `fn` once, five seconds from now. Each returns a timer with a `cancel()` method, and `await $.clock.now()` gives the time in milliseconds. This hook looks up a pull request’s checks once a minute and shows the result under the prompt. `summarize` is a function of your own that turns the command’s JSON output into a few words:
+Work that outlives one event, such as checking on something once a minute, runs on a timer you start from `session.start`. A hook itself runs for one event and has a [time limit](</docs/en/plugins/mods/reference#limits>) on its own execution time. `$.clock.every` and `$.clock.after` take the place of `setInterval` and `setTimeout`, with the delay in milliseconds first: `$.clock.after(5000, fn)` calls `fn` once, five seconds from now. Each returns a timer with a `cancel()` method, and `await $.clock.now()` gives the time in milliseconds. This hook looks up a pull request’s checks once a minute and shows the result under the prompt. `summarize` is a function of your own that turns the command’s JSON output into a few words:
on('session.start', async ($, e, next) => {
// Call the function every 60,000 milliseconds, starting one minute from now
@@ -337,10 +337,11 @@
`$.settings`| `read()` resolves to all settings, merged into one object. With `{ source }` or `{ key }`, it resolves to one source’s settings or one key’s value instead.
`$.session`| `messages()` returns the transcript as a list of `{ role, text, toolUses }`. Also the working directory, model, and more. [`usage()`](</docs/en/plugins/mods/reference#mods-api-methods>) returns context window use and plan limits.
`$.mcp`| `call` a tool on a connected MCP server
+`$.wasm`| `compile('./engine.wasm')` turns a file of up to 64 MiB into a module you pass to `WebAssembly.instantiate`. Write the path as a string literal, relative to the calling file. Requires Claude Code v2.1.326 or later.
Files, processes, and requests have a few rules of their own:
- * **Paths** : a relative path resolves against the working directory of the session, or of the subagent whose event the hook is handling
+ * **Paths** : in `$.fs` and `$.process`, a relative path resolves against the working directory of the session, or of the subagent whose event the hook is handling
* **`$.fs.list`** : returns one directory’s entries as `{ name, kind, size, isLink }` and isn’t recursive
* **`$.process.run`** : takes an argument list and uses no shell. It resolves to `{ exitCode, stdout, stderr }` whatever the exit code. It rejects if the program can’t start or is still running at the timeout, which is 30 seconds by default, so wrap it in `try` and `catch`.
* **`$.http.fetch`** : follows up to five redirects. On a redirect to a different origin, it keeps only the `accept`, `accept-language`, `content-type`, and `user-agent` request headers you set and drops the rest, so a request that depends on another header, such as `Authorization`, can fail after that redirect. The [limits](</docs/en/plugins/mods/reference#limits>) give its timeout and body sizes.
--- a/artifacts.md
+++ b/artifacts.md
@@ -126,15 +126,11 @@
Read the comments on https://claude.ai/code/artifact/5fbea6f3-... and make the changes the commenters ask for.
-If Claude tells you it can’t read comments, confirm your version, your session, and your feature-flag setting:
-
- * You’re running Claude Code v2.1.221 or later.
- * You’re not in your first session since you installed Claude Code or upgraded from a version before v2.1.221. In that [first session after an install or upgrade](</docs/en/env-vars#first-session-after-an-install-or-upgrade>), Claude might not be able to read comments yet; start a new session and ask again.
- * You haven’t turned feature-flag fetching off.
+Before v2.1.326, Claude needs [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) on to read or watch comments.
### Let Claude reply to comments on its own
-After your session publishes an artifact, Claude Code watches that artifact for comments. When someone who can edit the artifact sends a comment to Claude, it reaches your session right away, and Claude can read the thread and reply without you asking. You need Claude Code v2.1.228 or later. If you turned [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) off, Claude Code doesn’t watch for comments. Your [permission mode](</docs/en/permission-modes>) decides what Claude does when a sent comment arrives:
+After your session publishes an artifact, Claude Code watches that artifact for comments. When someone who can edit the artifact sends a comment to Claude, it reaches your session right away, and Claude can read the thread and reply without you asking. You need Claude Code v2.1.228 or later. Your [permission mode](</docs/en/permission-modes>) decides what Claude does when a sent comment arrives:
* **Claude replies on its own** : if you’re in a permission mode that lets Claude post the reply without asking you, Claude reads the thread and replies. You see `Auto-replied to comment thread on Artifact: <name>`.
* **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.
@@ -154,11 +150,11 @@
Build a dashboard artifact of our open pull requests that pulls the live list through my GitHub connector when the page loads.
-Claude declares which connectors the page may call as part of publishing, and the page can’t call connectors outside that declaration. Only connectors from your claude.ai account qualify: Claude names them in the declaration, and when someone views the page, each call runs through the viewing account’s own connection to that connector. Local MCP servers you configure in Claude Code, such as servers from `.mcp.json`, can supply data while Claude builds the page, but the published page can’t call them. The page fetches data when it loads and can refresh on an interval or when a viewer uses a refresh control on the page. Responses are cached in the viewer’s browser, so a reopened page renders from the cached responses immediately, then updates with fresh results.
+Use a connector from your claude.ai account. Local MCP servers you configure in Claude Code, such as servers from `.mcp.json`, can supply data while Claude builds the page, but the published page can’t call them. The page fetches data when it loads and can refresh on an interval or when a viewer uses a refresh control on the page. Responses are cached in the viewer’s browser, so a reopened page renders from the cached responses immediately, then updates with fresh results.
### How connector calls work for viewers
-When a published page calls a connector, the call uses the account of the person viewing the page, not the account of the person who published it:
+By default, when a published page calls a connector, the call uses the account of the person viewing the page, not the account of the person who published it:
* **Each viewer uses their own connectors** : calls go through the viewing account’s connected tools, so two people opening the same dashboard can see different data depending on what their accounts can access. The page never sees anyone’s credentials; claude.ai makes the calls on the page’s behalf.
* **Viewers approve access first** : claude.ai asks each viewer for permission before the page’s first connector call. A viewer who declines, or who hasn’t connected a connector the page uses, still sees the page without its live sections.
@@ -166,11 +162,13 @@
When you plan to share a connector-backed page, ask Claude to include a fallback message in each live section that names the connector it needs. A viewer who’s missing the connection then sees what to connect instead of an empty section. You can share a connector-backed page within your organization or publicly, as your plan and organization settings allow. Connector calls don’t run for a viewer who opens the public link without signing in to claude.ai, or from outside your organization. That viewer sees the page without its live sections.
+If you turn on [live sharing](<https://support.claude.com/en/articles/17454700-get-started-with-claude-data#h_9b12806a2a>) for a dashboard, the calls you share run through your account. Check what data the dashboard shows before you share it.
+
### The page shows no live data for a viewer
When a connector-backed page renders but its live sections stay empty for a viewer in your organization, work through these causes:
- * **The viewer hasn’t connected the connector** : connectors are per-account, so each viewer needs their own connection to every connector the page calls. They can add one at [claude.ai/customize/connectors](<https://claude.ai/customize/connectors>), then reload the page.
+ * **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.
@@ -181,7 +179,7 @@
Add a button that downloads this table as a CSV file.
-Claude declares the downloads capability as part of publishing, the same way it declares connectors.
+Claude declares the downloads capability as part of publishing.
## What you can build
--- a/authentication.md
+++ b/authentication.md
@@ -12,8 +12,9 @@
* **Claude Pro, Max, or Ultra subscription** : log in with your claude.ai account. Subscribe at [claude.com/pricing](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=authentication_pro_max>).
* **Claude for Teams or Enterprise** : log in with the claude.ai account your team admin invited you to.
* **Claude Console** : log in with your Console credentials. Your admin must have invited you first. You can sign in with or without creating an API key.
- * **Cloud providers** : if your organization uses [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>), set the required environment variables before running `claude`, or select **3rd-party platform** at the login prompt, which launches an interactive setup wizard for Bedrock and Vertex AI. No browser login is needed.
+ * **Cloud providers** : if your organization uses [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>), set the required environment variables before running `claude`. You can also select **3rd-party platform** at the login prompt, which launches an interactive setup wizard for Bedrock and Agent Platform.
* **Cloud gateway** : if your organization runs a self-hosted [Claude apps gateway](</docs/en/claude-apps-gateway>), sign in with corporate SSO through `/login` or [from VS Code](</docs/en/vs-code#sign-in-to-a-claude-apps-gateway>). The gateway-issued token is the session’s only credential.
+ * **Enterprise Admin Console** : if an Owner [turned on this sign-in](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#turn-on-sign-in-from-claude-code>) for your organization’s provider or gateway, run `claude auth login` in your shell and select your organization in the browser. To confirm, look for `Signed in to the organization` in the terminal. For the Claude Code version you need, see [Before you start](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#before-you-start>).
Admins can direct which login method developers use and require claude.ai logins to belong to a specific organization; see Restrict login to your organization. To log out and re-authenticate, type `/logout` at the Claude Code prompt. Logging out also resets your first-launch setup state, so the next time you run `claude` it walks you through login and setup again. If you’re having trouble logging in, see [authentication troubleshooting](</docs/en/troubleshoot-install#login-and-authentication>).
@@ -116,7 +117,7 @@
* **Sign in with your Console account** , labeled `(recommended)`: Claude Code keeps the OAuth token from that sign-in and stores it as an Anthropic profile. It creates no API key
* **Create an API key** , labeled `(legacy)`: Claude Code creates a Console API key for you and stores it with your other credentials
-In practice, the profile stores an OAuth login while an API key is a static credential. Claude Code refreshes the profile’s login automatically, and when refresh fails, requests fail with an [expired profile login error](</docs/en/errors#anthropic-profile-login-expired>) until you sign in again. You don’t get the choice on every machine. Claude Code creates an API key without asking in these cases:
+In practice, the profile stores an OAuth login while an API key is a static credential. Claude Code refreshes the profile’s login automatically, and when refresh fails, requests fail with an [expired profile login error](</docs/en/errors#anthropic-profile-login-expired>) until you sign in again. You won’t see the keyless option in these cases:
* You run against a cloud provider, such as [Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry](</docs/en/third-party-integrations>) or [Claude Platform on AWS](</docs/en/claude-platform-on-aws>)
* Any settings file sets `forceLoginOrgUUID`, or sets `forceLoginMethod` to `"claudeai"`
@@ -163,7 +164,11 @@
### Restrict login to your organization
-To require that developers’ claude.ai logins belong to a specific Anthropic organization, set [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>) and [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) in [managed settings](</docs/en/managed-settings>). Set `forceLoginOrgUUID` to your organization ID, shown in [claude.ai admin settings](<https://claude.ai/admin-settings/organization>) for Claude for Teams or Enterprise organizations. Claude Code reports an error for a claude.ai login to any other organization and exits at startup if the claude.ai credential in use belongs to an organization that isn’t listed. For Claude Console logins, Claude Code uses `forceLoginOrgUUID` to pre-select the organization on the Console sign-in page when you set it to a single Console organization ID, shown at [platform.claude.com/settings/organization](<https://platform.claude.com/settings/organization>). It doesn’t check which organization the resulting Console credential belongs to, at login or at startup. A developer who logged in with a Console account before you deployed the keys stays logged in, and that saved key is blocked on a machine that also requires the [gateway](</docs/en/claude-apps-gateway>) sign-in or in a session that selects a cloud provider. If you set `forceLoginOrgUUID` in any settings file, Claude Code stops offering the keyless Console sign-in in the sessions that file applies to and creates an API key instead. To direct developers to claude.ai sign-in instead, set `forceLoginMethod` to `"claudeai"`. On Claude Code v2.1.212 or later, every login path listed here applies `forceLoginMethod`. On the terminal’s interactive login screen, reached by `/login` or first-run onboarding, Claude Code pre-selects a `claudeai` or `console` method without enforcing it, so even with `forceLoginMethod` set to `"claudeai"`, a developer can still complete a Console login there. The paths differ on `forceLoginOrgUUID`:
+To require that developers’ claude.ai logins belong to a specific Anthropic organization, set [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>) and [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) in [managed settings](</docs/en/managed-settings>). Set `forceLoginOrgUUID` to your organization ID, shown in [claude.ai admin settings](<https://claude.ai/admin-settings/organization>) for Claude for Teams or Enterprise organizations. Claude Code reports an error for a claude.ai login to any other organization and exits at startup if the claude.ai credential in use belongs to an organization that isn’t listed. If you set `forceLoginOrgUUID` to a single Console organization ID, Claude Code pre-selects that organization on the Claude Console sign-in page. Find the ID at [platform.claude.com/settings/organization](<https://platform.claude.com/settings/organization>).
+
+At startup, Claude Code doesn’t check which organization a saved Console credential belongs to. Don’t rely on `forceLoginOrgUUID` to restrict the organization for Console logins. A developer already logged in to Console stays logged in after you deploy `forceLoginMethod` or `forceLoginOrgUUID`. However, a saved Console API key is blocked on a machine that also requires the [gateway](</docs/en/claude-apps-gateway>) sign-in or in a session that selects a cloud provider.
+
+If you set `forceLoginOrgUUID` in any settings file, Claude Code stops offering the keyless Console sign-in in the sessions that file applies to. To direct developers to claude.ai sign-in instead, set `forceLoginMethod` to `"claudeai"`. On Claude Code v2.1.212 or later, every login path listed here applies `forceLoginMethod`. On the terminal’s interactive login screen, reached by `/login` or first-run onboarding, Claude Code pre-selects a `claudeai` or `console` method. Don’t rely on either value to block other logins there. The paths differ on `forceLoginOrgUUID`:
* **Terminal,[VS Code extension](</docs/en/vs-code>), and Agent SDK logins**: verify `forceLoginOrgUUID` for claude.ai account logins
* **`claude setup-token` and `/install-github-app`**: enforce only `forceLoginMethod`, so they can mint a token in a different organization
@@ -244,7 +249,7 @@
6. Anthropic profile and federation credentials, the credentials that the `ant` CLI and Workload Identity Federation use. A profile that `ant auth login` wrote ranks here only when you name it in `ANTHROPIC_PROFILE`; otherwise it ranks below `/login`. See Anthropic profiles and federation credentials.
7. Subscription OAuth credentials from `/login`. This is the default for Claude Pro, Max, Ultra, Team, and Enterprise users.
-A signed-in [Claude apps gateway](</docs/en/claude-apps-gateway>) session sits outside this list: it is a provider selection like Amazon Bedrock or Google Cloud’s Agent Platform, and it outranks them. When a gateway session exists, the CLI authenticates with the gateway token even if `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX`, or `CLAUDE_CODE_USE_FOUNDRY` is set, and credential sources above such as the bearer token, API key, `apiKeyHelper`, and profiles are not used. If your machine’s [managed settings](</docs/en/managed-settings>) set [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>) to `"gateway"` or set [`forceLoginGatewayUrl`](</docs/en/settings-reference#forcelogingatewayurl>), and you don’t select a cloud provider through a variable such as `CLAUDE_CODE_USE_BEDROCK` or `CLAUDE_CODE_USE_VERTEX`, your session uses only the gateway sign-in. Claude Code skips the other credential sources and asks you to sign in with `/login`. See [Administrator policy requires a Cloud gateway sign-in](</docs/en/errors#administrator-policy-requires-a-cloud-gateway-sign-in>) for what you see with each leftover credential. Requires Claude Code v2.1.261 or later, or v2.1.265 or later on a machine that sets only `forceLoginGatewayUrl`. If you have an active Claude subscription but also have `ANTHROPIC_API_KEY` set in your environment, Claude Code uses the API key once you approve it. This can cause authentication failures if the key belongs to a disabled or expired organization. Run `unset ANTHROPIC_API_KEY` to fall back to your subscription, and check `/status` to confirm which method is active. When a login and an API key are both configured, `/status` marks the credential that isn’t in use. [Cloud sessions](</docs/en/claude-code-on-the-web>) always use your subscription credentials. If you set `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` in the cloud environment, it doesn’t override your subscription credentials.
+A signed-in [Claude apps gateway](</docs/en/claude-apps-gateway>) session sits outside this list: it is a provider selection like Amazon Bedrock or Google Cloud’s Agent Platform, and it outranks them. When a gateway session exists, the CLI authenticates with the gateway token even if `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX`, or `CLAUDE_CODE_USE_FOUNDRY` is set, and credential sources above such as the bearer token, API key, `apiKeyHelper`, and profiles are not used. If your organization sets your provider or gateway in the Enterprise Admin Console and you signed in to that organization, see [where your requests go](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#how-console-settings-reach-claude-code>) instead. If your machine’s [managed settings](</docs/en/managed-settings>) set [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>) to `"gateway"` or set [`forceLoginGatewayUrl`](</docs/en/settings-reference#forcelogingatewayurl>), and you don’t select a cloud provider through a variable such as `CLAUDE_CODE_USE_BEDROCK` or `CLAUDE_CODE_USE_VERTEX`, your session uses only the gateway sign-in. Claude Code skips the other credential sources and asks you to sign in with `/login`. See [Administrator policy requires a Cloud gateway sign-in](</docs/en/errors#administrator-policy-requires-a-cloud-gateway-sign-in>) for what you see with each leftover credential. Requires Claude Code v2.1.261 or later, or v2.1.265 or later on a machine that sets only `forceLoginGatewayUrl`. If you have an active Claude subscription but also have `ANTHROPIC_API_KEY` set in your environment, Claude Code uses the API key once you approve it. This can cause authentication failures if the key belongs to a disabled or expired organization. Run `unset ANTHROPIC_API_KEY` to fall back to your subscription, and check `/status` to confirm which method is active. When a login and an API key are both configured, `/status` marks the credential that isn’t in use. [Cloud sessions](</docs/en/claude-code-on-the-web>) always use your subscription credentials. If you set `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` in the cloud environment, it doesn’t override your subscription credentials.
#### Anthropic profiles and federation credentials
--- a/best-practices.md
+++ b/best-practices.md
@@ -319,7 +319,7 @@
* Sensitive data sent to external endpoints
* Actions that look driven by content Claude read rather than by you
-When auto mode blocks an action, you get a notification and the action shows up under **Recently blocked** in `/permissions`, where you can [approve the action so Claude may retry](</docs/en/auto-mode-config#review-denials>). After [three blocks in a row](</docs/en/permission-modes#when-auto-mode-falls-back>) (or twenty in total), auto mode pauses and goes back to asking you. None of this replaces your deterministic controls, because it runs _after_ them. Deny and ask rules and `PreToolUse` hooks apply before the classifier sees anything, so a deny rule blocks in auto mode exactly like it does everywhere else. The sandbox still confines the [shell commands it wraps](</docs/en/sandboxing#what-runs-outside-the-sandbox>).
+When auto mode blocks an action, you get a notification and the action shows up under **Recently blocked** in `/permissions`, where you can [approve the action so Claude may retry](</docs/en/auto-mode-config#review-denials>). After [three blocks in a row](</docs/en/permission-modes#when-auto-mode-falls-back>) (or twenty in total), auto mode pauses and goes back to asking you. The sandbox still confines the [shell commands it wraps](</docs/en/sandboxing#what-runs-outside-the-sandbox>).
You can also say `don't push until I've reviewed` in the conversation, and the classifier [treats that as a block signal](</docs/en/permission-modes#boundaries-you-state-in-conversation>). It’s still a model reading the transcript, and the sentence can get lost when the conversation compacts, so anything that matters belongs in a deny rule.
Show diff (165 lines)
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,162 @@
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.330
+
+November 20, 2026
+
+**Added**
+
+ * Added sign-in to organizations managed in Anthropic’s Enterprise Admin Console: after `claude auth login`, Claude Code applies the organization’s settings and uses its cloud provider or gateway
+ * Added easel, a built-in mod that draws charts when asked and under MCP metrics results, on Pro, Max and, where available, Team and Enterprise on macOS and Linux; turn automatic charts off in `/config`
+ * Added `CLAUDE_CODE_FULL_SIGN_IN_LINK=1` to print the full sign-in link, if the short one shows an error or a script reads values from it
+ * Self-hosted runner: Added `--start-dir` / `SELF_HOSTED_RUNNER_START_DIR` to have Claude start its work in a folder of a repository, while settings and hooks load as without it
+ * Added a notice in cloud and self-hosted runner sessions when a plugin marketplace can’t be fetched because its repository isn’t one of the session’s
+ * Self-hosted runner: Added a notice when Anthropic-managed git refuses a plugin’s own repository, naming the plugin and what to do
+ * Added `commandPrinted` to `claude plugin install --json` results, true when the plugin’s install command wrote to stderr, and `commandFailed` when it exited with an error, was killed or timed out
+ * Added `claude_code_self_hosted_runner_order_to_registered_seconds` to the self-hosted runner’s `/metrics`: seconds from work order issued to registration accepted, on orchestrator-spawned runners
+ * Added `claude_code_self_hosted_runner_order_to_first_session_seconds` to the self-hosted runner’s `/metrics`: seconds from work order to first session handed over, on runners started for a session
+ * [VSCode] Added `/fork` to fork a conversation after its last reply (anthropics/claude-code#69272)
+ * [VSCode] Added `/workflows`, which opens the agent map with running workflows
+ * [VSCode] Added the `claudeCode.escapeStopsClaude` setting; turn it off so Escape does not stop Claude (anthropics/claude-code#91536)
+ * [VSCode] Added the `claudeCode.pinPrompt` setting to let your message scroll away instead of staying pinned
+ * [VSCode] Added the `claudeCode.contextUsageThreshold` setting for when the context indicator shows (anthropics/claude-code#93036)
+ * [VSCode] Added a `prompt` argument to the “Open in Side Bar” command for keybindings and extensions
+ * [VSCode] Added Move up and Move down to a session group’s menu (anthropics/claude-code#98654)
+
+**Changed**
+
+ * Reverted 2.1.329’s removal of the automatic retry when `max_tokens` exceeds a model’s or gateway’s limit
+ * Changed recurring scheduled tasks and `/loop` to run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days
+ * Changed more `rm` commands aimed at the root, home, a top-level folder or the working folder to ask for approval; where nobody can answer, they’re refused
+ * Changed `deniedMcpServers` name entries to hide only the named claude.ai connector, not others at its URL; to block them all, deny its exact URL
+ * Changed `claude --teleport` in some setups to print the git commands for switching branch instead of running them; with `-p` it exits 1 until you switch
+ * Changed unrecognized model names containing “sonnet” or “haiku” to use the shorter system prompt, like other unrecognized names; `CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0` gives every model the full one
+ * Changed skills that Claude runs with a `model` setting, other than `context: fork` skills, to leave subagents, forks, compaction and `/recap` on the session’s model
+ * Changed a subagent’s model fallback to carry over: agents with no model and forks it then starts run on the fallback, and the agents they start use its Bedrock region
+ * Self-hosted runner: Changed `spawn-runner` hooks to start while earlier ones still run, up to `--hook-concurrency` per orchestrator (4 by default); set it to 1 if yours can’t run beside another
+ * Self-hosted runner: Changed Bash commands to skip the file diff when nothing needs it, so transcripts can lack it; set `bashEditDiffEnabled` to true in managed settings to get every diff
+ * Changed self-hosted runners to stop a session’s start at once, without trying other runners, when a checkout hook exits with status 108
+ * Changed prompt hooks to accept model aliases such as `haiku` or `sonnet` in their `model` field
+ * Changed `/design-sync`’s fallback build of the reference Storybook to use only a Storybook installed in the project
+ * Changed subagent progress summaries in terminal sessions signed in to a Claude apps gateway to be written from short notes instead of the whole conversation, using far fewer tokens
+
+Show 14 improvements
+
+ * Improved the claude.ai sign-in link shown by /login, `claude auth login` and `claude setup-token`: it is now much shorter
+ * Windows: Improved Grep and Glob speed by no longer starting a console host for each built-in ripgrep search on a local path
+ * Improved the speed of file diffs
+ * Improved `/config` search: most settings whose name starts with what you type come first, “effort” finds Model, and “dark” or “light” finds Theme
+ * Improved `/resume`: sessions where you only opened a screen such as `/model` and left are no longer listed
+ * Improved Reconnect in `/mcp` and `/plugin`: a server’s page now stays open, with the cause in view, when the server still fails or needs sign-in
+ * Improved the error on macOS when sandbox deny lists are too long: it now names the long lists and how to shorten them
+ * Improved `/plugin` in fullscreen mode: the page of a plugin with errors now starts with those errors
+ * Improved `/ultrareview`’s cost confirmation on Team and Enterprise plans: it now says how much of your monthly spend limit is left when that is less than a review usually costs
+ * Improved self-hosted runner sessions on Amazon Bedrock or Google Cloud’s Agent Platform to say so when they start on another default model because your account refused the first
+ * Windows: Improved the error when a session’s folder is on a drive Claude Code can’t verify: it says why, and whether retrying can help
+ * Improved Code Mode: Claude is now told how to look at images and PDFs
+ * Improved Code Mode: after Esc, “Interrupted” now shows under the stopped command in place of a red error
+ * Improved Code Mode: the terminal freezes for far less time after a subagent’s script makes thousands of tool calls
+
+Show 98 bug fixes
+
+ * Fixed Claude Code freezing for up to several minutes right after compacting a very long conversation
+ * Fixed WebFetch freezing the session for minutes on some pages, and returning an empty result for some others
+ * Fixed `ExitWorktree` and the worktree exit dialog deleting a worktree that another running Claude Code session was working in
+ * Fixed changes to user settings being lost when several Claude Code processes saved them at the same time
+ * Fixed `--continue` and `--resume` opening an empty session or failing when the last saved message had a missing or invalid timestamp
+ * Fixed the first prompt after a sleep of two minutes or more waiting three minutes on a connection that had died, on Linux and WSL
+ * Fixed turns failing with “JSON schema is invalid”, and session files growing by many megabytes, when many MCP tools have an input schema that the API refuses
+ * Linux: Fixed Bash commands waiting seconds and showing no file diff for the rest of a session in slow repositories with large ignored folders such as `node_modules`
+ * Windows: Fixed Bash commands running slower for the rest of a session after Git Bash took 10 to 60 seconds to start, on machines with no custom start-up files
+ * Fixed `/rewind` sometimes restoring an older version of a file when two queued prompts, or stacked skills, ran together right after a turn that changed it
+ * Fixed text and images added when approving a permission prompt being dropped when the approved command or tool then failed
+ * Fixed MCP resources from claude.ai connectors and plugin servers not being attached when @-mentioned in the terminal’s prompt box
+ * Fixed an MCP server that subagents declare being shut down when one of them finished, while other subagents or the session were still using it
+ * Fixed Claude in Chrome staying “not connected” after a brief connection problem, even though Chrome was open and signed in
+ * Fixed terminal sessions on Amazon Bedrock (Mantle) started with no model selected ignoring a pinned Opus model, and still calling an unavailable default model after announcing a fallback
+ * Fixed the rest of what you were typing being lost when a plan arrived in fullscreen mode
+ * Fixed claude.ai connectors with different names being dropped when they share a server URL (anthropics/claude-code#101856)
+ * Fixed plugins going missing from the installed list when several `claude plugin` commands ran at the same time
+ * Fixed task dependencies and metadata being lost when several task updates ran at the same time
+ * Fixed incomplete backups of `~/.claude.json` being kept, and displacing good ones, when the disk was full
+ * Fixed a long pause in Code Mode after code that read hundreds of files in projects with path-scoped rules or Read deny rules
+ * Fixed the built-in chart tool failing when Claude called it in Code Mode
+ * Fixed Code Mode ignoring an MCP tool’s request to end the turn from a script in auto and bypass permissions modes
+ * Fixed Code Mode in auto mode dropping earlier thinking and rewriting the prompt cache when a mod added a note after a script loaded a skill
+ * Fixed Code Mode not restoring a file that a script had read after Esc and `/compact`
+ * Fixed `/context` undercounting system tools in Code Mode before Claude’s first reply
+ * Fixed a stopped background subagent sometimes not staying stopped
+ * Fixed Claude still waiting for a background agent that was stopped just as it finished, in sessions run by an app or the SDK
+ * Fixed background sessions sometimes waking in their previous permission mode after approving a plan
+ * Remote Control: Fixed the note about background agents ended by a Stop from a phone or the web showing in the terminal as if you had typed it
+ * Remote Control: Fixed the mobile apps hiding the Diff and pull request buttons, or showing a stopped session as working, after turning it on mid-conversation
+ * Fixed environment variables written by a SessionStart hook being lost with `claude -p --continue`
+ * Fixed `claude -p` exiting 0 with no message when its output went to a file on a full disk: it now prints an error and exits 1, though a full NFS export may go unnoticed
+ * Fixed the system prompt keeping the earlier model’s instructions when the model was changed after `/context` but before the first message
+ * Fixed Claude sometimes replying to its commit attribution reminder and ending the turn early after the model changed mid-turn; it can still happen where managed settings set the PR attribution line
+ * Fixed Esc not ending an LSP tool call that was waiting for a slow or stuck language server
+ * Fixed LSP tool calls and diagnostics failing when several calls or edits arrived while a language server was still starting
+ * Fixed `/mcp` listing plugin servers as built-in: they now stand under “Plugin MCPs”, `--mcp-config` and built-in servers under “Other MCPs”, and a server’s page names its plugin
+ * Fixed an “MCP server blocked by enterprise policy: easel” warning showing at every start when an MCP allowlist or denylist excludes the built-in chart tool, which stays blocked
+ * Fixed `/stats` counting new activity in UTC days instead of your local time zone
+ * Fixed `/ultrareview` failing or reviewing the wrong code after the shell moved into another repository: it now stops and names both folders
+ * Fixed Grep reporting no matches when the pattern held a line break without multiline mode; it now reports the rejected pattern
+ * Fixed Jupyter notebooks saved with a byte order mark being reported as invalid JSON by the Read and NotebookEdit tools
+ * Fixed link reference definitions being dropped from CLAUDE.md and memory files that contain an HTML comment
+ * Fixed running Monitors keeping the earlier conversation in memory until they end
+ * Fixed some Claude Desktop sessions on third-party providers, other than scheduled tasks, ending a turn with “Prompt is too long” when a PDF larger than the context window followed a long conversation
+ * Fixed the choice between two user or project agent files declaring the same name depending on the order the file search listed them
+ * Fixed `claude daemon logs` never exiting inside a git repository when there is no log file
+ * Fixed markdown hiding a character or two after bold or italic text when a backslash came before an emoji later in the paragraph
+ * Fixed Edit refusing some valid hook commands in Claude settings files
+ * Fixed `Read` with a page range showing both halves of a scanned two-page spread on each of its pages
+ * Fixed line breaks and class stereotypes missing from Mermaid diagrams in HTML artifacts
+ * Fixed the Project instructions picker in `/config` showing only one of its four choices in a 24-row fullscreen window
+ * Fixed a subagent’s own subagents and forks running on the plan-mode model in plan mode under `opusplan` or `haiku`
+ * Fixed WebFetch page summaries ignoring the `/effort` level when a gateway refuses the small fast model
+ * Fixed `claude -p` on Google Cloud’s Agent Platform ignoring `--settings '{"fastMode":true}'` when the model comes from `ANTHROPIC_MODEL` or a settings file; such runs now bill at the fast mode price
+ * Fixed startup under `forceLoginOrgUUID` being refused after one temporary server error or dropped connection
+ * Fixed `claude mcp remove` giving no way forward for a claude.ai connector: it now says to turn it off in /mcp or remove it on claude.ai
+ * Fixed the /mcp “Connect on claude.ai” check saying “not connected” when claude.ai has a connector at the server’s URL without its query
+ * Fixed `/install-github-app` and `/design-login` showing a generic failure for an account on hold instead of the on-hold notice and appeal link
+ * Fixed a running MCP task being reported as stopped when you move a session to the background; the background session can now follow the task, but not if its server uses stdio or sets headers
+ * Fixed self-hosted runners ignoring a session until they exited, after its failure report was lost or the session was given back to the same runner
+ * Fixed self-hosted sessions losing the prompt cache and earlier thinking when the list of repositories a restart couldn’t prepare changed
+ * Self-hosted runner: Fixed tool calls behind a permission prompt vanishing with no result when a new runner took over the prompt, in sessions with telemetry off
+ * Fixed resumed self-hosted runner sessions starting without their pushed work in large repositories when `--push-outcome-on-release` is set
+ * Fixed self-hosted runner sessions being shown as working when Claude Code hangs at every start and `--startup-timeout-min` is from 2 to about 6
+ * Fixed `pkill -f` in self-hosted runner sessions on Linux ending its own shell with exit code 144, or the runner (needs a `pkill` with `--ignore-ancestors`)
+ * Fixed scheduled tasks on self-hosted runners having no tool to notify their owner when telemetry is off or a third-party provider is used
+ * Self-hosted runner: Fixed one slow `spawn-runner` hook keeping the orchestrator from claiming sessions for its free slots; it now polls every 4 to 6 seconds while a slot is free
+ * Self-hosted runner: Fixed a 403, such as an IP allowlist’s, logged as a bad secret or token: most such lines now lead with the server’s reason, so update log alerts that match the old words
+ * Fixed self-hosted runners’ warn mode for repository settings stopping at the first finding of most kinds: it now goes on, up to 50 for a session, and says if it stops early
+ * Self-hosted runner: Fixed runners that start on a full disk taking sessions and failing them; they now wait for room and exit 1 after a minute with no session, unless started from a work order
+ * Self-hosted runner: Fixed a failed start suggesting a retry when the runner’s machine had no git credentials; the error now says whom to ask and what to do if the repository is wrong
+ * Fixed the self-hosted runner’s `last_poll_age_seconds` reading 0 while the runner had never polled successfully
+ * Fixed the notice about a skipped scheduled task that names no organization: it now says to start Claude Code with `--resume`, because `/resume` inside a running session doesn’t run the task
+ * Fixed `claude plugin validate` wrongly warning that a mod’s `AbovePrompt` or `AbovePromptList` hook never runs in VS Code
+ * Fixed `/design-sync` deleting a file it had just uploaded when Claude Design stored that file under a changed name
+ * [VSCode] Fixed VS Code opening and focusing its terminal on every prompt of a connected terminal session
+ * [VSCode] Fixed copying a code block adding a trailing newline that ran the command on paste (anthropics/claude-code#96976)
+ * [VSCode] Fixed holding Enter on `/rewind` restoring files, and a double click on Remove or Delete removing a memory, MCP server or plugin marketplace, without confirmation
+ * [VSCode] Fixed Enter on a question card sending your earlier answer instead of picking the focused one, and arrow keys not working after an “Other” answer; answered questions reopen on your pick
+ * [VSCode] Fixed a held-down Enter key sending a half-written message or running a typed slash command
+ * [VSCode] Fixed Cmd+A, C, V, X and Z not working in the rename box and dialogs on macOS
+ * [VSCode] Fixed Ctrl+F and Ctrl+P not moving the caret in the message box on macOS
+ * [VSCode] Fixed the Accept and Reject buttons doing nothing on a proposed diff moved to a new window
+ * [VSCode] Fixed Accept and Reject Proposed Changes showing over the chat, the terminal tab and other files; they now show only on the proposed diff
+ * [VSCode] Fixed a slow-starting Claude tab taking the keyboard away from the file you had gone on typing in
+ * [VSCode] Fixed unsaved changes and new problems being missed on macOS and Linux for files whose path contains `#`, `?` or `%20`, such as a `C#` folder
+ * [VSCode] Fixed whole-line selections counting one line too many in the selection chip, in @-mentions and in what Claude is told, and file links leaving out the last line of a range
+ * [VSCode] Fixed a conversation forked in the panel re-running an old, unanswered prompt by itself after a window reload
+ * [VSCode] Fixed a forked conversation running the original conversation’s `/loop` schedules a second time
+ * [VSCode] Fixed /clear giving no sign that the session still runs without a newly trusted folder’s CLAUDE.md and settings
+ * [VSCode] Fixed dialogs closing, and losing typed text, when a text selection was dragged past their edge
+ * [VSCode] Fixed advisor calls showing as “Unsupported content type” (anthropics/claude-code#73499, anthropics/claude-code#64158, anthropics/claude-code#90471, anthropics/claude-code#73637)
+ * [VSCode] Fixed the session list showing no status for the sidebar chat’s session (anthropics/claude-code#93898)
+ * [VSCode] Fixed the plan preview’s Add Comment button vanishing after a fast double click on a word
+ * [VSCode] Fixed long lines cut off in the Edit Notebook Cell row, permission rules squeezed in a narrow panel, hard-to-see question card marks, and menus moving the chat after a declined trust prompt
+ * [VSCode] Fixed signing in to an account on hold showing a generic failure instead of the on-hold notice and appeal link
2.1.329
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -141,13 +141,13 @@
Pull a cloud session into your terminal using any of these:
- * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first. [`--resume`](</docs/en/sessions#resume-a-session>) reopens a conversation from this machine’s local history and doesn’t list cloud sessions.
+ * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. [`--resume`](</docs/en/sessions#resume-a-session>) reopens a conversation from this machine’s local history and doesn’t list cloud sessions.
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
* **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository.
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation into your terminal.
+When you teleport a session, Claude verifies you’re in the correct repository and loads the conversation into your terminal. To get the session’s branch too, check the requirements and run `claude --teleport`.
If Claude Code has [compacted](</docs/en/context-window#what-survives-compaction>) the cloud session, which it does automatically in a long session, the earlier messages it summarized aren’t copied to your terminal. Claude continues from the summary. To read the original messages, scroll up in the cloud session on claude.ai or in the Claude mobile app.
@@ -155,13 +155,13 @@
#### Teleport requirements
-Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
+Check these requirements before you teleport a session.
Requirement| Details
---|---
-Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
+Clean git state| Commit your changes first, or stash them when Teleport prompts you.
Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
-Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
+Branch available| The branch from the cloud session must have been pushed to the remote. If `claude --teleport` prints `was not checked out`, stop any commands Claude is still running in your checkout, then run the git commands it prints in your own terminal.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
@@ -227,7 +227,11 @@
`/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. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+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.
+
+#### Use subagents and agent teams
+
+[Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` load automatically. For a project, check [which threads load them](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>). [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
### Plugin suggestions in the conversation
@@ -389,6 +393,7 @@
`Attaching to an existing cloud session is not enabled for your account.`| You ran `--cloud <session-id>` without `-p`. Send the message with `claude -p "your message" --cloud <session-id>`.
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
+`--fork-session can't fork a cloud session, so nothing was opened or sent.`| To message the existing cloud session, run `claude -p "your message" --cloud <session-id>` without `--fork-session`.
### Environment expired
--- a/claude-projects.md
+++ b/claude-projects.md
@@ -38,7 +38,7 @@
* **Threads** : the workers. Each is a separate session with its own context window that does one piece of work and reports back to the conversation when it finishes. A cloud thread works on its own branch and opens a pull request when the work calls for one.
* **What every cloud thread starts with** :
* The project’s repositories and files, plus its instructions and memory
- * The `CLAUDE.md` in each of the project’s repositories, but not the repositories’ skills, `.claude/settings.json`, or `.mcp.json`
+ * The `CLAUDE.md` in each of the project’s repositories, but not the repositories’ `.mcp.json` servers or `.claude/settings.json` hooks, permission rules, and `env`
* The connectors on your claude.ai account
* A cloud environment that sets its network access, environment variables, network secrets, and installed tools
* **The Overview pane** : where you see all the threads at once and which of them need you.
@@ -188,10 +188,10 @@
Click a thread in the conversation or its row in Overview to open the thread in the Overview pane. From there you can:
- * Read what Claude did, step by step.
+ * Read Claude’s messages and see what the thread is working on now.
* Steer the task by writing in the thread’s own message box. A message there goes straight to that thread, while a follow-up in the project conversation reaches it only when Claude matches the follow-up to that thread.
* Answer a permission prompt the thread is waiting on.
- * Interrupt the thread with **Stop** , which replaces the send button while the thread is working, or by pressing Esc.
+ * Interrupt the thread with **Stop** , which replaces the send button while the thread is working.
### Choose models and let Claude manage context
@@ -290,7 +290,7 @@
### Decide which repositories to add
-The repositories you add to a project come with their code and `CLAUDE.md` in every cloud thread, but not their skills, `.claude/settings.json`, or `.mcp.json`. Repositories you don’t add are still within reach: a cloud thread can add one to itself when its task needs it. Most projects use both:
+Every cloud thread starts with the code and `CLAUDE.md` of the repositories you add to the project, but not their `.mcp.json` servers or `.claude/settings.json` hooks, permission rules, and `env`. Repositories you don’t add are still within reach: a cloud thread can add one to itself when its task needs it. Most projects use both:
* **Add it to the project** , in the **New project** dialog, in **Project settings > Environment**, or by asking Claude in the conversation to add it to the project. Every cloud thread from then on clones it and starts with its `CLAUDE.md` loaded, whether or not the task touches it.
* **Leave it off and let threads add it when needed.** A cloud thread whose task needs a repository the project doesn’t have can add it to itself, and a note in the thread says it was added to this thread only. The clone happens partway through the task, so that repository’s `CLAUDE.md` wasn’t there when the thread started. The next thread starts without it. A repository added this way needs the same prerequisites as a project repository: the Claude GitHub App installed on it and push access from your GitHub account.
@@ -307,19 +307,26 @@
### What threads pick up from your repositories
-Cloud threads load each repository’s `CLAUDE.md` instructions but not its skills, `.mcp.json` servers, or `.claude/settings.json`, whether the project has one repository or several.
+Cloud threads can load each repository’s skills, agents, and commands. A cloud thread starts with each repository’s `CLAUDE.md` instructions, but not the repositories’ `.mcp.json` servers or `.claude/settings.json` hooks, permission rules, and `env`.
In each repository| In a cloud thread
---|---
-`CLAUDE.md`, `.claude/CLAUDE.md`, and `.claude/rules/` at the repository root| Loaded from every repository when the thread starts. `CLAUDE.md` files in subdirectories and [path-specific rules](</docs/en/memory#path-specific-rules>) aren’t loaded
-Skills under `.claude/skills/`| Not loaded. Enable the skill for your claude.ai account instead, as Get skills, plugins, connectors, and tools into threads describes
-Agents and commands under `.claude/`| Not loaded. To use them, run the thread on your own computer
+`CLAUDE.md`, `.claude/CLAUDE.md`, and `.claude/rules/` at the repository root| Loaded from every repository when the thread starts. [Path-specific rules](</docs/en/memory#path-specific-rules>) don’t load at the start
+Skills, agents, and commands under `.claude/`| Loaded from every repository, except in threads that skip them
MCP servers in `.mcp.json`| Not loaded. Use the connectors on your claude.ai account instead, as Get skills, plugins, connectors, and tools into threads describes
Plugins enabled in `.claude/settings.json`| Not loaded. Add the plugin in **Project settings > Plugins** instead
Permission rules in `.claude/settings.json`| Not applied. Approve tool calls inside the thread, as Unblock a thread waiting on approval describes, or run the thread on your own computer
Hooks in `.claude/settings.json`| Not run. To use your hooks, run the thread on your own computer
`env` in `.claude/settings.json`| Not applied. Set environment variables in the cloud environment
+#### Threads that skip repository skills
+
+A cloud thread doesn’t load its repositories’ skills, agents, or commands in cases such as these:
+
+ * **Older thread** : if the thread started before October 1, 2026, ask Claude to start a new one
+ * **Repository name that starts with a dot** : if any of the thread’s repositories has one, such as `.github`, run the thread as a Remote Control session. For skills, you can also enable them for your claude.ai account.
+ * **Self-hosted environment** : [add your skills, agents, and commands to the runner image](</docs/en/self-hosted-environments-configuration#how-each-session%E2%80%99s-config-is-assembled>)
+
### Choose an environment for threads
Every new cloud thread starts in the project’s [cloud environment](</docs/en/cloud-environments>). The environment sets which domains threads can reach, which environment variables they have, which network secrets are added to their requests, and what the setup script installs before Claude starts. Cloud threads use a default Anthropic-hosted environment until you pick one in **Project settings > Environment**. If cloud threads need to reach an internal API or a private package registry, or need a token your machine normally holds, change the environment rather than the project: see [Network access](</docs/en/cloud-environments#network-access>), [Add network secrets](</docs/en/cloud-environments#add-network-secrets>), and [Setup scripts](</docs/en/cloud-environments#setup-scripts>).
@@ -328,7 +335,7 @@
Cloud threads don’t have the skills, MCP servers, plugins, and tools installed only on your machine. A thread that Claude runs on your machine through [Remote Control](</docs/en/remote-control>) uses what’s installed there. To make each of these available to cloud threads:
- * Skills: enable them for your claude.ai account, and cloud threads load the [skills you enable there](</docs/en/skills#skills-in-cowork-and-cloud-sessions>), apart from [some threads in a self-hosted environment](</docs/en/self-hosted-environments-configuration#how-each-session%E2%80%99s-config-is-assembled>). Skills committed to a repository’s `.claude/skills/` don’t load in cloud threads.
+ * Skills: enable them for your claude.ai account, and cloud threads load the [skills you enable there](</docs/en/skills#skills-in-cowork-and-cloud-sessions>), apart from [some threads in a self-hosted environment](</docs/en/self-hosted-environments-configuration#how-each-session%E2%80%99s-config-is-assembled>). For skills committed to a repository, see What threads pick up from your repositories.
* Plugins: add them in **Project settings > Plugins**; they load into each new cloud thread. Plugins that a repository declares in its `.claude/settings.json` [don’t load in cloud threads](</docs/en/cloud-environments#what-carries-over-from-your-setup>).
* MCP servers: cloud threads get their MCP tools from the connectors on your claude.ai account, which are MCP servers you connect once at [claude.ai/customize/connectors](<https://claude.ai/customize/connectors>). Every cloud thread can use all of them with no per-project setup. The project conversation itself has no connectors, so send work that needs one as a task for a cloud thread. [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>) lists the rules for cloud sessions and the settings that turn connectors off.
* Command-line tools and packages: install them in the environment’s [setup script](</docs/en/cloud-environments#setup-scripts>).
@@ -415,7 +422,7 @@
### A thread looks stuck
-Claude doesn’t post each step a thread takes, so a thread that shows as running with no new messages in the project conversation is usually still working. A new cloud thread also provisions its [cloud environment](</docs/en/cloud-environments>) before Claude begins, so its first update takes a moment. Open the thread to read its transcript. If the thread is waiting on a permission prompt, answer it there.
+Claude doesn’t post each step a thread takes, so a thread that shows as running with no new messages in the project conversation is usually still working. A new cloud thread also provisions its [cloud environment](</docs/en/cloud-environments>) before Claude begins, so its first update takes a moment. Open the thread to see what it’s working on. If the thread is waiting on a permission prompt, answer it there.
### Threads guessed or stalled instead of asking
--- a/cloud-environments.md
+++ b/cloud-environments.md
@@ -234,7 +234,7 @@
### What carries over from your setup
-Of the repository configuration in this table, a cloud thread in a [project](</docs/en/claude-projects>) loads only the repository root’s `CLAUDE.md`, `.claude/CLAUDE.md`, and `.claude/rules/` files that aren’t [path-specific](</docs/en/memory#path-specific-rules>). See [What threads pick up from your repositories](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>).
+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>).
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>).
--- a/code-mode.md
+++ b/code-mode.md
@@ -28,7 +28,7 @@
* **Resuming** : you can resume a Code Mode session only in the terminal, with Code Mode on
* **Auto mode** : auto mode’s classifier reviews the code, not each tool call
* **Long-running code** : unless code can run in the background, you wait for it to finish, and it stops after ten minutes
- * **Hooks** : you can see tool calls refused when a `PreToolUse` hook can’t run or times out
+ * **Hooks** : you can see tool calls refused when a `PreToolUse` hook doesn’t finish, for example after a timeout
* **Unavailable features** : you can’t use [Remote Control](</docs/en/remote-control>), [Claude in Chrome](</docs/en/chrome>), or [computer use](</docs/en/computer-use>)
* **Moving the session** : you can’t move the session to the Desktop app or turn it into a [background session](</docs/en/agent-view>), and `/fork` can’t start a background copy
@@ -38,7 +38,7 @@
* **Account** : a Claude subscription or Console account. You can’t use Code Mode through a gateway, Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, Microsoft Foundry, or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>)
* **Organization** : your organization doesn’t use the [HIPAA configuration](</docs/en/hipaa-setup>) or [zero data retention](</docs/en/zero-data-retention>)
* **Model** : Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2
- * **Surface** : an interactive `claude` session in a terminal. Code Mode doesn’t work with `-p`, the Agent SDK, the VS Code panel, the Desktop app, or cloud sessions
+ * **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
* **Installation** : the [native build](</docs/en/setup>) of Claude Code
* **Windows** : [Git for Windows](<https://git-scm.com/downloads/win>) is installed
@@ -280,12 +280,15 @@
### Tool call refused by a hook
-If Claude reports a refused tool call, ask it for the error text. These errors mean that a `PreToolUse` hook didn’t give a decision, which refuses the call even when [`onFailure`](</docs/en/hooks#block-the-action-when-a-hook-fails>) is unset:
-
- * **`the hook failed`** : on a call from code, your hook couldn’t start, was killed, exited with 126, 127, or a code above 128, or returned an HTTP error or invalid output. Fix the hook
- * **`the hook did not finish`** : your hook timed out on a call from code, or on any other tool call once Claude has run code in the session. Raise the hook’s [`timeout`](</docs/en/hooks#common-fields>)
-
-To let calls go ahead when a `command` or `http` hook fails or times out, set `"onFailure": "continue"` on it. If a `command` hook exits with an ordinary code such as 1, the call goes ahead unless you set `"onFailure": "block"`.
+If Claude reports a refused tool call, ask it for the error text. These errors mean that your [`PreToolUse` hook](</docs/en/hooks#pretooluse>) didn’t give a decision:
+
+ * **`the hook did not finish`** : your hook timed out, or your agent hook ended without a decision. After a timeout, raise the hook’s [`timeout`](</docs/en/hooks#common-fields>). For an agent hook that gives no decision, move the check to a `command` hook. You can see this error on calls from code, and on other tool calls after Claude runs code in the session
+ * **`the hook failed`** : on a call from code, your hook couldn’t start, was killed, exited with 126, 127, or a code above 128, or returned an HTTP error or invalid output. Fix the hook. You can see this error before v2.1.329. On later versions it’s rare: one cause is [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) turning off during a session, after Claude has run code
+
+On v2.1.329 or later, expect a call from code to run by default after a hook failure other than `the hook did not finish`. To choose whether the call runs, use a `command` or `http` hook and set [`onFailure`](</docs/en/hooks#block-the-action-when-a-hook-fails>) on it:
+
+ * **To stop the call after a timeout or failure** : set `"onFailure": "block"`. Do this for a hook that guards calls
+ * **To let the call run after a timeout or failure** : set `"onFailure": "continue"`
### Code output withheld by a hook
--- a/commands.md
+++ b/commands.md
@@ -122,7 +122,7 @@
`/subtask <task>`| Spawn a [forked subagent](</docs/en/sub-agents#fork-the-current-conversation>): a background subagent that inherits the full conversation and works on the task while you keep working. Its result returns to this conversation when it finishes. To copy the conversation into a separate background session instead, use `/fork`. When [agent view is turned off](</docs/en/agent-view#turn-off-agent-view>), `/subtask` isn’t available and `/fork` spawns the forked subagent instead
`/tasks`| View and manage background work in the current session, including subagents that have finished. Also available as `/bashes`
`/team-onboarding`| Generate a team onboarding guide from your Claude Code usage history. Claude analyzes your sessions, commands, and MCP server usage from the past 30 days. It produces a markdown guide a teammate can paste as a first message to get set up quickly. For claude.ai subscribers on Team and Enterprise plans, also returns a share link teammates can open directly in Claude Code
-`/teleport`| Pull a [cloud session](</docs/en/claude-code-on-the-web#from-cloud-to-terminal>) into this terminal. Opens a picker, then fetches the branch and conversation. Also available as `/tp`. Requires a claude.ai subscription
+`/teleport`| Pull a [cloud session](</docs/en/claude-code-on-the-web#from-cloud-to-terminal>) into this terminal. Opens a picker, then loads the conversation. Also available as `/tp`. Requires a claude.ai subscription
`/terminal-setup`| [Install a Shift+Enter keybinding for newlines](</docs/en/terminal-config#enter-multiline-prompts>) in VS Code, Cursor, Devin Desktop, Alacritty, or Zed. In Apple Terminal, [turn off the audible bell](</docs/en/terminal-config#enable-option-key-shortcuts-on-macos>) instead. In iTerm2, [turn on clipboard access so that `/copy` works](</docs/en/terminal-config#enable-option-key-shortcuts-on-macos>)
`/theme`| Change the color theme. Includes an `auto` option that matches your terminal’s light or dark background, light and dark variants, colorblind-accessible (daltonized) themes, ANSI themes that use your terminal’s color palette, and any [custom themes](</docs/en/terminal-config#create-a-custom-theme>) from `~/.claude/themes/` or plugins. Select **New custom theme…** to create one
`/tui [classic|fullscreen]`| Set the terminal UI renderer and relaunch into it. `fullscreen` enables the [flicker-free alt-screen renderer](</docs/en/fullscreen>). `default`, or `classic` on v2.1.327 or later, selects the classic renderer. With no argument, prints the active renderer
--- a/desktop.md
+++ b/desktop.md
@@ -296,9 +296,9 @@
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
-Computer use is a research preview on macOS and Windows that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
-
-Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
+Computer use in the Code tab is available on macOS and Windows and requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
+
+Check that computer use is on in Settings before you ask Claude to control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
@@ -316,8 +316,6 @@
### Enable computer use
-Computer use is off by default.
-
1
Update the desktop app
@@ -361,7 +359,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full access| Click, type, drag, and use keyboard shortcuts| Most other apps
-Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turned computer use on includes these options:
+Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turn computer use on includes these options:
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -498,6 +496,8 @@
To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
### 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](<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.
@@ -2037,7 +2037,7 @@
* **macOS** : click **Claude** in the menu bar, then **About Claude**
* **Windows** : click **Help** , then **About Claude**
-Click the version number to copy it to your clipboard.
+Click the version number to copy it to your clipboard. To get new versions sooner on Claude Desktop v4.29.0 or later, set **Release channel** to **Latest**. Go to **Settings > This computer > System**, or to **Settings > Desktop app** if the menu doesn’t list **This computer**. For where the setting is available and what to expect when you switch back to **Stable** , see [Choose a release channel](<https://support.claude.com/en/articles/10065433-install-claude-desktop#h_ac219b3bde>).
#### Claude Code version in the Code tab
--- a/devcontainer.md
+++ b/devcontainer.md
@@ -44,7 +44,7 @@
What you see at the authentication prompt depends on your provider:
* **Anthropic** : sign in through a browser with your Claude or Anthropic Console account
- * **[Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry](</docs/en/third-party-integrations>)** : Claude Code uses your cloud provider credentials, with no browser prompt
+ * **[Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry](</docs/en/third-party-integrations>)** : Claude Code uses your cloud provider credentials
For cloud providers, pass credentials into the container as environment variables through `containerEnv`, a Codespaces secret, or your cloud’s workload identity rather than mounting credential files from the host. See [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>) for the credential chain Claude Code reads. See [Choose your API provider](</docs/en/admin-setup#choose-your-api-provider>) to decide which path fits your organization.
--- a/env-vars.md
+++ b/env-vars.md
@@ -277,6 +277,7 @@
`CLAUDE_CODE_FORCE_TERMINAL_IMAGES`| Set to `1` to draw [mod `Image` elements](</docs/en/plugins/mods/reference#elements>) as pictures when your terminal draws kitty graphics protocol images with Unicode placeholders and you still see an `Image`’s dimmed `alt` text. See [which terminals draw an `Image` and where not to set this variable](</docs/en/plugins/mods/gallery#image-and-client>)
`CLAUDE_CODE_FORK_SUBAGENT`| Controls fork mode, which is on by default and lets Claude start [forks](</docs/en/sub-agents#fork-the-current-conversation>) on its own. While fork mode is on, Claude also can’t [wait for a subagent](</docs/en/sub-agents#run-subagents-in-foreground-or-background>) in interactive terminal, VS Code, or desktop sessions on your machine. Set to `0` to turn fork mode off. For versions, see [Turn fork mode off](</docs/en/sub-agents#turn-fork-mode-on-or-off>)
`CLAUDE_CODE_FORWARD_SUBAGENT_TEXT`| Set to `1` to emit [subagent](</docs/en/sub-agents>) text and thinking blocks in `claude -p --output-format stream-json` output, the same behavior as the [`--forward-subagent-text`](</docs/en/cli-reference#cli-flags>) flag. Use the variable when a harness invokes `claude` and can’t pass the flag itself. Unlike the flag, which exits with an error outside non-interactive mode with stream-json output, the variable is ignored there so that nested invocations keep working when it’s set process-wide. Requires Claude Code v2.1.211 or later
+`CLAUDE_CODE_FULL_SIGN_IN_LINK`| Set to `1` to print the full claude.ai login URL instead of a short one. Use it when the short URL shows an error or your script reads values from the URL. Set it in your shell or user settings. Requires Claude Code v2.1.330 or later
`CLAUDE_CODE_GATEWAY_HINT_HEADERS`| Set to `1` to send the [gateway hint headers](</docs/en/llm-gateway-protocol#gateway-hint-headers>), such as `x-claude-code-request-class` and `x-claude-code-compaction`, on a custom proxy or a third-party provider such as Amazon Bedrock or Claude Platform on AWS. Set to `0` to stop sending them on every connection, including a direct connection to the Anthropic API, where Claude Code sends them by default. Requires Claude Code v2.1.273 or later
`CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS`| Timeout in milliseconds for the [gateway model discovery](</docs/en/llm-gateway-protocol#model-discovery>) request that `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY` turns on (default: `3000`). Raise it when your gateway needs longer than three seconds to answer `/v1/models` at startup. Takes plain digits only; `0`, negative values, and other spellings keep the default. Requires Claude Code v2.1.269 or later
`CLAUDE_CODE_GIT_BASH_PATH`| Windows only: path to the Git Bash executable (`bash.exe`). Use when Git Bash is installed but not in your PATH. If the path doesn’t exist or the file isn’t named `bash.exe`, `sh.exe`, `bash`, or `sh`, Claude Code ignores the variable and auto-detects Git Bash as if it were unset, logging a warning visible with `--debug`. Before v2.1.219, Claude Code exited at startup when the path didn’t exist, and used any existing file as the shell without checking that it was bash or sh. See [Windows setup](</docs/en/setup#set-up-on-windows>)
@@ -553,7 +554,6 @@
* 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#mcp-tasks-that-run-on-the-server>)
* Turn on [Code Mode](</docs/en/code-mode#requirements>)
- * Read or reply to [comments on an artifact](</docs/en/artifacts#collect-comments-on-an-artifact>)
* Have Claude read [another organization’s public artifact](</docs/en/artifacts#read-an-artifact-shared-with-you>)
* 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 (116 lines)
--- a/errors.md
+++ b/errors.md
@@ -96,6 +96,14 @@
`Not signed in to the Cloud gateway — run /login.`| Authentication
`Administrator policy requires a Cloud gateway sign-in on this machine`| Authentication
`Managed settings on this machine configure a Cloud gateway sign-in; run interactive /login to authenticate.`| [`claude auth login`](</docs/en/cli-reference#cli-commands>)
+`You chose an organization that is managed in Anthropic's Enterprise Admin Console`| [Turn on sign-in from Claude Code](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#turn-on-sign-in-from-claude-code>)
+`The organization's settings won't apply on this computer`| [Which settings take priority](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority>)
+`no usable organization sign-in` / `no readable organization sign-in`| [When a sign-in ends](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#when-a-sign-in-ends>)
+`the session no longer runs under that sign-in` / `This Claude Code process ran under your organization` / `After a sign-in to your organization, only a new session sends requests`| [Log in to Claude Code](</docs/en/authentication#log-in-to-claude-code>)
+`This conversation ran under organization` / `This conversation ran under more than one organization`| [Log in to Claude Code](</docs/en/authentication#log-in-to-claude-code>)
+`Claude Code could not read the managed settings that apply to this computer, which may require a sign-in to Anthropic`| [`enforceAnthropicSignIn`](</docs/en/settings-reference#enforceanthropicsignin>)
+`This computer's managed settings require a sign-in to Anthropic` / `This computer's settings require a sign-in to Anthropic that this app cannot use`| [Require the sign-in](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#require-the-sign-in-with-managed-settings>)
+`This computer's managed settings set the Microsoft Foundry key or token in use` / `This computer's managed settings could not be read, so the Microsoft Foundry key or token in use may be theirs`| [Managed settings that conflict with the console](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference#managed-settings-that-conflict-with-the-console>)
`Failed to authenticate: OAuth session expired and could not be refreshed`| Authentication
`Login reached its time limit · Please run /login` / `Failed to authenticate: this login reached its time limit`| Authentication
`Failed to authenticate: your claude.ai login expired`| [After the login expires](</docs/en/authentication#after-the-login-expires>)
@@ -106,6 +114,7 @@
`Could not refresh your login: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full`| Authentication
`Failed to refresh OAuth token: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full`| Authentication
`Your account is on hold and can't use Claude Code. View details or appeal: https://claude.ai/restricted`| Authentication
+`This account is on hold and can't sign in` / `This Claude Design account is on hold` / `The account signed in to Claude Design is on hold`| Open the link in the message to view details or appeal.
`Your account is on hold and can't sign in to Claude Code. View details or appeal: https://claude.ai/restricted`| Authentication
`Anthropic profile login expired · Re-authenticate your Anthropic profile`| Authentication
`Login expired · Run /login to sign in again, or re-authenticate your Anthropic profile`| Authentication
@@ -235,10 +244,12 @@
`Error: bypassPermissions not supported in restricted mode`| [Restricted mode](</docs/en/permission-modes#restricted-mode-refuses-bypasspermissions>)
`Session was started with bypass permissions, so plan mode won't ask before most edits or commands`| [Plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>)
`Cloud sessions cannot be created from a --restricted session`| Command-line errors
+`--fork-session can't fork a cloud session, so nothing was opened or sent`| [Errors when sending to a cloud session](</docs/en/claude-code-on-the-web#errors-when-sending-to-a-cloud-session>)
`Cloud sessions are disabled by your organization's policy`| Command-line errors
`Cloud sessions use your claude.ai login`, at the end of a policy denial that names a credential| Command-line errors
`Couldn't verify your organization's policy for cloud sessions`| Command-line errors
`Cloud sessions aren't available:` followed by why your organization’s policy couldn’t be loaded| Command-line errors
+`Branch '<branch>' was not checked out`| [Teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>)
`Cloud sessions aren't available with this Console sign-in. They need a claude.ai sign-in.`| [Unable to get organization UUID](</docs/en/claude-code-on-the-web#unable-to-get-organization-uuid>)
`Cloud sessions need a claude.ai sign-in`| [Unable to get organization UUID](</docs/en/claude-code-on-the-web#unable-to-get-organization-uuid>)
`Nothing was stashed: "<path>" is now a folder in place of a tracked file or link` / `are now folders in place of tracked files or links`| Command-line errors
@@ -272,6 +283,7 @@
`Can't read .mcp.json: it isn't a regular file or is larger than 2097152 bytes`| Command-line errors
`MCP server "<name>" was not saved to` / `was not removed from`| Command-line errors
`MCP server "<name>" may not have been saved` / `may not have been removed`| Command-line errors
+`Names that start with "claude.ai " are claude.ai connectors, which Claude Code can't remove` / `is a claude.ai connector, Claude Code can't remove it`| [Disable claude.ai connectors](</docs/en/mcp#disable-claude-ai-connectors>)
`Server rejected the Authorization header minted by the configured headersHelper`| Command-line errors
`This server (Java MCP SDK 0.17.0 or older) rejected Claude Code's elicitation capability`| Command-line errors
`Error: MCP tool <name> (passed via --permission-prompt-tool) not found`| Command-line errors
@@ -292,6 +304,7 @@
`Diff is too large for ultrareview` / `PR #<N> is too large for ultrareview`| Command-line errors
`Could not find merge-base with <branch>`| Command-line errors
`Your checkout has no branches (detached HEAD only)`| Command-line errors
+`but its shell has moved to`, from `/code-review ultra` or `/ultrareview`| Start a new session in the repository you want reviewed.
`Ultrareview clones <owner>/<repo> in the cloud with the GitHub account connected to your Claude account, and none is connected`| Command-line errors
`Your connected GitHub account can't see <owner>/<repo>`| Command-line errors
`The GitHub App preflight failed transiently (network or service hiccup) — retry in a moment to start from GitHub instead`| Command-line errors
@@ -378,6 +391,7 @@
`subagent_type is required: the general-purpose agent is not available in this session`| Tool errors
`Error: this write left the memory index at MEMORY.md at ..., over its ... read limit`| Tool errors
`Sandbox is required but failed to initialize: <reason>`| [Sandboxing troubleshooting](</docs/en/sandboxing#commands-refused-with-sandbox-is-required>)
+`too long for macOS, which limits their total size` / `one path in the sandbox's rules is longer than macOS accepts`| Follow the fix in the message, such as shortening a path list or removing unused git worktrees.
`Sandbox is required (sandbox.failIfUnavailable) and stopped being available in this session: <reason>`| [Sandboxing troubleshooting](</docs/en/sandboxing#commands-refused-with-sandbox-is-required>)
`pkill: refusing to run`| Tool errors
`Sandbox settings can't be changed here` / `Sandbox settings are overridden by a higher-priority configuration`| [Sandboxing troubleshooting](</docs/en/sandboxing#sandbox-settings-overridden>)
@@ -396,6 +410,7 @@
`Refusing to write through symlink: <path>` / `Refusing to write into symlinked directory: <path>`| Tool errors
`Refusing to write <path>: where it leads on disk could not be determined` / `Refusing to read <path>: where it leads on disk could not be determined`| Tool errors
`Refusing to search <path>: a path one of its Read deny rules is written through changed while the search was being prepared` / `Refusing to search <path>: it could not be opened`| Tool errors
+`can't be verified and was not run` / `Claude can't use tools in its working folder` / `Claude couldn't use a tool in its working folder`| If it keeps happening, start a new session in the place the message suggests.
`its permission check expired before it ran (too many concurrent file operations)` / `ripgrep was found only by name on PATH`| Tool errors
`The search failed, so this is not a "no matches" result: matches may exist`| Tool errors
`task output swap refused (tasks dir moved or linked)`| Tool errors
@@ -436,6 +451,7 @@
`kept <id> — its worktree is still at <path>`| Background session errors if the message’s next line mentions unpushed commits, otherwise [What deleting a session removes](</docs/en/agent-view#what-deleting-a-session-removes>)
`kept <id> — <n> unpushed commits on <branch>`| Background session errors
`kept <id> — worktree has commits that are not pushed anywhere`| Background session errors
+`Worktree kept at` with `another Claude Code session (...) is running in it`| [Clean up worktrees](</docs/en/worktrees#clean-up-worktrees>)
`terminal host process died — press Enter to restart` / `This session's terminal host process died`| Background session errors
`Session isn't responding` / `Press enter again to restart this session — it isn't responding`| Background session errors
`Session <id> was stopped while the respawn was in flight`| Background session errors
@@ -455,6 +471,7 @@
`Claude Code did not finish starting`| Wrapper and IDE errors
`The connection to Claude Code ended before this message completed`| Wrapper and IDE errors
`Could not locate the Claude CLI on PATH`| Wrapper and IDE errors
+`Claude Code could not be started from <command>: it is the <system> build, and this computer needs the <build> build`| If you set [`claudeCode.claudeProcessWrapper`](</docs/en/vs-code#extension-settings>), point it at a program built for `<build>`. Otherwise, install the VS Code extension package for `<build>`.
`The Claude Code program for this computer, the <build> build, could not be found`| Wrapper and IDE errors
`Restored the code, but skipped N files`| Rewind warnings and errors
`No files were restored: N files failed (backup missing, or the file could not be updated)`| Rewind warnings and errors
@@ -496,6 +513,7 @@
`Managed settings contain invalid entries, including PreToolUse/PermissionRequest hooks that are NOT loaded; fix or remove each entry:`| Configuration warnings
`otelHeadersHelper failed; telemetry is not being exported. See /status: ...`| Configuration warnings
`apply_flag_settings: nothing in this request was applied and earlier settings stay in force. Fix or remove these invalid settings and send it again`| [`applyFlagSettings()`](</docs/en/agent-sdk/typescript#applyflagsettings>)
+`Invalid JSON provided to --settings` / `Invalid JSON provided to the settings option`| [`--settings` flag](</docs/en/cli-reference#cli-flags>) or [`settings` option](</docs/en/agent-sdk/typescript#options>)
`"crossSessionInbound" must be one of "accept", "hold", "refuse"`| Configuration warnings
`API Error: ANTHROPIC_FOUNDRY_RESOURCE must be a Foundry resource name`| Configuration warnings
`headersHelper not run — this workspace has no persisted trust`| Configuration warnings
@@ -2736,9 +2754,9 @@
Error: Claude Code could not save all of this session's transcript under /Users/you/.claude because the disk is full (ENOSPC). If you resume this session, part of the conversation may be missing. Free up space on that disk before the next run.
-With text or `json` output, the run exits with code 1, and the answer has already been printed. With `stream-json` output, the run keeps its usual exit code, and the answer still arrives. **What to do:**
-
- * **`the disk is full (ENOSPC)`** : before your next run, free up space on the disk that holds the path in the message
+The run exits with code 1 when the output format is text or `json`, or when the message names `output sent to a file`. Other `stream-json` runs keep their usual exit code. **What to do:**
+
+ * **`the disk is full (ENOSPC)`** : before your next run, free up space on the disk that holds your output file or the path in the message
* **`your disk quota is used up (EDQUOT)`** : before your next run, free up space or ask for a larger quota
### Directory couldn’t be resolved to a real location
@@ -3077,7 +3095,7 @@
### Skill, command, or hook over the 4,000,000-character limit
-A message with `more than 4,000,000 characters` means a skill, a command, or a [prompt or agent hook](</docs/en/hooks#prompt-and-agent-hook-fields>) didn’t run. If you pasted long text as arguments, save it to a file, run `/clear`, since the text stays in the conversation, then pass its path. Outside [Code Mode](</docs/en/code-mode#tool-call-refused-by-a-hook>), a `PreToolUse` prompt or agent hook over the limit doesn’t block the call. Use a [command hook](</docs/en/hooks#command-hook-fields>), which has no such limit.
+A message with `more than 4,000,000 characters` means a skill, a command, or a [prompt or agent hook](</docs/en/hooks#prompt-and-agent-hook-fields>) didn’t run. If you pasted long text as arguments, save it to a file, run `/clear`, since the text stays in the conversation, then pass its path. If your `PreToolUse` prompt or agent hook is over the limit, a tool call that Claude makes directly isn’t blocked. Use a [command hook](</docs/en/hooks#command-hook-fields>), which has no such limit. For a call from code in Code Mode, see [Tool call refused by a hook](</docs/en/code-mode#tool-call-refused-by-a-hook>).
### Input must be provided when using `--print`
--- a/events.md
+++ b/events.md
@@ -141,7 +141,7 @@
* **The user types an answer** : `$.ui.ask` resolves to the typed text. The hook compares it with `Run it`, so any other text refuses the command.
* **Nobody answers** : `$.ui.ask` rejects when the user dismisses the question or picks **Chat about this** , and in a `claude -p` run, so the `catch` block leaves the answer at `Refuse`
-Keep the wait inside a mods API call such as `$.ui.ask`, because that time doesn’t count against the hook’s [time limit](</docs/en/plugins/mods/reference#limits>). Time spent awaiting a promise of your own does count. Claude Code skips a hook that times out, so the held command would run. To refuse it instead, chain a `.catch` handler onto the registration that `on` returns. That handler is separate from the `catch` block inside the hook.
+Keep the wait inside `$.ui.ask`, because that time doesn’t count against the hook’s [time limit](</docs/en/plugins/mods/reference#limits>). Time spent awaiting a promise of your own does count. Claude Code skips a hook that times out, so the held command would run. To refuse it instead, chain a `.catch` handler onto the registration that `on` returns. That handler is separate from the `catch` block inside the hook.
#### Approve or refuse a tool call before the user is asked
--- a/feature-availability.md
+++ b/feature-availability.md
@@ -152,7 +152,7 @@
[Remote Control](</docs/en/remote-control>)| ✓| ✓| ✓| Admin-enabled| Admin-enabled
[Channels](</docs/en/channels>)| ✓| ✓| ✓| Admin-enabled| Admin-enabled
[Computer use](</docs/en/computer-use>)| ✓| ✓| ✓| ✗| ✗
-Dispatch ([Desktop](</docs/en/desktop#sessions-from-dispatch>))| ✓| ✓| ✓| ✗| ✗
+Dispatch ([Desktop](</docs/en/desktop#sessions-from-dispatch>))| Not available to new users| Not available to new users| Not available to new users| ✗| ✗
[Code Review](</docs/en/code-review>)| ✗| ✗| ✗| ✓| ✓
[Artifacts](</docs/en/artifacts>)| ✓| ✓| ✓| ✓| ✓
[Analytics dashboard and contribution metrics](</docs/en/analytics>)| ✗| ✗| ✗| ✓| ✓
--- a/github-enterprise-server.md
+++ b/github-enterprise-server.md
@@ -92,7 +92,7 @@
### Teleport sessions to your terminal
-Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details.
+Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details.
## Plugin marketplaces on GHES
--- a/glossary.md
+++ b/glossary.md
@@ -28,7 +28,7 @@
### Auto memory
-Notes Claude writes for itself based on your corrections and preferences, stored per git repository under `~/.claude/projects/`. All worktrees of the same repository share one auto memory directory. The first 200 lines or 25 KB of the `MEMORY.md` index loads at the start of every session. Auto memory is the Claude-written counterpart to CLAUDE.md, which you write. Learn more: [Auto memory](</docs/en/memory#auto-memory>)
+Notes Claude writes for itself based on your corrections and preferences, stored per git repository under `~/.claude/projects/`. All worktrees of the same repository share one auto memory directory. The first 200 lines or 25 KB of the `MEMORY.md` index loads at session start while auto memory is on. Auto memory is the Claude-written counterpart to CLAUDE.md, which you write. Learn more: [Auto memory](</docs/en/memory#auto-memory>)
### Auto mode
@@ -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. Available on Pro, Max, and Ultra plans. 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. Not available to new users. Learn more: [Sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>)
## E
@@ -234,7 +234,7 @@
### Teleport
-A command, `/teleport`, that pulls a cloud Claude Code session into your local terminal. Claude fetches the branch, loads the conversation history, and resumes from the cloud session’s last state. The reverse direction is `--cloud`, which sends a local task to run in the cloud. Learn more: [Continue a cloud session in your terminal](</docs/en/claude-code-on-the-web#from-cloud-to-terminal>)
+A command, `/teleport`, that pulls a cloud Claude Code session into your local terminal. The reverse direction is `--cloud`, which sends a local task to run in the cloud. Learn more: [Continue a cloud session in your terminal](</docs/en/claude-code-on-the-web#from-cloud-to-terminal>)
### Tool
--- a/goal.md
+++ b/goal.md
@@ -127,7 +127,7 @@
The evaluator runs on whichever provider your session is configured for. It does not call tools, so it can only judge what Claude has already surfaced in the conversation.
-Evaluation tokens are billed on the small fast model configured for your provider and are typically negligible compared to main-turn spend.
+Evaluation tokens are billed in addition to main-turn spend.
## Requirements
--- a/hooks-guide.md
+++ b/hooks-guide.md
@@ -642,7 +642,7 @@
#### 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, so the hook process only spawns when the tool call matches. This goes beyond `matcher`, which filters at the group level by tool name only. 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. For example, this configuration runs a hook only when Claude uses `git` commands rather than all Bash commands:
{
"hooks": {
@@ -684,7 +684,7 @@
`.claude/settings.local.json`| Single project| No, gitignored when Claude Code saves a setting to it
Managed policy settings| Organization-wide| Yes, admin-controlled
[Plugin](</docs/en/plugins/overview>) `hooks/hooks.json`| When plugin is enabled| Yes, bundled with the plugin
-[Skill](</docs/en/skills>) frontmatter| The rest of the session once the skill is invoked. See [Hooks in skills and agents](</docs/en/hooks#hooks-in-skills-and-agents>)| Yes, defined in the skill file
+[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.
--- a/how-claude-code-works.md
+++ b/how-claude-code-works.md
@@ -39,7 +39,7 @@
* **Your terminal.** Any command you could run: build tools, git, package managers, system utilities, scripts. If you can do it from the command line, Claude can too.
* **Your git state.** Current branch, uncommitted changes, and recent commit history.
* **Your[CLAUDE.md](</docs/en/memory>).** A markdown file where you store project-specific instructions, conventions, and context that Claude should know every session. If your repository has an AGENTS.md for other coding agents, Claude [can read that](</docs/en/memory#agents-md>) in place of a CLAUDE.md.
- * **[Auto memory](</docs/en/memory#auto-memory>).** Learnings Claude saves automatically as you work, like your preferences. The first 200 lines or 25KB of MEMORY.md, whichever comes first, load at the start of each session.
+ * **[Auto memory](</docs/en/memory#auto-memory>).** Learnings Claude saves automatically as you work, like your preferences. The first 200 lines or 25KB of MEMORY.md, whichever comes first, load at session start while auto memory is on.
* **Extensions you configure.** [MCP servers](</docs/en/mcp>) for external services, [skills](</docs/en/skills>) for workflows, [subagents](</docs/en/sub-agents>) for delegated work, and [Claude in Chrome](</docs/en/chrome>) for browser interaction.
Because Claude sees your whole project, it can work across it. When you ask Claude to “fix the authentication bug,” it searches for relevant files, reads multiple files to understand context, makes coordinated edits across them, runs tests to verify the fix, and commits the changes if you ask. This is different from inline code assistants that only see the current file.
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -609,7 +609,7 @@
Usage limit reached · limit resets 3:45pm
Continuing automatically at 3:45pm · Esc to cancel
-Either line can carry more after these words, such as a help link on the first or `/usage-credits to continue now` on the second. When the wait starts on its own, the conversation also records it with a line that reads `Usage limit reached · continuing automatically at 3:45pm · esc to cancel`. Keep the session open. What happens next depends on how the wait ends:
+Either line can carry more after these words, such as a help link on the first or `/usage-credits to continue now` on the second. Keep the session open. What happens next depends on how the wait ends:
* **At the reset** : the second line changes to `Continuing shortly · Esc to cancel`. Then `Usage limit reset · Continuing automatically` appears in the conversation, and Claude Code prompts Claude to pick the task up where it stopped. It doesn’t resend your last message.
* **After your computer slept** : if it slept for more than about 30 minutes and the limit reset while it slept, the first line reads `Your usage limit has reset` and the second reads `Press enter to continue`. Press `Enter` to continue. After a shorter sleep, or one that ended before the reset, Claude Code continues on its own.
--- a/interface.md
+++ b/interface.md
@@ -181,6 +181,7 @@
`AskUserQuestion`| The dialog Claude opens to ask you a question
`Spinner`, `ToolProgress`, `TurnDuration`| Status lines for a turn: the line that animates while Claude works, a running tool’s live progress line, and the line that closes a turn
`InfoNotice`, `SessionMode`, `PromptHint`| Status lines under the logo, the mode labels in the footer, and the hint line under the prompt
+`AgentRow`| A subagent’s or teammate’s row in the agent panel
`Pane`, `AskUserQuestion`, `Spinner`, `UserMessage`, `AssistantMessage`, and the tool call sites work in the terminal, the Desktop app, and the VS Code extension. The [render sites table](</docs/en/plugins/mods/reference#render-sites>) lists where each of the others is raised. At a site Claude Code already draws, your hook can change a detail, replace the drawing, or leave it alone. Select a tab to see each one applied to the spinner. The examples read a `calls` variable that another hook counts, as in the [tutorial mod](</docs/en/plugins/mods/create#write-a-mod-yourself>).
@@ -477,7 +478,7 @@
## Build a tree from elements
-What a `ui.render` hook returns is an element tree: a description of what to draw, made of boxes, text, and controls nested inside each other. You describe the drawing, and Claude Code renders it in whichever app the user has open: the terminal, the Desktop app, or the VS Code extension. To get the elements, call `$.ui.resolve(e)` in your hook, as in `const { Box, Text, Button } = $.ui.resolve(e)`. Each element is a function. You pass it props, and you put the elements and strings that go inside it in `children`. Select a tab to see each of the most common elements and how the terminal draws it:
+What a `ui.render` hook returns is an element tree: a description of what to draw, made of boxes, text, and controls nested inside each other. To get the elements, call `$.ui.resolve(e)` in your hook, as in `const { Box, Text, Button } = $.ui.resolve(e)`. Each element is a function. You pass it props, and you put the elements and strings that go inside it in `children`. Select a tab to see each of the most common elements and how the terminal draws it:
* Text
--- a/managed-settings.md
+++ b/managed-settings.md
@@ -47,6 +47,7 @@
* **Delivery controls** : [`policyHelper`](</docs/en/settings-reference#policyhelper>), [`wslInheritsWindowsSettings`](</docs/en/settings-reference#wslinheritswindowssettings>), and [`managedSourcesBehavior`](</docs/en/settings-reference#managedsourcesbehavior>)
* **Gateway login keys** : [`forceLoginGatewayUrl`](</docs/en/settings-reference#forcelogingatewayurl>), [`gatewayInternalNetworks`](</docs/en/settings-reference#gatewayinternalnetworks>), and the `"gateway"` value of [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>)
+ * **Sign-in requirement** : [`enforceAnthropicSignIn`](</docs/en/settings-reference#enforceanthropicsignin>)
With a managed settings file or an MDM profile, everyone it reaches gets one policy. To give one group of developers a different policy, deploy a different file or profile to that group. On an Enterprise plan, you can also [give each group its own configuration](</docs/en/server-managed-settings#give-groups-different-settings>) in server-managed settings. A self-hosted [Claude apps gateway](</docs/en/claude-apps-gateway>) delivers managed settings per IdP group. When more than one mechanism delivers a policy to the same machine, Claude Code by default uses one and ignores the others. How Claude Code combines managed sources gives the order and the opt-in that applies every source. The MDM and file rows are together called endpoint-managed settings, because the policy is stored on the developer’s device, as opposed to the server-managed row, where Claude Code fetches it. Pick a mechanism by how you already manage devices, using the table below.
@@ -100,7 +101,7 @@
## How Claude Code combines managed sources
-When your organization delivers more than one managed source to the same machine, the [`managedSourcesBehavior`](</docs/en/settings-reference#managedsourcesbehavior>) key decides what Claude Code does with the others:
+If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, first read [which settings take priority](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority>) in the Enterprise Admin Console guide. When your organization delivers more than one managed source to the same machine, the [`managedSourcesBehavior`](</docs/en/settings-reference#managedsourcesbehavior>) key decides what Claude Code does with the others:
* **`"first-wins"`, the default**: Claude Code uses the highest-ranked source that delivers at least one policy key and ignores the rest rather than merging them, apart from the keys in Keys read from every admin source. Claude Code shows no warning for the sources it skips; `/status` names the source it used and the ones it skipped.
* **`"merge"`** : Claude Code applies every admin source that delivers a policy key and combines them by kind of key: on most keys the higher-ranked source’s value applies, lists union, and locks take the strictest value. Compose every managed source says where to set the key and how each kind of key combines. Requires Claude Code v2.1.242 or later.
@@ -183,7 +184,7 @@
A [`policyHelper`](</docs/en/settings-reference#policyhelper>) is an executable your MDM policy or managed settings file names, and Claude Code runs it to compute managed settings at startup. When the selected source configures one and the helper emits a `managedSettings` object, that output changes what Claude Code reads:
- * **The emitted`managedSettings` object is the only managed settings for the session**, including for the keys it otherwise reads from every admin source, apart from [`forceRemoteSettingsRefresh`, which has its own startup rule](</docs/en/settings-reference#forceremotesettingsrefresh>)
+ * **The emitted`managedSettings` object is the only managed settings for the session**, including for keys otherwise read from every admin source, apart from [a few keys](</docs/en/settings-reference#write-the-helper-output>)
For which helper runs fail, and what Claude Code does when one does, see [Helper failures](</docs/en/settings-reference#helper-failures>).
--- a/memory.md
+++ b/memory.md
@@ -1,4 +1,4 @@
-Each Claude Code session begins with a fresh context window. Two mechanisms carry knowledge across sessions:
+Each Claude Code session begins with a fresh context window. CLAUDE.md files and auto memory carry knowledge across sessions:
* **CLAUDE.md files** : instructions you write to give Claude persistent context. Claude can also read a repository’s `AGENTS.md` files in place of CLAUDE.md
* **Auto memory** : notes Claude writes itself based on your corrections and preferences
@@ -13,17 +13,17 @@
## CLAUDE.md vs auto memory
-Claude Code has two complementary memory systems. Both are loaded at the start of every conversation. Claude treats them as context, not enforced configuration. To block an action regardless of what Claude decides, use a [PreToolUse hook](</docs/en/hooks-guide>) instead. The more specific and concise your instructions, the more consistently Claude follows them.
+Use CLAUDE.md files when you want to guide Claude’s behavior. Auto memory lets Claude learn from your corrections without manual effort.
| CLAUDE.md files| Auto memory
---|---|---
**Who writes it**| You| Claude
**What it contains**| Instructions and rules| Learnings and patterns
**Scope**| Project, user, or org| Per repository, shared across worktrees
-**Loaded into**| Every session| Every session (first 200 lines or 25KB)
+**Loaded into**| Every session| Sessions with auto memory on, up to the first 200 lines or 25KB of `MEMORY.md`
**Use for**| Coding standards, workflows, project architecture| Your preferences, corrections you give Claude, project context Claude can’t derive from the code
-Use CLAUDE.md files when you want to guide Claude’s behavior. Auto memory lets Claude learn from your corrections without manual effort. Subagents can also maintain their own auto memory. See [subagent configuration](</docs/en/sub-agents#enable-persistent-memory>) for details.
+Subagents can also maintain their own auto memory. See [subagent configuration](</docs/en/sub-agents#enable-persistent-memory>) for details. Claude treats CLAUDE.md files and auto memory as context. They aren’t enforced configuration. To block an action regardless of what Claude decides, use a [PreToolUse hook](</docs/en/hooks-guide>) instead. The more specific and concise your instructions, the more consistently Claude follows them.
## CLAUDE.md files
@@ -410,7 +410,7 @@
The value must be an absolute path or start with `~/`. When you set it in a project’s `.claude/settings.json` or `.claude/settings.local.json`, Claude Code honors it under the same [workspace trust rule as hooks in settings files](</docs/en/permissions#what-runs-before-you-trust-a-folder>). While [`permissions.blockReadsOutsideWorkingDirectories`](</docs/en/settings-reference#permissions-blockreadsoutsideworkingdirectories>) is on, Claude Code loads no auto memory from a directory that a [repository-supplied settings file](</docs/en/permissions#when-your-local-settings-file-needs-trust>) chooses and saves none to it, wherever that directory sits. The directory contains a `MEMORY.md` index and one topic file per memory:
~/.claude/projects/<project>/memory/
- ├── MEMORY.md # Index, one line per memory, loaded into every session
+ ├── MEMORY.md # Index, one line per memory, loaded at session start
├── user_role.md # One memory
├── feedback_testing.md # One memory
└── ... # Any other topic files Claude creates
@@ -419,7 +419,7 @@
### How it works
-The first 200 lines of `MEMORY.md`, or the first 25KB, whichever comes first, are loaded at the start of every conversation. Content beyond that threshold is not loaded at session start. Claude keeps `MEMORY.md` concise by moving detailed notes into separate topic files. After Claude writes to `MEMORY.md`, Claude Code measures the file against the 200-line and 25KB read limits. If the file is near a limit, Claude Code reminds Claude to shorten it: keep one line per entry, move detail into topic files, and merge or drop stale entries. If the file is over a limit, the write still succeeds, but Claude Code returns an [error telling Claude to rewrite the index](</docs/en/errors#memory-index-is-over-its-read-limit>), because everything past the limit is dropped on the next load.
+While auto memory is on, the first 200 lines or 25KB of `MEMORY.md`, whichever comes first, load at session start. Content beyond that threshold is not loaded at session start. Claude keeps `MEMORY.md` concise by moving detailed notes into separate topic files. After Claude writes to `MEMORY.md`, Claude Code measures the file against the 200-line and 25KB read limits. If the file is near a limit, Claude Code reminds Claude to shorten it: keep one line per entry, move detail into topic files, and merge or drop stale entries. If the file is over a limit, the write still succeeds, but Claude Code returns an [error telling Claude to rewrite the index](</docs/en/errors#memory-index-is-over-its-read-limit>), because everything past the limit is dropped on the next load.
This limit applies only to `MEMORY.md`. Claude gets the whole of each CLAUDE.md file that loads at launch, as long as the file is 4 MiB or smaller. Claude Code skips a file over 4 MiB and loads none of it. Path-scoped rules and CLAUDE.md files in subdirectories have a smaller per-file limit of their own.
--- a/microsoft-foundry.md
+++ b/microsoft-foundry.md
@@ -95,7 +95,7 @@
claude
-Claude Code reads `CLAUDE_CODE_USE_FOUNDRY` and the other Microsoft Foundry variables from the environment and connects to your Azure resource on the first prompt. Unlike Amazon Bedrock and Google Cloud’s Agent Platform, Microsoft Foundry has no interactive setup wizard, so the environment variables in steps 3 and 4 are the only configuration path. To verify your setup, run `/status` inside Claude Code. The API provider line shows `Microsoft Foundry`, along with the resource name or base URL you configured.
+Claude Code reads `CLAUDE_CODE_USE_FOUNDRY` and the other Microsoft Foundry variables from the environment and connects to your Azure resource on the first prompt. Unlike Amazon Bedrock and Google Cloud’s Agent Platform, Microsoft Foundry has no interactive setup wizard. To verify your setup, run `/status` inside Claude Code. The API provider line shows `Microsoft Foundry`, along with the resource name or base URL you configured.
## Azure RBAC configuration
--- a/mobile.md
+++ b/mobile.md
@@ -33,7 +33,7 @@
[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. 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. Not available to new users. Requires a Pro, Max, or Ultra plan.
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>).
--- a/network-config.md
+++ b/network-config.md
@@ -181,7 +181,7 @@
### Cloud provider and LLM gateway routing
-When using [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), or a signed-in [Claude apps gateway](</docs/en/claude-apps-gateway>) session, model traffic and authentication go to your provider or gateway instead of `api.anthropic.com`, `claude.ai`, or `platform.claude.com`. The WebFetch tool still calls `api.anthropic.com` for its [domain safety check](</docs/en/data-usage#webfetch-domain-safety-check>) unless you set `skipWebFetchPreflight: true` in [settings](</docs/en/settings>). If your developers use [fast mode](</docs/en/fast-mode>) behind an [LLM gateway](</docs/en/llm-gateway>) set with [`ANTHROPIC_BASE_URL`](</docs/en/llm-gateway-connect#set-the-base-url-and-credential>), keep `api.anthropic.com` reachable through your proxy. When Claude Code sends the fast mode availability check, it goes to that host through any configured HTTP proxy, never to the gateway. For when the check isn’t sent, and the variable that restores fast mode in each case, see [Use fast mode behind proxies and LLM gateways](</docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways>).
+When using [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), or a signed-in [Claude apps gateway](</docs/en/claude-apps-gateway>) session, model traffic and authentication go to your provider or gateway instead of `api.anthropic.com`, `claude.ai`, or `platform.claude.com`. The WebFetch tool still calls `api.anthropic.com` for its [domain safety check](</docs/en/data-usage#webfetch-domain-safety-check>) unless you set `skipWebFetchPreflight: true` in [settings](</docs/en/settings>). If you set your provider or gateway in the Enterprise Admin Console, developers who sign in to your organization also need [these Anthropic hosts](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#before-you-start>). If your developers use [fast mode](</docs/en/fast-mode>) behind an [LLM gateway](</docs/en/llm-gateway>) set with [`ANTHROPIC_BASE_URL`](</docs/en/llm-gateway-connect#set-the-base-url-and-credential>), keep `api.anthropic.com` reachable through your proxy. When Claude Code sends the fast mode availability check, it goes to that host through any configured HTTP proxy, never to the gateway. For when the check isn’t sent, and the variable that restores fast mode in each case, see [Use fast mode behind proxies and LLM gateways](</docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways>).
### Organization IP allowlists and proxy egress
--- a/platforms.md
+++ b/platforms.md
@@ -7,11 +7,11 @@
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
-[Desktop](</docs/en/desktop>)| Visual review, parallel sessions, managed setup| Diff viewer, app preview, [computer use](</docs/en/desktop#let-claude-use-your-computer>) and [Dispatch](</docs/en/desktop#sessions-from-dispatch>) on Pro, Max, and Ultra
+[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
[Web](</docs/en/claude-code-on-the-web>)| Long-running tasks that don’t need much steering, or work that should continue when you’re offline| Cloud, Anthropic-managed by default; continues after you disconnect
-[Mobile](</docs/en/mobile>)| Starting and monitoring tasks while away from your computer| Cloud sessions from the Claude app for iOS and Android, [Remote Control](</docs/en/remote-control>) for local sessions, [Dispatch](</docs/en/desktop#sessions-from-dispatch>) to Desktop on Pro, Max, and Ultra
+[Mobile](</docs/en/mobile>)| Starting and monitoring tasks while away from your computer| Cloud sessions from the Claude app for iOS and Android, [Remote Control](</docs/en/remote-control>) for local sessions
The CLI is the most complete surface for terminal-native work: scripting and the Agent SDK are CLI-only. Third-party providers also work in [VS Code](</docs/en/vs-code#use-third-party-providers>) and in [JetBrains](</docs/en/feature-availability#features-available-on-every-provider>), which runs the CLI in your IDE’s terminal. Enterprise [Desktop](</docs/en/desktop>) deployments support Google Cloud’s Agent Platform, and Desktop supports [gateway providers](</docs/en/llm-gateway-connect#desktop-app>); for Amazon Bedrock or Microsoft Foundry, use the CLI or an IDE extension, or [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>), which runs the Code tab on those providers. Desktop and the IDE extensions trade some CLI-only features for visual review and tighter editor integration. The web runs in the cloud, so tasks keep going after you disconnect. Mobile is a thin client into those same cloud sessions or into a local session via Remote Control, and can send tasks to Desktop with Dispatch. You can mix surfaces on the same project. Configuration, project memory, and MCP servers are shared across the local surfaces.
@@ -32,7 +32,7 @@
## 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.
+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.
| Trigger| Claude runs on| Setup| Best for
---|---|---|---|---
--- a/reference.md
+++ b/reference.md
@@ -44,6 +44,8 @@
---|---|---
[`tool.call`](</docs/en/plugins/mods/events#guard-or-change-a-tool-call>)| A tool is about to run| `next(e)`, `{ deny: reason }`, or `{ result }`
[`tool.check`](</docs/en/plugins/mods/events#where-settings-hooks-run-in-the-order>)| Claude Code decides whether a tool call may run, after the `tool.call` and `PreToolUse` hooks. `next(e)` resolves to the decision the rules, the permission mode, and those hooks reached.| `next(e)` or `{ decision }`, with `decision` set to `allow`, `ask`, or `deny` and an optional `reason`
+`tool.judge`| [Auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) is about to ask its classifier about a call. Requires Claude Code v2.1.326 or later.| `next(e)` or `{ decision }`
+`tool.run`| An allowed call is about to run. Requires Claude Code v2.1.326 or later.| `next(e)`, `{ deny: reason }`, or `{ result }`
`tool.describe`| Once for each tool, when its description is first sent to Claude. A second time for an MCP tool when Claude loads it through [tool search](</docs/en/mcp#scale-with-mcp-tool-search>), with `e.description` set to the text Claude reads for the loaded tool.| `{ description }`, optionally with `isDeferred` set to `true` to put the tool behind tool search or `false` to load it upfront. Add `breakPromptCache: true` to send a changed description on the next turn.
#### Agent and organization fields on `tool.check`
@@ -133,6 +135,7 @@
`session.append`| Once for each row the conversation keeps, such as a prompt, a response block, a tool result, or a notice, before it’s stored| `next({ ...e, message })` with a changed `message.content`, to rewrite the row’s text blocks or the `content` of a `tool_result` block in it
`session.attach`, `session.detach`| Another app connects to or disconnects from the session| `next(e)`
`session.measure`| After each turn, and when a plan limit’s percent used changes| `next(e)`
+`session.stop`| The user stops Claude, such as with Esc during a turn. Requires Claude Code v2.1.326 or later.| `next(e)`
### Subagents
@@ -167,8 +170,8 @@
Event| Fires when| A hook can return
---|---|---
-[`plugin.register`](</docs/en/plugins/mods/admin#enforce-a-policy-with-a-mod-of-your-own>)| A hooks module is about to load. `e.uses` lists its events, mods API calls, environment variables, and state, as `claude plugin validate` prints them. Each call is written without the `$.` prefix, such as `fs.read`.| `{ refuse: reason }`
-`engine.create`| The mods API is being built for this mod| A changed mods API, to add a namespace. A mod outside the `user` tier can also withhold one.
+[`plugin.register`](</docs/en/plugins/mods/admin#enforce-a-policy-with-a-mod-of-your-own>)| A hooks module is about to load, or, on v2.1.326 or later, a plugin without one. `e.uses` lists the module’s events, mods API calls, environment variables, and state, as `claude plugin validate` prints them. Each call is written without the `$.` prefix, such as `fs.read`.| `{ refuse: reason }`. On v2.1.326 or later, a refusal keeps out the whole plugin, and `next({ ...e, provides: { ...e.provides, modules: [] } })` keeps out only its hooks module. Earlier versions ignore `provides` and load the module.
+`engine.create`| The mods API is being built for this mod| A changed mods API, to add a namespace. A mod in the `prepend` or `append` tier can also withhold one.
When another mod’s hook calls a method on a namespace you added in `engine.create`, your method’s `$` calls run in that hook’s context until every hook on that event returns. For example, a relative path resolves against that hook’s working directory, and `$.prompt.submit` rejects while the turn is waiting on that hook. Calls your method makes after that run in your mod’s own context.
@@ -214,7 +217,7 @@
[`$.model`](</docs/en/plugins/mods/api#call-a-model>)| `complete`, `fork`, `classify`
[`$.prompt`](</docs/en/plugins/mods/api#start-a-turn-from-a-background-job>)| `submit`, `read`, `fill`, `suggest`, `compose`. Claude reads text from `submit({ text })` after a sentence that names your mod as the sender. `submit({ text, asUser: true })` sends the text as the user’s own words, without that sentence.
`$.turn`| `abort`
-[`$.session`](</docs/en/plugins/mods/api#send-and-receive-messages-between-sessions>)| `messages`, `cwd`, `root`, `model`, `turns`, `id`, `repo`, `surfaces`, `usage`, `version`, `compact`, `send`, `append`, `authorize`. `usage()` returns `{ startedAt, context, rateLimits, cost }`: `context` has `tokens`, `window`, and `percent`, and `rateLimits` is a list of `{ kind, percentUsed, resetsAt }`.
+[`$.session`](</docs/en/plugins/mods/api#send-and-receive-messages-between-sessions>)| `messages`, `cwd`, `root`, `model`, `turns`, `id`, `repo`, `surfaces`, `usage`, `version`, `info`, `compact`, `send`, `append`, `authorize`. `info` requires Claude Code v2.1.326 or later. `usage()` returns `{ startedAt, context, rateLimits, cost }`: `context` has `tokens`, `window`, and `percent`, and `rateLimits` is a list of `{ kind, percentUsed, resetsAt }`.
`$.config`| `list`, `set`
[`$.settings`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `read`
[`$.env`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `get`, `set`
@@ -223,8 +226,9 @@
[`$.state`](</docs/en/plugins/mods/interface#keep-a-value-in-$-state>)| Reactive state: `get`, `set`, with the helpers `atom`, `read`, `update`, `derive`, and `memberOf` imported from `claude-code`
[`$.clock`](</docs/en/plugins/mods/api#run-work-in-the-background>)| `now`, `sleep`, `after`, `every`
[`$.http`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `fetch`
-[`$.process`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `run`, `spawn`
+[`$.process`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `run`, `spawn`, `hookEnv`. `hookEnv` requires Claude Code v2.1.326 or later.
[`$.mcp`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `call`, `connect`. `connect(server)` connects an MCP server that your own plugin’s manifest lists.
+[`$.wasm`](</docs/en/plugins/mods/api#reach-files-processes-and-the-network>)| `compile`. Requires Claude Code v2.1.326 or later.
`$.audio`| `play`, `speak`
`$.telemetry`| `log`, `mark`. A record is sent only when Claude Code or a built-in mod makes the call.
@@ -250,6 +254,7 @@
`InfoNotice`| `text`, `command`| The notice’s `text` prefixed with `notice:`| Terminal
`SessionMode`| `modes`| One instance| Terminal, Desktop
`PromptHint`| `isDraft`, `isWorking`, `hint`| One instance| Terminal, Desktop
+`AgentRow`| The agent’s [`$.agent.list()` fields](</docs/en/plugins/mods/create#get-the-types-for-your-build>), plus `rowIds`, `columns`, `body`, and `isHidden`| The agent id| Terminal and VS Code’s [Focus view](</docs/en/vs-code#extension-settings>). Requires v2.1.326 or later of Claude Code or the extension.
`e.viewport` holds `columns`, `rows`, and `isFullscreen`. In the terminal and the Desktop app, it’s absent until the app has measured its window. There, its `rows` is the height of the whole window, not of your pane. In the VS Code extension, it’s always present. To fit a tree to its site, read these props in the hook:
@@ -363,11 +368,12 @@
---|---
A hook’s own execution time for one event, not counting time inside `next` or a mods API call other than `$.clock.sleep`| 10 seconds, or 50 milliseconds for a `prompt.edit` hook
A `.catch` handler’s execution time| 1 second
+Time a `ui.render` or `plugin.register` hook waits on mods API calls for one event| 30 seconds for `ui.render`. 10 seconds for `plugin.register`, not counting `$.ui.ask`. The `ui.render` limit and the `$.ui.ask` exemption require Claude Code v2.1.326 or later.
All `session.end` hooks together| As long as the [SessionEnd hook budget](</docs/en/hooks#sessionend-input>), 1.5 seconds unless you change it, counted from when your settings `SessionEnd` hooks finish
`$.process.run` timeout| 30 seconds by default, 10 minutes at most
`$.process.run` `stdout` and `stderr`| 4 MiB each. `isStdoutTruncated` or `isStderrTruncated` is `true` when one was cut.
`$.model.complete` `maxTokens`| 1024 by default, up to 64,000 or the model’s output limit
-`$.fs.read` and `$.fs.write`| 4 MiB for one file
+`$.fs.read` and `$.fs.write`| 4 MiB for one file. On v2.1.326 or later, read a larger file in parts with `$.fs.read(path, { offset, length })`, both in bytes.
A `$.http.fetch` request body| 4 MiB, counted in characters. A call with a larger body rejects.
A `$.http.fetch` response body| 4 MiB. `text` holds the first 4 MiB and the rest isn’t read. When the `Content-Length` header declares more, the call rejects instead, with a reason that ends `is over the 4194304-byte limit`, except when the last request after any redirects uses the `HEAD` method. The `HEAD` exemption requires Claude Code v2.1.296 or later.
One `$.http.fetch` call, redirects and body included| 30 seconds
@@ -377,6 +383,7 @@
A `Code`’s `language` or `path`, a `Select` option’s `value`, or a `Client`’s `module`| 10,000 characters. If one is longer, the `ui.render` hook that returned it [fails](</docs/en/plugins/mods/events#handle-a-hook-that-fails>).
A `Link`’s `href`| 2,048 characters. If it’s longer, the `ui.render` hook that returned it [fails](</docs/en/plugins/mods/events#handle-a-hook-that-fails>).
Nesting depth of one tree| 32 levels below the root element
+Depth and size of a tree counted with its prop values| Claude Code refuses anything `nested more than 100 lists and objects deep` or with `more than 1000000 values once written out`. Requires Claude Code v2.1.326 or later.
Elements and text children in one tree| 20,000
`Raster` cells in one tree, each `Raster`’s `columns` times its `rows`| 262,144
The rows above the prompt, stacked| Elements, `Raster` cells, and `Image` bytes add up across the rows, against the limits for one tree
@@ -388,7 +395,7 @@
A pane opened without the user asking| Placed from 144 terminal columns, 110 after they’ve opened it once
Rows from `$.ui.place` that one mod has in a conversation at one time| 500\. At the limit, a call with a new `id` resolves to `{ isPlaced: false, reason: 'a plugin holds at most 500 placed rows' }`.
Nesting depth of a mods API call’s arguments| 28,000 levels. Past that, the call rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later.
-Nesting depth of a changed event passed to `next`, outside async generator hooks such as one on `turn.step`| 28,000 levels. Past that, `next` rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later.
+Nesting depth of a changed event passed to `next`, outside `ui.render` and async generator hooks such as one on `turn.step`| 28,000 levels. Past that, `next` rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later.
Nesting depth of a hook’s return value, outside `ui.render`, `ui.resolve`, and async generator hooks| 28,000 levels. Past that, the hook’s result is refused, and [the notice that reports it](</docs/en/plugins/mods/troubleshoot#find-out-why-a-mod-does-nothing>) includes `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later.
Scopes, such as functions, blocks, and loops, nested inside one another in one file of a hooks module| 2,000
Command, tool, subagent type, and pane names, the `id` of a placed row, and the `scene` of a backdrop| Letters, digits, `_`, and `-`, up to 64 characters
--- a/remote-control.md
+++ b/remote-control.md
@@ -240,7 +240,7 @@
## 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.
+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.
| Trigger| Claude runs on| Setup| Best for
---|---|---|---|---
--- a/routines.md
+++ b/routines.md
@@ -30,7 +30,7 @@
## Create a scheduled task
-Create a scheduled task from the web at [claude.ai/code/routines](<https://claude.ai/code/routines>), from the Desktop app, or from the CLI. All three surfaces write to the same cloud account, so a scheduled task you create in one shows up in the others immediately. In the Desktop app’s **Code** tab, click **Scheduled** in the sidebar or in the sidebar’s **More** menu, then **New task** , and continue with Create from the web. Scheduled tasks run autonomously as full Claude Code cloud sessions. The session runs shell commands, uses [skills](</docs/en/skills>), and calls any connectors you include. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, those skills include the ones committed to the cloned repository. You don’t choose a permission mode when you create the task: see Permission prompts during a run for when a run stops to wait for you. What a scheduled task can reach is determined by:
+Create a scheduled task from the web at [claude.ai/code/routines](<https://claude.ai/code/routines>), from the Desktop app, or from the CLI. All three surfaces write to the same cloud account, so a scheduled task you create in one shows up in the others immediately. In the Desktop app’s **Code** tab, click **Scheduled** in the sidebar or in the sidebar’s **More** menu, then **New task** , and continue with Create from the web. Scheduled tasks run autonomously as full Claude Code cloud sessions. The session runs shell commands, uses [skills](</docs/en/skills>), and calls any connectors you include. Those skills include the ones committed to the cloned repository. For a task in a project, check [which threads load them](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>). You don’t choose a permission mode when you create the task: see Permission prompts during a run for when a run stops to wait for you. What a scheduled task can reach is determined by:
* The repositories you select
* The [environment’s](</docs/en/cloud-environments>) network access and variables
--- a/sandboxing.md
+++ b/sandboxing.md
@@ -524,7 +524,7 @@
Permission rules and sandboxing control different things:
- * **Permission rules** control which tools Claude Code can use and are evaluated before any tool runs. They apply to every tool: Bash, Read, Edit, WebFetch, MCP, and others, except that a deny or ask rule can’t block [`EndConversation`](</docs/en/tools-reference#endconversation-tool-behavior>) while any other tool remains.
+ * **Permission rules** control which tools Claude Code can use and are evaluated before a tool runs. They apply to Bash, Read, Edit, WebFetch, MCP, and other tools. A deny or ask rule can’t block [`EndConversation`](</docs/en/tools-reference#endconversation-tool-behavior>) while any other tool remains.
* **Sandboxing** provides OS-level enforcement that restricts what shell commands can access at the filesystem and network level. It applies to Bash, PowerShell, and [Monitor](</docs/en/tools-reference#monitor-tool>) tool commands and their child processes.
The two layers also differ in how they are enforced. Claude Code evaluates permission decisions before a command runs, based on the command string and, in auto mode, a separate classifier’s judgment about whether the command is safe. The operating system enforces the sandbox boundary on the running process, so it holds regardless of what the model chose to run and even if an allowed command does more than its name suggests. Filesystem and network restrictions are configured through both sandbox settings and permission rules:
--- a/security-guidance.md
+++ b/security-guidance.md
@@ -193,7 +193,7 @@
## Troubleshooting
-The plugin writes runtime diagnostics to `~/.claude/security/log.txt`. Check there first if reviews are not appearing. Common reasons a review layer skips without a message in the conversation:
+The plugin writes runtime diagnostics to `~/.claude/security/log.txt`. Check there first if reviews are not appearing. Common reasons a review layer skips:
* The directory is not a git repository: the end-of-turn and commit reviews require git state and skip outside a repository
* The session has no Anthropic authentication and no third-party provider configured: the model-backed reviews skip and only the per-edit pattern check runs
--- a/self-hosted-environments-configuration.md
+++ b/self-hosted-environments-configuration.md
@@ -288,7 +288,7 @@
While a session backs off, it shows **Queued** in the **Activity** tab with no spawn error, so read the hook’s output in the orchestrator’s log. Once blocked, the session shows **Failed**. Expand it to read the spawn error, taken from the last 512 characters of the hook’s stderr. Write an actionable error to stderr, and no secrets. In a shell hook, keep transient failures retryable. A pre-warming request has no session to fail: the orchestrator logs a non-zero exit locally only, and the server re-requests the spawn after the `--expected-spawn-seconds` lease expires.
4. **Set`--expected-spawn-seconds` to at least your p99 time from spawn request to runner registration.** Measure from when the orchestrator receives the spawn request, and include any wait for capacity on your platform as well as boot time. This value is the server-side lease, and the work order expires with it, so a runner whose workload takes longer can’t register. All orchestrator replicas must use the same value.
-Everything the hook writes to stdout or stderr appears in the orchestrator’s log with credentials automatically redacted. If sessions stay queued, check the orchestrator’s `/healthz` body for queue counts, then open your environment’s **Activity** tab on the [**Cloud environments** admin page](<https://claude.ai/admin-settings/cloud-environments>): expand a failed session there for its spawn error, and select **Retry** to re-request it.
+The hook’s stdout and stderr appear in the orchestrator’s log, so keep secrets out of them. If sessions stay queued, check the orchestrator’s `/healthz` body for queue counts, then open your environment’s **Activity** tab on the [**Cloud environments** admin page](<https://claude.ai/admin-settings/cloud-environments>). Expand a failed session there for its spawn error, and select **Retry** to re-request it.
#### Fix re-opened sessions that stay Queued or show Failed
--- a/server-managed-settings.md
+++ b/server-managed-settings.md
@@ -1,6 +1,6 @@
Server-managed settings let organization Owners centrally configure Claude Code from [**Organization settings > Claude Code > Managed settings**](<https://claude.ai/admin-settings/claude-code>) in the claude.ai console. Claude Code clients fetch these settings automatically when users authenticate with an eligible credential on a platform where server-managed delivery is supported. See Platform availability for the credentials and platforms that qualify.
-Server-managed settings are available for [Claude for Teams](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_teams#team-&-enterprise>) and [Claude for Enterprise](<https://anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_enterprise>) customers.
+Server-managed settings are available for [Claude for Teams](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_teams#team-&-enterprise>) and [Claude for Enterprise](<https://anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_enterprise>) customers.If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, follow the [Enterprise Admin Console guide](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code>) instead.
## Requirements
@@ -148,7 +148,11 @@
### Settings precedence
-Server-managed settings and [endpoint-managed settings](</docs/en/managed-settings#delivery-mechanisms>) both occupy the highest tier in the Claude Code [settings hierarchy](</docs/en/settings#settings-precedence>). A key you set here takes precedence over the same key in a user’s own settings files or in a `--settings` value, apart from the [exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>). Users’ allow rules [merge with yours](</docs/en/settings#lists-merge-instead-of-overriding>). To lock the list, see [What a developer can change](</docs/en/managed-settings#what-a-developer-can-change>). Within the managed tier, Claude Code by default uses the first source that delivers at least one policy key, checking server-managed settings first and then endpoint-managed settings, apart from the exception keys covered next. [How Claude Code combines managed sources](</docs/en/managed-settings#precedence-within-the-managed-tier>) has the full ranking, the carve-out for the control keys, and the opt-in that applies every source. If the selected source is an MDM policy or managed settings file whose [`policyHelper`](</docs/en/settings-reference#policyhelper>) supplies managed settings, the helper’s output replaces that source as the only managed configuration for the run. Claude Code doesn’t consult a `policyHelper` configured in MDM or file-based settings while server-managed settings deliver a policy key. If a later fetch finds the server-managed settings removed, Claude Code runs that helper right away instead of at the next launch. The [`policyHelper`](</docs/en/settings-reference#policyhelper>) entry covers what happens when that run fails. If you clear your server-managed configuration in the admin console with the intent of falling back to an endpoint-managed plist or registry policy, be aware that cached settings persist on client machines until the next successful fetch, and the keys that apply only at the next launch, such as `model`, stay in effect until each client relaunches. Run `/status` to see which managed source is active.
+Server-managed settings and [endpoint-managed settings](</docs/en/managed-settings#delivery-mechanisms>) both occupy the highest tier in the Claude Code [settings hierarchy](</docs/en/settings#settings-precedence>). A key you set here takes precedence over the same key in a user’s own settings files or in a `--settings` value, apart from the [exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>). Users’ allow rules [merge with yours](</docs/en/settings#lists-merge-instead-of-overriding>). To lock the list, see [What a developer can change](</docs/en/managed-settings#what-a-developer-can-change>). Within the managed tier, Claude Code by default uses the first source that delivers at least one policy key, checking server-managed settings first and then endpoint-managed settings, apart from the exception keys covered next. [How Claude Code combines managed sources](</docs/en/managed-settings#precedence-within-the-managed-tier>) has the full ranking, the carve-out for the control keys, and the opt-in that applies every source.
+
+#### When endpoint-managed settings take over
+
+If the selected source is an MDM policy or managed settings file whose `policyHelper` supplies managed settings, see [what the helper’s output replaces](</docs/en/settings-reference#write-the-helper-output>). Claude Code doesn’t consult a `policyHelper` configured in MDM or file-based settings while server-managed settings deliver a policy key. If a later fetch finds the server-managed settings removed, Claude Code runs that helper right away instead of at the next launch. The [`policyHelper`](</docs/en/settings-reference#policyhelper>) entry covers what happens when that run fails. If you clear your server-managed configuration in the admin console with the intent of falling back to an endpoint-managed plist or registry policy, be aware that cached settings persist on client machines until the next successful fetch, and the keys that apply only at the next launch, such as `model`, stay in effect until each client relaunches. Run `/status` to see which managed source is active.
### Per-key exceptions across managed sources
@@ -160,6 +164,7 @@
* **Credential-paired routing** : a source that pairs routing variables with a selected-source-only credential key, such as `apiKeyHelper` or `otelHeadersHelper`, contributes those routing variables only when it wins the slot.
* **`allowedProviders`** : a list set on the machine and a server-managed list combine as [its entry’s Scope note](</docs/en/settings-reference#allowedproviders>) states. Requires Claude Code v2.1.285 or later
* **First-party sign-in keys** : [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) and the `"claudeai"` and `"console"` values of [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>). If you also deploy an MDM policy or managed settings file, set them there and in server-managed settings from claude.ai until every client runs v2.1.299 or later. For where to set the keys afterward, and which source’s value applies, see [Which managed source supplies login keys](</docs/en/managed-settings#which-managed-source-supplies-login-keys>).
+ * **`enforceAnthropicSignIn`** : [its entry’s Scope note](</docs/en/settings-reference#enforceanthropicsignin>) says which sources supply it
* **Gateway sign-in keys** : Claude Code never reads [`forceLoginGatewayUrl`](</docs/en/settings-reference#forcelogingatewayurl>), [`gatewayInternalNetworks`](</docs/en/settings-reference#gatewayinternalnetworks>), or the `"gateway"` value of [`forceLoginMethod`](</docs/en/settings-reference#forceloginmethod>) from server-managed settings, so a value there neither applies nor hides one set in an MDM policy or managed settings file. The [`managedSourcesBehavior` entry](</docs/en/settings-reference#managedsourcesbehavior>) says which admin source on the machine supplies them.
#### When a machine’s `apiKeyHelper` isn’t in effect
@@ -248,7 +253,7 @@
"forceRemoteSettingsRefresh": true
}
-You can also set this key in an [endpoint-managed](</docs/en/managed-settings#delivery-mechanisms>) MDM profile or system `managed-settings.json` file to enforce fail-closed behavior on first launch, before any server payload has arrived. This flag is an exception to the precedence rule above: Claude Code honors it when any admin-controlled managed source sets it, even if a cached server-managed payload is also present, so it doesn’t ignore an MDM-delivered value when server-managed settings exist. On later startups, Claude Code reads a server-delivered value from the cached settings, so the setting is active before the new session’s first fetch. To keep the setting active without relying on the cached copy, also set the key in an endpoint-managed source. When a [`policyHelper`](</docs/en/settings-reference#policyhelper>) supplies managed settings, its output replaces every other managed source for the keys Claude Code reads after startup. For the sources Claude Code reads this key from, see [its settings entry](</docs/en/settings-reference#forceremotesettingsrefresh>). The `policyHelper` entry says which sources Claude Code reads the helper from and when it runs. The settings fetch also sends a `Cache-Control: no-cache` header so intermediate HTTP proxies don’t serve a stale response. Before enabling this setting, ensure your network policies allow connectivity to `api.anthropic.com`. If that endpoint is unreachable, the CLI exits at startup and users cannot start Claude Code. The `claude auth` subcommands such as `claude auth login` are exempt from this check and from the gateway startup exit, so users can re-authenticate when expired credentials are the reason the settings fetch fails.
+You can also set this key in an [endpoint-managed](</docs/en/managed-settings#delivery-mechanisms>) MDM profile or system `managed-settings.json` file to enforce fail-closed behavior on first launch, before any server payload has arrived. This flag is an exception to the precedence rule above: Claude Code honors it when any admin-controlled managed source sets it, even if a cached server-managed payload is also present, so it doesn’t ignore an MDM-delivered value when server-managed settings exist. On later startups, Claude Code reads a server-delivered value from the cached settings, so the setting is active before the new session’s first fetch. To keep the setting active without relying on the cached copy, also set the key in an endpoint-managed source. The settings fetch also sends a `Cache-Control: no-cache` header so intermediate HTTP proxies don’t serve a stale response. Before enabling this setting, ensure your network policies allow connectivity to `api.anthropic.com`. If that endpoint is unreachable, the CLI exits at startup and users cannot start Claude Code. The `claude auth` subcommands such as `claude auth login` are exempt from this check and from the gateway startup exit, so users can re-authenticate when expired credentials are the reason the settings fetch fails.
### Security approval dialogs
@@ -310,7 +315,7 @@
* A directly configured API key
* A `user_oauth` [Anthropic profile](</docs/en/authentication#anthropic-profiles-and-federation-credentials>), unless the profile sets a `base_url` other than the Anthropic API. Requires Claude Code v2.1.257 or later.
-Neither keys returned by an [`apiKeyHelper`](</docs/en/settings-reference#apikeyhelper>) script nor [Workload Identity Federation](<https://platform.claude.com/docs/en/manage-claude/workload-identity-federation>) credentials trigger the settings fetch. A session receives the managed settings of the organization that owns the credential it authenticates with. An API key from the [Claude Console](<https://platform.claude.com>) belongs to the Console organization it was created in, which is a separate organization from your claude.ai Team or Enterprise organization. Settings you configure in claude.ai Admin Settings therefore don’t reach a session that authenticates with that key, such as a CI job that uses your company’s Console API key. To apply them to that job, use one of these options. The OAuth token option doesn’t apply to a job that runs with [`--bare`](</docs/en/headless#start-faster-with-bare-mode>), because bare mode doesn’t read `CLAUDE_CODE_OAUTH_TOKEN`.
+Neither keys returned by an [`apiKeyHelper`](</docs/en/settings-reference#apikeyhelper>) script nor [Workload Identity Federation](<https://platform.claude.com/docs/en/manage-claude/workload-identity-federation>) credentials trigger the settings fetch. If you set your provider or gateway in the Enterprise Admin Console, see [when console settings apply](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority>). A session receives the managed settings of the organization that owns the credential it authenticates with. An API key from the [Claude Console](<https://platform.claude.com>) belongs to the Console organization it was created in, which is a separate organization from your claude.ai Team or Enterprise organization. Settings you configure in claude.ai Admin Settings therefore don’t reach a session that authenticates with that key, such as a CI job that uses your company’s Console API key. To apply them to that job, use one of these options. The OAuth token option doesn’t apply to a job that runs with [`--bare`](</docs/en/headless#start-faster-with-bare-mode>), because bare mode doesn’t read `CLAUDE_CODE_OAUTH_TOKEN`.
* **OAuth token** : generate a token with [`claude setup-token`](</docs/en/authentication#generate-a-long-lived-token>), authorize it for your Team or Enterprise organization, and set it as `CLAUDE_CODE_OAUTH_TOKEN` in the job’s environment. Remove any credential that [takes precedence](</docs/en/authentication#authentication-precedence>) over the token from that environment, such as `ANTHROPIC_API_KEY`.
* **Endpoint-managed settings** : deploy a [managed settings file](</docs/en/managed-settings#delivery-mechanisms>) to the machine that runs the job.
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -88,6 +88,7 @@
`enabledMcpjsonServers`| Approve specific servers from a project’s [`.mcp.json`](</docs/en/mcp#project-server-approvals-and-workspace-trust>)| MCP| Any file
`enabledPlugins`| Turn individual [plugins](</docs/en/plugins/overview>) on or off per scope| Plugins and skills| Any file
`enableWorkflows`| Turn [dynamic workflows](</docs/en/workflows>) on or off against your plan’s default| Hooks and automation| Any file
+`enforceAnthropicSignIn`| Require a claude.ai login on Anthropic’s API, or an Enterprise Admin Console sign-in| Authentication and providers| Managed
`enforceAvailableModels`| Keep the [`/model` Default choice](</docs/en/model-config#enforce-the-allowlist-for-the-default-model>) inside your `availableModels` allowlist| Model and responses| Any file
`env`| Set [environment variables](</docs/en/env-vars#in-settings-files>) for every session and its subprocesses| Memory and context| Any file
`externalEditorContext`| Show Claude’s last response as comments when you press [Ctrl+G](</docs/en/interactive-mode#general-controls>) to edit| Global config settings| Global config
@@ -5026,6 +5027,21 @@
Unlike `awsAuthRefresh`, Claude Code always runs this command when it’s set, without checking the ambient credentials first. See [advanced credential configuration](</docs/en/amazon-bedrock#advanced-credential-configuration>).
+### `enforceAnthropicSignIn`
+
+Require a claude.ai login on Anthropic’s API, or an [Enterprise Admin Console](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code>) sign-in. An Enterprise Admin Console sign-in counts only when `forceLoginOrgUUID` names your organization and you set no `policyHelper`. Requires Claude Code v2.1.329 or later. The key also stops Claude Desktop sessions that run on a cloud provider or gateway, so read [Require the sign-in with managed settings](<https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#require-the-sign-in-with-managed-settings>) first.
+
+ * **Scope** : `Managed`. Set it in a managed settings file, where it applies even beneath server-managed settings. If the machine also has an MDM policy, set it there. Claude Code ignores the key in server-managed settings, HKCU, and policy helper output.
+ * **Type** : Boolean
+ * **Default** : unset
+
+managed-settings.json
+
+ {
+ "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "enforceAnthropicSignIn": true
+ }
+
### `forceLoginMethod`
Restrict which kind of account people can log in with: `"claudeai"` for claude.ai sign-in or `"console"` for Claude Console sign-in. Set `"gateway"` to send people to a [cloud gateway](</docs/en/claude-apps-gateway>) instead of a first-party login. Administrators set it in managed settings and pair it with `forceLoginOrgUUID` to keep developers’ claude.ai logins inside one organization. If you set it to `"claudeai"` in any settings file, Claude Code also stops offering the [keyless Console sign-in](</docs/en/authentication#sign-in-without-an-api-key>) in the sessions that file applies to. With `"console"` alone, people can still reach the keyless sign-in after a failed login. To stop Claude Code offering it, see [Stop offering the keyless sign-in on managed machines](</docs/en/authentication#stop-offering-the-keyless-sign-in-on-managed-machines>), which also lists what else `forceLoginOrgUUID` changes.
@@ -5043,7 +5059,7 @@
"forceLoginMethod": "claudeai"
}
-Every first-party login path applies the restriction, including the [VS Code extension](</docs/en/vs-code>), the Agent SDK, `claude setup-token`, and `/install-github-app`, except the terminal’s interactive login screen, reached by `/login` or first-run onboarding, which pre-selects the method without enforcing it. Before v2.1.212, only terminal logins applied it. See [Restrict login to your organization](</docs/en/authentication#restrict-login-to-your-organization>) for how each login path, environment credentials, and third-party providers are handled. When a managed source on the machine sets `"gateway"`, Claude Code doesn’t use a leftover login, API key, or `apiKeyHelper` credential. See [Administrator policy requires a Cloud gateway sign-in](</docs/en/errors#administrator-policy-requires-a-cloud-gateway-sign-in>) for the message each one produces. If you select a cloud provider through `CLAUDE_CODE_USE_BEDROCK` or a similar environment variable, the session doesn’t need the gateway sign-in. Before v2.1.261, Claude Code used a leftover login on these machines.
+Every first-party login path applies the restriction, including the [VS Code extension](</docs/en/vs-code>), the Agent SDK, `claude setup-token`, and `/install-github-app`, except the terminal’s interactive login screen, reached by `/login` or first-run onboarding, which can pre-select the method without enforcing it. Before v2.1.212, only terminal logins applied the restriction. See [Restrict login to your organization](</docs/en/authentication#restrict-login-to-your-organization>) for how each login path, environment credentials, and third-party providers are handled. When a managed source on the machine sets `"gateway"`, Claude Code doesn’t use a leftover login, API key, or `apiKeyHelper` credential. See [Administrator policy requires a Cloud gateway sign-in](</docs/en/errors#administrator-policy-requires-a-cloud-gateway-sign-in>) for the message each one produces. If you select a cloud provider through `CLAUDE_CODE_USE_BEDROCK` or a similar environment variable, the session doesn’t need the gateway sign-in. Before v2.1.261, Claude Code used a leftover login on these machines.
### `forceLoginGatewayUrl`
@@ -5063,7 +5079,7 @@
### `forceLoginOrgUUID`
-From a managed source, require claude.ai account logins to belong to one Anthropic organization, given as a single UUID, or to any of several organizations, given as an array. From any settings file, Claude Code also uses a single UUID to pre-select that organization during a claude.ai or Claude Console login, and pre-selects nothing for an array. If you set the key in any settings file, Claude Code also stops offering the [keyless Console sign-in](</docs/en/authentication#sign-in-without-an-api-key>) in the sessions that file applies to and creates an API key instead.
+From a managed source, require claude.ai account logins to belong to one Anthropic organization, given as a single UUID, or to any of several organizations, given as an array. From any settings file, Claude Code also uses a single UUID to pre-select that organization during a claude.ai or Claude Console login, and pre-selects nothing for an array. If you set the key in any settings file, Claude Code stops offering the [keyless Console sign-in](</docs/en/authentication#sign-in-without-an-api-key>) in the sessions that file applies to.
* **Scope** : `Any file`. In a settings file that isn’t a managed source, Claude Code doesn’t check which organization a login belongs to, and a single UUID pre-selects the organization during login.
* **Type** : string, one UUID, or array of strings, several UUIDs
@@ -5428,6 +5444,7 @@
* **`modelOverrides`** : pairs with `availableModels`. Claude Code takes `modelOverrides` from the highest source that sets it, unless a higher source sets `availableModels` without `modelOverrides`. In that case it ignores `modelOverrides` from every source.
* **`forceLoginGatewayUrl`, `gatewayInternalNetworks`, and the `"gateway"` value of `forceLoginMethod`**: Claude Code never reads any of them from server-managed settings, so a value there neither applies nor hides one set in an MDM policy or managed settings file. Among the admin sources on the machine, only the highest-ranked one that carries a policy key supplies them, whether or not server-managed settings are also present.
* **`forceLoginOrgUUID` and the `"claudeai"` and `"console"` values of `forceLoginMethod`**: look up which value applies in [Which managed source supplies login keys](</docs/en/managed-settings#which-managed-source-supplies-login-keys>) rather than in the table.
+ * **`enforceAnthropicSignIn`** : its entry’s Scope note says which sources supply it.
* **`allowedProviders`** : after the table’s rule, the machine’s own list still limits the result, as its entry’s Scope note states.
To confirm which sources combined on a machine, run `/status` and [read the `Setting sources` line](</docs/en/managed-settings#read-the-source-in-/status>).
@@ -5480,7 +5497,12 @@
}
}
-When the helper emits `managedSettings`, that object becomes the only managed settings source for the run: Claude Code ignores the MDM, file, and HKCU sources, reads the [cross-source keys](</docs/en/managed-settings#keys-read-from-every-admin-source>) from the helper’s output alone, and never merges [parent settings](</docs/en/managed-settings#parent-settings-from-embedding-hosts>). The startup `forceRemoteSettingsRefresh` check runs before the helper and reads any admin source. A helper that exits `0` with an envelope that omits `managedSettings` contributes no managed settings, and the other sources apply as usual.
+When the helper emits `managedSettings`, that object becomes the managed settings source for the run. Claude Code reads the [cross-source keys](</docs/en/managed-settings#keys-read-from-every-admin-source>) from it and doesn’t merge [parent settings](</docs/en/managed-settings#parent-settings-from-embedding-hosts>). It ignores the MDM, file, and HKCU sources, apart from keys such as these:
+
+ * **`forceRemoteSettingsRefresh`** : the startup check runs before the helper and reads any admin source
+ * **`enforceAnthropicSignIn`** : Claude Code reads it from the MDM policy or managed settings file
+
+A helper that exits `0` with an envelope that omits `managedSettings` contributes no managed settings, and the other sources apply as usual.
#### Helper failures
--- a/statusline.md
+++ b/statusline.md
@@ -310,7 +310,7 @@
**Fields that may be`null`**:
- * `context_window.current_usage`: `null` before the first API call in a session, and again after `/compact` until the next API call repopulates it
+ * `context_window.current_usage`: see context window fields
* `context_window.used_percentage`, `context_window.remaining_percentage`: may be `null` early in the session
Handle missing fields with conditional access and null values with fallback defaults in your scripts.
@@ -320,7 +320,7 @@
The `context_window` object describes the live context window from the most recent API response.
* **Combined totals** (`total_input_tokens`, `total_output_tokens`): tokens currently in the context window. `total_input_tokens` is the sum of `input_tokens`, `cache_creation_input_tokens`, and `cache_read_input_tokens`; `total_output_tokens` is the output tokens from the most recent response. Both are `0` before the first API response.
- * **Per-component usage** (`current_usage`): the same token counts broken out by category. Use this when you need cache hits separate from fresh input.
+ * **Per-component usage** (`current_usage`): the same token counts broken out by category. Use this when you need cache hits separate from fresh input. The object is `null` before the first API call in a session, and `null` or all zeros after `/compact` until the next API call. Treat both as empty.
The `current_usage` object contains:
@@ -329,7 +329,7 @@
* `cache_creation_input_tokens`: tokens written to cache
* `cache_read_input_tokens`: tokens read from cache
-For what the cache fields mean and how they’re billed, see [check cache performance](</docs/en/prompt-caching#check-cache-performance>). The `used_percentage` field is calculated from input tokens only: `input_tokens + cache_creation_input_tokens + cache_read_input_tokens`. It does not include `output_tokens`. If you calculate context percentage manually from `current_usage`, use the same input-only formula to match `used_percentage`. The `current_usage` object is `null` before the first API call in a session, and again immediately after `/compact` until the next API call repopulates it.
+For what the cache fields mean and how they’re billed, see [check cache performance](</docs/en/prompt-caching#check-cache-performance>). The `used_percentage` field is calculated from input tokens only: `input_tokens + cache_creation_input_tokens + cache_read_input_tokens`. It does not include `output_tokens`. If you calculate context percentage manually from `current_usage`, use the same input-only formula to match `used_percentage`.
### Spend limit fields
--- a/sub-agents.md
+++ b/sub-agents.md
@@ -132,7 +132,11 @@
`~/.claude/agents/`| All your projects| 4| Ask Claude, or create the file manually
Plugin’s `agents/` directory| Where plugin is enabled| 5 (lowest)| Installed with [plugins](</docs/en/plugins/overview>)
-**Project subagents** (`.claude/agents/`) are ideal for subagents specific to a codebase. Check them into version control so your team can use and improve them collaboratively. Project subagents are discovered by walking up from the current working directory, so every `.claude/agents/` between there and the repository root is scanned. When more than one of these nested directories defines the same `name`, Claude Code uses the definition closest to the working directory. When you add a directory with `--add-dir` or `/add-dir`, Claude Code also loads its `.claude/agents/` folder, alongside your project subagents. See [Additional directories](</docs/en/permissions#additional-directories-grant-file-access-not-configuration>) for which other configuration types load from `--add-dir`. To share subagents across projects without `--add-dir`, use `~/.claude/agents/` or a [plugin](</docs/en/plugins/overview>). **User subagents** (`~/.claude/agents/`) are personal subagents available in all your projects. Claude Code scans `.claude/agents/` and `~/.claude/agents/` recursively, so you can organize definitions into subfolders such as `agents/review/` or `agents/research/`. The subdirectory path doesn’t affect how a subagent is identified or invoked, because identity comes only from the `name` frontmatter field. Keep `name` values unique across the whole tree: if two files under the same `.claude/agents/` directory, including its subfolders, declare the same name, Claude Code loads only one of them, chosen by filesystem read order rather than a documented precedence. Across nested project directories, the definition closest to the working directory wins, as described above. The [`/doctor`](</docs/en/commands#all-commands>) setup checkup reports files in the same directory that share a name and proposes renaming or removing all but one. Plugin `agents/` directories are also scanned recursively. Unlike project and user scopes, a subfolder inside a plugin’s `agents/` directory becomes part of the scoped identifier: a file at `agents/review/security.md` in plugin `my-plugin` registers as `my-plugin:review:security`. **CLI-defined subagents** are passed as JSON when launching Claude Code. They exist only for that session and aren’t saved to disk, making them useful for quick testing or automation scripts. You can define multiple subagents in a single `--agents` call:
+**Project subagents** (`.claude/agents/`) are ideal for subagents specific to a codebase. Check them into version control so your team can use and improve them collaboratively. Project subagents are discovered by walking up from the current working directory, so every `.claude/agents/` between there and the repository root is scanned. When more than one of these nested directories defines the same `name`, Claude Code uses the definition closest to the working directory. When you add a directory with `--add-dir` or `/add-dir`, Claude Code also loads its `.claude/agents/` folder, alongside your project subagents. See [Additional directories](</docs/en/permissions#additional-directories-grant-file-access-not-configuration>) for which other configuration types load from `--add-dir`. To share subagents across projects without `--add-dir`, use `~/.claude/agents/` or a [plugin](</docs/en/plugins/overview>). **User subagents** (`~/.claude/agents/`) are personal subagents available in all your projects. Claude Code scans `.claude/agents/` and `~/.claude/agents/` recursively, so you can organize definitions into subfolders such as `agents/review/` or `agents/research/`. The subdirectory path doesn’t affect how a subagent is identified or invoked, because identity comes only from the `name` frontmatter field.
+
+Keep `name` values unique across subfolders. If two files under the same `.claude/agents/` directory declare the same name, Claude Code loads only one of them. The [`/doctor`](</docs/en/commands#all-commands>) setup checkup reports files in the same directory that share a name and proposes renaming or removing all but one.
+
+Plugin `agents/` directories are also scanned recursively. Unlike project and user scopes, a subfolder inside a plugin’s `agents/` directory becomes part of the scoped identifier: a file at `agents/review/security.md` in plugin `my-plugin` registers as `my-plugin:review:security`. **CLI-defined subagents** are passed as JSON when launching Claude Code. They exist only for that session and aren’t saved to disk, making them useful for quick testing or automation scripts. You can define multiple subagents in a single `--agents` call:
* macOS, Linux, WSL
@@ -285,8 +289,6 @@
* The built-in Explore, Plan, and general-purpose subagents
* A fork
-In plan mode, these subagents run on Opus if you set your session’s model to [`opusplan`](</docs/en/model-config#opusplan-model-setting>), or on Sonnet if you set it to `haiku`.
-
#### Check a subagent’s model
To check which model a subagent is running on, run [`/tasks`](</docs/en/commands>). Claude Code names the model on the subagent’s row, and adds the [effort level](</docs/en/model-config#adjust-effort-level>) set for that subagent, if any. Requires Claude Code v2.1.242 or later.
--- a/troubleshoot-install.md
+++ b/troubleshoot-install.md
@@ -588,7 +588,7 @@
### Install hangs in Docker
-When installing Claude Code in a Docker container, installing as root into `/` can cause hangs. **Solutions:**
+**Solutions:**
1. **Set a working directory** before running the installer:
--- a/typescript.md
+++ b/typescript.md
@@ -1948,6 +1948,8 @@
session_id: string;
};
+A warning whose `tag` is `settings_not_in_effect` means some settings from your app, or from a user, project, or local file, didn’t load or were skipped. Follow the steps in `content`. You won’t see this warning for every invalid value. Requires TypeScript Agent SDK v0.3.330 or later.
+
### `SDKWorkerShuttingDownMessage`
Emitted on graceful worker teardown so remote clients can show why the worker exited instead of waiting for heartbeat timeout. The `reason` is a short snake_case string set by the host CLI, such as `"host_exit"` or `"remote_control_disabled"`. Act on this only when streaming live. A resumed session replays past instances of this message, so ignore them in that case.
@@ -2185,7 +2187,7 @@
}
| {
kind: "task-notification";
- subkind?: "scheduled-trigger" | "peer-send-message";
+ subkind?: "scheduled-trigger" | "peer-send-message" | "external-event";
fireReason?: string;
runId?: string;
}
@@ -2212,12 +2214,13 @@
### Task-notification subkinds
-When Claude Code delivers a task notification into a session, it sets `subkind` on the notification’s `origin` if Anthropic servers verified where that notification came from. It also sets `subkind` when your application declares the message as a scheduled run itself, which requires TypeScript Agent SDK v0.3.280 or later. `subkind` requires Claude Code v2.1.213 or later, and it takes one of two values:
+When Claude Code delivers a task notification into a session, it sets `subkind` on the notification’s `origin` if Anthropic servers verified where that notification came from. It also sets `subkind` when your application declares the message as a scheduled run itself, which requires TypeScript Agent SDK v0.3.280 or later. `subkind` requires Claude Code v2.1.213 or later. Values include:
* `scheduled-trigger`: the notification is a [cloud scheduled task](</docs/en/routines>)’s stored prompt, delivered because one of the task’s triggers fired: its schedule, its [API trigger](</docs/en/routines#add-an-api-trigger>), its [GitHub trigger](</docs/en/routines#add-a-github-trigger>), or **Run now**. A prompt your application declares as a scheduled run carries this value too. Claude Code frames these to the model as the session’s assigned task, with a different notice from the notice that other task notifications carry.
* `peer-send-message`: the notification is a message that another of your sessions sent with the server-side `send_message` tool that [cloud sessions](</docs/en/claude-code-on-the-web>) use to message each other, not the [cross-session `SendMessage` tool](</docs/en/cross-session-messaging>), and Anthropic servers verified that both sessions belong to the same private group of sessions. Requires Claude Code v2.1.224 or later. A `send_message` delivery the servers didn’t verify that way gets no subkind.
-
-Every other task notification has no `subkind`. That includes [PR activity](</docs/en/claude-code-on-the-web#how-claude-responds-to-pr-activity>) delivered into a session and background events such as a finished task. Messages from the [cross-session `SendMessage` tool](</docs/en/cross-session-messaging>) aren’t task notifications at all: whether they come from a session on the same machine or through Anthropic servers from another machine, Claude Code gives them `kind: "peer"` and the peer origin fields. `fireReason` says why a `scheduled-trigger` notification fired, as a short lowercase token such as `scheduled`, `manual`, `retry`, `catch_up`, or `api`. Anthropic servers set it on a [cloud scheduled task](</docs/en/routines>)’s deliveries, and your application sets it when it declares a scheduled run. It’s absent when neither sent one. Requires TypeScript Agent SDK v0.3.280 or later. A background task can run more than once under the same `task_id`, such as when Claude [resumes a subagent](</docs/en/agent-sdk/subagents#resume-subagents>). Each run has its own `run_id`. When a run’s notification reaches your session as a user message, `runId` on that message’s `task-notification` origin holds the same value. A notification can arrive after the task’s next run has started, and it still carries the earlier run’s ID. To tell which run a turn belongs to, compare `runId`, not `task_id`. Requires TypeScript Agent SDK v0.3.292 or later.
+ * `external-event`: the notification reports an event outside the session and can quote a third party. [PR activity](</docs/en/claude-code-on-the-web#how-claude-responds-to-pr-activity>) can arrive with this value or no `subkind`. Requires Claude Code v2.1.330 or later.
+
+Background events such as a finished task have no `subkind`. Messages from the [cross-session `SendMessage` tool](</docs/en/cross-session-messaging>) aren’t task notifications and carry `kind: "peer"` with the peer origin fields. `fireReason` says why a `scheduled-trigger` notification fired, as a short lowercase token such as `scheduled`, `manual`, `retry`, `catch_up`, or `api`. Anthropic servers set it on a [cloud scheduled task](</docs/en/routines>)’s deliveries, and your application sets it when it declares a scheduled run. It’s absent when neither sent one. Requires TypeScript Agent SDK v0.3.280 or later. A background task can run more than once under the same `task_id`, such as when Claude [resumes a subagent](</docs/en/agent-sdk/subagents#resume-subagents>). Each run has its own `run_id`. When a run’s notification reaches your session as a user message, `runId` on that message’s `task-notification` origin holds the same value. A notification can arrive after the task’s next run has started, and it still carries the earlier run’s ID. To tell which run a turn belongs to, compare `runId`, not `task_id`. Requires TypeScript Agent SDK v0.3.292 or later.
#### Declare a scheduled run
@@ -4194,9 +4197,10 @@
recurring: boolean;
durable?: boolean; // true when persisted to .claude/scheduled_tasks.json; false when session-only
nextFireAt?: number;
- };
-
-Returns the job ID, a human-readable schedule, and the next run time. `nextFireAt` gives it in epoch milliseconds, with [jitter](</docs/en/scheduled-tasks#jitter>) already applied, so it’s when the job is set to run. The field requires TypeScript Agent SDK v0.3.299 or later and Claude Code v2.1.299 or later.
+ maxAgeMs?: number; // age at which a recurring job ends; requires Claude Code v2.1.330 or later
+ };
+
+Returns the job ID, a human-readable schedule, and the next run time. `nextFireAt` gives it in epoch milliseconds, with [jitter](</docs/en/scheduled-tasks#jitter>) already applied, so it’s when the job is set to run. `nextFireAt` requires TypeScript Agent SDK v0.3.299 or later and Claude Code v2.1.299 or later.
### CronDelete
--- a/vs-code.md
+++ b/vs-code.md
@@ -113,12 +113,12 @@
* **Copy a response** : hover over a response and click **Copy response** to copy it to your clipboard, or type `/copy` to copy the latest response. `/copy 2` copies the second-to-last. Requires Claude Code v2.1.277 or later.
* **Bookmarks** : hover over a response and click **Bookmark response** to save it, or click **Remove bookmark** on a saved response to remove it. To review saved responses, open the Bookmarks panel. You can click the bookmark icon at the top of the Claude Code panel, select **Bookmarks** in the Context section of the command menu, or type `/bookmarks`. Requires Claude Code v2.1.286 or later.
* **Files Claude sends you** : when the session is connected to [Remote Control](</docs/en/remote-control#start-a-remote-control-session>) and Claude sends you files with the [`SendUserFile` tool](</docs/en/tools-reference>), the conversation shows a row such as **Sent report.md, chart.png**. Click a file’s name to open it in the editor. The row stays visible in Focus view. Requires Claude Code v2.1.295 or later. A file appears as a full path you can’t click, such as `\\server\share\report.md`, when its path names a network host. Claude Code doesn’t link that file because opening it would contact that host and, on Windows, [could send your Windows credentials to that host](</docs/en/permissions#read-only-commands>).
- * **Context indicator** : the prompt box shows how much of Claude’s context window you’re using. Claude automatically compacts when needed, or you can run `/compact` manually.
- * **Prompt cache clock** : a clock icon next to the context indicator estimates how much time the conversation’s [prompt cache](</docs/en/prompt-caching>) has left before it expires. It counts down from the cache’s five-minute or one-hour [lifetime](</docs/en/prompt-caching#cache-lifetime>), and each response that uses the cache restarts the countdown. Apart from compaction, the [actions that invalidate the cache](</docs/en/prompt-caching#actions-that-invalidate-the-cache>) don’t reset the clock, so it can still show minutes left after you switch models.
+ * **Context indicator** : the prompt box shows how much of Claude’s context window you’re using once usage exceeds `contextUsageThreshold`, 50% by default. Claude automatically compacts when needed, or you can run `/compact` manually.
+ * **Prompt cache clock** : a clock icon in the prompt box estimates how much time the conversation’s [prompt cache](</docs/en/prompt-caching>) has left before it expires. It counts down from the cache’s five-minute or one-hour [lifetime](</docs/en/prompt-caching#cache-lifetime>), and each response that uses the cache restarts the countdown. Apart from compaction, the [actions that invalidate the cache](</docs/en/prompt-caching#actions-that-invalidate-the-cache>) don’t reset the clock, so it can still show minutes left after you switch models.
* Until the countdown runs out, the icon shows the minutes left, such as **12m**.
* When the countdown runs out, the minutes disappear and the icon turns red, or your theme’s error color, until the next response. The cache has likely expired, so expect a slower, more expensive response to your next message while the cache rebuilds. If the five-minute lifetime keeps running out between your messages, see [Choose the TTL yourself](</docs/en/prompt-caching#choose-the-ttl-yourself>).
* Right after the conversation is [compacted](</docs/en/prompt-caching#compacting-the-conversation>), the icon also turns red without minutes until the next response, because the cache doesn’t cover the compacted conversation yet.
- * **Agent map** : when the conversation includes [subagents](</docs/en/sub-agents>), an agent count such as **2 agents** appears at the bottom of the prompt box. Its dot shows whether any subagent is working or waiting for your permission. Click the agent count to open the agent map, which draws the conversation’s subagents as a tree under the main agent, each with its status, elapsed time, and token count. Click a subagent to see its prompt and tool calls, open its read-only transcript, or stop it while it runs. Requires Claude Code v2.1.269 or later. The map also lists the session’s other [background tasks](</docs/en/tools-reference#background-commands>), such as background shell commands and [monitors](</docs/en/tools-reference#monitor-tool>), below the agents. Click a row to open the task’s card and stop it there. To open the map when no agent count is showing, such as when Claude has started a background shell but no subagents, type `/tasks` in the prompt box. Background tasks in the map and the typed `/tasks` require Claude Code v2.1.277 or later. With Claude Code v2.1.286 or later, when you click **Stop** or press `Esc`, the current turn ends. Background agents keep running until they finish or you stop them from the map.
+ * **Agent map** : when the conversation includes [subagents](</docs/en/sub-agents>), an agent count such as **2 agents** appears at the bottom of the prompt box. Its dot shows whether any subagent is working or waiting for your permission. Click the agent count to open the agent map, which draws the conversation’s subagents as a tree under the main agent, each with its status, elapsed time, and token count. Click a subagent to see its prompt and tool calls, open its read-only transcript, or stop it while it runs. Requires Claude Code v2.1.269 or later. The map also lists the session’s other [background tasks](</docs/en/tools-reference#background-commands>), such as background shell commands and [monitors](</docs/en/tools-reference#monitor-tool>), below the agents. Click a row to open the task’s card and stop it there. To open the map when no agent count is showing, such as when Claude has started a background shell but no subagents, type `/tasks` or `/workflows` in the prompt box. Background tasks in the map and the typed `/tasks` require Claude Code v2.1.277 or later. The typed `/workflows` requires Claude Code v2.1.330 or later. With Claude Code v2.1.286 or later, when you stop Claude, the current turn ends. Background agents keep running until they finish or you stop them from the map.
* **Extended thinking** : lets Claude spend more time reasoning through complex problems. To turn it off or back on, use the **Thinking** switch in the Model section of the command menu (`/`). On models where [thinking can’t be turned off](</docs/en/model-config#extended-thinking>), the menu has no **Thinking** switch and thinking stays on. A thinking block that shows only a label, such as `Thought for 12s`, has no text and doesn’t open when you click it. To see thinking summaries, set [`showThinkingSummaries`](</docs/en/settings-reference#showthinkingsummaries>) to `true` in `~/.claude/settings.json`, then run **Developer: Reload Window** from the Command Palette. Thinking blocks you already have stay empty. In responses after the reload, click a block or press `Ctrl+O` to expand them all.
* **Multi-line input** : press `Shift+Enter` to add a new line without sending. This also works in the “Other” free-text input of question dialogs.
@@ -272,7 +272,7 @@
* **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
-For full details on how checkpoints work and their limitations, see [Checkpointing](</docs/en/checkpointing>).
+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>).
## Customize your workflow
@@ -519,7 +519,7 @@
## VS Code commands and shortcuts
-To open the Command Palette, press `Cmd+Shift+P` on Mac or `Ctrl+Shift+P` on Windows/Linux. Type “Claude Code” there to see the extension’s Command Palette commands. Some shortcuts depend on which panel is “focused” (receiving keyboard input). When your cursor is in a code file, the editor is focused. When your cursor is in Claude’s prompt box, Claude is focused. Use `Cmd+Esc` / `Ctrl+Esc` to toggle between them.
+To open the Command Palette, press `Cmd+Shift+P` on Mac or `Ctrl+Shift+P` on Windows/Linux. Type “Claude Code” there to see the extension’s Command Palette commands. Some shortcuts depend on which panel is “focused” (receiving keyboard input). When your cursor is in a code file, the editor is focused. When your cursor is in Claude’s prompt box, Claude is focused.
These are VS Code commands for controlling the extension. Not all built-in Claude Code commands are available in the extension. See VS Code extension vs. Claude Code CLI for details.
@@ -527,7 +527,7 @@
---|---|---
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
-Open in Side Bar| -| Open Claude in the sidebar
+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
@@ -599,16 +599,19 @@
`useTerminal`| `false`| Launch Claude in terminal mode instead of graphical panel
`initialPermissionMode`| -| Controls approval prompts for new conversations: `default`, `plan`, `acceptEdits`, or `bypassPermissions`. `manual` is an alias for `default` and selects the mode labeled **Manual** in the mode indicator. When you leave it unset, the extension chooses the starting permission mode as described in [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>).
`preferredLocation`| `panel`| Where Claude opens: `sidebar` (right) or `panel` (new tab)
-`lockEditorGroups`| `true`| Lock the editor groups Claude starts for its tabs, so files you open while a Claude tab is focused go to another group. When off, the extension never locks an editor group. Requires Claude Code v2.1.274 or later
+`lockEditorGroups`| `true`| Lock the editor groups Claude starts for its tabs, so files you open while a Claude tab is focused go to another group. Requires Claude Code v2.1.274 or later
`autosave`| `true`| Auto-save files before the Read, Edit, and Write tools run
`attachOpenFile`| `true`| Add the file that is open in the editor to your messages and show it in the prompt box. When off, the file is added only along with text you select. Requires Claude Code v2.1.271 or later
`attachSelection`| `true`| Add the text you select in the editor to your messages and show it in the prompt box. When off, you can still add a selection as an @-mention. Requires Claude Code v2.1.300 or later
`useCtrlEnterToSend`| `false`| Use Ctrl/Cmd+Enter instead of Enter to send prompts
`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`
`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
`enableNewConversationShortcut`| `false`| Enable Cmd/Ctrl+N to start a new conversation
-`enableReopenClosedSessionShortcut`| `true`| Use Cmd/Ctrl+Shift+T to reopen the most recently closed Claude session tab. When the last closed tab wasn’t a Claude session, the shortcut runs VS Code’s normal reopen-closed-editor command instead.
+`enableReopenClosedSessionShortcut`| `true`| Use Cmd/Ctrl+Shift+T to reopen the most recently closed Claude session tab.
`archiveInactiveSessions`| `14`| Archive a session automatically after this many days without activity: `1`, `2`, `7`, or `14`. Set `0` to turn it off. Requires Claude Code v2.1.265 or later
`continueAfterReload`| `true`| After a window reload, Claude continues the step that was interrupted in the restored session. Requires Claude Code v2.1.274 or later
`hideOnboarding`| `false`| Hide the onboarding checklist (graduation cap icon)
--- a/workflows.md
+++ b/workflows.md
@@ -143,7 +143,7 @@
Bypass permissions| Claude Code doesn’t prompt you. The run starts immediately
`claude -p`, Agent SDK| Claude Code doesn’t prompt you
-In `claude -p` and the Agent SDK, Claude Code never shows this prompt. It runs the Workflow tool call through the same [permission evaluation](</docs/en/agent-sdk/permissions#how-permissions-are-evaluated>) as the rest of the session, so deny rules, ask rules, and `dontAsk` mode apply to the launch as they apply to every tool call. To let the workflow start in these runs, use one of these:
+In `claude -p` and the Agent SDK, the Workflow tool call goes through the same [permission evaluation](</docs/en/agent-sdk/permissions#how-permissions-are-evaluated>) as the rest of the session. Deny rules, ask rules, and `dontAsk` mode apply to the call. To let the workflow start in these runs, use one of these:
* **Permission rule** : add `Workflow` to your allow rules to approve every workflow, or `Workflow(<name>)` to approve one saved workflow by name.
* **Auto permission mode** : run in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), where the classifier reviews the call and can approve it.
@@ -373,7 +373,7 @@
To turn workflows off for your whole organization, set `"disableWorkflows": true` in [managed settings](</docs/en/server-managed-settings>), or use the toggle on the [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>) page. When workflows are disabled:
- * `/workflows`, the workflow commands, and the `/workflow-authoring` skill are unavailable
+ * The `/workflows` progress view, the workflow commands, and the `/workflow-authoring` skill are unavailable
* The `ultracode` keyword no longer triggers a run, and the **Ultracode** toggle is removed from `/effort`
A run that was already in progress keeps going. Turning workflows off also makes ultracode unavailable. No managed setting rules out ultracode alone: wherever it’s [available](</docs/en/model-config#when-ultracode-is-available>), users can turn it on with `/effort ultracode`. An [effort cap](</docs/en/model-config#organization-effort-limits>) lowers the effort level a session with ultracode on runs at, but doesn’t turn ultracode off.
--- a/worktrees.md
+++ b/worktrees.md
@@ -9,7 +9,7 @@
## Start Claude in a worktree
-Pass `--worktree` or `-w` with a name to create an isolated worktree and start Claude in it. By default, the worktree is created under `.claude/worktrees/<name>/` at your repository root, on a new branch named `worktree-<name>`:
+Pass `--worktree` or `-w` with a name to create a worktree and start Claude in it. By default, the worktree is created under `.claude/worktrees/<name>/` at your repository root, on a new branch named `worktree-<name>`:
claude --worktree feature-auth
@@ -46,6 +46,7 @@
When you exit an interactive worktree session, Claude checks the worktree for work that removal would delete: changed or untracked files, uncommitted work inside checked-out submodules, and new commits. These rules apply to worktrees Claude created with git. For a worktree your [WorktreeCreate hook](</docs/en/hooks#worktreecreate>) created, see [WorktreeRemove](</docs/en/hooks#worktreeremove>) instead.
+ * **Claude Code finds another session in the worktree** : the worktree and branch stay even if you choose removal. Follow the `Worktree kept at` message
* **The worktree is clean** : for an unnamed session, Claude removes the worktree and its branch automatically. A [named](</docs/en/sessions#name-your-sessions>) session prompts you first so you can keep the worktree for later
* **The worktree has work in it** : Claude prompts you to keep or remove the worktree. Keeping preserves the directory and branch. To return later, run the `claude --worktree <name> --resume` command that Claude Code prints on exit. Removing deletes the worktree directory and its branch, along with all the work in them
* **Another branch is checked out** : if the worktree is on a branch other than its own that has commits past the worktree’s starting commit, Claude prompts you to keep or remove the worktree. Either answer keeps that other branch and its commits. Removing deletes the worktree directory and the worktree’s own branch, the one Claude created with it
@@ -55,9 +56,10 @@
## Resume a worktree session
-When you resume a session that ended inside a worktree without exiting it, Claude Code returns the session to that worktree. This holds for interactive resumes, for `--continue` and `--resume` in [non-interactive mode](</docs/en/headless>) with `-p`, and for the Agent SDK. `--continue` picks the most recent session recorded under the directory you launch from. Back inside the worktree, Claude can leave with the [`ExitWorktree`](</docs/en/tools-reference>) tool when the session has that tool. Before returning the session to its worktree, Claude Code verifies that the worktree is still a checkout separate from the main one, and declines to re-enter a worktree that fails the check. For a git worktree, the check reads its git metadata. A worktree without git metadata, such as one a `WorktreeCreate` hook created, can pass the check; the cases Claude Code still refuses are listed with their recoveries under Claude Code refuses to use a worktree. For the messages and how to recover from each, see The session resumes outside its worktree. Where you launch from, and how you resume, change what Claude Code re-enters:
+When you resume a session that ended isolated in its worktree without exiting it, Claude Code returns the session there and keeps it isolated. This holds for interactive resumes, for `--continue` and `--resume` in [non-interactive mode](</docs/en/headless>) with `-p`, and for the Agent SDK. Back inside the worktree, Claude can leave with the [`ExitWorktree`](</docs/en/tools-reference>) tool when the session has that tool. Before returning the session to its worktree, Claude Code verifies that the worktree is still a checkout separate from the main one, and declines to re-enter a worktree that fails the check. For a git worktree, the check reads its git metadata. A worktree without git metadata, such as one a `WorktreeCreate` hook created, can pass the check; the cases Claude Code still refuses are listed with their recoveries under Claude Code refuses to use a worktree. For the messages and how to recover from each, see The session resumes outside its worktree. Where you launch from, and how you resume, change what Claude Code re-enters:
* **Launch directory** : resume with `--resume` from the main checkout or another directory of the repository. Claude Code re-enters a worktree it created with git under `.claude/worktrees/` even when you launch from inside it. When you launch from inside any other worktree, Claude Code re-enters it only if it can vouch for it from there: a worktree that is its own repository, one without git metadata, or a launch from a subdirectory of a worktree you created with `git worktree add` declines, so launch those from the main checkout.
+ * **`--continue`** : Claude Code picks the most recent session recorded under the directory you launch from.
* **`--fork-session`** : the forked session starts in the directory you launched Claude from, and Claude Code leaves the original session’s worktree untouched.
* **Deleted worktree** : if the worktree directory no longer exists, Claude Code resumes the session in the directory you launched Claude from. It tells you the worktree is gone and clears the session’s worktree binding.
@@ -67,7 +69,7 @@
## How Claude Code enforces isolation
-While a session is isolated in a worktree, Claude Code blocks the tool calls the checks below define. The same rules apply whether you started the session with `--worktree`, Claude entered a worktree with `EnterWorktree`, or you resumed a worktree session. The same enforcement covers every subagent Claude spawns from the isolated session. It applies whether the session is interactive or runs in the [background](</docs/en/agent-view#how-file-edits-are-isolated>). Subagents that run in their own worktree carry the same checks. Claude Code applies four checks:
+While a session is isolated in a worktree, Claude Code blocks the tool calls the checks below define. A session becomes isolated when you start it with `--worktree` but not `--tmux`, or Claude moves it with `EnterWorktree`. The same enforcement covers every subagent Claude spawns from the isolated session. It applies whether the session is interactive or started in the [background](</docs/en/agent-view#how-file-edits-are-isolated>). Subagents that run in their own worktree carry the same checks. Claude Code applies four checks:
* **File edits** : Claude Code blocks an `Edit`, `Write`, or `NotebookEdit` that targets a path in the main checkout. To change a file in the main checkout, edit it yourself or start an interactive session there.
* **Command working directory** : Claude Code blocks a Bash, PowerShell, or Monitor command whose working directory resolves to the main checkout, or whose working directory it can’t verify stays outside it.