Changes on
24 changes detected
--- a/advisor.md
+++ b/advisor.md
@@ -1,4 +1,4 @@
-The advisor tool is experimental and requires the Anthropic API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>). On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), it requires Claude Code v2.1.300 or later. It isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. Behavior, pricing, and availability may change.
+The advisor tool is experimental and requires the Anthropic API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>). On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), it requires Claude Code v2.1.300 or later. It isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. Behavior, pricing, and availability may change.
The advisor tool lets Claude consult a second, typically stronger model at key moments during a task, such as before committing to an approach, when stuck on a recurring error, or before declaring a task complete. The advisor receives the full conversation, including every tool call and result, and returns guidance that Claude applies before continuing. The advisor runs server-side on Anthropic’s infrastructure as a [server tool](<https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool>), available to both subscription and API-billed accounts. You choose which model acts as the advisor, and Claude decides when to call it. This page covers how to enable the advisor, which model pairings are accepted, what Claude shows during a consultation, and how advisor usage is billed.
@@ -122,7 +122,7 @@
## Requirements
- * **Provider** : the Anthropic API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>), not Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), the advisor requires Claude Code v2.1.300 or later.
+ * **Provider** : the Anthropic API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>), not Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), the advisor requires Claude Code v2.1.300 or later.
* **LLM gateway** : through an [LLM gateway](</docs/en/llm-gateway>) configured with `ANTHROPIC_BASE_URL`, availability depends on whether the gateway forwards the request intact to the Anthropic API. If the gateway or its upstream doesn’t recognize the advisor tool, see [Automatic retry and error forwarding](</docs/en/llm-gateway-protocol#automatic-retry-and-error-forwarding>) for how Claude Code responds.
* **Supported main model** : Fable, Opus 4.6 or later, Sonnet 4.6 or later, Haiku 4.5, or Haiku 5.5. See Choose an advisor model for which advisors each accepts.
* **Feature-flag fetching** : unless you’re on Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), the advisor needs a feature flag fetched from Anthropic. A session with a variable that turns fetching off, such as `DISABLE_TELEMETRY`, doesn’t have that flag. To check your session, see [which sessions skip the fetch or start without the flag](</docs/en/env-vars#features-that-need-feature-flag-fetching>).
--- a/artifacts.md
+++ b/artifacts.md
@@ -264,7 +264,6 @@
External requests| The page can load typefaces from Google Fonts, and scripts from five public CDN hosts: cdnjs, unpkg, the Tailwind and jQuery CDNs, and selected paths on jsDelivr such as `/npm/`. The CSP blocks every external image and all other external scripts, stylesheets, and fonts, and lets `fetch`, XHR, and WebSocket calls reach only the page’s own origin and the Google Fonts hosts. Claude therefore loads any library the page needs from one of those CDNs, inlines all other CSS and JavaScript, and embeds images as data URIs. Connector calls go through claude.ai, which makes the network call itself.
No backend| An artifact is a static page. It can’t authenticate viewers itself.
Downloads| The page can’t start a download itself. To let viewers save a file the page generates, Claude declares the downloads capability. See Offer a file download.
-Single page| Relative links do not resolve, because nothing is deployed alongside the page. For multi-section content, Claude uses in-page anchors rather than separate files.
Source file types| The published file must be `.html`, `.htm`, or `.md`, and must decode as UTF-8, or as little-endian UTF-16 by its byte-order mark. Markdown files render as styled document pages with syntax-highlighted code. A file that doesn’t decode, or that contains the replacement character `U+FFFD`, is [refused with the line and column to fix](</docs/en/errors#the-source-file-is-not-valid-utf-8-text>).
Source location| A file at a path that names a network host is refused without being read. See [Not published: that file is on a network share](</docs/en/errors#not-published-that-file-is-on-a-network-share>) for which paths are refused and the mapped-drive exception on Windows.
Rendered size| The rendered page must be 16 MiB or smaller. Large embedded images are the usual cause when a publish fails for size.
--- a/best-practices.md
+++ b/best-practices.md
@@ -1,6 +1,6 @@
Claude Code is built in a way that, in most cases, your first plain prompt in a fresh session already does the right thing, without any setup on your part. For example:
- * To let commands run safely without you approving each one, new terminal and VS Code sessions start in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>), where a classifier reviews anything risky before it runs.
+ * To let commands run without you approving each one, new terminal and VS Code sessions start in [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>).
* To keep your main conversation focused while independent work happens in parallel, Claude delegates to subagents and checks in only when it has to.
* To keep a long session going without you managing it, your conversation is compacted automatically before the context window fills.
@@ -473,7 +473,7 @@
Keep it to small files: it copies rather than links, so `node_modules` in there would mean a full copy per worktree. For large directories there’s the [`worktree.symlinkDirectories`](</docs/en/settings-reference#worktree-symlinkdirectories>) setting, or keep the install command in `CLAUDE.md` so Claude runs it whenever it starts in a new checkout. You rarely have to clean any of this up yourself:
- * When you exit an unnamed worktree session, Claude Code [removes the worktree](</docs/en/worktrees#clean-up-worktrees>) if there’s nothing in it. For a named session, or one with changes, it asks what to do.
+ * When you exit an unnamed worktree session, Claude Code [removes a worktree it created with git](</docs/en/worktrees#clean-up-worktrees>) if there’s nothing in it. For a named session, or one with changes, it asks what to do.
* Subagent worktrees disappear when the subagent finishes without changes.
* Subagent and background-session worktrees that do get left behind are swept once they’re older than `cleanupPeriodDays` and hold no work.
--- a/claude-models-on-google-cloud-anthropic-managed.md
+++ b/claude-models-on-google-cloud-anthropic-managed.md
@@ -83,12 +83,16 @@
## Claude Code features that aren’t available
+With Claude Models on Google Cloud (Anthropic managed), the features you can’t use include:
+
* [Fast mode](</docs/en/fast-mode>): you can’t turn it on with `/fast` or the `fastMode` setting
* [Remote Control](</docs/en/remote-control>) and [cloud sessions](</docs/en/claude-code-on-the-web>)
* [MCP connectors from claude.ai](</docs/en/mcp#use-mcp-servers-from-claude-ai>)
* [Channels](</docs/en/channels>)
* The [`/design-sync` and `/import` commands](</docs/en/commands#all-commands>)
* [Server-managed settings](</docs/en/server-managed-settings>). To enforce settings for your team, use [managed settings](</docs/en/managed-settings>) on each machine instead
+
+To see other features that are unavailable or partially supported, select the **Google Cloud (Anthropic managed)** tab in the [feature availability summary](</docs/en/feature-availability#summary-by-provider>).
## Troubleshooting
--- a/commands.md
+++ b/commands.md
@@ -17,7 +17,7 @@
Command| Purpose
---|---
-`/add-dir <path>`| Add a working directory for file access during the current session. Type a partial path to see matching directory suggestions; press `Tab` to accept one. Most `.claude/` configuration [isn’t discovered](</docs/en/permissions#additional-directories-grant-file-access-not-configuration>) from the added directory. You can’t add most [network paths](</docs/en/errors#working-directory-is-a-network-path>), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](</docs/en/hooks#directoryadded>) run. When you run it while Claude is responding, Claude Code asks you to confirm the directory right away, and once you confirm, Claude’s next tool call in the same turn can access it. Before v2.1.234, Claude Code queued the command until the turn finished
+`/add-dir <path>`| Add a working directory for file access. Type a partial path to see matching directory suggestions; press `Tab` to accept one. Most `.claude/` configuration [isn’t discovered](</docs/en/permissions#additional-directories-grant-file-access-not-configuration>) from the added directory. You can’t add most [network paths](</docs/en/errors#working-directory-is-a-network-path>), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](</docs/en/hooks#directoryadded>) run. If you run `/add-dir` while Claude is responding, Claude’s next tool call can access the directory once you confirm the add
`/advisor [model|off]`| Enable or disable the [advisor tool](</docs/en/advisor>), which consults a second model for guidance at key moments during a task. Accepts `fable`, `opus`, `sonnet`, or a full model ID. `fable` requires [Fable access](</docs/en/advisor#choose-an-advisor-model>). Without an argument, opens a picker. In a session without an interactive terminal, or over [Remote Control](</docs/en/remote-control#limitations>), pass the model or `off` as an argument; with no argument there, the command prints the current advisor as text. These forms require Claude Code v2.1.260 or later
`/agents`| Print a reminder to ask Claude to create or manage [subagents](</docs/en/sub-agents>), or to edit `.claude/agents/` or `~/.claude/agents/` directly. On v2.1.197 and earlier, opens an interactive interface for creating and managing subagent configurations
`/artifact-capabilities`| **[Skill](</docs/en/skills#bundled-skills>).** Load the reference for the runtime capabilities a published [artifact](</docs/en/artifacts>) can use, such as [calling your connectors](</docs/en/artifacts#pull-live-data-with-mcp-connectors>) or [offering a file download](</docs/en/artifacts#offer-a-file-download>), including which ones your account has. Claude normally loads it on its own before building a page that uses one. Available where [artifacts](</docs/en/artifacts#availability>) are
--- a/create.md
+++ b/create.md
@@ -210,7 +210,7 @@
4. Back in your shell, run `claude plugin list`. It prints session-only and skills-directory plugins in their own sections with `Status: ✔ loaded` or the load error. To include the plugin you’re developing, pass `--plugin-dir` with its path before `plugin list`.
5. If your plugin is in a skills directory and `claude plugin list` doesn’t print it, with no error there or in `/plugin`, see [Skills-directory plugins blocked by managed settings](</docs/en/plugins/loading#skills-directory-plugins-blocked-by-managed-settings>).
-To check an MCP server, run `/mcp` in the session to see the server’s status. When the server is healthy, `/mcp` lists it as connected. If it isn’t, see [MCP servers that don’t start](</docs/en/plugins/troubleshooting#invalid-mcp-server-config-for-and-mcp-servers-that-dont-start>). To check a hook, trigger the event it matches. For example, ask Claude to edit a file to trigger a `PostToolUse` hook. Then read the [debug log](</docs/en/hooks#debug-hooks>), which shows which hooks matched, their exit codes, and their output. The next sections cover the failures you’re most likely to hit while developing, and the [troubleshooting page](</docs/en/plugins/troubleshooting#build-a-plugin>) has the full entry for each.
+To check an MCP server, run `/mcp` in the session to see the server’s status. When the server is healthy, `/mcp` lists it as connected. If it isn’t, see [MCP servers that don’t start](</docs/en/plugins/troubleshooting#invalid-mcp-server-config-for-and-mcp-servers-that-dont-start>). To check a hook, turn on debug logging as [Debug hooks](</docs/en/hooks#debug-hooks>) describes and trigger the event it matches. For example, ask Claude to edit a file to trigger a `PostToolUse` hook. Then read the debug log. The next sections cover the failures you’re most likely to hit while developing, and the [troubleshooting page](</docs/en/plugins/troubleshooting#build-a-plugin>) has the full entry for each.
### A component path isn’t found
--- a/debug-your-config.md
+++ b/debug-your-config.md
@@ -25,9 +25,9 @@
## Check MCP servers
-Run `/mcp` to see every configured server, its connection status, and whether you have approved it for the current project. A server can be defined correctly but still not provide tools for a few common reasons:
+Run `/mcp` to see your servers and their connection status. A server can be defined correctly but still not provide tools for a few common reasons:
- * Project-scoped servers in `.mcp.json` require a one-time approval. If the prompt was dismissed, the server stays disabled until you approve it from `/mcp`.
+ * Project-scoped servers in `.mcp.json` require a one-time approval. If you dismissed the prompt, the server stays disabled. To see the prompt again, run `claude mcp reset-project-choices` and restart Claude Code. It asks again for every project server.
* A server that fails to start shows as failed in `/mcp`. Relative file paths in `command` or `args` are a frequent cause, since they resolve against the directory you launched Claude Code from rather than the location of `.mcp.json`.
* A server that shows as connected but lists zero tools has started successfully but isn’t returning a tool list. Select **Reconnect** from `/mcp`. If the count stays at zero, run `claude --debug=mcp` and read the server’s stderr in the debug log at `~/.claude/debug/<session-id>.txt`.
@@ -46,7 +46,7 @@
* The `matcher` field is a single string that uses `|` to match multiple tool names, for example `"Edit|Write"`. A `,` separator is equivalent, so `"Edit,Write"` matches the same tools. Before v2.1.191, a comma fell through to regex evaluation and the matcher never matched, so use `|` if you aren’t on v2.1.191 yet.
* A misspelled tool name produces a matcher that matches nothing, so the hook fails silently.
-When you edit `settings.json`, the change takes effect in the running session after a brief file-stability delay, even if you create the file or the project’s `.claude/` folder itself after the session started. You don’t need to restart. Before v2.1.257, Claude Code didn’t detect edits in a `.claude/` folder created after the session started. If `/hooks` still shows the old definition a few seconds after you save, run `/hooks` again to refresh the view. If `/hooks` shows the hook but it still does not fire, the next step is to watch hook evaluation live. Start a session with `claude --debug` and trigger the tool call. The debug log records each event, which matchers were checked, and the hook’s exit code and output. See [Debug hooks](</docs/en/hooks#debug-hooks>) for the log format and [hooks troubleshooting](</docs/en/hooks-guide#limitations-and-troubleshooting>) for common failure patterns.
+When you edit `settings.json`, the change takes effect in the running session after a brief file-stability delay, even if you create the file or the project’s `.claude/` folder itself after the session started. You don’t need to restart. Before v2.1.257, Claude Code didn’t detect edits in a `.claude/` folder created after the session started. If `/hooks` still shows the old definition a few seconds after you save, run `/hooks` again to refresh the view. If `/hooks` shows the hook but it still doesn’t fire, the next step is to watch hook evaluation live. Start a session with `claude --debug` and trigger the tool call. See [Debug hooks](</docs/en/hooks#debug-hooks>) for the log format and [hooks troubleshooting](</docs/en/hooks-guide#limitations-and-troubleshooting>) for common failure patterns.
## Test against a clean configuration
@@ -125,7 +125,7 @@
Cleanup logic never runs at session end| No `SessionEnd` hook configured| Add a `SessionEnd` hook in `settings.json`. See the [hook events list](</docs/en/hooks#hook-events>).
MCP servers in `.mcp.json` never load| File is under `.claude/`, or its servers sit under a top-level `servers` key, as in VS Code’s `mcp.json`, instead of `mcpServers`| Project MCP config goes at the repository root as `.mcp.json`, not inside `.claude/`, with servers under the `mcpServers` key. See [MCP configuration](</docs/en/mcp>).
MCP servers added under `mcpServers` in `settings.json` never appear| `settings.json` does not read an `mcpServers` key| Define project servers in `.mcp.json` at the repository root, or run `claude mcp add --scope user` for user-scoped servers. See [MCP configuration](</docs/en/mcp>).
-Project MCP server added but doesn’t appear| The one-time approval prompt was dismissed| Project-scoped servers require approval. Run `/mcp` to see status and approve.
+Project MCP server added but doesn’t appear| The one-time approval prompt was dismissed| Project-scoped servers require approval. Run `claude mcp reset-project-choices`, restart Claude Code, and approve the server.
MCP server fails to start from some directories| `command` or `args` uses a relative file path| Use absolute paths for local scripts. Executables on your `PATH` like `npx` or `uvx` work as-is.
MCP server starts without expected environment variables| The server’s config entry doesn’t set them, and they aren’t in the environment Claude Code passes to stdio servers: its own environment, minus the [variables it strips from subprocesses](</docs/en/monitoring-usage#administrator-configuration>)| Set per-server `env` inside the server’s `.mcp.json` entry, which doesn’t depend on the launch environment or workspace trust.
`Bash(rm *)` deny rule doesn’t block `/bin/rm` or `find -delete`| Bash rules match the literal command string, not the underlying executable; see [what a Bash rule doesn’t match](</docs/en/permissions#bash-rule-limits>)| Use a [PreToolUse hook](</docs/en/hooks-guide>) or the [sandbox](</docs/en/sandboxing>) for a hard guarantee.
--- a/env-vars.md
+++ b/env-vars.md
@@ -229,7 +229,7 @@
`CLAUDE_CODE_DISABLE_MOUSE_CLICKS`| Set to `1` to disable click, drag, and hover handling in [fullscreen rendering](</docs/en/fullscreen>) while keeping mouse-wheel scrolling. Use this when you want wheel scroll to work inside Claude Code but don’t want clicks to position the cursor, expand tool output, or open links. `CLAUDE_CODE_DISABLE_MOUSE` takes precedence when both are set. Requires Claude Code v2.1.195 or later
`CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION`| Set to `1` to stop Claude Code from re-reading the [mTLS client certificate and key](</docs/en/network-config#mtls-authentication>) when an API request fails with a connection-level error, such as a connection reset or a TLS handshake error. With the reload disabled, Claude Code loads rotated files only when it next applies settings or at the next startup. Requires Claude Code v2.1.232 or later
`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`| Set to any non-empty value, such as `1`, to disable nonessential network traffic: auto-updates, telemetry, error reporting, the `/feedback` command, [Claude-drafted feedback](</docs/en/tools-reference#sendfeedback-tool-behavior>), release notes, the [PR and MR status badge](</docs/en/interactive-mode#pr-review-status>) checks, and availability checks such as the [fast mode](</docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways>) check. It also stops the [background runs of plugin `command` sources](</docs/en/plugins/loading#when-a-command-source-re-runs>), which are local commands rather than network traffic, because they can trigger dependency installs. **Setting it to`0` or `false` still disables this traffic**, unlike most on/off variables; unset the variable to allow it again. Also disables feature-flag fetching, which makes [Remote Control](</docs/en/remote-control#requirements>) and the other features that need feature-flag fetching unavailable. Official plugin marketplace auto-install isn’t covered; disable it with `CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`. Doesn’t affect [gateway model discovery](</docs/en/llm-gateway-connect#add-gateway-models-to-the-model-picker>), which has its own opt-in
-`CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK`| Set to `1` to disable the non-streaming fallback when a streaming request fails mid-stream. Streaming errors propagate to the retry layer instead. Useful when a proxy or gateway causes the fallback to produce duplicate tool execution
+`CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK`| Set to `1` to disable the non-streaming fallback when a streaming request fails mid-stream. Useful when a proxy or gateway causes the fallback to produce duplicate tool execution
`CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK`| Set to `1` to send the `PushNotification` tool’s desktop notification even while you are typing in or focused on the terminal. By default the tool skips both the desktop notification and the [mobile push](</docs/en/remote-control#mobile-push-notifications>) when it detects recent keyboard activity or terminal focus. This variable disables only that local check, so the server can still suppress the mobile push when it detects that you are active. Requires Claude Code v2.1.193 or later
`CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`| Set to `1` to disable automatic registration of the official plugin marketplace. Claude Code reads the variable when it is about to register the marketplace, usually during a machine’s first interactive launch. If the variable is set at that point, Claude Code skips the registration permanently. Unsetting the variable later doesn’t undo the skip. Run `claude plugin marketplace add anthropics/claude-plugins-official` to register the marketplace at any time
`CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKS`| Set to `1` to stop Claude Code from running your [`Notification` hooks for unanswered permission requests](</docs/en/hooks#notification>) in sessions where Claude Code sends them to the Agent SDK’s `canUseTool` callback, which is how Claude Desktop and the VS Code extension host Claude Code. Has no effect in terminal sessions. Requires Claude Code v2.1.233 or later
Show diff (147 lines)
--- a/errors.md
+++ b/errors.md
@@ -34,7 +34,8 @@
`Agent terminated early due to an API error`| Server errors
`You've hit your session limit` / `You've hit your weekly limit` / `You've hit your Opus limit` / `You've hit your Sonnet limit`| Usage limits
`Usage credits required for 1M context`| Usage limits
-`the prompt to confirm went unanswered — nothing was sent`| Usage limits
+`the prompt to confirm went unanswered · nothing was sent`, from v2.1.324| Usage limits
+`Claude stopped here · send a message to be asked again`| Usage limits
`Server is temporarily limiting requests`| Usage limits
`Request rejected (429)`| Usage limits
`Credit balance is too low`| Usage limits
@@ -72,6 +73,7 @@
`Remote Control stopped — the app running this session is now signed in to a different Claude account`| Authentication
`Remote Control stopped — the app running this session is signed out of Claude`| Authentication
`Couldn't verify your organization's policy for remote control`| [Troubleshoot Remote Control](</docs/en/remote-control#couldnt-verify-your-organizations-policy-for-remote-control>)
+`Remote Control didn't finish connecting`| [Start a Remote Control session](</docs/en/remote-control#start-a-remote-control-session>)
`Remote Control is disabled by your organization's policy`| [Troubleshoot Remote Control](</docs/en/remote-control#remote-control-is-disabled-by-your-organizations-policy>)
`Remote Control was turned off by your organization's policy`| [Troubleshoot Remote Control](</docs/en/remote-control#remote-control-was-turned-off-by-your-organizations-policy>)
`Session failed: working folder not found:`| [Troubleshoot Remote Control](</docs/en/remote-control#working-folder-not-found>)
@@ -130,11 +132,13 @@
`Unable to connect to API`| Network
`Connection refused —` / `Can't reach the API server —` / `No internet route —` / `Couldn't connect through your proxy` / `Connection dropped`, each with an error code in parentheses| Network
`Unable to connect to Anthropic services` during setup| Network
+`Unable to fetch your privacy settings at this time`| [Privacy settings on claude.ai](<https://claude.ai/settings/data-privacy-controls>)
`Socket is closed`| Network
`Waiting for API response · will retry in`| Automatic retries, or Network if it persists
`API returned an empty or malformed response`| Network
`Streaming response ended before any complete data was received`| Network
`Bedrock streaming response has content-type "..."; expected "application/vnd.amazon.eventstream"`| Network
+`Claude Code used only the certificates that it could read in full from the NODE_EXTRA_CA_CERTS file` / `Claude Code ignored all of the NODE_EXTRA_CA_CERTS file: it holds no certificate that Claude Code can read`| [Custom CA certificates](</docs/en/network-config#custom-ca-certificates>)
`SSL certificate verification failed`| Network
`SSL certificate error (...)` during login or startup| Network
`unable to get local issuer certificate`| Network
@@ -265,6 +269,7 @@
`Couldn't run `<command>` for <name>. A file named HEAD or .git in this folder or one above it may not be yours`, from a skill that injects dynamic context| [Permission checks on injected commands](</docs/en/skills#permission-checks-on-injected-commands>)
`Skill <name> requires bash (`shell: bash` in frontmatter) but Git Bash was not found`| Command-line errors
`No shell command in <name> was run, because the <tool> tool does not accept one of them`| Command-line errors
+`This skill, command or hook and the arguments filled into it add up to more than 4,000,000 characters`| Command-line errors
`Input must be provided either through stdin or as a prompt argument when using --print`| Command-line errors
`Claude Code can't read the keyboard here: stdin is not a terminal`| Command-line errors
`Error: Input contained only whitespace`| Command-line errors
@@ -278,6 +283,7 @@
`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
`Not uploading this working tree` with `the upload cannot follow that setting`| Command-line errors
+`Not uploading this working tree` with another cause / `Git will not work in this checkout because its folder, or the .git in it, belongs to another user`| [Send local repositories without GitHub](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>)
`GitHub isn't connected to your Claude account, so this repository can't be cloned in the cloud`| Command-line errors
`Your GitHub organization has an IP allowlist that is blocking Claude`| Command-line errors
`Your GitHub organization requires single sign-on`| Command-line errors
@@ -301,6 +307,7 @@
`/recap only runs when you ask for it yourself in this session`| Command-line errors
`/feedback is disabled by your organization's policy`, or the same for `/bug` or `/share`| Command-line errors
``plugin eval` is currently in early access` / ``plugin eval` is currently unavailable`| Plugin errors
+`credential store on this machine holds a symbolic link inside it`| [Grant tools](</docs/en/plugin-evals#grant-tools>)
`cannot be evaluated where sessions load it`| [Test plugins with evals](</docs/en/plugin-evals#cannot-be-evaluated-where-sessions-load-it>)
`Marketplace "<name>" is registered from an untrusted source`| Plugin errors
`Claude Code refuses the marketplace name "<name>"`| Plugin errors
@@ -347,7 +354,7 @@
`cannot contain null bytes (\0)`| Tool errors
`Path contains null bytes`| Tool errors
`command contains the invisible character U+FEFF (byte order mark) or U+180E (Mongolian vowel separator), and was not run`| Tool errors
-`This call was not run. The command was approved before Claude Code restarted`| Tool errors
+`This call was not run. Claude Code could not confirm that the shell is back in the directory`, from v2.1.323| Tool errors
`File is too large to read as an image (the limit is 128MB)`| Tool errors
`Cannot read this as an image: <path> is a pipe or a device`| Tool errors
`subagent_type is required: the general-purpose agent is not available in this session`| Tool errors
@@ -436,6 +443,7 @@
`Claude Code's fullscreen renderer didn't finish starting last time on this machine` / `Claude Code's fullscreen renderer has repeatedly failed to start on this machine`| [Fullscreen rendering](</docs/en/fullscreen#fullscreen-renderer-didnt-finish-starting>)
`Claude Code exited after an unrecoverable interface error (...)`| Configuration warnings
`Agent descriptions are over the 15.0k-token limit`| Configuration warnings
+`declares type "claudeai-proxy", which only claude.ai connectors use`| Remove the entry from your MCP config. See [Use MCP servers from claude.ai](</docs/en/mcp#use-mcp-servers-from-claude-ai>).
`hook needs quotes around a path with a space`| Configuration warnings
`Instruction file not loaded`| Configuration warnings
`Not loaded: rename <path>, then restart — its name uses "<name>", a name reserved for the skills synced from your claude.ai account`| Configuration warnings
@@ -477,8 +485,7 @@
`CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" reads as <N> tokens, so Claude Code treats it as the 100k minimum`| [Values and warnings for `CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/model-config#claude_code_auto_compact_window-values>)
`CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" is too large, so Claude Code treats it as the 1M maximum`| [Values and warnings for `CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/model-config#claude_code_auto_compact_window-values>)
`CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" isn't a usable size, so Claude Code ignores it`| [Values and warnings for `CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/model-config#claude_code_auto_compact_window-values>)
-`Model "<model>" isn't recognized · context assumed to be 200k tokens`| [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>)
-`Claude Code doesn't recognize the model "<model>", so it assumes a context window of 200k tokens`| [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>)
+`Model "<model>" isn't recognized · context assumed to be <N> tokens` / `Claude Code doesn't recognize the model "<model>", so it assumes a context window of <N> tokens`| [Correct the window for a gateway or custom model ID](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>)
`Model "<model>" isn't recognized · did you mean "<suggestion>"?` / `Claude Code doesn't recognize the model "<model>". Did you mean "<suggestion>"?`| [Fix a mistyped model name](</docs/en/model-config#fix-a-mistyped-model-name>)
`[claude-code:unrecognized_model]`| Configuration warnings
`is ignored — managed settings set allowManagedReadPathsOnly` / `is ignored — managed settings set allowManagedDomainsOnly`| Configuration warnings
@@ -828,12 +835,12 @@
When the [Fable usage-credits consent prompt](</docs/en/model-config#fable-and-usage-credits>) closes with nobody answering it, Claude Code ends the turn with one of these messages:
- Fable limit reached · continuing on Fable 5.1 uses usage credits, and the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change
- Fable 5.1 now uses usage credits · the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change
-
-The messages name the session’s Fable model, so on Fable 5.2 they read `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. Before v2.1.257, the first message began `Fable 5 limit reached`. This happens in [Remote Control](</docs/en/remote-control>) sessions, [background sessions](</docs/en/agent-view>), [agent team](</docs/en/agent-teams>) teammate sessions, and sessions that another application hosts through the Agent SDK. For when Claude Code closes the prompt, see [Fable and usage credits](</docs/en/model-config#fable-and-usage-credits>). **What to do:**
-
- * Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](</docs/en/agent-view>) first. Resending from a Remote Control client shows this message again, because the client can’t display the prompt.
+ Fable limit reached · continuing on Fable 5.1 uses usage credits, and the prompt to confirm went unanswered · nothing was sent · answer it where this session is running, or /model to change
+ Fable 5.1 now uses usage credits · the prompt to confirm went unanswered · nothing was sent · answer it where this session is running, or /model to change
+
+The messages name the session’s Fable model, so on Fable 5.2 they read `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. With [Remote Control](</docs/en/remote-control>) connected, each message can instead end `Claude stopped here · send a message to be asked again, or switch models`. Before v2.1.257, the first message began `Fable 5 limit reached`. This happens in [Remote Control](</docs/en/remote-control>) sessions, [background sessions](</docs/en/agent-view>), [agent team](</docs/en/agent-teams>) teammate sessions, and sessions that another application hosts through the Agent SDK. For when Claude Code closes the prompt, see [Fable and usage credits](</docs/en/model-config#fable-and-usage-credits>). **What to do:**
+
+ * Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](</docs/en/agent-view>) first. If the message says `Claude stopped here`, you can also reply from your connected device and answer the consent prompt there.
* Run `/model` to switch to a model that doesn’t bill usage credits
* To give yourself more time, set [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) to a longer value or `"never"`
@@ -1974,7 +1981,7 @@
* Disable MCP servers you are not using with `/mcp disable <name>` to remove their tool definitions from context
* Trim large `CLAUDE.md` memory files, or move instructions into [path-scoped rules](</docs/en/memory#path-specific-rules>) that load only when relevant
* Auto-compact is on by default and normally prevents this error. If you turned it off in `/config` or with [`DISABLE_AUTO_COMPACT`](</docs/en/env-vars>), turn it back on. If you keep it off, run `/compact` yourself before the window fills.
- * If the error appears near 200K tokens on a model that accepts more, one cause is a model ID that Claude Code doesn’t recognize. Claude Code assumes a 200K window for such an ID, so to keep working past that point, [give it the model’s real context window](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>).
+ * If Claude Code warned that it doesn’t recognize your model ID, the warning can name the window it assumed. When the model’s real window differs, [give Claude Code the real window](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>).
* If you use a custom [`ANTHROPIC_BASE_URL`](</docs/en/env-vars>) and the error starts with `Prompt is too long · automatic compaction failed`, [set the model’s context window](</docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id>) or [update](</docs/en/setup#update-claude-code>) to v2.1.299 or later. Before v2.1.299, Claude Code ended the turn with that message near the assumed 200K window instead of sending the request.
* If the error appeared right after you stopped Claude while it was compacting the conversation, your conversation is unchanged and still large enough to need compacting. Run `/compact` and send your message again. To keep the error from recurring, [update Claude Code](</docs/en/setup#update-claude-code>) to v2.1.304 or later. Before v2.1.304, stopping at that moment could end the turn with this error.
* On v2.1.305, with many MCP tools and a direct connection to the Anthropic API, this error can hide an unrelated 400 or 422 error from the API. [Update Claude Code](</docs/en/setup#update-claude-code>) to v2.1.306 or later to see the original error.
@@ -3045,6 +3052,10 @@
* Find each `�` in the command quoted at the end of the message. Remove the character it stands for from the [skill or command file](</docs/en/skills#where-skills-live>), or from the arguments or [options](</docs/en/plugins/manifest-reference#user-configuration>) substituted into the file.
+### 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.
+
### Input must be provided when using `--print`
Bare `claude` needs stdout to be a terminal to start the interactive UI. When stdout is redirected, or the console isn’t a real terminal, such as PowerShell ISE and some IDE output panes, `claude` runs [non-interactively](</docs/en/headless>) instead. That is the same mode as `claude -p`, which requires a prompt, so the message names `--print` even when you didn’t pass the flag. Passing `-p`/`--print` with no prompt and nothing piped on stdin produces the same error anywhere.
@@ -3866,11 +3877,11 @@
* **For a command Claude wrote** : you have nothing to fix. The message tells Claude how to rewrite the command.
* **For a skill or command file** : the message follows `No shell command in <name> was run`. See where to find the character and remove it.
-### Command approved before Claude Code restarted was not run
+### Approved command was not run after Claude Code restarted
A shell command you approved didn’t run, and Claude receives this message as the command’s result:
- This call was not run. The command was approved before Claude Code restarted, and Claude Code could not confirm that the shell is back in the directory where it was approved. That directory may be gone or replaced, lie outside the directory where the session started, or be one that Claude Code needs approval to enter or is not allowed to examine. The shell's directory is <directory>. If the command still makes sense, cd to the directory it was meant for and make the call again; it may need approval again.
+ This call was not run. Claude Code could not confirm that the shell is back in the directory where it was approved. That directory may be gone or replaced, lie outside the directory where the session started, or be one that Claude Code needs approval to enter or is not allowed to examine. The shell's directory is <directory>. If the command still makes sense, cd to the directory it was meant for and make the call again; it may need approval again.
The message’s third sentence can instead read `It does not keep track of that directory across a restart in a session that has been in a worktree.` **What to do:**
@@ -4823,7 +4834,7 @@
Your session is eligible for [server-managed settings](</docs/en/server-managed-settings>), but Claude Code couldn’t fetch them or couldn’t apply what the server returned, so it shows this warning in interactive sessions and in Claude Desktop’s Code tab. The parenthesized cause names what failed, such as `network error`, `request timed out`, or `authentication rejected (401)`. The cause `no setting in the server response could be applied as written` means the server answered but none of the settings it returned passed [validation](</docs/en/server-managed-settings#invalid-entries-in-delivered-settings>). Before v2.1.282, this cause read `server returned invalid settings`. The rest of the line says which policy the session runs on:
* **Settings cached from an earlier successful fetch** : Claude Code runs the session on that cached policy, except the [withheld environment variables](</docs/en/server-managed-settings#fetch-and-caching-behavior>), and the line reads `using cached policy`.
- * **No cache** : Claude Code runs the session without server-managed settings, and the line reads `no remote policy applied`.
+ * **No cached settings to apply** : Claude Code runs the session without server-managed settings, and the line reads `no remote policy applied`. For example, the machine hasn’t fetched settings yet, or last fetched them more than [24 hours](</docs/en/server-managed-settings#fetch-and-caching-behavior>) ago.
In the Code tab, the warning appears as a line in the conversation when you send a message, and a new line appears when the state of the fetch changes. Three related messages appear the same way:
--- a/fast-mode.md
+++ b/fast-mode.md
@@ -135,7 +135,7 @@
On Agent Platform, `"fastMode": true` in your user, project, local, or managed settings has no effect. If Agent Platform refuses fast mode, Claude Code falls back to standard speed. An interactive session then shows one of these terminal messages:
* `Using standard speed on Fable 5.2 · fast mode wasn't available`: run `/fast on` to try fast mode again
- * `Fast mode was refused for this project · trying again in 30m`: Agent Platform answered a fast mode request with a 403 or 404 error. To try sooner, run `/fast on`.
+ * `Fast mode paused: your cloud provider refused a fast request · trying again in 30m`: Agent Platform answered a fast mode request with a 403 or 404 error. To try sooner, run `/fast on`. Requires Claude Code v2.1.323 or later.
### Use fast mode behind proxies and LLM gateways
--- a/feature-availability.md
+++ b/feature-availability.md
@@ -8,7 +8,7 @@
* **Anthropic Console** : you authenticate with an Anthropic API key or by [signing in to a Console account without one](</docs/en/authentication#sign-in-without-an-api-key>)
* **Amazon Bedrock** : you use Claude models from the Amazon Bedrock model catalog and set `CLAUDE_CODE_USE_BEDROCK`. The [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>) (`CLAUDE_CODE_USE_MANTLE`) is covered by this column
* **Claude Platform on AWS** : you bought Claude through AWS Marketplace but call the Anthropic API, and set `CLAUDE_CODE_USE_ANTHROPIC_AWS`
- * **Google Cloud (Anthropic managed)** : you use Claude Models on Google Cloud (Anthropic managed). You reach the Anthropic-operated Claude API through your Google Cloud project. To tell the two Google Cloud offerings apart, see [Which offering are you using?](<https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/overview#which-offering-are-you-using>)
+ * **Google Cloud (Anthropic managed)** : you use [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>) and set `CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD`. You reach the Anthropic-operated Claude API through your Google Cloud project. To tell the two Google Cloud offerings apart, see [Which offering are you using?](<https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/overview#which-offering-are-you-using>)
* **Google Cloud (Google managed)** : Google-operated as part of Google Cloud’s Agent Platform, formerly Vertex AI; you set `CLAUDE_CODE_USE_VERTEX` and use Claude Models on Google Cloud (Google managed)
* **Microsoft Foundry** : Anthropic-operated; you set `CLAUDE_CODE_USE_FOUNDRY`
@@ -177,5 +177,5 @@
## Related resources
* [Enterprise deployment overview](</docs/en/third-party-integrations>): compare authentication, billing, and regions across providers
- * Provider setup guides: [Amazon Bedrock](</docs/en/amazon-bedrock>), [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>)
+ * Provider setup guides: [Amazon Bedrock](</docs/en/amazon-bedrock>), [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>)
* [Platforms and integrations](</docs/en/platforms>): where Claude Code runs, including the CLI, Desktop, IDE extensions, web, mobile, and CI/CD
--- a/hooks-guide.md
+++ b/hooks-guide.md
@@ -497,10 +497,8 @@
* **Exit 0** : if you exit 0 from a `PreToolUse` hook, the tool call still goes through the normal [permission flow](</docs/en/permissions>), because exit 0 doesn’t approve it. For `UserPromptSubmit`, `UserPromptExpansion`, `SessionStart`, and `PostModelSwitch` hooks, Claude Code adds stdout it [treats as plain text](</docs/en/hooks#exit-code-0>) to Claude’s context.
* **Exit 2** : write a reason to stderr. Depending on the event, Claude receives it as feedback so it can adjust, the user sees it, or no message appears, as with `ConfigChange` and `Elicitation`. Some events can’t be blocked: for `SessionStart` and others, exit 2 shows stderr to the user and execution continues. See [exit code 2 behavior per event](</docs/en/hooks#exit-code-2-behavior-per-event>) for the full list.
- * **Any other exit code** : for the per-event exceptions, such as `WorktreeCreate` failing on any nonzero exit, see [Exit code output](</docs/en/hooks#exit-code-output>). On other events, unless the hook is one whose failure blocks the action, find your case by what your hook printed to stdout:
- * A parsed object that passes schema validation: Claude Code ignores the exit code, the JSON alone decides the outcome, and the hook isn’t reported as an error.
- * A parsed object that fails schema validation, or stdout that Claude Code [tries to parse as JSON](</docs/en/hooks#exit-code-0>) but that isn’t valid JSON: the action proceeds as a non-blocking error. Check the `<hook name> hook error` notice for the validation or parse message.
- * Stdout that Claude Code [treats as plain text](</docs/en/hooks#exit-code-0>), or empty stdout: the action proceeds as a non-blocking error. The transcript shows a `<hook name> hook error` notice, then the first line of stderr prefixed with `Failed with non-blocking status code:`. To capture the full stderr, enable [debug logging](</docs/en/hooks#debug-hooks>) with `claude --debug` or by running `/debug` mid-session.
+
+To look up the outcome for a combination of exit code and stdout on an event such as `PreToolUse`, see [Exit code output](</docs/en/hooks#exit-code-output>). Check the same section for events with their own exit code rules, such as `WorktreeCreate`.
#### Structured JSON output
@@ -582,13 +580,13 @@
The tabs below show a few more matchers on different event types.
- * Log every Bash command
+ * Log successful Bash commands
* Match MCP tools
* Clean up on session end
-Match only `Bash` tool calls and log each command to a file. The `PostToolUse` event fires after the command completes, so `tool_input.command` contains what ran. The hook receives the event data as JSON on stdin, and `jq -r '.tool_input.command'` extracts only the command string, which `>>` appends to the log file:
+Match only `Bash` tool calls and log each successful command to a file. The `PostToolUse` event fires after a command succeeds, so `tool_input.command` contains what ran. The hook receives the event data as JSON on stdin, and `jq -r '.tool_input.command'` extracts only the command string, which `>>` appends to the log file:
{
"hooks": {
@@ -673,7 +671,7 @@
`Bash(git *)`| `echo $(date)`| no| no subcommand matches `git *`
`Bash(git push *)`| `echo $(date)`| yes| patterns that specify more than the command name run the hook anyway on `$()`, backticks, or `$VAR`
-When Claude Code can’t determine which commands the Bash input runs, it runs your hook regardless of the pattern. The [Bash matching table](</docs/en/hooks#bash-if-matching>) covers the command shapes Claude Code can and can’t narrow by subcommand. Because the filter is best-effort, use the [permission system](</docs/en/permissions>) rather than a hook to enforce a hard allow or deny. The `if` field accepts the same patterns as permission rules: `"Bash(git *)"`, `"Edit(*.ts)"`, and so on. To match multiple tool names, use separate handlers each with its own `if` value, or match at the `matcher` level where pipe alternation is supported. `if` only works on tool events: `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, and `PermissionDenied`. Adding it to any other event prevents the hook from running.
+When Claude Code can’t split the Bash input into subcommands, it runs your hook regardless of the pattern. The [Bash matching table](</docs/en/hooks#bash-if-matching>) covers the command shapes Claude Code can and can’t narrow by subcommand. Because the filter is best-effort, use the [permission system](</docs/en/permissions>) rather than a hook to enforce a hard allow or deny. The `if` field accepts the same patterns as permission rules: `"Bash(git *)"`, `"Edit(*.ts)"`, and so on. To match multiple tool names, use separate handlers each with its own `if` value, or match at the `matcher` level where pipe alternation is supported. `if` only works on tool events: `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, and `PermissionDenied`. Adding it to any other event prevents the hook from running.
### Configure hook location
@@ -747,7 +745,7 @@
## HTTP hooks
-Use `type: "http"` hooks to POST event data to an HTTP endpoint instead of running a shell command. The endpoint receives the same JSON that a command hook would receive on stdin, and returns results through the HTTP response body using the same JSON format. HTTP hooks are useful when you want a web server, cloud function, or external service to handle hook logic: for example, a shared audit service that logs tool use events across a team. This example posts every tool use to a local logging service:
+Use `type: "http"` hooks to POST event data to an HTTP endpoint instead of running a shell command. The endpoint receives the same JSON that a command hook would receive on stdin, and returns results through the HTTP response body using the same JSON format. HTTP hooks are useful when you want a web server, cloud function, or external service to handle hook logic, such as a team’s shared audit service. The configuration below posts every successful tool call to a local logging service:
{
"hooks": {
@@ -886,9 +884,9 @@
* **Success** : you see nothing, unless the hook’s JSON surfaces something, such as `systemMessage` or Stop hook feedback.
* To confirm the hook ran, check for its effect, like a reformatted file
* **Blocking error** : on most events you see the message that came with the block, for example `Blocked: rm commands are not allowed`. On a few events, such as `ConfigChange` and `Elicitation`, you see no message. [Exit code 2](</docs/en/hooks#exit-code-2>) covers where the message comes from.
- * **Non-blocking error** : you see a `<hook name> hook error` notice with a short explanation, such as the first line of stderr after `Failed with non-blocking status code:`, or a JSON validation or parse message. The action went ahead.
-
-To look up the outcome for a specific exit code and stdout, including the per-event exceptions, see [Exit code output](</docs/en/hooks#exit-code-output>) in the reference. For full execution details, including hook exit codes, stdout, and stderr, read the [debug log](</docs/en/hooks#debug-hooks>). Start Claude Code with `claude --debug-file /tmp/claude.log` to write to a known path, then `tail -f /tmp/claude.log` in another terminal. If you started without that flag, run `/debug` mid-session to enable logging and find the log path.
+ * **Non-blocking error** : a `<hook name> hook error` notice with `Failed with non-blocking status code:` means your hook didn’t stop the action. You don’t see this notice when a command hook on an event such as `Notification` fails.
+
+To look up the outcome for a combination of exit code and stdout on an event such as `PreToolUse`, see [Exit code output](</docs/en/hooks#exit-code-output>) in the reference. Check the same section for events with their own exit code rules, such as `WorktreeCreate`. For execution details, read the [debug log](</docs/en/hooks#debug-hooks>). Start Claude Code with `claude --debug-file /tmp/claude.log` to write to a known path, then `tail -f /tmp/claude.log` in another terminal. If you started without that flag, run `/debug` mid-session to enable logging and find the log path.
## Learn more
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -514,7 +514,12 @@
## Invisible characters in prompts
-Pasted text can carry Unicode characters that a terminal draws as nothing at all, such as tag characters, bidirectional controls, and zero-width spaces, so a prompt can contain text you never see. To keep copied text from carrying instructions your terminal doesn’t draw, Claude Code removes those characters when you press Enter, before sending anything. It cleans both the prompt and the contents of any collapsed [pasted-text reference](</docs/en/terminal-config#paste-large-content>) the prompt includes. Claude Code keeps the joiners that Persian and Indic scripts write and the selectors inside emoji sequences. If Claude Code removed anything, that Enter sends nothing. The cleaned prompt goes back into the input box with a notice such as `Removed 3 invisible characters · review and press Enter to send`, and pressing Enter again sends the text as shown. When you pass a prompt on the command line, as in `claude "fix the login bug"`, Claude Code doesn’t wait for a second Enter. It removes the characters, shows a notice, and sends the cleaned prompt. If the cleaned prompt would begin with `/`, Claude Code puts it in the input box for you to review and send instead.
+Pasted text can carry Unicode characters that a terminal draws as nothing at all, such as tag characters, bidirectional controls, and zero-width spaces, so a prompt can contain text you never see. To keep copied text from carrying instructions your terminal doesn’t draw, Claude Code removes those characters when you press Enter, before sending anything. It cleans both the prompt and the contents of any collapsed [pasted-text reference](</docs/en/terminal-config#paste-large-content>) the prompt includes. Claude Code keeps the joiners that Persian and Indic scripts write and the selectors inside emoji sequences. If Claude Code removed anything, it either sends the cleaned prompt or puts it back for you to review. To tell which, check the notice:
+
+ * **`Removed 3 invisible characters from your prompt`** : if the input box is empty, your prompt was sent without those characters. If the prompt is still there, it wasn’t sent, so press Enter again.
+ * **`Removed 3 invisible characters · review and press Enter to send`** : nothing was sent. Read the cleaned prompt in the input box, then press Enter to send it as shown.
+
+When you pass a prompt on the command line, as in `claude "fix the login bug"`, Claude Code removes the characters, shows a notice, and sends the cleaned prompt. If the cleaned prompt would begin with `/`, Claude Code puts it in the input box for you to review and send instead.
## Review changes with /diff
--- a/mcp-quickstart.md
+++ b/mcp-quickstart.md
@@ -224,7 +224,7 @@
* For HTTP servers, `url` is the endpoint Claude Code connects to.
* For stdio servers, `command` and `args` are the program it runs.
-After saving the file, start a new Claude Code session in the project. Claude Code reads `.mcp.json` at startup. The first time Claude Code sees a project-scoped server, it asks you to approve it. The prompt exists so a repository you clone can’t launch processes on your machine without your consent. Approve the prompt, or run `/mcp` to approve later if you missed it. Once you’ve approved, run `/mcp` and check that the servers show as connected. If one shows an error instead, see Troubleshooting.
+After saving the file, start a new Claude Code session in the project. Claude Code reads `.mcp.json` at startup. The first time Claude Code sees a project-scoped server, it asks you to approve it. The prompt exists so a repository you clone can’t launch processes on your machine without your consent. Approve the prompt. If you dismissed it, run `claude mcp reset-project-choices` and restart Claude Code to see it again. Once you’ve approved, run `/mcp` and check that the servers show as connected. If one shows an error instead, see Troubleshooting.
## Connect from other surfaces
--- a/microsoft-foundry.md
+++ b/microsoft-foundry.md
@@ -75,7 +75,7 @@
### 4\. Pin model versions
-Pin specific model versions for every deployment. Without pinning, model aliases such as `sonnet` and `opus` resolve to Claude Code’s built-in default for Microsoft Foundry, which can lag the newest release and may not yet be available in your account. Microsoft Foundry has no startup model check, so requests fail when the default is unavailable. When you create Azure deployments, select a specific model version rather than “auto-update to latest.”
+Pin specific model versions for every deployment. Without pinning, model aliases such as `sonnet` and `opus` resolve to Claude Code’s built-in default for Microsoft Foundry. That default can lag the newest release and may not yet be available in your account.When your resource has no deployment for the default, Claude Code switches to an older model or the request fails. A switch shows a message that starts with `Switched to <fallback> because <model> is not available`. When you create Azure deployments, select a specific model version rather than “auto-update to latest.”
Set the model variables to match the deployment names you created in step 1. Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias on Microsoft Foundry resolves to Opus 4.6. Set it to the ID of a newer Opus model, such as Opus 4.8:
--- a/model-config.md
+++ b/model-config.md
@@ -732,7 +732,12 @@
### Pin models for third-party deployments
-When deploying Claude Code through [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), or [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), pin model versions before rolling out to users. Without pinning, Claude Code uses model aliases such as `fable`, `opus`, `sonnet`, and `haiku` that resolve to a built-in default model ID for each provider. That default can lag the newest Anthropic release, and the model it points to may not yet be enabled in a user’s account. When the default is unavailable, Amazon Bedrock and Google Cloud’s Agent Platform users see a notice and the session falls back to an earlier version of the default model, or to the default Sonnet model when the default is an Opus model and no Opus version is available. Microsoft Foundry users see errors instead, because Microsoft Foundry has no equivalent startup check. On Amazon Bedrock and Google Cloud’s Agent Platform, a user who starts the session on a specific Sonnet or Opus version, for example with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, pins that version as the session’s default for the matching alias: the startup check skips the built-in default it replaces and shows no fallback notice. Before v2.1.211, the check ran and could show a notice even when a session model was explicitly configured.
+When deploying Claude Code through [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), [Microsoft Foundry](</docs/en/microsoft-foundry>), or [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), pin model versions before rolling out to users. Without pinning, Claude Code uses model aliases such as `fable`, `opus`, `sonnet`, and `haiku` that resolve to a built-in default model ID for each provider. That default can lag the newest Anthropic release, and the model it points to may not yet be enabled in a user’s account. When the default is unavailable:
+
+ * **Amazon Bedrock and Google Cloud’s Agent Platform** : after a [startup check](</docs/en/amazon-bedrock#startup-model-checks>), users see a notice and the session falls back to an earlier version of the default model. When the default is an Opus model and no Opus version is available, the session falls back to the default Sonnet model.
+ * **Microsoft Foundry** : Claude Code switches to an older model or the request fails.
+
+On Amazon Bedrock and Google Cloud’s Agent Platform, a user who starts the session on a specific Sonnet or Opus version, for example with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, pins that version as the session’s default for the matching alias: the startup check skips the built-in default it replaces and shows no fallback notice. Before v2.1.211, the check ran and could show a notice even when a session model was explicitly configured.
Set the model environment variables to specific version IDs as part of your initial setup. Pinning lets you control when your users move to a new model.
--- a/monitoring-usage.md
+++ b/monitoring-usage.md
@@ -696,7 +696,7 @@
* `speed`: `"fast"` or `"normal"`, indicating whether fast mode was active
* `query_source`: Subsystem that issued the request, such as `"repl_main_thread"`, `"compact"`, or a subagent name
* `effort`: [Effort level](</docs/en/model-config#adjust-effort-level>) applied to the request: `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`. Absent when Claude Code sends no effort level, for example on a model that doesn’t support effort.
- * `agent.name`, `skill.name`, `plugin.name`, `marketplace.name`, `mcp_server.name`, `mcp_tool.name`: Skill, plugin, agent, and MCP attribution for the request. See Cost counter for definitions and redaction behavior.
+ * `agent.name`, `skill.name`, `plugin.name`, `marketplace.name`, `mcp_server.name`, `mcp_tool.name`: Skill, plugin, agent, and MCP attribution for the request. See Cost counter for definitions and redaction behavior. When a [mod](</docs/en/plugins/mods/overview>) from outside the official marketplace and built-in bundle calls [`$.model`](</docs/en/plugins/mods/api#call-a-model>), `marketplace.name` is also present, redacted to `"third-party"` unless you set `OTEL_LOG_TOOL_DETAILS=1`.
#### API error event
@@ -716,7 +716,7 @@
* `speed`: `"fast"` or `"normal"`, indicating whether fast mode was active
* `query_source`: Subsystem that issued the request, such as `"repl_main_thread"`, `"compact"`, or a subagent name
* `effort`: [Effort level](</docs/en/model-config#adjust-effort-level>) applied to the request. Absent when Claude Code sends no effort level, for example on a model that doesn’t support effort.
- * `agent.name`, `skill.name`, `plugin.name`, `marketplace.name`, `mcp_server.name`, `mcp_tool.name`: Skill, plugin, agent, and MCP attribution for the request. See Cost counter for definitions and redaction behavior.
+ * `agent.name`, `skill.name`, `plugin.name`, `marketplace.name`, `mcp_server.name`, `mcp_tool.name`: Skill, plugin, agent, and MCP attribution for the request. See Cost counter for definitions and redaction behavior. For `marketplace.name` on a mod’s `$.model` calls, see `api_request`.
#### API refusal event
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -243,7 +243,7 @@
* **Plan** : All plans.
* **Organization** : on Team and Enterprise, auto mode is available by default. Administrators can turn it off for the organization by setting `permissions.disableAutoMode` to `"disable"` in [managed settings](</docs/en/managed-settings>).
* **Provider and model** : available by default on these providers, with these models:
- * **Anthropic API,[Claude Platform on AWS](</docs/en/claude-platform-on-aws>), and [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>)**: Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](</docs/en/model-config#work-with-fable>)
+ * **Anthropic API,[Claude Platform on AWS](</docs/en/claude-platform-on-aws>), and [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>)**: Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](</docs/en/model-config#work-with-fable>)
* **Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, and signed-in[Claude apps gateway](</docs/en/claude-apps-gateway>) sessions**: only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models
Older models, including Sonnet 4.5, Opus 4.5, Haiku 4.5, and claude-3 models, are not supported on any provider.
--- a/python.md
+++ b/python.md
@@ -2121,7 +2121,7 @@
class SyncHookJSONOutput(TypedDict):
# Control fields
continue_: NotRequired[bool] # Whether to proceed (default: True)
- suppressOutput: NotRequired[bool] # Hide stdout from transcript
+ suppressOutput: NotRequired[bool] # Has no effect
stopReason: NotRequired[str] # Message when continue is False
# Decision fields
--- a/remote-control.md
+++ b/remote-control.md
@@ -138,7 +138,7 @@
* **Messages from your other sessions** : with [cross-session messaging](</docs/en/cross-session-messaging>), the same connection carries messages between your own sessions on different machines.
* **Diff of your changes** : when the session’s directory is in a git repository, a connected device’s diff pane shows your changes. On a branch that has commits ahead of the repository’s default branch, the pane shows the changes since the branch split from it, including your uncommitted edits. On the default branch itself, or on a branch that isn’t ahead of it, the pane shows only your uncommitted changes.
* **Model** : when you pick a [model](</docs/en/model-config>) from a connected device, Claude Code runs the session on that model. Requires Claude Code v2.1.238 or later. A model you pick from the device’s model control applies to the current session only. When you send `/model <name>` from the device to an interactive session, Claude Code also sets your default for new sessions.
- * **Effort level** : when you set the [effort level](</docs/en/model-config#adjust-effort-level>) from a connected device, with `/effort` or the device’s effort control, Claude Code applies it to the session on your machine. If you pinned a level with `CLAUDE_CODE_EFFORT_LEVEL`, the session keeps that level, and Claude Code refuses a different pick from the effort control. Picking a level from the effort control requires Claude Code v2.1.234 or later on your machine.
+ * **Effort level** : when you set the [effort level](</docs/en/model-config#adjust-effort-level>) from a connected device, with `/effort` or the device’s effort control, Claude Code applies it to the session on your machine. If you pinned a level with `CLAUDE_CODE_EFFORT_LEVEL`, the session keeps that level. Picking a level from the effort control requires Claude Code v2.1.234 or later on your machine.
* **Reconnecting after a connection failure** : run `/remote-control` to reconnect. If compaction rewrote the conversation or you switched conversations with `/resume` in the meantime, Claude Code archives the server session it was using instead of leaving it in the session list. You can still find that session among your [archived sessions](</docs/en/claude-code-on-the-web#find-an-archived-session>) at claude.ai/code. Switching conversations while a device is still connected doesn’t archive the session.
### Fork a session from your browser
@@ -299,13 +299,13 @@
* **Attachments that don’t download** : if a file you attach from your phone or browser can’t be downloaded to your machine, Claude still receives your message and the files that were downloaded. In place of the missing files, Claude Code adds a note such as `[1 of 3 attachments did not arrive]` to the message.
* **Presence heartbeats failing** : if an interactive session disconnects with `could not reach the Remote Control server for about 30 minutes`, run `/remote-control` to reconnect.
* **Forwarded dialogs expire** : Claude Code keeps permission prompts and `AskUserQuestion` questions open until you answer them. When Claude Code forwards another kind of dialog to the remote session, such as the model-choice prompt shown after a safety refusal, it waits five minutes by default, then closes the dialog and continues with the dialog’s no-action default. Set [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) to adjust or disable the deadline. Requires Claude Code v2.1.224 or later.
- * **The Fable usage-credits consent prompt isn’t forwarded** : Claude Code shows the mid-session [Fable usage-credits consent prompt](</docs/en/model-config#fable-and-usage-credits>) only where the session runs, not on your device. When the session runs in a terminal and nobody there answers before Claude Code closes the prompt, the turn ends without sending the request; see [The prompt to confirm went unanswered](</docs/en/errors#the-prompt-to-confirm-went-unanswered>).
+ * **Unanswered Fable usage-credits prompts end the turn** : if nobody answers the [Fable usage-credits consent prompt](</docs/en/model-config#fable-and-usage-credits>) by the [`dialogExpiry`](</docs/en/settings-reference#dialogexpiry>) deadline, the turn ends and nothing is sent; see [The prompt to confirm went unanswered](</docs/en/errors#the-prompt-to-confirm-went-unanswered>). In an interactive session in a terminal, the prompt can also appear on your connected device, and you can answer it there. Requires Claude Code v2.1.323 or later.
* **Some commands are local-only** : commands that only run in the terminal interface, such as `/plugin` or `/resume`, work only from the local CLI, whether or not you pass an argument. `/claude-api` is also unavailable when you type it from mobile or web. Claude can still [load that skill on its own](</docs/en/skills#work-on-claude-api-projects>) there. The following work from mobile and web:
* Text-output commands: `/compact`, `/clear`, `/context`, `/usage`, `/exit`, `/usage-credits`, `/recap`, and `/reload-plugins`. `/usage-credits` replies in text, such as where to manage usage credits. `/reload-plugins` works only when the session runs in an interactive terminal; a session without one declines it.
* `/model`, `/effort`, `/fast`, `/color`, and `/rename`: pass the value as an argument, for example `/model sonnet` or `/effort high`. From mobile and web, `/model` and `/effort` take the argument in place of the terminal picker or slider.
* `/mcp`: from the mobile app, returns a text summary of server status instead of opening the picker. On the web, `/mcp` on its own opens a directory of [claude.ai connectors](</docs/en/mcp#use-mcp-servers-from-claude-ai>) instead of returning the summary. The `reconnect`, `enable`, and `disable` [subcommands](</docs/en/commands#all-commands>) work from both when the session runs in an interactive terminal. `/mcp reconnect` with no server name retries every server that has failed or needs authentication. To authorize a claude.ai connector without the picker, see Authorize a connector again from your shell.
* `/config`: from the mobile app, pass `key=value` to set a setting, or run it with no argument to list the keys you can set. On the web, `/config` opens **Settings > Code** or **Settings > Claude Code** instead.
- * On Team and Enterprise, `/usage-credits` from mobile or web doesn’t send a [usage-credits request to your admin](</docs/en/costs#add-usage-credits-to-your-subscription>). Sending requires a confirmation that appears only in the interactive CLI, so the command tells you to run it there instead.
+ * If you’re a Team or Enterprise member without billing access, `/usage-credits` from mobile or web doesn’t send a [usage-credits request to your admin](</docs/en/costs#add-usage-credits-to-your-subscription>). Sending requires a confirmation that appears only in the interactive CLI, so the command tells you to run it there instead.
* `/autocompact`, from v2.1.221: pass the window size as an argument, for example `/autocompact 500k`. With no argument, it prints the current window size as text instead of opening the dialog the command shows in a terminal session.
* `/advisor`, from v2.1.260: pass the model as an argument, for example `/advisor opus`, or pass `off` to turn the advisor off. Both forms apply to the current session only and leave your saved default unchanged. With no argument, it prints the current advisor as text instead of opening the picker.
* `/output-style`, from v2.1.269: pass the style name as an argument, for example `/output-style concise`, or run it with no argument to list the styles. From mobile and web, you can list and select only [built-in styles](</docs/en/output-styles#built-in-output-styles>). To use a [custom style](</docs/en/output-styles#create-a-custom-output-style>), select it in the session itself.
@@ -420,15 +420,14 @@
### ”Remote credentials fetch failed”
-Claude Code could not obtain a short-lived credential from the Anthropic API to establish the connection. Re-run with `--verbose` to see the full error:
-
- claude remote-control --verbose
+Claude Code couldn’t obtain a short-lived credential from the Anthropic API to establish the connection. To see the full error, start a session from your shell with a debug log, then search the log for `code-session`:
+
+ claude --remote-control --debug-file claude-debug.log
Common causes:
- * Not signed in: run `claude` and use `/login` to authenticate with your claude.ai account. API key authentication is not supported for Remote Control.
* Network or proxy issue: a firewall or proxy may be blocking the outbound HTTPS request. Remote Control requires access to the Anthropic API on port 443.
- * Session creation failed: if you also see `Session creation failed — see debug log`, the failure happened earlier in setup. Check that your subscription is active.
+ * Session creation failed: if you also see `Session creation failed — see debug log`, the failure happened earlier in setup. Run the same search to find the error.
### “working folder not found”
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -275,7 +275,7 @@
"advisorModel": "opus"
}
-The key has no effect on providers where the advisor [isn’t available](</docs/en/advisor#requirements>), such as Amazon Bedrock. On Claude Platform on AWS or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>), the key requires Claude Code v2.1.300 or later. `"fable"` requires [Fable access](</docs/en/advisor#choose-an-advisor-model>).
+The key has no effect on providers where the advisor [isn’t available](</docs/en/advisor#requirements>), such as Amazon Bedrock. On Claude Platform on AWS or [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>), the key requires Claude Code v2.1.300 or later. `"fable"` requires [Fable access](</docs/en/advisor#choose-an-advisor-model>).
### `alwaysThinkingEnabled`
--- a/terminal-config.md
+++ b/terminal-config.md
@@ -286,7 +286,7 @@
## Paste large content
-When you paste more than 800 characters or more than three lines into the prompt, Claude Code collapses the input to a placeholder such as `[Pasted text #1 +120 lines]` so the input box stays usable, and still sends the full content when you submit. For very large inputs such as entire files or long logs, write the content to a file and ask Claude to read it instead of pasting. The conversation transcript stays readable and Claude can refer to the file by path in later turns. The VS Code integrated terminal can also drop characters from very large pastes before they reach Claude Code, so use a file there. If the paste carries [invisible Unicode characters](</docs/en/interactive-mode#invisible-characters-in-prompts>), Claude Code removes them when you press Enter and puts the cleaned prompt back in the input box for you to send with another Enter.
+When you paste more than 800 characters or more than three lines into the prompt, Claude Code collapses the input to a placeholder such as `[Pasted text #1 +120 lines]` so the input box stays usable, and still sends the full content when you submit. For very large inputs such as entire files or long logs, write the content to a file and ask Claude to read it instead of pasting. The conversation transcript stays readable and Claude can refer to the file by path in later turns. The VS Code integrated terminal can also drop characters from very large pastes before they reach Claude Code, so use a file there. If the paste carries [invisible Unicode characters](</docs/en/interactive-mode#invisible-characters-in-prompts>), Claude Code removes them when you press Enter.
### How Claude treats pasted text
--- a/tools-reference.md
+++ b/tools-reference.md
@@ -340,6 +340,10 @@
NotebookEdit refuses a notebook file that doesn’t decode as UTF-8, under the same rule as Edit, and writes nothing. Permission rules use the `Edit(...)` path format. A rule like `Edit(notebooks/**)` covers NotebookEdit calls on files in that directory.
+### Replacing a cell clears its saved outputs in the file
+
+When NotebookEdit replaces a code cell, its execution count and saved outputs are cleared. To get the output back, re-run the cell and any cells that use the functions or variables it defines. See [Work with Jupyter notebooks](</docs/en/vs-code#work-with-jupyter-notebooks>) for the VS Code workflow.
+
## PowerShell tool
The PowerShell tool lets Claude run PowerShell commands natively. On Windows, this means commands run in PowerShell instead of routing through Git Bash. How the tool becomes available depends on your platform:
@@ -522,7 +526,7 @@
WebSearch runs a query against Anthropic’s [web search](<https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool>) backend and returns result titles and URLs. It doesn’t fetch the result pages. To read a page Claude finds in search results, it follows up with WebFetch. The tool may issue up to eight backend searches per call, refining the search internally before returning results. Claude can scope results with `allowed_domains` to include only certain hosts, or `blocked_domains` to exclude them. The two lists can’t be combined in a single call. When the search request hits an overloaded API, Claude Code retries it with backoff; a call that still fails returns an error result. WebSearch permission rules take no specifier. A bare `WebSearch` entry in `allow` or `deny` is the only form. The search backend is not configurable. To search with a different provider, add an [MCP server](</docs/en/mcp>) that exposes a search tool.
-WebSearch is available on the Claude API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), [Claude Models on Google Cloud (Anthropic managed)](</docs/en/feature-availability#availability-by-model-provider>), and Microsoft Foundry. On Google Cloud’s Agent Platform it works with Opus 4, Sonnet 4, Haiku 4.5, and later models. Amazon Bedrock doesn’t expose the server-side web search tool.
+WebSearch is available on the Claude API, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), [Claude Models on Google Cloud (Anthropic managed)](</docs/en/claude-models-on-google-cloud-anthropic-managed>), and Microsoft Foundry. On Google Cloud’s Agent Platform it works with Opus 4, Sonnet 4, Haiku 4.5, and later models. Amazon Bedrock doesn’t expose the server-side web search tool.
### Session search limit
--- a/vs-code.md
+++ b/vs-code.md
@@ -208,6 +208,7 @@
* The extension [chooses the starting permission mode](</docs/en/permission-modes#switch-permission-modes>) from `claudeCode.initialPermissionMode` or a pick that carries over from an earlier conversation
* You have `claudeCode.claudeProcessWrapper` configured
* A [deny rule](</docs/en/permissions#manage-permissions>) removes the [`ExitPlanMode`](</docs/en/tools-reference>) tool
+ * [`permissions.denyInsteadOfPrompting`](</docs/en/settings-reference#permissions-denyinsteadofprompting>) is on
#### The conversation is still open somewhere else
@@ -460,6 +461,18 @@
### Reopen a conversation that moved into a worktree
On a reopened conversation, the **This session is in worktree** banner means the conversation’s working directory is the [worktree](</docs/en/worktrees>) it names, not the folder this window has open. To open the worktree in a new VS Code window, click **Open worktree** on the banner. A conversation moves into a worktree when, for example, you [ask Claude to work in one](</docs/en/worktrees#ask-claude-to-create-a-worktree>). When you reopen it, or the panel reopens it after a window reload, it resumes in the worktree if Claude Code created the worktree under `.claude/worktrees/` and it still exists. Before Claude Code v2.1.300, an empty conversation opened instead. On those versions, update the extension.
+
+## Work with Jupyter notebooks
+
+Claude Code edits notebooks with the [NotebookEdit tool](</docs/en/tools-reference#notebookedit-tool-behavior>).
+
+### Re-run edited cells
+
+When Claude replaces a code cell, it rewrites the cell’s source in the file and clears the cell’s saved output and execution count. The edit doesn’t require a kernel restart: NotebookEdit writes only the file and doesn’t connect to your kernel. Re-run that cell, and any cells that use the functions or variables it defines.
+
+### Save the notebook before an edit
+
+Save the notebook before you ask for an edit; the extension’s `autosave` setting doesn’t save before NotebookEdit.
## Run work in the background
@@ -572,7 +585,7 @@
`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
-`autosave`| `true`| Auto-save files before Claude reads or writes them
+`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