Changes on
31 changes detected
Show diff (151 lines)
--- a/auto-mode-config.md
+++ b/auto-mode-config.md
@@ -0,0 +1,148 @@
+[Auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) lets Claude Code run without permission prompts by routing each tool call through a classifier that blocks anything irreversible, destructive, or aimed outside your environment. Use the `autoMode` settings block to tell that classifier which repos, buckets, and domains your organization trusts, so it stops blocking routine internal operations. Out of the box, the classifier trusts only the working directory and the current repo’s configured remotes. Actions like pushing to your company’s source-control org or writing to a team cloud bucket are blocked until you add them to `autoMode.environment`. For how to enable auto mode and what it blocks by default, see [Permission modes](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>). This page is the configuration reference. This page covers how to:
+
+ * Choose where to set rules across CLAUDE.md, user settings, and managed settings
+ * Define trusted infrastructure with `autoMode.environment`
+ * Override the block and allow rules when the defaults don’t fit your pipeline
+ * Inspect your effective config with the `claude auto-mode` subcommands
+ * Review denials so you know what to add next
+
+##
+
+
+
+Where the classifier reads configuration
+
+The classifier reads the same [CLAUDE.md](</docs/en/memory>) content Claude itself loads, so an instruction like “never force push” in your project’s CLAUDE.md steers both Claude and the classifier at the same time. Start there for project conventions and behavioral rules. For rules that apply across projects, such as trusted infrastructure or organization-wide deny rules, use the `autoMode` settings block. The classifier reads `autoMode` from the following scopes:
+
+Scope| File| Use for
+---|---|---
+One developer| `~/.claude/settings.json`| Personal trusted infrastructure
+One project, one developer| `.claude/settings.local.json`| Per-project trusted buckets or services, gitignored
+Organization-wide| [Managed settings](</docs/en/server-managed-settings>)| Trusted infrastructure distributed to all developers
+`--settings` flag or Agent SDK| Inline JSON| Per-invocation overrides for automation
+
+The classifier does not read `autoMode` from shared project settings in `.claude/settings.json`, so a checked-in repo cannot inject its own allow rules. Entries from each scope are combined. A developer can extend `environment`, `allow`, and `soft_deny` with personal entries but cannot remove entries that managed settings provide. Because allow rules act as exceptions to block rules inside the classifier, a developer-added `allow` entry can override an organization `soft_deny` entry: the combination is additive, not a hard policy boundary.
+
+The classifier is a second gate that runs after the [permissions system](</docs/en/permissions>). For actions that must never run regardless of user intent or classifier configuration, use `permissions.deny` in managed settings, which blocks the action before the classifier is consulted and cannot be overridden.
+
+##
+
+
+
+Define trusted infrastructure
+
+For most organizations, `autoMode.environment` is the only field you need to set. It tells the classifier which repos, buckets, and domains are trusted: the classifier uses it to decide what “external” means, so any destination not listed is a potential exfiltration target. Setting `environment` replaces the default environment list, which includes the entry that trusts the working repo and its remotes. Run `claude auto-mode defaults` to print the defaults, then include them alongside your own entries so you extend the list rather than narrow it.
+
+ {
+ "autoMode": {
+ "environment": [
+ "Source control: github.example.com/acme-corp and all repos under it",
+ "Trusted cloud buckets: s3://acme-build-artifacts, gs://acme-ml-datasets",
+ "Trusted internal domains: *.corp.example.com, api.internal.example.com",
+ "Key internal services: Jenkins at ci.example.com, Artifactory at artifacts.example.com"
+ ]
+ }
+ }
+
+Entries are prose, not regex or tool patterns. The classifier reads them as natural-language rules. Write them the way you would describe your infrastructure to a new engineer. A thorough environment section covers:
+
+ * **Organization** : your company name and what Claude Code is primarily used for, like software development, infrastructure automation, or data engineering
+ * **Source control** : every GitHub, GitLab, or Bitbucket org your developers push to
+ * **Cloud providers and trusted buckets** : bucket names or prefixes that Claude should be able to read from and write to
+ * **Trusted internal domains** : hostnames for APIs, dashboards, and services inside your network, like `*.internal.example.com`
+ * **Key internal services** : CI, artifact registries, internal package indexes, incident tooling
+ * **Additional context** : regulated-industry constraints, multi-tenant infrastructure, or compliance requirements that affect what the classifier should treat as risky
+
+A useful starting template: fill in the bracketed fields and remove any lines that don’t apply.
+
+ {
+ "autoMode": {
+ "environment": [
+ "Organization: {COMPANY_NAME}. Primary use: {PRIMARY_USE_CASE, e.g. software development, infrastructure automation}",
+ "Source control: {SOURCE_CONTROL, e.g. GitHub org github.example.com/acme-corp}",
+ "Cloud provider(s): {CLOUD_PROVIDERS, e.g. AWS, GCP, Azure}",
+ "Trusted cloud buckets: {TRUSTED_BUCKETS, e.g. s3://acme-builds, gs://acme-datasets}",
+ "Trusted internal domains: {TRUSTED_DOMAINS, e.g. *.internal.example.com, api.example.com}",
+ "Key internal services: {SERVICES, e.g. Jenkins at ci.example.com, Artifactory at artifacts.example.com}",
+ "Additional context: {EXTRA, e.g. regulated industry, multi-tenant infrastructure, compliance requirements}"
+ ]
+ }
+ }
+
+The more specific context you give, the better the classifier can distinguish routine internal operations from exfiltration attempts. You don’t need to fill everything in at once. A reasonable rollout: start with the defaults and add your source control org and key internal services, which resolves the most common false positives like pushing to your own repos. Add trusted domains and cloud buckets next. Fill the rest as blocks come up.
+
+##
+
+
+
+Override the block and allow rules
+
+Two additional fields let you replace the classifier’s built-in rule lists: `autoMode.soft_deny` controls what gets blocked, and `autoMode.allow` controls which exceptions apply. Each is an array of prose descriptions, read as natural-language rules. There is no `autoMode.deny` field; to hard-block an action regardless of intent, use [`permissions.deny`](</docs/en/permissions>), which runs before the classifier. Inside the classifier, precedence works in three tiers:
+
+ * `soft_deny` rules block first
+ * `allow` rules then override matching blocks as exceptions
+ * Explicit user intent overrides both: if the user’s message directly and specifically describes the exact action Claude is about to take, the classifier allows it even when a `soft_deny` rule matches
+
+General requests don’t count as explicit intent. Asking Claude to “clean up the repo” does not authorize force-pushing, but asking Claude to “force-push this branch” does.
+
+Setting any of `environment`, `allow`, or `soft_deny` replaces the entire default list for that section. If you set `soft_deny` with a single entry, every built-in block rule is discarded: force push, data exfiltration, `curl | bash`, production deploys, and all other default block rules become allowed. To customize safely, run `claude auto-mode defaults` to print the built-in rules, copy them into your settings file, then review each rule against your own pipeline and risk tolerance. Only remove rules for risks your infrastructure already mitigates.
+
+To loosen: remove rules from `soft_deny` when the defaults block something your pipeline already guards against with PR review, CI, or staging environments, or add to `allow` when the classifier repeatedly flags a routine pattern the default exceptions don’t cover. To tighten: add to `soft_deny` for risks specific to your environment that the defaults miss, or remove from `allow` to hold a default exception to the block rules. In all cases, run `claude auto-mode defaults` to get the full default lists, then copy and edit: never start from an empty list.
+
+ {
+ "autoMode": {
+ "environment": [
+ "Source control: github.example.com/acme-corp and all repos under it"
+ ],
+ "allow": [
+ "Deploying to the staging namespace is allowed: staging is isolated from production and resets nightly",
+ "Writing to s3://acme-scratch/ is allowed: ephemeral bucket with a 7-day lifecycle policy"
+ ],
+ "soft_deny": [
+ "Never run database migrations outside the migrations CLI, even against dev databases",
+ "Never modify files under infra/terraform/prod/: production infrastructure changes go through the review workflow",
+ "...copy full default soft_deny list here first, then add your rules..."
+ ]
+ }
+ }
+
+Each section replaces only its own default, so setting `environment` alone leaves the default `allow` and `soft_deny` lists intact.
+
+##
+
+
+
+Inspect the defaults and your effective config
+
+Because setting any of the three arrays replaces its defaults, start any customization by copying the full default lists. Three CLI subcommands help you inspect and validate. Print the built-in `environment`, `allow`, and `soft_deny` rules as JSON:
+
+ claude auto-mode defaults
+
+Print what the classifier actually uses as JSON, with your settings applied where set and defaults otherwise:
+
+ claude auto-mode config
+
+Get AI feedback on your custom `allow` and `soft_deny` rules:
+
+ claude auto-mode critique
+
+Save the output of `claude auto-mode defaults` to a file, edit the lists to match your policy, and paste the result into your settings file. After saving, run `claude auto-mode config` to confirm the effective rules are what you expect. If you’ve written custom rules, `claude auto-mode critique` reviews them and flags entries that are ambiguous, redundant, or likely to cause false positives.
+
+##
+
+
+
+Review denials
+
+When auto mode denies a tool call, the denial is recorded in `/permissions` under the Recently denied tab. Press `r` on a denied action to mark it for retry: when you exit the dialog, Claude Code sends a message telling the model it may retry that tool call and resumes the conversation. Repeated denials for the same destination usually mean the classifier is missing context. Add that destination to `autoMode.environment`, then run `claude auto-mode config` to confirm it took effect. To react to denials programmatically, use the [`PermissionDenied` hook](</docs/en/hooks#permissiondenied>).
+
+##
+
+
+
+See also
+
+ * [Permission modes](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>): what auto mode is, what it blocks by default, and how to enable it
+ * [Managed settings](</docs/en/server-managed-settings>): deploy `autoMode` configuration across your organization
+ * [Permissions](</docs/en/permissions>): allow, ask, and deny rules that apply before the classifier runs
+ * [Settings](</docs/en/settings>): the full settings reference, including the `autoMode` key
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,45 @@
This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version.
+
+
+
+2.1.118
+
+April 23, 2026
+
+ * Added vim visual mode (`v`) and visual-line mode (`V`) with selection, operators, and visual feedback
+ * Merged `/cost` and `/stats` into `/usage` — both remain as typing shortcuts that open the relevant tab
+ * Create and switch between named custom themes from `/theme`, or hand-edit JSON files in `~/.claude/themes/`; plugins can also ship themes via a `themes/` directory
+ * Hooks can now invoke MCP tools directly via `type: "mcp_tool"`
+ * Added `DISABLE_UPDATES` env var to completely block all update paths including manual `claude update` — stricter than `DISABLE_AUTOUPDATER`
+ * WSL on Windows can now inherit Windows-side managed settings via the `wslInheritsWindowsSettings` policy key
+ * Auto mode: include `"$defaults"` in `autoMode.allow`, `autoMode.soft_deny`, or `autoMode.environment` to add custom rules alongside the built-in list instead of replacing it
+ * Added a “Don’t ask again” option to the auto mode opt-in prompt
+ * Added `claude plugin tag` to create release git tags for plugins with version validation
+ * `--continue`/`--resume` now find sessions that added the current directory via `/add-dir`
+ * `/color` now syncs the session accent color to claude.ai/code when Remote Control is connected
+ * The `/model` picker now honors `ANTHROPIC_DEFAULT_*_MODEL_NAME`/`_DESCRIPTION` overrides when using a custom `ANTHROPIC_BASE_URL` gateway
+ * When auto-update skips a plugin due to another plugin’s version constraint, the skip now appears in `/doctor` and the `/plugin` Errors tab
+ * Fixed `/mcp` menu hiding OAuth Authenticate/Re-authenticate actions for servers configured with `headersHelper`, and HTTP/SSE MCP servers with custom headers being stuck in “needs authentication” after a transient 401
+ * Fixed MCP servers whose OAuth token response omits `expires_in` requiring re-authentication every hour
+ * Fixed MCP step-up authorization silently refreshing instead of prompting for re-consent when the server’s `insufficient_scope` 403 names a scope the current token already has
+ * Fixed an unhandled promise rejection when an MCP server’s OAuth flow times out or is cancelled
+ * Fixed MCP OAuth refresh proceeding without its cross-process lock under contention
+ * Fixed macOS keychain race where a concurrent MCP token refresh could overwrite a freshly-refreshed OAuth token, causing unexpected “Please run /login” prompts
+ * Fixed OAuth token refresh failing when the server revokes a token before its local expiry time
+ * Fixed credential save crash on Linux/Windows corrupting `~/.claude/.credentials.json`
+ * Fixed `/login` having no effect in a session launched with `CLAUDE_CODE_OAUTH_TOKEN` — the env token is now cleared so disk credentials take effect
+ * Fixed unreadable text in the “new messages” scroll pill and `/plugin` badges
+ * Fixed plan acceptance dialog offering “auto mode” instead of “bypass permissions” when running with `--dangerously-skip-permissions`
+ * Fixed agent-type hooks failing with “Messages are required for agent hooks” when configured for events other than `Stop` or `SubagentStop`
+ * Fixed `prompt` hooks re-firing on tool calls made by an agent-hook verifier subagent
+ * Fixed `/fork` writing the full parent conversation to disk per fork — now writes a pointer and hydrates on read
+ * Fixed Alt+K / Alt+X / Alt+^ / Alt+_ freezing keyboard input
+ * Fixed connecting to a remote session overwriting your local `model` setting in `~/.claude/settings.json`
+ * Fixed typeahead showing “No commands match” error when pasting file paths that start with `/`
+ * Fixed `plugin install` on an already-installed plugin not re-resolving a dependency installed at the wrong version
+ * Fixed unhandled errors from file watcher on invalid paths or fd exhaustion
+ * Fixed Remote Control sessions getting archived on transient CCR initialization blips during JWT refresh
+ * Fixed subagents resumed via `SendMessage` not restoring the explicit `cwd` they were spawned with
@@ -53,6 +94,7 @@
* Agent frontmatter `hooks:` now fire when running as a main-thread agent via `--agent`
* Slash command menu now shows “No commands match” when your filter has zero results, instead of disappearing
* Security: sandbox auto-allow no longer bypasses the dangerous-path safety check for `rm`/`rmdir` targeting `/`, `$HOME`, or other critical system directories
+ * Claude Code and installer now use `https://downloads.claude.ai/claude-code-releases` instead of `https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases`
* Fixed Devanagari and other Indic scripts rendering with broken column alignment in the terminal UI
* Fixed Ctrl+- not triggering undo in terminals using the Kitty keyboard protocol (iTerm2, Ghostty, kitty, WezTerm, Windows Terminal)
* Fixed Cmd+Left/Right not jumping to line start/end in terminals that use the Kitty keyboard protocol (Warp fullscreen, kitty, Ghostty, WezTerm)
--- a/claude-directory.md
+++ b/claude-directory.md
@@ -112,6 +112,9 @@
`debug/`| Per-session debug logs, written only when you start with `--debug` or run `/debug`
`paste-cache/`, `image-cache/`| Contents of large pastes and attached images
`session-env/`| Per-session environment metadata
+`tasks/`| Per-session task lists written by the task tools
+`shell-snapshots/`| Captured shell environment used by the Bash tool. Removed on clean exit. The sweep clears any left after a crash.
+`backups/`| Timestamped copies of `~/.claude.json` taken before config migrations
###
@@ -125,10 +128,9 @@
---|---
`history.jsonl`| Every prompt you’ve typed, with timestamp and project path. Used for up-arrow recall.
`stats-cache.json`| Aggregated token and cost counts shown by `/cost`
-`backups/`| Timestamped copies of `~/.claude.json` taken before config migrations
`todos/`| Legacy per-session task lists. No longer written by current versions; safe to delete.
-`shell-snapshots/` holds runtime files removed when the session exits cleanly. Other small cache and lock files appear depending on which features you use and are safe to delete.
+Other small cache and lock files appear depending on which features you use and are safe to delete.
###
@@ -156,8 +158,7 @@
`~/.claude/history.jsonl`| Up-arrow prompt recall
`~/.claude/file-history/`| Checkpoint restore for past sessions
`~/.claude/stats-cache.json`| Historical totals shown by `/cost`
-`~/.claude/backups/`| Rollback copies of `~/.claude.json` from past config migrations
-`~/.claude/debug/`, `~/.claude/plans/`, `~/.claude/paste-cache/`, `~/.claude/image-cache/`, `~/.claude/session-env/`| Nothing user-facing
+`~/.claude/debug/`, `~/.claude/plans/`, `~/.claude/paste-cache/`, `~/.claude/image-cache/`, `~/.claude/session-env/`, `~/.claude/tasks/`, `~/.claude/shell-snapshots/`, `~/.claude/backups/`| Nothing user-facing
`~/.claude/todos/`| Nothing. Legacy directory not written by current versions.
Don’t delete `~/.claude.json`, `~/.claude/settings.json`, or `~/.claude/plugins/`: those hold your auth, preferences, and installed plugins.
--- a/commands.md
+++ b/commands.md
@@ -46,7 +46,7 @@
`/mobile`| Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android`
`/model [model]`| Select or change the AI model. For models that support it, use left/right arrows to [adjust effort level](</docs/en/model-config#adjust-effort-level>). With no argument, opens a picker that asks for confirmation when the conversation has prior output, since the next response re-reads the full history without cached context. Once confirmed, the change applies without waiting for the current response to finish
`/passes`| Share a free week of Claude Code with friends. Only visible if your account is eligible
-`/permissions`| Manage allow, ask, and deny rules for tool permissions. Opens an interactive dialog where you can view rules by scope, add or remove rules, manage working directories, and review [recent auto mode denials](</docs/en/permissions#review-auto-mode-denials>). Alias: `/allowed-tools`
+`/permissions`| Manage allow, ask, and deny rules for tool permissions. Opens an interactive dialog where you can view rules by scope, add or remove rules, manage working directories, and review [recent auto mode denials](</docs/en/auto-mode-config#review-denials>). Alias: `/allowed-tools`
`/plan [description]`| Enter plan mode directly from the prompt. Pass an optional description to enter plan mode and immediately start with that task, for example `/plan fix the auth bug`
`/plugin`| Manage Claude Code [plugins](</docs/en/plugins>)
`/powerup`| Discover Claude Code features through quick interactive lessons with animated demos
@@ -83,7 +83,7 @@
`/upgrade`| Open the upgrade page to switch to a higher plan tier
`/usage`| Show plan usage limits and rate limit status
`/vim`| Removed in v2.1.92. To toggle between Vim and Normal editing modes, use `/config` → Editor mode
-`/voice`| Toggle push-to-talk [voice dictation](</docs/en/voice-dictation>). Requires a Claude.ai account
+`/voice [hold|tap|off]`| Toggle [voice dictation](</docs/en/voice-dictation>), or enable it in a specific mode. Requires a Claude.ai account
`/web-setup`| Connect your GitHub account to [Claude Code on the web](</docs/en/web-quickstart#connect-from-your-terminal>) using your local `gh` CLI credentials. `/schedule` prompts for this automatically if GitHub isn’t connected
##
--- a/common-workflows.md
+++ b/common-workflows.md
@@ -545,7 +545,7 @@
* `claude --resume` opens a conversation picker or resumes by name
* `claude --from-pr 123` resumes sessions linked to a specific pull request
-From inside an active session, use `/resume` to switch to a different conversation. Sessions are stored per project directory. By default, the `/resume` picker shows interactive sessions from the current worktree, with keyboard shortcuts to widen the list to other worktrees or projects, search, preview, and rename. See Use the session picker below for the full shortcut reference. When you select a session from another worktree of the same repository, Claude Code resumes it directly without requiring you to switch directories first. Selecting a session from an unrelated project copies a `cd` and resume command to your clipboard instead. Resuming by name resolves across the current repository and its worktrees. Both `claude --resume <name>` and `/resume <name>` look for an exact match and resume it directly, even if the session lives in a different worktree. When the name is ambiguous, `claude --resume <name>` opens the picker with the name pre-filled as a search term. `/resume <name>` from inside a session reports an error instead, so run `/resume` with no argument to open the picker and choose. Sessions created by `claude -p` or SDK invocations do not appear in the picker, but you can still resume one by passing its session ID directly to `claude --resume <session-id>`.
+From inside an active session, use `/resume` to switch to a different conversation. When the selected session is old and large enough that re-reading it would consume a substantial share of your usage limits, `--resume`, `--continue`, and `/resume` offer to resume from a summary instead of loading the full transcript. This prompt is not available on Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry. Sessions are stored per project directory. By default, the `/resume` picker shows interactive sessions from the current worktree, with keyboard shortcuts to widen the list to other worktrees or projects, search, preview, and rename. See Use the session picker below for the full shortcut reference. When you select a session from another worktree of the same repository, Claude Code resumes it directly without requiring you to switch directories first. Selecting a session from an unrelated project copies a `cd` and resume command to your clipboard instead. Resuming by name resolves across the current repository and its worktrees. Both `claude --resume <name>` and `/resume <name>` look for an exact match and resume it directly, even if the session lives in a different worktree. When the name is ambiguous, `claude --resume <name>` opens the picker with the name pre-filled as a search term. `/resume <name>` from inside a session reports an error instead, so run `/resume` with no argument to open the picker and choose. Sessions created by `claude -p` or SDK invocations do not appear in the picker, but you can still resume one by passing its session ID directly to `claude --resume <session-id>`.
###
--- a/desktop.md
+++ b/desktop.md
@@ -649,7 +649,7 @@
---|---
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto from the mode selector. Also accepted under `permissions`.
-`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>).
+`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
--- a/errors.md
+++ b/errors.md
@@ -375,7 +375,7 @@
* Run `/compact` to summarize earlier turns and free space, or `/clear` to start fresh
* Run `/context` to see a breakdown of what is consuming the window: system prompt, tools, memory files, and messages
* 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 split them into [imports](</docs/en/memory>)
+ * Trim large `CLAUDE.md` memory files, or move instructions into [path-scoped rules](</docs/en/memory#path-specific-rules>) that load only when relevant
* Subagents inherit every MCP tool definition from the parent session, which can fill their context window before the first turn. Disable MCP servers you are not using before spawning subagents.
* Auto-compact is on by default and normally prevents this error. If you have set [`DISABLE_AUTO_COMPACT`](</docs/en/env-vars>), re-enable it or run `/compact` manually before the window fills.
@@ -551,7 +551,7 @@
If Claude’s answers seem less capable than you expect but no error is shown, the cause is usually conversation state rather than the model itself. Claude Code does not silently change model versions. It can switch to a fallback model in specific cases such as an Opus quota being reached or a Bedrock or Vertex AI region lacking your model; the Model selection check below catches both, and [Model configuration](</docs/en/model-config>) explains when fallback applies. Check these first:
* **Model selection** : run `/model` to confirm you are on the model you expect. A previous `/model` choice or an `ANTHROPIC_MODEL` environment variable may have you on a smaller model than you intended.
- * **Effort level** : run `/effort` to check the current reasoning level and raise it for hard debugging or design work. Defaults vary by model and plan, so check before assuming you are below the maximum. See [Adjust effort level](</docs/en/model-config#adjust-effort-level>) for per-model defaults and the `ultrathink` shortcut.
+ * **Effort level** : run `/effort` to check the current reasoning level and raise it for hard debugging or design work. Defaults vary by model, so check before assuming you are below the maximum. See [Adjust effort level](</docs/en/model-config#adjust-effort-level>) for per-model defaults and the `ultrathink` shortcut.
* **Context pressure** : run `/context` to see how full the window is. If it is near capacity, run `/compact` at a natural breakpoint or `/clear` to start fresh. See [Explore the context window](</docs/en/context-window>) for how auto-compact affects earlier turns.
* **Stale instructions** : large or outdated `CLAUDE.md` files and MCP tool definitions consume context and can steer responses. `/doctor` flags oversized memory files and subagent definitions; `/context` shows MCP tool token usage.
--- a/google-vertex-ai.md
+++ b/google-vertex-ai.md
@@ -50,9 +50,9 @@
Region configuration
-Claude Code can be used with both Vertex AI [global](<https://cloud.google.com/blog/products/ai-machine-learning/global-endpoint-for-claude-models-generally-available-on-vertex-ai>) and regional endpoints.
-
-Vertex AI may not support the Claude Code default models in all [regions](<https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations#genai-partner-models>) or on [global endpoints](<https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#supported_models>). You may need to switch to a supported region, use a regional endpoint, or specify a supported model.
+Claude Code supports Vertex AI [global](<https://cloud.google.com/blog/products/ai-machine-learning/global-endpoint-for-claude-models-generally-available-on-vertex-ai>), multi-region, and regional endpoints. Set `CLOUD_ML_REGION` to `global`, a multi-region location such as `eu` or `us`, or a specific region such as `us-east5`. Claude Code selects the correct Vertex AI hostname for each form, including the `aiplatform.eu.rep.googleapis.com` and `aiplatform.us.rep.googleapis.com` hosts for multi-region locations.
+
+Vertex AI may not support the Claude Code default models on every endpoint type. Model availability varies across [specific regions](<https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations#genai-partner-models>), multi-region locations, and [global endpoints](<https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#supported_models>). You may need to switch to a supported location or specify a supported model.
##
@@ -193,10 +193,10 @@
If you encounter “model not found” 404 errors:
* Confirm model is Enabled in [Model Garden](<https://console.cloud.google.com/vertex-ai/model-garden>)
- * Verify you have access to the specified region
+ * Verify the model is available in the location you specified. Some models are offered only on `global` or multi-region locations such as `eu` and `us`, not in specific regions
* If using `CLOUD_ML_REGION=global`, check that your models support global endpoints in [Model Garden](<https://console.cloud.google.com/vertex-ai/model-garden>) under “Supported features”. For models that don’t support global endpoints, either:
* Specify a supported model via `ANTHROPIC_MODEL` or `ANTHROPIC_DEFAULT_HAIKU_MODEL`, or
- * Set a regional endpoint using `VERTEX_REGION_<MODEL_NAME>` environment variables
+ * Set a region or multi-region location using `VERTEX_REGION_<MODEL_NAME>` environment variables
If you encounter 429 errors:
--- a/hooks.md
+++ b/hooks.md
@@ -1108,7 +1108,7 @@
}
}
-There is no timeout or retry limit. The session remains on disk until you resume it. If the answer is not ready when you resume, the hook can return `"defer"` again and the process exits the same way. The calling process controls when to break the loop by eventually returning `"allow"` or `"deny"` from the hook. `"defer"` only works when Claude makes a single tool call in the turn. If Claude makes several tool calls at once, `"defer"` is ignored with a warning and the tool proceeds through the normal permission flow. The constraint exists because resume can only re-run one tool: there is no way to defer one call from a batch without leaving the others unresolved. If the deferred tool is no longer available when you resume, the process exits with `stop_reason: "tool_deferred_unavailable"` and `is_error: true` before the hook fires. This happens when an MCP server that provided the tool is not connected for the resumed session. The `deferred_tool_use` payload is still included so you can identify which tool went missing.
+There is no timeout or retry limit. The session remains on disk until you resume it, subject to the [`cleanupPeriodDays`](</docs/en/settings#available-settings>) retention sweep that deletes session files after 30 days by default. If the answer is not ready when you resume, the hook can return `"defer"` again and the process exits the same way. The calling process controls when to break the loop by eventually returning `"allow"` or `"deny"` from the hook. `"defer"` only works when Claude makes a single tool call in the turn. If Claude makes several tool calls at once, `"defer"` is ignored with a warning and the tool proceeds through the normal permission flow. The constraint exists because resume can only re-run one tool: there is no way to defer one call from a batch without leaving the others unresolved. If the deferred tool is no longer available when you resume, the process exits with `stop_reason: "tool_deferred_unavailable"` and `is_error: true` before the hook fires. This happens when an MCP server that provided the tool is not connected for the resumed session. The `deferred_tool_use` payload is still included so you can identify which tool went missing.
`--resume` does not restore the permission mode from the prior session. Pass the same `--permission-mode` flag on resume that was active when the tool was deferred. Claude Code logs a warning if the modes differ.
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -117,7 +117,7 @@
Shortcut| Description| Notes
---|---|---
-Hold `Space`| Push-to-talk dictation| Requires [voice dictation](</docs/en/voice-dictation>) to be enabled. Transcript inserts at cursor. [Rebindable](</docs/en/voice-dictation#rebind-the-push-to-talk-key>)
+Hold or tap `Space`| Voice dictation| Requires [voice dictation](</docs/en/voice-dictation>) to be enabled. Hold to record, or run `/voice tap` for tap-to-toggle. [Rebindable](</docs/en/voice-dictation#rebind-the-dictation-key>)
##
--- a/keybindings.md
+++ b/keybindings.md
@@ -397,7 +397,7 @@
Action| Default| Description
---|---|---
-`voice:pushToTalk`| Space| Hold to dictate a prompt
+`voice:pushToTalk`| Space| Dictate a prompt. Hold or tap depending on `/voice` mode
###
--- a/mcp.md
+++ b/mcp.md
@@ -378,11 +378,10 @@
Example: Connect to GitHub for code reviews
- claude mcp add --transport http github https://api.githubcopilot.com/mcp/
-
-Authenticate if needed by selecting “Authenticate” for GitHub:
-
- /mcp
+GitHub’s remote MCP server authenticates with a GitHub personal access token passed as a header. To get one, open your [GitHub token settings](<https://github.com/settings/personal-access-tokens>), generate a new fine-grained token with access to the repositories you want Claude to work with, then add the server:
+
+ claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
+ --header "Authorization: Bearer YOUR_GITHUB_PAT"
Then work with GitHub:
--- a/memory.md
+++ b/memory.md
@@ -86,7 +86,7 @@
Write effective instructions
-CLAUDE.md files are loaded into the context window at the start of every session, consuming tokens alongside your conversation. The [context window visualization](</docs/en/context-window>) shows where CLAUDE.md loads relative to the rest of the startup context. Because they’re context rather than enforced configuration, how you write instructions affects how reliably Claude follows them. Specific, concise, well-structured instructions work best. **Size** : target under 200 lines per CLAUDE.md file. Longer files consume more context and reduce adherence. If your instructions are growing large, split them using imports or `.claude/rules/` files. **Structure** : use markdown headers and bullets to group related instructions. Claude scans structure the same way readers do: organized sections are easier to follow than dense paragraphs. **Specificity** : write instructions that are concrete enough to verify. For example:
+CLAUDE.md files are loaded into the context window at the start of every session, consuming tokens alongside your conversation. The [context window visualization](</docs/en/context-window>) shows where CLAUDE.md loads relative to the rest of the startup context. Because they’re context rather than enforced configuration, how you write instructions affects how reliably Claude follows them. Specific, concise, well-structured instructions work best. **Size** : target under 200 lines per CLAUDE.md file. Longer files consume more context and reduce adherence. If your instructions are growing large, use path-scoped rules so instructions load only when Claude works with matching files. You can also split content into imports for organization, though imported files still load and enter the context window at launch. **Structure** : use markdown headers and bullets to group related instructions. Claude scans structure the same way readers do: organized sections are easier to follow than dense paragraphs. **Specificity** : write instructions that are concrete enough to verify. For example:
* “Use 2-space indentation” instead of “Format code properly”
* “Run `npm test` before committing” instead of “Test your changes”
@@ -412,7 +412,7 @@
My CLAUDE.md is too large
-Files over 200 lines consume more context and may reduce adherence. Move detailed content into separate files referenced with `@path` imports (see Import additional files), or split your instructions across `.claude/rules/` files.
+Files over 200 lines consume more context and may reduce adherence. Use path-scoped rules to load instructions only when Claude works with matching files, or trim content that isn’t needed in every session. Splitting into `@path` imports helps organization but does not reduce context, since imported files load at launch.
###
--- a/model-config.md
+++ b/model-config.md
@@ -49,7 +49,7 @@
3. **Environment variable** \- Set `ANTHROPIC_MODEL=<alias|name>`
4. **Settings** \- Configure permanently in your settings file using the `model` field.
-Example usage:
+Your `/model` selection is saved to user settings and persists across restarts. As of v2.1.117, if the project’s `.claude/settings.json` pins a different model, Claude Code also writes your choice to `.claude/settings.local.json` so it continues to apply in that project after a restart. Managed settings take precedence and reapply on the next launch. When the active model at startup comes from project or managed settings rather than your own selection, the startup header shows which settings file set it. Run `/model` to override for the current session. Example usage:
# Start with Opus
claude --model opus
@@ -174,7 +174,7 @@
Opus 4.7| `low`, `medium`, `high`, `xhigh`, `max`
Opus 4.6 and Sonnet 4.6| `low`, `medium`, `high`, `max`
-If you set a level the active model does not support, Claude Code falls back to the highest supported level at or below the one you set. For example, `xhigh` runs as `high` on Opus 4.6. On Opus 4.7, the default effort is `xhigh` for all plans and providers. On Opus 4.6 and Sonnet 4.6, the default is `high`, or `medium` on Pro and Max. When you first run Opus 4.7, Claude Code applies `xhigh` even if you previously set a different effort level for Opus 4.6 or Sonnet 4.6. Run `/effort` again to choose a different level after switching. `low`, `medium`, `high`, and `xhigh` persist across sessions. `max` provides the deepest reasoning with no constraint on token spending and applies to the current session only, except when set through the `CLAUDE_CODE_EFFORT_LEVEL` environment variable.
+If you set a level the active model does not support, Claude Code falls back to the highest supported level at or below the one you set. For example, `xhigh` runs as `high` on Opus 4.6. As of v2.1.117, the default effort is `xhigh` on Opus 4.7 and `high` on Opus 4.6 and Sonnet 4.6. When you first run Opus 4.7, Claude Code applies `xhigh` even if you previously set a different effort level for Opus 4.6 or Sonnet 4.6. Run `/effort` again to choose a different level after switching. `low`, `medium`, `high`, and `xhigh` persist across sessions. `max` provides the deepest reasoning with no constraint on token spending and applies to the current session only, except when set through the `CLAUDE_CODE_EFFORT_LEVEL` environment variable.
####
--- a/monitoring-usage.md
+++ b/monitoring-usage.md
@@ -83,7 +83,7 @@
`OTEL_METRIC_EXPORT_INTERVAL`| Export interval in milliseconds (default: 60000)| `5000`, `60000`
`OTEL_LOGS_EXPORT_INTERVAL`| Logs export interval in milliseconds (default: 5000)| `1000`, `10000`
`OTEL_LOG_USER_PROMPTS`| Enable logging of user prompt content (default: disabled)| `1` to enable
-`OTEL_LOG_TOOL_DETAILS`| Enable logging of tool parameters and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, and tool input (default: disabled)| `1` to enable
+`OTEL_LOG_TOOL_DETAILS`| Enable logging of tool parameters and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, and tool input. Also enables custom, plugin, and MCP command names on `user_prompt` events (default: disabled)| `1` to enable
`OTEL_LOG_TOOL_CONTENT`| Enable logging of tool input and output content in span events (default: disabled). Requires tracing. Content is truncated at 60 KB| `1` to enable
`OTEL_LOG_RAW_API_BODIES`| Emit the full Anthropic Messages API request and response JSON as `api_request_body` / `api_response_body` log events (default: disabled). Bodies include the entire conversation history. Enabling this implies consent to everything `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT` would reveal| `1` for inline bodies truncated at 60 KB, or `file:<dir>` for untruncated bodies on disk with a `body_ref` pointer in the event
`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE`| Metrics temporality preference (default: `delta`). Set to `cumulative` if your backend expects cumulative temporality| `delta`, `cumulative`
@@ -464,6 +464,7 @@
* `model`: Model identifier (for example, “claude-sonnet-4-6”)
* `query_source`: Category of the subsystem that issued the request. One of `"main"`, `"subagent"`, or `"auxiliary"`
* `speed`: `"fast"` when the request used fast mode. Absent otherwise
+ * `effort`: [Effort level](</docs/en/model-config#adjust-effort-level>) applied to the request: `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`. Absent when the model does not support effort.
####
@@ -478,6 +479,7 @@
* `model`: Model identifier (for example, “claude-sonnet-4-6”)
* `query_source`: Category of the subsystem that issued the request. One of `"main"`, `"subagent"`, or `"auxiliary"`
* `speed`: `"fast"` when the request used fast mode. Absent otherwise
+ * `effort`: [Effort level](</docs/en/model-config#adjust-effort-level>) applied to the request. See Cost counter for details.
####
@@ -542,6 +544,8 @@
* `event.sequence`: monotonically increasing counter for ordering events within a session
* `prompt_length`: Length of the prompt
* `prompt`: Prompt content (redacted by default, enable with `OTEL_LOG_USER_PROMPTS=1`)
+ * `command_name`: Command name when the prompt invokes one. Built-in and bundled command names such as `compact` or `debug` are emitted as-is; aliases such as `reset` emit as typed rather than the canonical name. Custom, plugin, and MCP command names collapse to `custom` or `mcp` unless `OTEL_LOG_TOOL_DETAILS=1` is set
+ * `command_source`: Origin of the command when present: `builtin`, `custom`, or `mcp`. Plugin-provided commands report as `custom`
####
@@ -593,6 +597,7 @@
* `request_id`: Anthropic API request ID from the response’s `request-id` header, such as `"req_011..."`. Present only when the API returns one.
* `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 the model does not support effort.
####
@@ -614,6 +619,7 @@
* `request_id`: Anthropic API request ID from the response’s `request-id` header, such as `"req_011..."`. Present only when the API returns one.
* `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 the model does not support effort.
####
@@ -1001,7 +1007,7 @@
* Raw file contents and code snippets are not included in metrics or events. Trace spans are a separate data path: see the `OTEL_LOG_TOOL_CONTENT` bullet below
* When authenticated via OAuth, `user.email` is included in telemetry attributes. If this is a concern for your organization, work with your telemetry backend to filter or redact this field
* User prompt content is not collected by default. Only prompt length is recorded. To include prompt content, set `OTEL_LOG_USER_PROMPTS=1`
- * Tool input arguments and parameters are not logged by default. To include them, set `OTEL_LOG_TOOL_DETAILS=1`. When enabled, `tool_result` events include a `tool_parameters` attribute with Bash commands, MCP server and tool names, and skill names, plus a `tool_input` attribute with file paths, URLs, search patterns, and other arguments. Trace spans include the same `tool_input` attribute and input-derived attributes such as `file_path`. Individual values over 512 characters are truncated and the total is bounded to ~4 K characters, but the arguments may still contain sensitive values. Configure your telemetry backend to filter or redact these attributes as needed
+ * Tool input arguments and parameters are not logged by default. To include them, set `OTEL_LOG_TOOL_DETAILS=1`. When enabled, `tool_result` events include a `tool_parameters` attribute with Bash commands, MCP server and tool names, and skill names, plus a `tool_input` attribute with file paths, URLs, search patterns, and other arguments. `user_prompt` events include the verbatim `command_name` for custom, plugin, and MCP commands. Trace spans include the same `tool_input` attribute and input-derived attributes such as `file_path`. Individual values over 512 characters are truncated and the total is bounded to ~4 K characters, but the arguments may still contain sensitive values. Configure your telemetry backend to filter or redact these attributes as needed
* Tool input and output content is not logged in trace spans by default. To include it, set `OTEL_LOG_TOOL_CONTENT=1`. When enabled, span events include full tool input and output content truncated at 60 KB per span. This can include raw file contents from Read tool results and Bash command output. Configure your telemetry backend to filter or redact these attributes as needed
* Raw Anthropic Messages API request and response bodies are not logged by default. To include them, set `OTEL_LOG_RAW_API_BODIES`. With `=1`, each API call emits `api_request_body` and `api_response_body` log events whose `body` attribute is the JSON-serialized payload, truncated at 60 KB. With `=file:<dir>`, untruncated bodies are written to `.request.json` and `.response.json` files under that directory and the events carry a `body_ref` path instead of the inline body. Ship the directory with a log collector or sidecar rather than through the telemetry stream. In both modes, bodies contain the full conversation history (system prompt, every prior user and assistant turn, tool results), so enabling this implies consent to everything the other `OTEL_LOG_*` content flags would reveal. Claude’s extended-thinking content is always redacted from these bodies regardless of other settings
--- a/network-config.md
+++ b/network-config.md
@@ -98,18 +98,18 @@
Network access requirements
-Claude Code requires access to the following URLs:
+Claude Code requires access to the following URLs. Allowlist these in your proxy configuration and firewall rules, especially in containerized or restricted network environments.
- * `api.anthropic.com`: Claude API endpoints
- * `claude.ai`: authentication for claude.ai accounts
- * `platform.claude.com`: authentication for Anthropic Console accounts
+URL| Required for
+---|---
+`api.anthropic.com`| Claude API requests
+`claude.ai`| claude.ai account authentication
+`platform.claude.com`| Anthropic Console account authentication
+`downloads.claude.ai`| Plugin executable downloads; native installer and native auto-updater
+`storage.googleapis.com`| Native installer and native auto-updater on versions prior to 2.1.116
+`bridge.claudeusercontent.com`| [Claude in Chrome](</docs/en/chrome>) extension WebSocket bridge
-Ensure these URLs are allowlisted in your proxy configuration and firewall rules. This is especially important when using Claude Code in containerized or restricted network environments. When using [Bedrock](</docs/en/amazon-bedrock>), [Vertex AI](</docs/en/google-vertex-ai>), or [Foundry](</docs/en/microsoft-foundry>), model traffic goes to your provider instead of `api.anthropic.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>). The native installer and update checks also require the following URLs. Allowlist both, since clients running older Claude Code versions fetch from `storage.googleapis.com`. If you install Claude Code through npm or manage your own binary distribution, end users may not need access:
-
- * `downloads.claude.ai`: download host for the Claude Code binary, auto-updater, version pointers, manifests, install script, signing keys, and plugin executables
- * `storage.googleapis.com`: legacy download host used by older clients
-
-The [Chrome integration](</docs/en/chrome>) connects to the browser extension over a WebSocket bridge. If you use Claude in Chrome, allowlist `bridge.claudeusercontent.com` for outbound WebSocket connections. [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>) connect to your repositories from Anthropic-managed infrastructure. If your GitHub Enterprise Cloud organization restricts access by IP address, enable [IP allow list inheritance for installed GitHub Apps](<https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#allowing-access-by-github-apps>). The Claude GitHub App registers its IP ranges, so enabling this setting allows access without manual configuration. To [add the ranges to your allow list manually](<https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address>) instead, or to configure other firewalls, see the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). For self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances behind a firewall, allowlist the same [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>) so Anthropic infrastructure can reach your GHES host to clone repositories and post review comments.
+If you install Claude Code through npm or manage your own binary distribution, end users may not need access to `downloads.claude.ai` or `storage.googleapis.com`. When using [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>), model traffic and authentication go to your provider 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>). [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>) connect to your repositories from Anthropic-managed infrastructure. If your GitHub Enterprise Cloud organization restricts access by IP address, enable [IP allow list inheritance for installed GitHub Apps](<https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#allowing-access-by-github-apps>). The Claude GitHub App registers its IP ranges, so enabling this setting allows access without manual configuration. To [add the ranges to your allow list manually](<https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address>) instead, or to configure other firewalls, see the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). For self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances behind a firewall, allowlist the same [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>) so Anthropic infrastructure can reach your GHES host to clone repositories and post review comments.
##
--- a/overview.md
+++ b/overview.md
@@ -52,7 +52,7 @@
WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes.
-Then start Claude Code in any project:
+You can also install with [apt, dnf, or apk](</docs/en/setup#install-with-linux-package-managers>) on Debian, Fedora, RHEL, and Alpine.Then start Claude Code in any project:
cd your-project
claude
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -139,7 +139,7 @@
What the classifier blocks by default
-The classifier trusts your working directory and your repo’s configured remotes. Everything else is treated as external until you [configure trusted infrastructure](</docs/en/permissions#configure-the-auto-mode-classifier>). **Blocked by default** :
+The classifier trusts your working directory and your repo’s configured remotes. Everything else is treated as external until you [configure trusted infrastructure](</docs/en/auto-mode-config>). **Blocked by default** :
* Downloading and executing code, like `curl | bash`
* Sending sensitive data to external endpoints
@@ -158,7 +158,7 @@
* Read-only HTTP requests
* Pushing to the branch you started on or one Claude created
-Sandbox network access requests are routed through the classifier rather than allowed by default. Run `claude auto-mode defaults` to see the full rule lists. If routine actions get blocked, an administrator can add trusted repos, buckets, and services via the `autoMode.environment` setting: see [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>).
+Sandbox network access requests are routed through the classifier rather than allowed by default. Run `claude auto-mode defaults` to see the full rule lists. If routine actions get blocked, an administrator can add trusted repos, buckets, and services via the `autoMode.environment` setting: see [Configure auto mode](</docs/en/auto-mode-config>).
###
@@ -174,7 +174,7 @@
When auto mode falls back
-Each denied action shows a notification and appears in `/permissions` under the Recently denied tab, where you can press `r` to retry it with a manual approval. If the classifier blocks an action 3 times in a row or 20 times total, auto mode pauses and Claude Code resumes prompting. Approving the prompted action resumes auto mode. These thresholds are not configurable. Any allowed action resets the consecutive counter, while the total counter persists for the session and resets only when its own limit triggers a fallback. In [non-interactive mode](</docs/en/headless>) with the `-p` flag, repeated blocks abort the session since there is no user to prompt. Repeated blocks usually mean the classifier is missing context about your infrastructure. Use `/feedback` to report false positives, or have an administrator [configure trusted infrastructure](</docs/en/permissions#configure-the-auto-mode-classifier>).
+Each denied action shows a notification and appears in `/permissions` under the Recently denied tab, where you can press `r` to retry it with a manual approval. If the classifier blocks an action 3 times in a row or 20 times total, auto mode pauses and Claude Code resumes prompting. Approving the prompted action resumes auto mode. These thresholds are not configurable. Any allowed action resets the consecutive counter, while the total counter persists for the session and resets only when its own limit triggers a fallback. In [non-interactive mode](</docs/en/headless>) with the `-p` flag, repeated blocks abort the session since there is no user to prompt. Repeated blocks usually mean the classifier is missing context about your infrastructure. Use `/feedback` to report false positives, or have an administrator [configure trusted infrastructure](</docs/en/auto-mode-config>).
How the classifier evaluates actions
@@ -257,7 +257,8 @@
See also
- * [Permissions](</docs/en/permissions>): allow, ask, and deny rules; auto mode classifier configuration; managed policies
+ * [Permissions](</docs/en/permissions>): allow, ask, and deny rules; managed policies
+ * [Configure auto mode](</docs/en/auto-mode-config>): tell the classifier which infrastructure your organization trusts
* [Hooks](</docs/en/hooks>): custom permission logic via `PreToolUse` and `PermissionRequest` hooks
* [Ultraplan](</docs/en/ultraplan>): run plan mode in a Claude Code on the web session with browser-based review
* [Security](</docs/en/security>): safeguards and best practices
Show diff (136 lines)
--- a/permissions.md
+++ b/permissions.md
@@ -341,124 +341,11 @@
`pluginTrustMessage`| Custom message appended to the plugin trust warning shown before installation
`sandbox.filesystem.allowManagedReadPathsOnly`| When `true`, only `filesystem.allowRead` paths from managed settings are respected. `denyRead` still merges from all sources
`sandbox.network.allowManagedDomainsOnly`| When `true`, only `allowedDomains` and `WebFetch(domain:...)` allow rules from managed settings are respected. Non-allowed domains are blocked automatically without prompting the user. Denied domains still merge from all sources
-`strictKnownMarketplaces`| Controls which plugin marketplaces users can add. See [managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)
+`strictKnownMarketplaces`| Controls which plugin marketplace sources users can add and install plugins from. See [managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)
`disableBypassPermissionsMode` is typically placed in managed settings to enforce organizational policy, but it works from any scope. A user can set it in their own settings to lock themselves out of bypass mode.
Access to [Remote Control](</docs/en/remote-control>) and [web sessions](</docs/en/claude-code-on-the-web>) is not controlled by a managed settings key. On Team and Enterprise plans, an admin enables or disables these features in [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>).
-
-##
-
-
-
-Review auto mode denials
-
-When [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) denies a tool call, a notification appears and the denied action is recorded in `/permissions` under the Recently denied tab. Press `r` on a denied action to mark it for retry: when you exit the dialog, Claude Code sends a message telling the model it may retry that tool call and resumes the conversation. To react to denials programmatically, use the [`PermissionDenied` hook](</docs/en/hooks#permissiondenied>).
-
-##
-
-
-
-Configure the auto mode classifier
-
-[Auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) uses a classifier model to decide whether each action is safe to run without prompting. Out of the box it trusts only the working directory and, if present, the current repo’s remotes. Actions like pushing to your company’s source control org or writing to a team cloud bucket will be blocked as potential data exfiltration. To adjust what the classifier allows or blocks, add instructions to your [CLAUDE.md](</docs/en/memory>) file. The classifier reads CLAUDE.md from trusted directories alongside the conversation, so an instruction like “never force push” steers both Claude and the classifier at the same time. Start here for project conventions and behavioral rules. For rules that apply across projects, such as trusted infrastructure or organization-wide deny rules, use the `autoMode` settings block. The classifier reads `autoMode` from user settings, `.claude/settings.local.json`, and managed settings. It does not read from shared project settings in `.claude/settings.json`, because a checked-in repo could otherwise inject its own allow rules.
-
-Scope| File| Use for
----|---|---
-One developer| `~/.claude/settings.json`| Personal trusted infrastructure
-One project, one developer| `.claude/settings.local.json`| Per-project trusted buckets or services, gitignored
-Organization-wide| Managed settings| Trusted infrastructure enforced for all developers
-
-Entries from each scope are combined. A developer can extend `environment`, `allow`, and `soft_deny` with personal entries but cannot remove entries that managed settings provide. Because allow rules act as exceptions to block rules inside the classifier, a developer-added `allow` entry can override an organization `soft_deny` entry: the combination is additive, not a hard policy boundary. If you need a rule that developers cannot work around, use `permissions.deny` in managed settings instead, which blocks actions before the classifier is consulted.
-
-###
-
-
-
-Define trusted infrastructure
-
-For most organizations, `autoMode.environment` is the only field you need to set. It tells the classifier which repos, buckets, and domains are trusted, without touching the built-in block and allow rules. The classifier uses `environment` to decide what “external” means: any destination not listed is a potential exfiltration target.
-
- {
- "autoMode": {
- "environment": [
- "Source control: github.example.com/acme-corp and all repos under it",
- "Trusted cloud buckets: s3://acme-build-artifacts, gs://acme-ml-datasets",
- "Trusted internal domains: *.corp.example.com, api.internal.example.com",
- "Key internal services: Jenkins at ci.example.com, Artifactory at artifacts.example.com"
- ]
- }
- }
-
-Entries are prose, not regex or tool patterns. The classifier reads them as natural-language rules. Write them the way you would describe your infrastructure to a new engineer. A thorough environment section covers:
-
- * **Organization** : your company name and what Claude Code is primarily used for, like software development, infrastructure automation, or data engineering
- * **Source control** : every GitHub, GitLab, or Bitbucket org your developers push to
- * **Cloud providers and trusted buckets** : bucket names or prefixes that Claude should be able to read from and write to
- * **Trusted internal domains** : hostnames for APIs, dashboards, and services inside your network, like `*.internal.example.com`
- * **Key internal services** : CI, artifact registries, internal package indexes, incident tooling
- * **Additional context** : regulated-industry constraints, multi-tenant infrastructure, or compliance requirements that affect what the classifier should treat as risky
-
-A useful starting template: fill in the bracketed fields and remove any lines that don’t apply:
-
- {
- "autoMode": {
- "environment": [
- "Organization: {COMPANY_NAME}. Primary use: {PRIMARY_USE_CASE, e.g. software development, infrastructure automation}",
- "Source control: {SOURCE_CONTROL, e.g. GitHub org github.example.com/acme-corp}",
- "Cloud provider(s): {CLOUD_PROVIDERS, e.g. AWS, GCP, Azure}",
- "Trusted cloud buckets: {TRUSTED_BUCKETS, e.g. s3://acme-builds, gs://acme-datasets}",
- "Trusted internal domains: {TRUSTED_DOMAINS, e.g. *.internal.example.com, api.example.com}",
- "Key internal services: {SERVICES, e.g. Jenkins at ci.example.com, Artifactory at artifacts.example.com}",
- "Additional context: {EXTRA, e.g. regulated industry, multi-tenant infrastructure, compliance requirements}"
- ]
- }
- }
-
-The more specific context you give, the better the classifier can distinguish routine internal operations from exfiltration attempts. You don’t need to fill everything in at once. A reasonable rollout: start with the defaults and add your source control org and key internal services, which resolves the most common false positives like pushing to your own repos. Add trusted domains and cloud buckets next. Fill the rest as blocks come up.
-
-###
-
-
-
-Override the block and allow rules
-
-Two additional fields let you replace the classifier’s built-in rule lists: `autoMode.soft_deny` controls what gets blocked, and `autoMode.allow` controls which exceptions apply. Each is an array of prose descriptions, read as natural-language rules. Inside the classifier, the precedence is: `soft_deny` rules block first, then `allow` rules override as exceptions, then explicit user intent overrides both. If the user’s message directly and specifically describes the exact action Claude is about to take, the classifier allows it even if a `soft_deny` rule matches. General requests don’t count: asking Claude to “clean up the repo” does not authorize force-pushing, but asking Claude to “force-push this branch” does. To loosen: remove rules from `soft_deny` when the defaults block something your pipeline already guards against with PR review, CI, or staging environments, or add to `allow` when the classifier repeatedly flags a routine pattern the default exceptions don’t cover. To tighten: add to `soft_deny` for risks specific to your environment that the defaults miss, or remove from `allow` to hold a default exception to the block rules. In all cases, run `claude auto-mode defaults` to get the full default lists, then copy and edit: never start from an empty list.
-
- {
- "autoMode": {
- "environment": [
- "Source control: github.example.com/acme-corp and all repos under it"
- ],
- "allow": [
- "Deploying to the staging namespace is allowed: staging is isolated from production and resets nightly",
- "Writing to s3://acme-scratch/ is allowed: ephemeral bucket with a 7-day lifecycle policy"
- ],
- "soft_deny": [
- "Never run database migrations outside the migrations CLI, even against dev databases",
- "Never modify files under infra/terraform/prod/: production infrastructure changes go through the review workflow",
- "...copy full default soft_deny list here first, then add your rules..."
- ]
- }
- }
-
-Setting `allow` or `soft_deny` replaces the entire default list for that section. If you set `soft_deny` with a single entry, every built-in block rule is discarded: force push, data exfiltration, `curl | bash`, production deploys, and all other default block rules become allowed. To customize safely, run `claude auto-mode defaults` to print the built-in rules, copy them into your settings file, then review each rule against your own pipeline and risk tolerance. Only remove rules for risks your infrastructure already mitigates.
-
-The three sections are evaluated independently, so setting `environment` alone leaves the default `allow` and `soft_deny` lists intact.
-
-###
-
-
-
-Inspect the defaults and your effective config
-
-Because setting `allow` or `soft_deny` replaces the defaults, start any customization by copying the full default lists. Three CLI subcommands help you inspect and validate:
-
- claude auto-mode defaults # the built-in environment, allow, and soft_deny rules
- claude auto-mode config # what the classifier actually uses: your settings where set, defaults otherwise
- claude auto-mode critique # get AI feedback on your custom allow and soft_deny rules
-
-Save the output of `claude auto-mode defaults` to a file, edit the lists to match your policy, and paste the result into your settings file. After saving, run `claude auto-mode config` to confirm the effective rules are what you expect. If you’ve written custom rules, `claude auto-mode critique` reviews them and flags entries that are ambiguous, redundant, or likely to cause false positives.
##
@@ -491,6 +378,7 @@
See also
* [Settings](</docs/en/settings>): complete configuration reference including the permission settings table
+ * [Configure auto mode](</docs/en/auto-mode-config>): tell the auto mode classifier which infrastructure your organization trusts
* [Sandboxing](</docs/en/sandboxing>): OS-level filesystem and network isolation for Bash commands
* [Authentication](</docs/en/authentication>): set up user access to Claude Code
* [Security](</docs/en/security>): security safeguards and best practices
--- a/plugin-dependencies.md
+++ b/plugin-dependencies.md
@@ -1,4 +1,4 @@
-A plugin can depend on other plugins by listing them in `plugin.json` or in its marketplace entry. By default, a dependency tracks the latest available version, so an upstream release can change the dependency under your plugin without warning. Version constraints let you hold a dependency at a tested version range until you choose to move. When you install a plugin that declares dependencies, Claude Code resolves and installs them automatically and lists which dependencies were added at the end of the install output. If a dependency later goes missing, `/reload-plugins` and the background plugin auto-update install it automatically, provided its marketplace is already in your configured marketplaces. Dependencies from a marketplace you have not added are left unresolved. This guide is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases. To install plugins that have dependencies, see [Discover and install plugins](</docs/en/discover-plugins>). For the full manifest schema, see the [Plugins reference](</docs/en/plugins-reference>).
+A plugin can depend on other plugins by listing them in `plugin.json` or in its marketplace entry. By default, a dependency tracks the latest available version, so an upstream release can change the dependency under your plugin without warning. Version constraints let you hold a dependency at a tested version range until you choose to move. When you install a plugin that declares dependencies, Claude Code resolves and installs them automatically and lists which dependencies were added at the end of the install output. If a dependency later goes missing, `/reload-plugins` and the background plugin auto-update reinstall it, provided its marketplace is already in your configured marketplaces. Re-running `claude plugin install` on the dependent plugin, or adding a marketplace with `claude plugin marketplace add`, also resolves any outstanding missing dependencies. Dependencies from a marketplace you have not added are left unresolved. This guide is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases. To install plugins that have dependencies, see [Discover and install plugins](</docs/en/discover-plugins>). For the full manifest schema, see the [Plugins reference](</docs/en/plugins-reference>).
Dependency version constraints require Claude Code v2.1.110 or later.
@@ -107,6 +107,7 @@
Error| Meaning| How to resolve
---|---|---
+`dependency-unsatisfied`| A declared dependency is not installed, or it is installed but disabled.| Run the `claude plugin install` command shown in the error message. If the dependency’s marketplace is not yet configured, add it with `claude plugin marketplace add` and Claude Code resolves the dependency automatically. If the dependency is disabled, enable it.
`range-conflict`| The version requirements for a dependency cannot be combined. The error message names the cause: no version satisfies all of the ranges, a range is not valid semver syntax, or the combined ranges are too complex to intersect.| Uninstall or update one of the conflicting plugins, fix any invalid `version` string, simplify long `||` chains, or ask the upstream author to widen its constraint.
`dependency-version-unsatisfied`| The installed dependency’s version is outside this plugin’s declared range.| Run `claude plugin install <dependency>@<marketplace>` to re-resolve the dependency against all current constraints.
`no-matching-tag`| The dependency’s repository has no `{name}--v*` tag satisfying the range.| Check that the upstream has tagged releases using the convention above, or relax your range.
--- a/plugin-marketplaces.md
+++ b/plugin-marketplaces.md
@@ -703,7 +703,7 @@
How restrictions work
-Restrictions are validated early in the plugin installation process, before any network requests or filesystem operations occur. This prevents unauthorized marketplace access attempts. The allowlist uses exact matching for most source types. For a marketplace to be allowed, all specified fields must match exactly:
+Restrictions are checked before any network or filesystem operation. The check runs on marketplace add and on plugin install, update, refresh, and auto-update. If a marketplace was added before the policy was configured and its source no longer matches the allowlist, Claude Code refuses to install or update plugins from it. The same enforcement applies to `blockedMarketplaces`. The allowlist uses exact matching for most source types. For a marketplace to be allowed, all specified fields must match exactly:
* For GitHub sources: `repo` is required, and `ref` or `path` must also match if specified in the allowlist
* For URL sources: the full URL must match exactly
--- a/quickstart.md
+++ b/quickstart.md
@@ -54,6 +54,8 @@
winget install Anthropic.ClaudeCode
WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes.
+
+You can also install with [apt, dnf, or apk](</docs/en/setup#install-with-linux-package-managers>) on Debian, Fedora, RHEL, and Alpine.
##
--- a/remote-control.md
+++ b/remote-control.md
@@ -1,4 +1,4 @@
-Remote Control is available on all plans. On Team and Enterprise, it is off by default until an admin enables the Remote Control toggle in [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>).
+Remote Control is in research preview and available on all plans. On Team and Enterprise, it is off by default until an admin enables the Remote Control toggle in [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>).
Remote Control connects [claude.ai/code](<https://claude.ai/code>) or the Claude app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) and [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to a Claude Code session running on your machine. Start a task at your desk, then pick it up from your phone on the couch or a browser on another computer. When you start a Remote Control session on your machine, Claude keeps running locally the entire time, so nothing moves to the cloud. With Remote Control you can:
--- a/server-managed-settings.md
+++ b/server-managed-settings.md
@@ -87,7 +87,7 @@
}
}
-Because hooks execute shell commands, users see a security approval dialog before they’re applied. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>) for how the `autoMode` entries affect what the classifier blocks and important warnings about the `allow` and `soft_deny` fields.
+Because hooks execute shell commands, users see a security approval dialog before they’re applied. See [Configure auto mode](</docs/en/auto-mode-config>) for how the `autoMode` entries affect what the classifier blocks and important warnings about the `allow` and `soft_deny` fields.
3
--- a/settings.md
+++ b/settings.md
@@ -170,13 +170,13 @@
`apiKeyHelper`| Custom script, to be executed in `/bin/sh`, to generate an auth value. This value will be sent as `X-Api-Key` and `Authorization: Bearer` headers for model requests| `/bin/generate_temp_api_key.sh`
`attribution`| Customize attribution for git commits and pull requests. See Attribution settings| `{"commit": "🤖 Generated with Claude Code", "pr": ""}`
`autoMemoryDirectory`| Custom directory for [auto memory](</docs/en/memory#storage-location>) storage. Accepts `~/`-expanded paths. Not accepted in project settings (`.claude/settings.json`) to prevent shared repos from redirecting memory writes to sensitive locations. Accepted from policy, local, and user settings| `"~/my-memory-dir"`
-`autoMode`| Customize what the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier blocks and allows. Contains `environment`, `allow`, and `soft_deny` arrays of prose rules. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>). Not read from shared project settings| `{"environment": ["Trusted repo: github.example.com/acme"]}`
+`autoMode`| Customize what the [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) classifier blocks and allows. Contains `environment`, `allow`, and `soft_deny` arrays of prose rules. See [Configure auto mode](</docs/en/auto-mode-config>). Not read from shared project settings| `{"environment": ["Trusted repo: github.example.com/acme"]}`
`autoUpdatesChannel`| Release channel to follow for updates. Use `"stable"` for a version that is typically about one week old and skips versions with major regressions, or `"latest"` (default) for the most recent release| `"stable"`
`availableModels`| Restrict which models users can select via `/model`, `--model`, Config tool, or `ANTHROPIC_MODEL`. Does not affect the Default option. See [Restrict model selection](</docs/en/model-config#restrict-model-selection>)| `["sonnet", "haiku"]`
`awaySummaryEnabled`| Show a one-line session recap when you return to the terminal after a few minutes away. Set to `false` or turn off Session recap in `/config` to disable. Same as [`CLAUDE_CODE_ENABLE_AWAY_SUMMARY`](</docs/en/env-vars>)| `true`
`awsAuthRefresh`| Custom script that modifies the `.aws` directory (see [advanced credential configuration](</docs/en/amazon-bedrock#advanced-credential-configuration>))| `aws sso login --profile myprofile`
`awsCredentialExport`| Custom script that outputs JSON with AWS credentials (see [advanced credential configuration](</docs/en/amazon-bedrock#advanced-credential-configuration>))| `/bin/generate_aws_grant.sh`
-`blockedMarketplaces`| (Managed settings only) Blocklist of marketplace sources. Blocked sources are checked before downloading, so they never touch the filesystem. See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)| `[{ "source": "github", "repo": "untrusted/plugins" }]`
+`blockedMarketplaces`| (Managed settings only) Blocklist of marketplace sources. Enforced on marketplace add and on plugin install, update, refresh, and auto-update, so a marketplace added before the policy was set cannot be used to fetch plugins. Blocked sources are checked before downloading, so they never touch the filesystem. See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)| `[{ "source": "github", "repo": "untrusted/plugins" }]`
`channelsEnabled`| (Managed settings only) Allow [channels](</docs/en/channels>) for Team and Enterprise users. Unset or `false` blocks channel message delivery regardless of what users pass to `--channels`| `true`
`cleanupPeriodDays`| Session files older than this period are deleted at startup (default: 30 days, minimum 1). Setting to `0` is rejected with a validation error. Also controls the age cutoff for automatic removal of [orphaned subagent worktrees](</docs/en/common-workflows#worktree-cleanup>) at startup. To disable transcript writes entirely, set the [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](</docs/en/env-vars>) environment variable, or in non-interactive mode (`-p`) use the `--no-session-persistence` flag or the `persistSession: false` SDK option.| `20`
`companyAnnouncements`| Announcement to display to users at startup. If multiple announcements are provided, they will be cycled through at random.| `["Welcome to Acme Corp! Review our code guidelines at docs.acme.com"]`
@@ -220,11 +220,12 @@
`spinnerVerbs`| Customize the action verbs shown in the spinner and turn duration messages. Set `mode` to `"replace"` to use only your verbs, or `"append"` to add them to the defaults| `{"mode": "append", "verbs": ["Pondering", "Crafting"]}`
`sshConfigs`| SSH connections to show in the [Desktop](</docs/en/desktop#pre-configure-ssh-connections-for-your-team>) environment dropdown. Each entry requires `id`, `name`, and `sshHost`; `sshPort`, `sshIdentityFile`, and `startDirectory` are optional. When set in managed settings, connections are read-only for users. Read from managed and user settings only| `[{"id": "dev-vm", "name": "Dev VM", "sshHost": "user@dev.example.com"}]`
`statusLine`| Configure a custom status line to display context. See [`statusLine` documentation](</docs/en/statusline>)| `{"type": "command", "command": "~/.claude/statusline.sh"}`
-`strictKnownMarketplaces`| (Managed settings only) Allowlist of plugin marketplaces users can add. Undefined = no restrictions, empty array = lockdown. Applies to marketplace additions only. See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)| `[{ "source": "github", "repo": "acme-corp/plugins" }]`
+`strictKnownMarketplaces`| (Managed settings only) Allowlist of plugin marketplace sources. Undefined = no restrictions, empty array = lockdown. Enforced on marketplace add and on plugin install, update, refresh, and auto-update, so a marketplace added before the policy was set cannot be used to fetch plugins. See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)| `[{ "source": "github", "repo": "acme-corp/plugins" }]`
`tui`| Terminal UI renderer. Use `"fullscreen"` for the flicker-free [alt-screen renderer](</docs/en/fullscreen>) with virtualized scrollback. Use `"default"` for the classic main-screen renderer. Set via `/tui`| `"fullscreen"`
`useAutoModeDuringPlan`| Whether plan mode uses auto mode semantics when auto mode is available. Default: `true`. Not read from shared project settings. Appears in `/config` as “Use auto mode during plan”| `false`
`viewMode`| Default transcript view mode on startup: `"default"`, `"verbose"`, or `"focus"`. Overrides the sticky `/focus` selection when set| `"verbose"`
-`voiceEnabled`| Enable push-to-talk [voice dictation](</docs/en/voice-dictation>). Written automatically when you run `/voice`. Requires a Claude.ai account| `true`
+`voice`| [Voice dictation](</docs/en/voice-dictation>) settings: `enabled` turns dictation on, `mode` selects `"hold"` or `"tap"`, and `autoSubmit` sends the prompt on key release in hold mode. Written automatically when you run `/voice`. Requires a Claude.ai account| `{ "enabled": true, "mode": "tap" }`
+`voiceEnabled`| Legacy alias for `voice.enabled`. Prefer the `voice` object| `true`
###
@@ -668,7 +669,7 @@
`strictKnownMarketplaces`
-**Managed settings only** : Controls which plugin marketplaces users are allowed to add. This setting can only be configured in [managed settings](</docs/en/settings#settings-files>) and provides administrators with strict control over marketplace sources. **Managed settings file locations** :
+**Managed settings only** : Controls which plugin marketplaces users are allowed to add and install plugins from. This setting can only be configured in [managed settings](</docs/en/settings#settings-files>) and provides administrators with strict control over marketplace sources. **Managed settings file locations** :
* **macOS** : `/Library/Application Support/ClaudeCode/managed-settings.json`
* **Linux and WSL** : `/etc/claude-code/managed-settings.json`
@@ -851,7 +852,7 @@
* Restrictions are checked BEFORE any network requests or filesystem operations
* When blocked, users see clear error messages indicating the source is blocked by managed policy
- * The restriction applies only to adding NEW marketplaces; previously installed marketplaces remain accessible
+ * The restriction is enforced on marketplace add and on plugin install, update, refresh, and auto-update. A marketplace added before the policy was set cannot be used to install or update plugins once its source no longer matches the allowlist
* Managed settings have the highest precedence and cannot be overridden
See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>) for user-facing documentation.
Show diff (134 lines)
--- a/setup.md
+++ b/setup.md
@@ -69,7 +69,7 @@
WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes.
-After installation completes, open a terminal in the project you want to work in and start Claude Code:
+You can also install with [apt, dnf, or apk](</docs/en/setup#install-with-linux-package-managers>) on Debian, Fedora, RHEL, and Alpine. After installation completes, open a terminal in the project you want to work in and start Claude Code:
claude
@@ -145,7 +145,7 @@
Update Claude Code
-Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew and WinGet installations require manual updates.
+Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew, WinGet, and Linux package manager installations require manual updates.
###
@@ -155,7 +155,7 @@
Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code.
-Homebrew and WinGet installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
+Homebrew, WinGet, apt, dnf, and apk installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
###
@@ -221,7 +221,7 @@
Advanced installation options
-These options are for version pinning, migrating from npm, and verifying binary integrity.
+These options are for version pinning, Linux package managers, npm, and verifying binary integrity.
###
@@ -270,6 +270,55 @@
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.89
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 2.1.89 && del install.cmd
+
+###
+
+
+
+Install with Linux package managers
+
+Claude Code publishes signed apt, dnf, and apk repositories. Replace `stable` with `latest` for the rolling channel. Package manager installations do not auto-update through Claude Code; updates arrive through your normal system upgrade workflow. All repositories are signed with the Claude Code release signing key. Before trusting the key, verify it as described in each tab.
+
+ * apt
+
+ * dnf
+
+ * apk
+
+For Debian and Ubuntu. To use the rolling channel, change both `stable` occurrences in the `deb` line: the URL path and the suite name.
+
+ sudo install -d -m 0755 /etc/apt/keyrings
+ sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \
+ -o /etc/apt/keyrings/claude-code.asc
+ echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \
+ | sudo tee /etc/apt/sources.list.d/claude-code.list
+ sudo apt update
+ sudo apt install claude-code
+
+Verify the GPG key fingerprint before trusting it: `gpg --show-keys /etc/apt/keyrings/claude-code.asc` should report `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE`.To upgrade later, run `sudo apt update && sudo apt upgrade claude-code`.
+
+For Fedora and RHEL:
+
+ sudo tee /etc/yum.repos.d/claude-code.repo <<'EOF'
+ [claude-code]
+ name=Claude Code
+ baseurl=https://downloads.claude.ai/claude-code/rpm/stable
+ enabled=1
+ gpgcheck=1
+ gpgkey=https://downloads.claude.ai/keys/claude-code.asc
+ EOF
+ sudo dnf install claude-code
+
+dnf downloads the key on first install and prompts you to confirm the fingerprint. Verify it matches `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE` before accepting.To upgrade later, run `sudo dnf upgrade claude-code`.
+
+For Alpine Linux:
+
+ wget -O /etc/apk/keys/claude-code.rsa.pub \
+ https://downloads.claude.ai/keys/claude-code.rsa.pub
+ echo "https://downloads.claude.ai/claude-code/apk/stable" >> /etc/apk/repositories
+ apk add claude-code
+
+Verify the downloaded key with `sha256sum /etc/apk/keys/claude-code.rsa.pub`, which should report `395759c1f7449ef4cdef305a42e820f3c766d6090d142634ebdb049f113168b6`.To upgrade later, run `apk update && apk upgrade claude-code`.
###
@@ -368,7 +417,7 @@
* **macOS** : signed by “Anthropic PBC” and notarized by Apple. Verify with `codesign --verify --verbose ./claude`.
* **Windows** : signed by “Anthropic, PBC”. Verify with `Get-AuthenticodeSignature .\claude.exe`.
- * **Linux** : use the manifest signature above to verify integrity. Linux binaries are not individually code-signed.
+ * **Linux** : binaries are not individually code-signed. If you download directly from the `claude-code-releases` bucket or use the native installer, verify integrity with the manifest signature above. If you install with apt, dnf, or apk, your package manager verifies signatures automatically using the repository signing key.
##
@@ -419,6 +468,30 @@
Remove the WinGet package:
winget uninstall Anthropic.ClaudeCode
+
+###
+
+
+
+apt / dnf / apk
+
+Remove the package and the repository configuration:
+
+ * apt
+
+ * dnf
+
+ * apk
+
+ sudo apt remove claude-code
+ sudo rm /etc/apt/sources.list.d/claude-code.list /etc/apt/keyrings/claude-code.asc
+
+ sudo dnf remove claude-code
+ sudo rm /etc/yum.repos.d/claude-code.repo
+
+ apk del claude-code
+ sed -i '\|downloads.claude.ai/claude-code/apk|d' /etc/apk/repositories
+ rm /etc/apk/keys/claude-code.rsa.pub
###
--- a/sub-agents.md
+++ b/sub-agents.md
@@ -10,7 +10,13 @@
* **Specialize behavior** with focused system prompts for specific domains
* **Control costs** by routing tasks to faster, cheaper models like Haiku
-Claude uses each subagent’s description to decide when to delegate tasks. When you create a subagent, write a clear description so Claude knows when to use it. Claude Code includes several built-in subagents like **Explore** , **Plan** , and **general-purpose**. You can also create custom subagents to handle specific tasks. This page covers the built-in subagents, how to create your own, full configuration options, patterns for working with subagents, and example subagents.
+Claude uses each subagent’s description to decide when to delegate tasks. When you create a subagent, write a clear description so Claude knows when to use it. Claude Code includes several built-in subagents like **Explore** , **Plan** , and **general-purpose**. You can also create custom subagents to handle specific tasks. This page covers:
+
+ * Built-in subagents
+ * How to create your own
+ * Full configuration options
+ * Patterns for working with subagents
+ * Example subagents
##
@@ -319,7 +325,16 @@
Scope MCP servers to a subagent
-Use the `mcpServers` field to give a subagent access to [MCP](</docs/en/mcp>) servers that aren’t available in the main conversation. Inline servers defined here are connected when the subagent starts and disconnected when it finishes. String references share the parent session’s connection. Each entry in the list is either an inline server definition or a string referencing an MCP server already configured in your session:
+Use the `mcpServers` field to give a subagent access to [MCP](</docs/en/mcp>) servers that aren’t available in the main conversation. Inline servers defined here are connected when the subagent starts and disconnected when it finishes. String references share the parent session’s connection.
+
+The `mcpServers` field applies in both contexts where an agent file can run:
+
+ * As a subagent, spawned through the Agent tool or an @-mention
+ * As the main session, launched with `--agent` or the `agent` setting
+
+When the agent is the main session, inline server definitions connect at startup alongside servers from [`.mcp.json`](</docs/en/mcp>) and settings files.
+
+Each entry in the list is either an inline server definition or a string referencing an MCP server already configured in your session:
---
name: browser-tester
--- a/typescript.md
+++ b/typescript.md
@@ -1026,6 +1026,7 @@
modelUsage: { [modelName: string]: ModelUsage };
permission_denials: SDKPermissionDenial[];
structured_output?: unknown;
+ deferred_tool_use?: { id: string; name: string; input: Record<string, unknown> };
}
| {
type: "result";
@@ -1048,6 +1049,8 @@
errors: string[];
};
+When a `PreToolUse` hook returns `permissionDecision: "defer"`, the result has `stop_reason: "tool_deferred"` and `deferred_tool_use` carries the pending tool’s `id`, `name`, and `input`. Read this field to surface the request in your own UI, then resume with the same `session_id` to continue. See [Defer a tool call for later](</docs/en/hooks#defer-a-tool-call-for-later>) for the full round trip.
+
###
@@ -1523,7 +1526,7 @@
hookSpecificOutput?:
| {
hookEventName: "PreToolUse";
- permissionDecision?: "allow" | "deny" | "ask";
+ permissionDecision?: "allow" | "deny" | "ask" | "defer";
permissionDecisionReason?: string;
updatedInput?: Record<string, unknown>;
additionalContext?: string;
--- a/user-input.md
+++ b/user-input.md
@@ -1,4 +1,4 @@
-While working on a task, Claude sometimes needs to check in with users. It might need permission before deleting files, or need to ask which database to use for a new project. Your application needs to surface these requests to users so Claude can continue with their input. Claude requests user input in two situations: when it needs **permission to use a tool** (like deleting files or running commands), and when it has **clarifying questions** (via the `AskUserQuestion` tool). Both trigger your `canUseTool` callback, which pauses execution until you return a response. This is different from normal conversation turns where Claude finishes and waits for your next message. For clarifying questions, Claude generates the questions and options. Your role is to present them to users and return their selections. You can’t add your own questions to this flow; if you need to ask users something yourself, do that separately in your application logic. This guide shows you how to detect each type of request and respond appropriately.
+While working on a task, Claude sometimes needs to check in with users. It might need permission before deleting files, or need to ask which database to use for a new project. Your application needs to surface these requests to users so Claude can continue with their input. Claude requests user input in two situations: when it needs **permission to use a tool** (like deleting files or running commands), and when it has **clarifying questions** (via the `AskUserQuestion` tool). Both trigger your `canUseTool` callback, which pauses execution until you return a response. This is different from normal conversation turns where Claude finishes and waits for your next message. For clarifying questions, Claude generates the questions and options. Your role is to present them to users and return their selections. You can’t add your own questions to this flow; if you need to ask users something yourself, do that separately in your application logic. The callback can stay pending indefinitely. Execution remains paused until your callback returns, and the SDK only cancels the wait when the query itself is cancelled. If a user might take longer to respond than your process can reasonably stay running, the TypeScript SDK supports the [`defer` hook decision](</docs/en/hooks#defer-a-tool-call-for-later>), which lets the process exit and resume later from the persisted session; this option is not available in the Python SDK. This guide shows you how to detect each type of request and respond appropriately.
##
Show diff (127 lines)
--- a/voice-dictation.md
+++ b/voice-dictation.md
@@ -1,6 +1,6 @@
-Hold a key and speak to dictate your prompts. Your speech is transcribed live into the prompt input, so you can mix voice and typing in the same message. Enable dictation with `/voice`. The default push-to-talk key is `Space`; rebind to a modifier combination to activate on the first keypress rather than after a brief hold.
+Speak your prompts instead of typing them in the Claude Code CLI. Your speech is transcribed live into the prompt input, so you can mix voice and typing in the same message. Enable dictation with `/voice`, then either hold a key while you speak or tap once to start and again to send.
-Voice dictation requires Claude Code v2.1.69 or later. Check your version with `claude --version`.
+Voice dictation requires Claude Code v2.1.69 or later. Tap mode requires v2.1.116 or later. Check your version with `claude --version`.
##
@@ -8,7 +8,7 @@
Requirements
-Voice dictation streams your recorded audio to Anthropic’s servers for transcription. Audio is not processed locally. The speech-to-text service is only available when you authenticate with a Claude.ai account, and is not available when Claude Code is configured to use an Anthropic API key directly, Amazon Bedrock, Google Vertex AI, or Microsoft Foundry. See [data usage](</docs/en/data-usage>) for how Anthropic handles your data. Voice dictation also needs local microphone access, so it does not work in remote environments such as [Claude Code on the web](</docs/en/claude-code-on-the-web>) or SSH sessions. In WSL, voice dictation requires WSLg for audio access, which is included with WSL2 on Windows 11. On Windows 10 or WSL1, run Claude Code in native Windows instead. Audio recording uses a built-in native module on macOS, Linux, and Windows. On Linux, if the native module cannot load, Claude Code falls back to `arecord` from ALSA utils or `rec` from SoX. If neither is available, `/voice` prints an install command for your package manager.
+Voice dictation streams your recorded audio to Anthropic’s servers for transcription. Audio is not processed locally. The speech-to-text service is only available when you authenticate with a Claude.ai account, and is not available when Claude Code is configured to use an Anthropic API key directly, Amazon Bedrock, Google Vertex AI, or Microsoft Foundry. Transcription does not consume Claude messages or tokens and does not count toward the limits shown in `/usage`. See [data usage](</docs/en/data-usage>) for how Anthropic handles your data. Voice dictation also needs local microphone access, so it does not work in remote environments such as [Claude Code on the web](</docs/en/claude-code-on-the-web>) or SSH sessions. In WSL, voice dictation requires WSLg for audio access, which is included with WSL2 on Windows 11. On Windows 10 or WSL1, run Claude Code in native Windows instead. Audio recording uses a built-in native module on macOS, Linux, and Windows. On Linux, if the native module cannot load, Claude Code falls back to `arecord` from ALSA utils or `rec` from SoX. If neither is available, `/voice` prints an install command for your package manager. The Claude Code [VS Code extension](</docs/en/vs-code>) also supports voice dictation with the same Claude.ai account requirement. It is not available in VS Code Remote sessions, including SSH, Dev Containers, and Codespaces, because the microphone is on your local machine and the extension runs on the remote host.
##
@@ -16,28 +16,40 @@
Enable voice dictation
-Run `/voice` to toggle voice dictation on. The first time you enable it, Claude Code runs a microphone check. On macOS, this triggers the system microphone permission prompt for your terminal if it has never been granted.
+Run `/voice` to enable dictation. The first time you enable it, Claude Code runs a microphone check. On macOS, this triggers the system microphone permission prompt for your terminal if it has never been granted.
/voice
- Voice mode enabled. Hold Space to record. Dictation language: en (/config to change).
+ Voice mode enabled (hold). Hold Space to record. Dictation language: en (/config to change).
-Voice dictation persists across sessions. Run `/voice` again to turn it off, or set it directly in your [user settings file](</docs/en/settings>):
+`/voice` accepts an optional mode argument:
+
+Command| Effect
+---|---
+`/voice`| Toggle on or off, keep the current mode
+`/voice hold`| Enable in hold mode
+`/voice tap`| Enable in tap mode
+`/voice off`| Disable
+
+Voice dictation persists across sessions. Set it directly in your [user settings file](</docs/en/settings>) instead of running `/voice`:
{
- "voiceEnabled": true
+ "voice": {
+ "enabled": true,
+ "mode": "tap"
+ }
}
-While voice dictation is enabled, the input footer shows a `hold Space to speak` hint when the prompt is empty. The hint does not appear if you have a [custom status line](</docs/en/statusline>) configured.
+While voice dictation is enabled, the input footer shows a `hold Space to speak` hint when the prompt is empty. The hint text is the same in both modes, and it does not appear if you have a [custom status line](</docs/en/statusline>) configured. Transcription is tuned for coding vocabulary in both modes. Common development terms like `regex`, `OAuth`, `JSON`, and `localhost` are recognized correctly, and your current project name and git branch name are added as recognition hints automatically.
##
-Record a prompt
+Hold to record
-Hold `Space` to start recording. Claude Code detects a held key by watching for rapid key-repeat events from your terminal, so there is a brief warmup before recording begins. The footer shows `keep holding…` during warmup, then switches to a live waveform once recording is active. The first couple of key-repeat characters type into the input during warmup and are removed automatically when recording activates. A single `Space` tap still types a space, since hold detection only triggers on rapid repeat.
+Hold mode is push-to-talk: recording runs while you hold the key and stops when you release it. This is the default mode. Hold `Space` to start recording. Claude Code detects a held key by watching for rapid key-repeat events from your terminal, so there is a brief warmup before recording begins. The footer shows `keep holding…` during warmup, then switches to a live waveform once recording is active. The first couple of key-repeat characters type into the input during warmup and are removed automatically when recording activates. A single `Space` tap still types a space, since hold detection only triggers on rapid repeat.
-To skip the warmup, rebind to a modifier combination like `meta+k`. Modifier combos start recording on the first keypress.
+To skip the warmup, switch to tap mode with `/voice tap`, or rebind to a modifier combination like `meta+k`. Modifier combos start recording on the first keypress.
Your speech appears in the prompt as you speak, dimmed until the transcript is finalized. Release `Space` to stop recording and finalize the text. The transcript is inserted at your cursor position and the cursor stays at the end of the inserted text, so you can mix typing and dictation in any order. Hold `Space` again to append another recording, or move the cursor first to insert speech elsewhere in the prompt:
@@ -45,7 +57,15 @@
# hold Space, speak "use the new token validation helper"
> refactor the auth middleware to use the new token validation helper▮
-Transcription is tuned for coding vocabulary. Common development terms like `regex`, `OAuth`, `JSON`, and `localhost` are recognized correctly, and your current project name and git branch name are added as recognition hints automatically.
+By default, releasing the key inserts the transcript and waits for you to press `Enter`. Set `"autoSubmit": true` in the `voice` settings object to send the prompt automatically when you release the key, as long as the transcript is at least three words long.
+
+##
+
+
+
+Tap to record and send
+
+Tap mode toggles recording with a single keypress: tap once to start, speak, then tap again to send the prompt. There is no warmup, and you do not need to keep the key held. Enable tap mode with `/voice tap`. With the prompt input empty, tap `Space` to start recording. The footer shows a live waveform while recording. Tap `Space` again to stop. Claude Code inserts the transcript and submits the prompt automatically when the transcript is at least three words long. Shorter transcripts are inserted but not submitted, so an accidental tap does not send a stray word. The first tap only starts recording when the prompt input is empty, so you can still type spaces normally while composing a message. The second tap stops recording regardless of input contents. Recording also stops automatically after 15 seconds of silence or two minutes total.
##
@@ -92,9 +112,9 @@
-Rebind the push-to-talk key
+Rebind the dictation key
-The push-to-talk key is bound to `voice:pushToTalk` in the `Chat` context and defaults to `Space`. Rebind it in [`~/.claude/keybindings.json`](</docs/en/keybindings>):
+The dictation key is bound to `voice:pushToTalk` in the `Chat` context and defaults to `Space`. The same binding controls both hold and tap modes. Rebind it in [`~/.claude/keybindings.json`](</docs/en/keybindings>):
{
"bindings": [
@@ -108,7 +128,7 @@
]
}
-Setting `"space": null` removes the default binding. Omit it if you want both keys active. Because hold detection relies on key-repeat, avoid binding a bare letter key like `v` since it types into the prompt during warmup. Use `Space`, or use a modifier combination like `meta+k` to start recording on the first keypress with no warmup. See [customize keyboard shortcuts](</docs/en/keybindings>) for the full keybinding syntax.
+Setting `"space": null` removes the default binding. Omit it if you want both keys active. In hold mode, avoid binding a bare letter key like `v` since hold detection relies on key-repeat and the letter types into the prompt during warmup. Use `Space`, or use a modifier combination like `meta+k` to start recording on the first keypress with no warmup. Tap mode has no warmup, so any key works. See [customize keyboard shortcuts](</docs/en/keybindings>) for the full keybinding syntax.
##
@@ -121,7 +141,10 @@
* **`Voice mode requires a Claude.ai account`** : you are authenticated with an API key or a third-party provider. Run `/login` to sign in with a Claude.ai account.
* **`Microphone access is denied`** : grant microphone permission to your terminal in system settings. On macOS, go to System Settings → Privacy & Security → Microphone and enable your terminal app, then run `/voice` again. On Windows, go to Settings → Privacy & security → Microphone and turn on microphone access for desktop apps, then run `/voice` again. If your terminal isn’t listed in the macOS settings, see Terminal not listed in macOS Microphone settings.
* **`No audio recording tool found` on Linux**: the native audio module could not load and no fallback is installed. Install SoX with the command shown in the error message, for example `sudo apt-get install sox`.
- * **Nothing happens when holding`Space`**: watch the prompt input while you hold. If spaces keep accumulating, voice dictation is off; run `/voice` to enable it. If only one or two spaces appear and then nothing, voice dictation is on but hold detection is not triggering. Hold detection requires your terminal to send key-repeat events, so it cannot detect a held key if key-repeat is disabled at the OS level.
+ * **Nothing happens when holding`Space` in hold mode**: watch the prompt input while you hold. If spaces keep accumulating, voice dictation is likely off; run `/voice hold` to enable it. If only one or two spaces appear and then nothing, voice dictation is on but hold detection is not triggering. Hold detection requires your terminal to send key-repeat events, so it cannot detect a held key if key-repeat is disabled at the OS level. Switch to tap mode with `/voice tap` to avoid the key-repeat requirement.
+ * **Tapping`Space` types a space instead of recording in tap mode**: the first tap only starts recording when the prompt input is empty. Clear the input first, or check that you are in tap mode by running `/voice tap`.
+ * **`No audio detected from microphone`** : recording started but captured silence. Confirm the correct input device is set as the system default and that its input level is not muted or near zero. On Windows, open Settings → System → Sound → Input and select your microphone. On macOS, open System Settings → Sound → Input.
+ * **`No speech detected`** : audio reached the transcription service but no words were recognized. Speak closer to the microphone, reduce background noise, and confirm your dictation language matches the language you are speaking.
* **Transcription is garbled or in the wrong language** : dictation defaults to English. If you are dictating in another language, set it in `/config` first. See Change the dictation language.
###
@@ -159,6 +182,6 @@
See also
* [Customize keyboard shortcuts](</docs/en/keybindings>): rebind `voice:pushToTalk` and other CLI keyboard actions
- * [Configure settings](</docs/en/settings>): full reference for `voiceEnabled`, `language`, and other settings keys
+ * [Configure settings](</docs/en/settings>): full reference for `voice`, `language`, and other settings keys
* [Interactive mode](</docs/en/interactive-mode>): keyboard shortcuts, input modes, and session controls
* [Commands](</docs/en/commands>): reference for `/voice`, `/config`, and all other commands
--- a/vs-code.md
+++ b/vs-code.md
@@ -378,9 +378,10 @@
Connect to external tools with MCP
-MCP (Model Context Protocol) servers give Claude access to external tools, databases, and APIs. To add an MCP server, open the integrated terminal (`Ctrl+`` or `Cmd+``) and run:
-
- claude mcp add --transport http github https://api.githubcopilot.com/mcp/
+MCP (Model Context Protocol) servers give Claude access to external tools, databases, and APIs. To add an MCP server, open the integrated terminal (`Ctrl+`` or `Cmd+``) and run `claude mcp add`. The example below adds GitHub’s remote MCP server, which authenticates with a [personal access token](<https://github.com/settings/personal-access-tokens>) passed as a header:
+
+ claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
+ --header "Authorization: Bearer YOUR_GITHUB_PAT"
Once configured, ask Claude to use the tools (e.g., “Review PR #456”). To manage MCP servers without leaving VS Code, type `/mcp` in the chat panel. The MCP management dialog lets you enable or disable servers, reconnect to a server, and manage OAuth authentication. See the [MCP documentation](</docs/en/mcp>) for available servers.