added Week 16 · April 13–17, 2026 View current →
--- a/2026-w16.md +++ b/2026-w16.md @@ -0,0 +1,97 @@ +Releases [v2.1.105 → v2.1.113](</docs/en/changelog#2-1-105>)5 features · April 13–17 + +Claude Opus 4.7new model + +Anthropic’s strongest coding model yet is now the default on Max and Team Premium, and available everywhere else from `/model`. It adds a new `xhigh` effort level that sits between `high` and `max`: best results for most coding and agentic tasks, applied as the default the first time you switch to 4.7. `/effort` now opens an interactive arrow-key slider when you call it without arguments, so you can dial intelligence against speed without remembering the level names. + +Switch model and effort in one go: + +Claude Code + + > /model opus + > /effort xhigh + +[Model config: effort levels](</docs/en/model-config#adjust-effort-level>) + +Routinesweb + +Templated cloud agents that fire on a schedule, a GitHub event, or an API call. Define a routine once on Claude Code on the web with a prompt, the repos it can touch, and the connectors it needs, then let PR-opened, release-published, or your own webhook trigger it without your machine running. The trigger picker now covers GitHub events with optional filters and gives every routine a tokened `/fire` endpoint for external systems. + +Create one from the web UI, or scaffold from your terminal: + +Claude Code + + > /schedule daily PR review at 9am + +[Routines guide](</docs/en/routines>) + +/usage breakdownCLI + +More visibility into where your Claude Code usage goes. `/usage` now shows what’s driving your limits: parallel sessions, subagents, cache misses, and long context, each with a percentage of your last 24 hours and a tip to optimize it. Press `d` or `w` to switch between day and week views. + +Run it any time: + +Claude Code + + > /usage + +[Commands reference](</docs/en/commands>) + +/ultrareviewv2.1.111 + +Comprehensive code review in the cloud. Ultrareview fans your branch out across parallel reviewers on Claude Code on the web, runs an adversarial critique pass over each finding, and returns a verified findings report while your terminal stays free. Call it with no arguments to review your current branch, or pass a PR number to fetch and review that PR. The launch dialog now shows a diffstat so you know what’s going up before you confirm. + +Review the branch you’re on: + +Claude Code + + > /ultrareview + +Or point it at a PR: + +Claude Code + + > /ultrareview 1234 + +[Ultrareview guide](</docs/en/ultrareview>) + +Native binariesv2.1.113 + +The `claude` CLI now spawns a native per-platform binary instead of bundled JavaScript, so the installed `claude` command no longer invokes Node. The npm package pulls the right binary in through an optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, so your install command doesn’t change. The standalone installer already shipped this binary; npm now matches it. + +Upgrade and check what you’re running: + + claude update + claude --version + +[Setup guide](</docs/en/setup>) + +Other wins + +[Auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) is now available for Max subscribers on Opus 4.7, and the `—enable-auto-mode` flag is no longer required + +[Session recap](</docs/en/interactive-mode#session-recap>) shows a one-line summary of what happened while you were away; run `/recap` on demand or turn it off from `/config` + +New `/tui` command and `tui` setting switch between classic and flicker-free rendering mid-conversation; focus view moved from `Ctrl+O` to its own `/focus` command + +Push notification tool: with [Remote Control](</docs/en/remote-control>) connected and “Push when Claude decides” enabled, Claude can ping your phone when it needs you + +Plugins can ship background watchers via a top-level `monitors` manifest key that auto-arms at session start or on skill invoke + +”Auto (match terminal)” option in `/theme` follows your terminal’s dark/light mode + +`/fewer-permission-prompts` scans your transcripts for common read-only Bash and MCP calls and proposes an allowlist for `.claude/settings.json` + +Claude can now discover and run built-in commands like `/init`, `/review`, and `/security-review` via the Skill tool + +`PreCompact` hooks can block compaction by exiting with code 2 or returning `“decision”:“block”` + +`ENABLE_PROMPT_CACHING_1H` opts API key, Bedrock, Vertex, and Foundry users into 1-hour prompt cache TTL + +`sandbox.network.deniedDomains` setting carves specific domains out of a broader `allowedDomains` wildcard + +`/undo` is now an alias for `/rewind`, and `/proactive` is an alias for `/loop` + +Hardened Bash permissions: deny rules now match through `env`/`sudo`/`watch` wrappers, and `Bash(find:*)` allow rules no longer auto-approve `-exec` or `-delete` + +[Full changelog for v2.1.105–v2.1.113 →](</docs/en/changelog#2-1-105>)
added Week 17 · April 20–24, 2026 View current →
--- a/2026-w17.md +++ b/2026-w17.md @@ -0,0 +1,77 @@ +Releases [v2.1.114 → v2.1.119](</docs/en/changelog#2-1-114>)4 features · April 20–24 + +/ultrareviewresearch preview + +Now in public research preview. Ultrareview runs a fleet of bug-hunting agents in the cloud against your branch or a PR, and findings land back in the CLI or Desktop automatically. Run it before merging critical changes such as auth or data migrations. + +Review the branch you’re on: + +Claude Code + + > /ultrareview + +Or point it at a PR: + +Claude Code + + > /ultrareview 1234 + +[Ultrareview guide](</docs/en/ultrareview>) + +Session recapCLI + +Switch focus away from a session and come back to a one-line recap of what happened while you were gone. Helpful for staying in flow while running several Claude sessions at once. + +Generate a recap on demand, or turn the automatic one off from `/config`: + +Claude Code + + > /recap + +[Interactive mode: session recap](</docs/en/interactive-mode#session-recap>) + +Custom themesv2.1.118 + +Build and switch between named color themes from `/theme`, or hand-edit JSON files in `~/.claude/themes/`. Each theme picks a base preset and overrides only the tokens you care about. Plugins can ship themes too. + +Open the theme picker and create a new one: + +Claude Code + + > /theme + +[Terminal config: create a custom theme](</docs/en/terminal-config#create-a-custom-theme>) + +Claude Code on the webweb + +A new look for [claude.ai/code](<https://claude.ai/code>) that matches the redesigned desktop app: sessions sidebar, drag-and-drop layout, and a refreshed routines view. Key parts were rebuilt for quicker responses and a more reliable experience. + +[Claude Code on the web](</docs/en/claude-code-on-the-web>) + +Other wins + +[Vim visual mode](</docs/en/interactive-mode#vim-editor-mode>): press `v` for character selection or `V` for line selection in the prompt input, with operators and visual feedback + +Hooks can now call MCP tools directly via [`type: “mcp_tool”`](</docs/en/hooks#mcp-tool-hook-fields>), so a hook can hit an already-connected server without spawning a process + +`/cost` and `/stats` are merged into [`/usage`](</docs/en/commands>); the old names still work as typing shortcuts that open the relevant tab + +`/config` changes (theme, editor mode, verbose, and similar) now persist to `~/.claude/settings.json` and follow the same project/local/policy precedence as other [settings](</docs/en/settings>) + +[Forked subagents](</docs/en/sub-agents#fork-the-current-conversation>) can be enabled on external builds with `CLAUDE_CODE_FORK_SUBAGENT=1`: a fork inherits your full conversation context instead of starting fresh + +Default [effort level](</docs/en/model-config#adjust-effort-level>) for Pro and Max subscribers on Opus 4.6 and Sonnet 4.6 is now `high` (was `medium`) + +Native macOS and Linux builds replace the `Glob` and `Grep` tools with embedded `bfs` and `ugrep` available through Bash, for faster searches without a separate tool round-trip + +`—from-pr` now accepts GitLab merge request, Bitbucket pull request, and GitHub Enterprise PR URLs in addition to github.com + +Auto mode: include `“$defaults”` in [`autoMode.allow`, `soft_deny`, or `environment`](</docs/en/auto-mode-config>) to add custom rules alongside the built-in list instead of replacing it + +New [`claude plugin tag`](</docs/en/plugin-dependencies#tag-plugin-releases-for-version-resolution>) command creates release git tags for plugins with version validation + +Opus 4.7 sessions now compute against the model’s native 1M context window, fixing inflated `/context` percentages and premature autocompaction + +`/resume` on large sessions is up to 67% faster and now offers to summarize stale, large sessions before re-reading them + +[Full changelog for v2.1.114–v2.1.119 →](</docs/en/changelog#2-1-114>)
modified Claude Code on Amazon Bedrock View current →
--- a/amazon-bedrock.md +++ b/amazon-bedrock.md @@ -232,7 +232,8 @@ "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", - "bedrock:ListInferenceProfiles" + "bedrock:ListInferenceProfiles", + "bedrock:GetInferenceProfile" ], "Resource": [ "arn:aws:bedrock:*:*:inference-profile/*", @@ -257,7 +258,7 @@ ] } -For more restrictive permissions, you can limit the Resource to specific inference profile ARNs. For details, see [Bedrock IAM documentation](<https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html>). +For more restrictive permissions, you can limit the Resource to specific inference profile ARNs. `bedrock:GetInferenceProfile` lets Claude Code resolve an application inference profile ARN to its backing foundation model, which is used to select the correct request shape for that model. If the token is missing this permission, Claude Code recovers automatically by retrying once with the alternate shape, so requests still succeed but each new model adds an extra round-trip. Granting the permission avoids the retry. This applies most often to `AWS_BEARER_TOKEN_BEDROCK` deployments, where the token’s policy is typically narrower than a full IAM role. For details, see [Bedrock IAM documentation](<https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html>). Create a dedicated AWS account for Claude Code to simplify cost tracking and access control.
modified Changelog View current →
--- a/changelog.md +++ b/changelog.md @@ -1,4 +1,79 @@ 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.121 + +April 28, 2026 + + * Added `alwaysLoad` option to MCP server config — when `true`, all tools from that server skip tool-search deferral and are always available + * Added `claude plugin prune` to remove orphaned auto-installed plugin dependencies; `plugin uninstall --prune` cascades + * Added a type-to-filter search box to `/skills` so you can find a skill in long lists without scrolling + * PostToolUse hooks can now replace tool output for all tools via `hookSpecificOutput.updatedToolOutput` (previously MCP-only) + * Fullscreen mode: typing into the prompt no longer jumps scroll back to the bottom after you’ve scrolled up to read earlier output + * Dialogs that overflow the terminal are now scrollable with arrow keys, PgUp/PgDn, home/end, and mouse wheel in both fullscreen and non-fullscreen modes + * Clicking any line of a long URL that wraps across rows in fullscreen mode now opens the full URL + * SDK and `claude -p`: `CLAUDE_CODE_FORK_SUBAGENT=1` now works in non-interactive sessions + * `--dangerously-skip-permissions` no longer prompts for writes to `.claude/skills/`, `.claude/agents/`, and `.claude/commands/` + * `/terminal-setup` now enables iTerm2’s “Applications in terminal may access clipboard” setting so `/copy` works, including from tmux + * MCP servers that hit a transient error during startup now auto-retry up to 3 times instead of staying disconnected + * The terminal tab session title is now generated in your configured `language` setting + * Claude.ai connectors with the same upstream URL are now deduplicated instead of appearing as duplicates + * Vertex AI: support X.509 certificate-based Workload Identity Federation (mTLS ADC) + * Faster startup after upgrading: removed the Recent Activity panel from the release-notes splash + * LSP diagnostic summaries now expand on click/ctrl+o and show the expand hint + * SDK: `mcp_authenticate` now supports `redirectUri` for custom scheme completion and claude.ai connectors + * OpenTelemetry: added `stop_reason`, `gen_ai.response.finish_reasons`, and `user_system_prompt` (gated behind `OTEL_LOG_USER_PROMPTS`) to LLM request spans + * [VSCode] Voice dictation now respects the `accessibility.voice.speechLanguage` setting when no Claude Code language is configured + * [VSCode] `/context` now opens a native token usage dialog + * Fixed unbounded memory growth (multi-GB RSS) when processing many images in a session + * Fixed `/usage` leaking up to ~2GB of memory on machines with large transcript histories + * Fixed memory leak when long-running tools fail to emit a clear progress event + * Fixed Bash tool becoming permanently unusable when the directory Claude was started in is deleted or moved mid-session + * Fixed `--resume` crashing on startup in external builds + * Fixed `--resume` failing on large sessions when a transcript line was corrupted by an unclean shutdown — the corrupt line is now skipped + * Fixed `thinking.type.enabled is not supported` error when using Bedrock application inference profile ARNs + * Fixed Microsoft 365 MCP OAuth failing with duplicate or unsupported `prompt` parameter + * Fixed scrollback duplication when pressing Ctrl+L or triggering a redraw in non-fullscreen mode on tmux, GNOME Terminal, Windows Terminal, and Konsole + * Fixed claude.ai MCP connectors silently disappearing when the connector-list fetch hits a transient auth error at startup + * Fixed “Always allow” rules for built-in tools in remote sessions not surviving worker restarts + * Fixed `NO_PROXY` not being respected for all HTTP clients when set via `managed-settings.json` under the native build + * Fixed managed settings approval prompt exiting the session even when accepted — now applies settings and continues + * Fixed `/usage` returning “rate limited” after a stale OAuth token — now refreshes automatically + * Fixed invalid legacy enum values in `settings.json` invalidating the entire settings file + * Fixed `/usage` dialog content being clipped when no-flicker mode is off + * Fixed `/focus` showing “Unknown command” when the fullscreen renderer is off — now explains how to enable it + * Fixed embedded grep/find/rg shell wrappers failing when the running binary is deleted mid-session — now falls back to installed tools + * Reduced peak file descriptor usage during `find` in the Bash tool on large directory trees + +​ + +2.1.120 + +April 28, 2026 + + * Windows: Git for Windows (Git Bash) is no longer required — when absent, Claude Code uses PowerShell as the shell tool + * Added `claude ultrareview [target]` subcommand to run `/ultrareview` non-interactively from CI or scripts — prints findings to stdout (`--json` for raw output) and exits 0 on completion or 1 on failure + * Skills can now reference the current effort level with `${CLAUDE_EFFORT}` in their content + * Set `AI_AGENT` environment variable for subprocesses so `gh` can attribute traffic to Claude Code + * Spinner tips that recommend installing the desktop app or creating skills/agents are now hidden when you already have them + * Show a “use PgUp/PgDn to scroll” hint when the terminal sends arrow keys instead of scroll events + * Faster session start when you have many claude.ai connectors configured but not authorized + * The auto mode denial message now links to the configuration docs + * `claude plugin validate` now accepts `$schema`, `version`, and `description` at the top level of `marketplace.json` and `$schema` in `plugin.json` + * Auto-compact in auto mode now displays `auto` (lowercase, no token count) instead of a misleading token value + * Fixed pressing Esc during a stdio MCP tool call closing the entire server connection (regression in 2.1.105) + * Fixed `/rewind` and other interactive overlays not responding to keyboard input after launching with `claude --resume` + * Fixed terminal scrollback duplication in non-fullscreen mode (resize, dialog dismiss, long sessions) + * Fixed `DISABLE_TELEMETRY` / `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` not suppressing usage metrics telemetry for API and enterprise users + * Fixed false-positive “Dangerous rm operation” permission prompts in auto mode for multi-line bash commands containing both a pipe and a redirect + * Fixed long selection menus clipping below the terminal in fullscreen mode — the focused option now stays on screen as you scroll + * Fixed Write tool output collapsing instead of expanding when clicking “+N lines” in fullscreen + * Fixed slash command picker jumping while typing, and improved highlight to only match contiguous substrings in blue + * Fixed `/plugin` marketplace failing to load when one entry uses an unrecognized source format — that entry is shown but installing it prompts you to update + * [VSCode] `/usage` now opens the native Account & Usage dialog instead of returning plain-text session cost + * [VSCode] Voice dictation now respects the `language` setting in `~/.claude/settings.json` + * Fixed `find` in the Bash tool exhausting open file descriptors on large directory trees, causing host-wide crashes (macOS/Linux native builds) ​
modified Use Claude Code on the web View current →
--- a/claude-code-on-the-web.md +++ b/claude-code-on-the-web.md @@ -853,6 +853,7 @@ * **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM. * **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account * **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab, Bitbucket, and other non-GitHub repositories can be sent to cloud sessions as a local bundle, but the session can’t push results back to the remote + * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and [Routines](</docs/en/routines>). Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist. ##
modified CLI reference View current →
--- a/cli-reference.md +++ b/cli-reference.md @@ -26,6 +26,7 @@ `claude plugin`| Manage Claude Code [plugins](</docs/en/plugins>). Alias: `claude plugins`. See [plugin reference](</docs/en/plugins-reference#cli-commands-reference>) for subcommands| `claude plugin install code-review@claude-plugins-official` `claude remote-control`| Start a [Remote Control](</docs/en/remote-control>) server to control Claude Code from Claude.ai or the Claude app. Runs in server mode (no local interactive session). See [Server mode flags](</docs/en/remote-control#start-a-remote-control-session>)| `claude remote-control --name "My Project"` `claude setup-token`| Generate a long-lived OAuth token for CI and scripts. Prints the token to the terminal without saving it. Requires a Claude subscription. See [Generate a long-lived token](</docs/en/authentication#generate-a-long-lived-token>)| `claude setup-token` +`claude ultrareview [target]`| Run [ultrareview](</docs/en/ultrareview#run-ultrareview-non-interactively>) non-interactively. Prints findings to stdout and exits 0 on success or 1 on failure. Use `--json` for the raw payload and `--timeout <minutes>` to override the 30-minute default| `claude ultrareview 1234 --json` If you mistype a subcommand, Claude Code suggests the closest match and exits without starting a session. For example, `claude udpate` prints `Did you mean claude update?`.
modified Data usage View current →
--- a/data-usage.md +++ b/data-usage.md @@ -34,7 +34,13 @@ Session quality surveys -When you see the “How is Claude doing this session?” prompt in Claude Code, responding to this survey (including selecting “Dismiss”), only your numeric rating (1, 2, 3, or dismiss) is recorded. We do not collect or store any conversation transcripts, inputs, outputs, or other session data as part of this survey. Unlike thumbs up/down feedback or `/feedback` reports, this session quality survey is a simple product satisfaction metric. Your responses to this survey do not impact your data training preferences and cannot be used to train our AI models. To disable these surveys, set `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1`. The survey is also disabled when `DISABLE_TELEMETRY` or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` is set. To control frequency instead of disabling, set [`feedbackSurveyRate`](</docs/en/settings#available-settings>) in your settings file to a probability between `0` and `1`. +When you see the “How is Claude doing this session?” prompt in Claude Code, responding to this survey, including selecting “Dismiss”, records only your rating. We do not collect or store any conversation transcripts, inputs, outputs, or other session data as part of the rating prompt itself. Unlike thumbs up/down feedback or `/feedback` reports, this session quality survey is a simple product satisfaction metric. After the rating prompt, you may see a separate follow-up asking “Can Anthropic look at your session transcript to help us improve Claude Code?”. This is an optional second step distinct from the rating: + + * **Yes** : uploads your conversation transcript, any subagent transcripts, and the raw session log file from disk to Anthropic. Known API key and token patterns are redacted before upload. Source code, file contents, and other conversation content are uploaded as-is. Shared transcripts are retained for up to 6 months. + * **No** : declines without sending anything + * **Don’t ask again** : declines and stops this follow-up from appearing in future sessions + +Nothing is uploaded unless you explicitly select **Yes**. Organizations with [zero data retention](</docs/en/zero-data-retention>), or where product feedback is disabled by organization policy, never see this follow-up. Your responses to this survey, including session transcripts submitted after the rating prompt, do not impact your data training preferences and cannot be used to train our AI models. To disable these surveys, set `CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1`. The survey is also disabled when `DISABLE_TELEMETRY` or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` is set. To control frequency instead of disabling, set [`feedbackSurveyRate`](</docs/en/settings#available-settings>) in your settings file to a probability between `0` and `1`. ###
modified Development containers View current →
Show diff (228 lines)
--- a/devcontainer.md +++ b/devcontainer.md @@ -1,108 +1,173 @@ -The reference [devcontainer setup](<https://github.com/anthropics/claude-code/tree/main/.devcontainer>) and associated [Dockerfile](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/Dockerfile>) offer a preconfigured development container that you can use as is, or customize for your needs. This devcontainer works with the Visual Studio Code [Dev Containers extension](<https://code.visualstudio.com/docs/devcontainers/containers>) and similar tools. The container’s enhanced security measures (isolation and firewall rules) allow you to run `claude --dangerously-skip-permissions` to bypass permission prompts for unattended operation. +A [development container](<https://containers.dev/>), or dev container, lets you define an identical, isolated environment that every engineer on your team can run. With Claude Code installed in that container, commands Claude runs execute inside it rather than on the host machine, while edits to your project files appear in your local repository as you work. This page covers installing Claude Code in a dev container and the configuration topics that follow. Each topic is self-contained, so jump to the ones that match what you need to set up: -While the devcontainer provides substantial protections, no system is completely immune to all attacks. When executed with `--dangerously-skip-permissions`, devcontainers don’t prevent a malicious project from exfiltrating anything accessible in the devcontainer including Claude Code credentials. We recommend only using devcontainers when developing with trusted repositories. Always maintain good security practices and monitor Claude’s activities. + * Persist authentication and settings across rebuilds + * Enforce organization policy + * Restrict network egress + * Run without permission prompts + +While the dev container provides substantial protections, no system is completely immune to all attacks. When executed with `--dangerously-skip-permissions`, dev containers do not prevent a malicious project from exfiltrating anything accessible inside the container, including the Claude Code credentials stored in [`~/.claude`](</docs/en/claude-directory>). Only use dev containers when developing with trusted repositories, and monitor Claude’s activities. Avoid mounting host secrets such as `~/.ssh` or cloud credential files into the container; prefer repository-scoped or short-lived tokens. + +How dev containers work with your editor + +A dev container runs as a Docker container, either on your machine or on a cloud host such as GitHub Codespaces. An editor that supports the Dev Containers spec, such as VS Code, GitHub Codespaces, a JetBrains IDE, or Cursor, connects to that container: you browse and edit files in the editor as usual, but the integrated terminal, language servers, and build tools all run inside the container rather than on your host. Editors without dev container support, such as plain Vim, are not part of this workflow.Claude Code runs inside the container, so it sees the same files, dependencies, and tools as the rest of your project’s toolchain. In VS Code you can use either the [Claude Code extension panel](</docs/en/vs-code>) or run `claude` in the integrated terminal; both run inside the container and share the same `~/.claude` configuration. ## ​ -Key features +Add Claude Code to your dev container - * **Production-ready Node.js** : Built on Node.js 20 with essential development dependencies - * **Security by design** : Custom firewall restricting network access to only necessary services - * **Developer-friendly tools** : Includes git, ZSH with productivity enhancements, fzf, and more - * **Seamless VS Code integration** : Pre-configured extensions and optimized settings - * **Session persistence** : Preserves command history and configurations between container restarts - * **Works everywhere** : Compatible with macOS, Windows, and Linux development environments +Claude Code installs into any dev container through the [Claude Code Dev Container Feature](<https://github.com/anthropics/devcontainer-features/tree/main/src/claude-code>). The settings work with any tool that supports the Dev Containers spec, such as VS Code, GitHub Codespaces, or JetBrains IDEs. The steps below use VS Code as an example. When you open the container in VS Code or Codespaces, the feature also adds the Claude Code VS Code extension; other editors ignore that part. + +New to dev containers? The [VS Code Dev Containers tutorial](<https://code.visualstudio.com/docs/devcontainers/tutorial>) walks through installing Docker, the extension, and opening your first container. For a fuller hardened example with a firewall and persistent volumes, see Try the reference container. + +1 + +Create or update devcontainer.json + +Save the following as `.devcontainer/devcontainer.json` in your repository, or add the `features` block to your existing file.The version tag at the end, such as `:1.0`, pins the feature’s install script, not the Claude Code release. The feature installs the latest Claude Code, and Claude Code auto-updates itself inside the container by default.To pin the CLI version or disable auto-update, see Enforce organization policy. + +.devcontainer/devcontainer.json + + { + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "features": { + "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {} + } + } + +Replace the `image` line with your project’s base image or remove it if your existing file uses a Dockerfile. + +2 + +Rebuild the container + +Open the VS Code Command Palette with `Cmd+Shift+P` on Mac or `Ctrl+Shift+P` on Windows and Linux, and run **Dev Containers: Rebuild Container**.For other tools, follow that tool’s rebuild action: see [rebuilding in GitHub Codespaces](<https://docs.github.com/en/codespaces/developing-in-a-codespace/rebuilding-the-container-in-a-codespace>), the [Dev Containers CLI](<https://github.com/devcontainers/cli>), or your IDE’s dev container documentation. + +3 + +Sign in to Claude Code + +Open a terminal in the rebuilt container and run `claude`, then follow the authentication prompt. + +What you see at the authentication prompt depends on your provider: + + * **Anthropic** : sign in through a browser with your Claude or Anthropic Console account + * **[Amazon Bedrock, Google Vertex AI, or Microsoft Foundry](</docs/en/third-party-integrations>)** : Claude Code uses your cloud provider credentials, with no browser prompt + +For cloud providers, pass credentials into the container as environment variables through `containerEnv`, a Codespaces secret, or your cloud’s workload identity rather than mounting credential files from the host. See [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>) for the credential chain Claude Code reads. See [Choose your API provider](</docs/en/admin-setup#choose-your-api-provider>) to decide which path fits your organization. + +If the browser sign-in completes but the callback never reaches the container, copy the code shown in the browser and paste it at the `Paste code here if prompted` prompt in the terminal. This can happen when the editor’s port forwarding doesn’t route the localhost callback. ## ​ -Getting started in 4 steps +Persist authentication and settings across rebuilds - 1. Install VS Code and the [Dev Containers extension](<https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers>) - 2. Clone the [Claude Code reference implementation](<https://github.com/anthropics/claude-code/tree/main/.devcontainer>) repository - 3. Open the repository in VS Code - 4. When prompted, click “Reopen in Container” (or use Command Palette: Cmd+Shift+P → “Dev Containers: Reopen in Container”) +By default, the container’s home directory is discarded on rebuild, so engineers must sign in again each time. Claude Code stores its authentication token, user settings, and session history under [`~/.claude`](</docs/en/claude-directory>). Mount a named volume at that path to keep this state across rebuilds. The following example mounts a volume at the home directory of the `node` user: -Once the container finishes building, open a terminal in VS Code with `Ctrl+`` and run `claude` to authenticate and start your first session. The container has Claude Code preinstalled, so you can begin working immediately. Your project files are mounted into the container, and any code Claude writes appears in your local repository. +devcontainer.json + + "mounts": [ + "source=claude-code-config,target=/home/node/.claude,type=volume" + ] + +Replace `/home/node` with the home directory of your container’s `remoteUser`. If you mount the volume somewhere other than `~/.claude`, set [`CLAUDE_CONFIG_DIR`](</docs/en/env-vars>) to the mount path so Claude Code reads and writes there. To isolate state per project rather than sharing one volume across all repositories, include the `${devcontainerId}` variable in the source name. The [reference configuration](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/devcontainer.json>) uses `source=claude-code-config-${devcontainerId}` for this purpose. In GitHub Codespaces, `~/.claude` persists across stopping and starting a codespace, but is still cleared when you rebuild the container, so the volume mount above applies there too. To carry authentication across codespaces, store `ANTHROPIC_API_KEY` or a `CLAUDE_CODE_OAUTH_TOKEN` from [`claude setup-token`](</docs/en/authentication#generate-a-long-lived-token>) as a [Codespaces secret](<https://docs.github.com/en/codespaces/managing-your-codespaces/managing-your-account-specific-secrets-for-github-codespaces>); Codespaces makes secrets available as environment variables inside the container automatically. ## ​ -Configuration breakdown +Enforce organization policy -The devcontainer setup consists of three primary components: +A dev container is a convenient place to apply organization policy, because the same image and configuration run on every engineer’s machine. Claude Code reads `/etc/claude-code/managed-settings.json` on Linux and applies it at the highest precedence in the [settings hierarchy](</docs/en/settings#how-scopes-interact>), so values there override anything an engineer sets in `~/.claude` or the project’s `.claude/` directory. Copy the file into place from your Dockerfile: - * [**devcontainer.json**](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/devcontainer.json>): Controls container settings, extensions, and volume mounts - * [**Dockerfile**](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/Dockerfile>): Defines the container image and installed tools - * [**init-firewall.sh**](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/init-firewall.sh>): Establishes network security rules +Dockerfile + + RUN mkdir -p /etc/claude-code + COPY managed-settings.json /etc/claude-code/managed-settings.json + +Because the Dockerfile lives in the repository, anyone with write access can change or remove this step. For policy that engineers cannot bypass by editing repository files, deliver managed settings through [server-managed settings](</docs/en/server-managed-settings>) or your MDM instead. See [managed settings files](</docs/en/settings#settings-files>) for the available keys and the other delivery paths. To set [environment variables](</docs/en/env-vars>) that apply to every Claude Code session in the container, add them to `containerEnv` in your `devcontainer.json`. The following example opts out of telemetry and error reporting and prevents Claude Code from auto-updating after install: + +devcontainer.json + + "containerEnv": { + "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", + "DISABLE_AUTOUPDATER": "1" + } + +The Dev Container Feature always installs the latest Claude Code release. To pin a specific Claude Code version for reproducible builds, install it from your Dockerfile with `npm install -g @anthropic-ai/claude-code@X.Y.Z` instead of using the feature, and set `DISABLE_AUTOUPDATER` as shown above. For the full list of policy controls including permission rules, tool restrictions, and MCP server allowlists, see [Set up Claude Code for your organization](</docs/en/admin-setup>). To make [MCP servers](</docs/en/mcp>) available inside the container, define them at [project scope](</docs/en/mcp#mcp-installation-scopes>) in a `.mcp.json` file at the repository root so they are checked in alongside your dev container configuration. Install any binaries that local stdio servers depend on in your Dockerfile, and add remote server domains to your network allowlist. ## ​ -Security features +Restrict network egress -The container implements a multi-layered security approach with its firewall configuration: - - * **Precise access control** : Restricts outbound connections to whitelisted domains only (npm registry, GitHub, Claude API, etc.) - * **Allowed outbound connections** : The firewall permits outbound DNS and SSH connections - * **Default-deny policy** : Blocks all other external network access - * **Startup verification** : Validates firewall rules when the container initializes - * **Isolation** : Creates a secure development environment separated from your main system +You can limit the container’s outbound traffic to only the domains Claude Code needs. See [Network access requirements](</docs/en/network-config#network-access-requirements>) for the inference and authentication domains, and [Telemetry services](</docs/en/data-usage#telemetry-services>) for the optional telemetry and error reporting connections and how to disable them. The reference container includes an [`init-firewall.sh`](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/init-firewall.sh>) script that blocks all outbound traffic except the domains Claude Code and your development tools need. Running a firewall inside a container requires extra permissions, so the reference adds the `NET_ADMIN` and `NET_RAW` capabilities through `runArgs`. The firewall script and these capabilities are not required for Claude Code itself: you can leave them out and rely on your own network controls instead. ## ​ -Customization options +Run without permission prompts -The devcontainer configuration is designed to be adaptable to your needs: - - * Add or remove VS Code extensions based on your workflow - * Modify resource allocations for different hardware environments - * Adjust network access permissions - * Customize shell configurations and developer tooling +Because the container runs Claude Code as a non-root user and confines command execution to the container, you can pass `--dangerously-skip-permissions` for unattended operation. The CLI rejects this flag when launched as root, so confirm `remoteUser` is set to a non-root account. Skipping permission prompts removes your opportunity to review tool calls before they run. Claude can still modify any file in the bind-mounted workspace, which appears directly on your host, and reach anything the container’s network policy allows. Pair this flag with the network egress restrictions above to limit what a bypassed session can reach. If you want fewer prompts without disabling safety checks, consider [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) instead, which has a classifier review actions before they run. To prevent engineers from using `--dangerously-skip-permissions` at all, set `permissions.disableBypassPermissionsMode` to `"disable"` in [managed settings](</docs/en/settings#permission-settings>). ## ​ -Example use cases +Try the reference container -### +The [`anthropics/claude-code`](<https://github.com/anthropics/claude-code/tree/main/.devcontainer>) repository includes an example dev container that combines the CLI, the egress firewall, persistent volumes, and a Zsh-based shell. It is provided as a working example rather than a maintained base image; use it to see how the pieces fit together before applying them to your own configuration. -​ +1 -Secure client work +Install prerequisites -Use devcontainers to isolate different client projects, ensuring code and credentials never mix between environments. +Install VS Code and the [Dev Containers extension](<https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers>). -### +2 -​ +Clone the reference -Team onboarding +Clone the [Claude Code repository](<https://github.com/anthropics/claude-code>) and open it in VS Code. -New team members can get a fully configured development environment in minutes, with all necessary tools and settings pre-installed. +3 -### +Reopen in container -​ +When prompted, click **Reopen in Container** , or run **Dev Containers: Reopen in Container** from the Command Palette. -Consistent CI/CD environments +4 -Mirror your devcontainer configuration in CI/CD pipelines to ensure development and production environments match. +Start Claude Code + +Once the container finishes building, open a terminal with `Ctrl+`` and run `claude` to sign in and start your first session. + +To use this configuration with your own project, copy the `.devcontainer/` directory into your repository and adjust the Dockerfile for your toolchain, or return to Add Claude Code to your dev container to add only the feature to a setup you already have. The reference configuration consists of three files. None of them are required when you add Claude Code to your own dev container through the feature, but they show one way to combine the pieces. + +File| Purpose +---|--- +[`devcontainer.json`](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/devcontainer.json>)| Volume mounts, `runArgs` capabilities, VS Code extensions, and `containerEnv` +[`Dockerfile`](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/Dockerfile>)| Base image, development tools, and the Claude Code install +[`init-firewall.sh`](<https://github.com/anthropics/claude-code/blob/main/.devcontainer/init-firewall.sh>)| Blocks all outbound network traffic except the allowed domains ## ​ -Related resources +Next steps - * [VS Code devcontainers documentation](<https://code.visualstudio.com/docs/devcontainers/containers>) - * [Claude Code security best practices](</docs/en/security>) - * [Enterprise network configuration](</docs/en/network-config>) +Once Claude Code is running in your dev container, the pages below cover the rest of an organization rollout: choosing an authentication path, delivering managed policy outside the repository, monitoring usage, and understanding what Claude Code stores and sends. + + * [Set up Claude Code for your organization](</docs/en/admin-setup>): choose an authentication provider, decide how policy reaches devices, and plan the rollout + * [Server-managed settings](</docs/en/server-managed-settings>): deliver managed policy from the Claude.ai admin console so engineers cannot bypass it by editing repository files + * [Monitor usage and audit activity](</docs/en/monitoring-usage>): export OpenTelemetry metrics and review what your team is running + * [Network access requirements](</docs/en/network-config#network-access-requirements>): the full domain allowlist for proxies and firewalls + * [Telemetry services and opt-out](</docs/en/data-usage#telemetry-services>): what Claude Code sends by default and the environment variables that disable it + * [Explore the `.claude` directory](</docs/en/claude-directory>): what the volume mount holds, including credentials, settings, and session history + * [Security model](</docs/en/security>): how Claude Code’s permission system, sandboxing, and prompt-injection protections fit together + * [Permission modes](</docs/en/permission-modes>): the full range from plan mode to auto mode to bypass, and when to use each
modified Environment variables View current →
--- a/env-vars.md +++ b/env-vars.md @@ -86,7 +86,7 @@ `CLAUDE_CODE_EXIT_AFTER_STOP_DELAY`| Time in milliseconds to wait after the query loop becomes idle before automatically exiting. Useful for automated workflows and scripts using SDK mode `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS`| Set to `1` to enable [agent teams](</docs/en/agent-teams>). Agent teams are experimental and disabled by default `CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS`| Override the default token limit for file reads. Useful when you need to read larger files in full -`CLAUDE_CODE_FORK_SUBAGENT`| Set to `1` to enable [forked subagents](</docs/en/sub-agents#fork-the-current-conversation>). A forked subagent inherits the full conversation context from the main session instead of starting fresh. When enabled, `/fork` spawns a forked subagent rather than acting as an alias for [`/branch`](</docs/en/commands>), and all subagent spawns run in the background. Interactive mode only +`CLAUDE_CODE_FORK_SUBAGENT`| Set to `1` to enable [forked subagents](</docs/en/sub-agents#fork-the-current-conversation>). A forked subagent inherits the full conversation context from the main session instead of starting fresh. When enabled, `/fork` spawns a forked subagent rather than acting as an alias for [`/branch`](</docs/en/commands>), and all subagent spawns run in the background. Works in interactive mode and via the SDK or `claude -p` `CLAUDE_CODE_GIT_BASH_PATH`| Windows only: path to the Git Bash executable (`bash.exe`). Use when Git Bash is installed but not in your PATH. See [Windows setup](</docs/en/setup#set-up-on-windows>) `CLAUDE_CODE_GLOB_HIDDEN`| Set to `false` to exclude dotfiles from results when Claude invokes the [Glob tool](</docs/en/tools-reference>). Included by default. Does not affect `@` file autocomplete, `ls`, Grep, or Read `CLAUDE_CODE_GLOB_NO_IGNORE`| Set to `false` to make the [Glob tool](</docs/en/tools-reference>) respect `.gitignore` patterns. By default, Glob returns all matching files including gitignored ones. Does not affect `@` file autocomplete, which has its own [`respectGitignore` setting](</docs/en/settings#available-settings>) @@ -122,7 +122,7 @@ `CLAUDE_CODE_SHELL`| Override automatic shell detection. Useful when your login shell differs from your preferred working shell (for example, `bash` vs `zsh`) `CLAUDE_CODE_SHELL_PREFIX`| Command prefix to wrap all bash commands (for example, for logging or auditing). Example: `/path/to/logger.sh` will execute `/path/to/logger.sh <command>` `CLAUDE_CODE_SIMPLE`| Set to `1` to run with a minimal system prompt and only the Bash, file read, and file edit tools. MCP tools from `--mcp-config` are still available. Disables auto-discovery of hooks, skills, plugins, MCP servers, auto memory, and CLAUDE.md. The [`--bare`](</docs/en/headless#start-faster-with-bare-mode>) CLI flag sets this -`CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT`| Set to `1` to use the minimal system prompt and collapsed tool descriptions from `CLAUDE_CODE_SIMPLE` without the other simple-mode changes. The full tool set, hooks, MCP servers, and CLAUDE.md discovery remain enabled +`CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT`| Set to `1` to use a shorter system prompt and abbreviated tool descriptions on Opus 4.7. Has no effect on other models. The full tool set, hooks, MCP servers, and CLAUDE.md discovery remain enabled `CLAUDE_CODE_SKIP_BEDROCK_AUTH`| Skip AWS authentication for Bedrock (for example, when using an LLM gateway) `CLAUDE_CODE_SKIP_FOUNDRY_AUTH`| Skip Azure authentication for Microsoft Foundry (for example, when using an LLM gateway) `CLAUDE_CODE_SKIP_MANTLE_AUTH`| Skip AWS authentication for Bedrock Mantle (for example, when using an LLM gateway)
modified Fullscreen rendering View current →
--- a/fullscreen.md +++ b/fullscreen.md @@ -128,7 +128,7 @@ Keep native text selection -Mouse capture is the most common friction point, especially over SSH or inside tmux. When Claude Code captures mouse events, your terminal’s native copy-on-select stops working. The selection you make with click-and-drag exists inside Claude Code, not in your terminal’s selection buffer, so tmux copy mode, Kitty hints, and similar tools don’t see it. Claude Code tries to write the selection to your clipboard, but the path it uses depends on your setup. Inside tmux it writes to the tmux paste buffer. Over SSH it falls back to OSC 52 escape sequences, which some terminals block by default. Claude Code prints a toast after each copy telling you which path it used. If you rely on your terminal’s native selection, set `CLAUDE_CODE_DISABLE_MOUSE=1` to opt out of mouse capture while keeping the flicker-free rendering and flat memory: +Mouse capture is the most common friction point, especially over SSH or inside tmux. When Claude Code captures mouse events, your terminal’s native copy-on-select stops working. The selection you make with click-and-drag exists inside Claude Code, not in your terminal’s selection buffer, so tmux copy mode, Kitty hints, and similar tools don’t see it. Claude Code tries to write the selection to your clipboard, but the path it uses depends on your setup. Inside tmux it writes to the tmux paste buffer. Over SSH it falls back to OSC 52 escape sequences, which some terminals block by default. iTerm2 blocks them until you turn on Settings → General → Selection → Applications in terminal may access clipboard. Claude Code prints a toast after each copy telling you which path it used. For a one-off native selection, hold your terminal’s bypass modifier while you click and drag: `Option` in iTerm2, or `Shift` in most Linux and Windows terminals. The modifier tells your terminal to handle the selection itself instead of forwarding mouse events to Claude Code, so `Cmd+C` and your terminal’s other copy shortcuts work on it. If you rely on native selection all the time, set `CLAUDE_CODE_DISABLE_MOUSE=1` to opt out of mouse capture while keeping the flicker-free rendering and flat memory: CLAUDE_CODE_NO_FLICKER=1 CLAUDE_CODE_DISABLE_MOUSE=1 claude
modified Claude Code on Google Vertex AI View current →
--- a/google-vertex-ai.md +++ b/google-vertex-ai.md @@ -95,7 +95,7 @@ 3\. Configure GCP credentials -Claude Code uses standard Google Cloud authentication. For more information, see [Google Cloud authentication documentation](<https://cloud.google.com/docs/authentication>). +Claude Code uses standard Google Cloud authentication. For more information, see [Google Cloud authentication documentation](<https://cloud.google.com/docs/authentication>). Claude Code v2.1.121 or later supports [X.509 certificate-based Workload Identity Federation](<https://cloud.google.com/iam/docs/workload-identity-federation-with-x509-certificates>) through the same Application Default Credentials chain. Set `GOOGLE_APPLICATION_CREDENTIALS` to the path of your credential configuration file. When authenticating, Claude Code will automatically use the project ID from the `ANTHROPIC_VERTEX_PROJECT_ID` environment variable. To override this, set one of these environment variables: `GCLOUD_PROJECT`, `GOOGLE_CLOUD_PROJECT`, or `GOOGLE_APPLICATION_CREDENTIALS`.
modified Hooks reference View current →
--- a/hooks.md +++ b/hooks.md @@ -1296,16 +1296,25 @@ `decision`| `"block"` prompts Claude with the `reason`. Omit to allow the action to proceed `reason`| Explanation shown to Claude when `decision` is `"block"` `additionalContext`| Additional context for Claude to consider -`updatedMCPToolOutput`| For MCP tools only: replaces the tool’s output with the provided value - - { - "decision": "block", - "reason": "Explanation for decision", +`updatedToolOutput`| Replaces the tool’s output with the provided value before it is sent to Claude. The value must match the tool’s output shape +`updatedMCPToolOutput`| Replaces the output for MCP tools only. Prefer `updatedToolOutput`, which works for all tools + +The example below replaces the output of a `Bash` call. The replacement value matches the `Bash` tool’s output shape: + + { "hookSpecificOutput": { "hookEventName": "PostToolUse", - "additionalContext": "Additional information for Claude" - } - } + "additionalContext": "Additional information for Claude", + "updatedToolOutput": { + "stdout": "[redacted]", + "stderr": "", + "interrupted": false, + "isImage": false + } + } + } + +`updatedToolOutput` only changes what Claude sees. The tool has already run by the time the hook fires, so any files written, commands executed, or network requests sent have already taken effect. Telemetry such as OpenTelemetry tool spans and analytics events also captures the original output before the hook runs. To prevent or modify a tool call before it runs, use a PreToolUse hook instead.The replacement value must match the tool’s output shape. Built-in tools return structured objects rather than plain strings. For example, `Bash` returns an object with `stdout`, `stderr`, `interrupted`, and `isImage` fields. For built-in tools, a value that does not match the tool’s output schema is ignored and the original output is used. MCP tool output is passed through without schema validation. Stripping error details that Claude needs can cause it to proceed on a false assumption. ###
modified What's new View current →
--- a/index.md +++ b/index.md @@ -1,4 +1,24 @@ The weekly dev digest highlights the features most likely to change how you work. Each entry includes runnable code, a short demo, and a link to the full docs. For every bug fix and minor improvement, see the [changelog](</docs/en/changelog>). + +​ + +Week 17 + +v2.1.114–v2.1.119 + +April 20–24, 2026 + +**`/ultrareview`** opens as a public research preview: a fleet of bug-hunting agents runs in the cloud and findings land back in your CLI or Desktop automatically.Also this week: **session recap** shows you what happened while a terminal was unfocused; **custom themes** let you build and ship color palettes from `/theme` or a plugin; and **Claude Code on the web** gets a redesign with a new sessions sidebar and drag-and-drop layout.[Read the Week 17 digest →](</docs/en/whats-new/2026-w17>) + +​ + +Week 16 + +v2.1.105–v2.1.113 + +April 13–17, 2026 + +**Claude Opus 4.7** lands as the new default on Max and Team Premium, with a new `xhigh` effort level that’s the recommended setting for most coding work and an interactive `/effort` slider to dial it in.Also this week: **Routines** on Claude Code on the web fire templated cloud agents from a schedule, GitHub event, or API call; `/ultrareview` runs parallel multi-agent code review in the cloud; `/usage` shows what’s driving your limits; and the CLI moves to native binaries.[Read the Week 16 digest →](</docs/en/whats-new/2026-w16>) ​
modified Interactive mode View current →
--- a/interactive-mode.md +++ b/interactive-mode.md @@ -91,7 +91,7 @@ Shortcut| Description| Notes ---|---|--- `/` at start| Command or skill| See commands and [skills](</docs/en/skills>) -`!` at start| Bash mode| Run commands directly and add execution output to the session +`!` at start| Shell mode| Run commands directly and add execution output to the session `@`| File path mention| Trigger file path autocomplete ### @@ -317,15 +317,15 @@ ​ -Bash mode with `!` prefix - -Run bash commands directly without going through Claude by prefixing your input with `!`: +Shell mode with `!` prefix + +Run shell commands directly without going through Claude by prefixing your input with `!`: ! npm test ! git status ! ls -la -Bash mode: +Shell mode: * Adds the command and its output to the conversation context * Shows real-time progress and output @@ -333,7 +333,7 @@ * Does not require Claude to interpret or approve the command * Supports history-based autocomplete: type a partial command and press **Tab** to complete from previous `!` commands in the current project * Exit with `Escape`, `Backspace`, or `Ctrl+U` on an empty prompt - * Pasting text that starts with `!` into an empty prompt enters bash mode automatically, matching typed `!` behavior + * Pasting text that starts with `!` into an empty prompt enters shell mode automatically, matching typed `!` behavior This is useful for quick shell operations while maintaining conversation context.
modified Legal and compliance View current →
--- a/legal-and-compliance.md +++ b/legal-and-compliance.md @@ -84,7 +84,7 @@ Security vulnerability reporting -Anthropic manages our security program through HackerOne. [Use this form to report vulnerabilities](<https://hackerone.com/anthropic-vdp/reports/new?type=team&report_type=vulnerability>). +Anthropic manages our security program through HackerOne. [Use this form to report vulnerabilities](<https://hackerone.com/4f1f16ba-10d3-4d09-9ecc-c721aad90f24/embedded_submissions/new>). * * *
modified Connect Claude Code to tools via MCP View current →
--- a/mcp.md +++ b/mcp.md @@ -127,7 +127,7 @@ Automatic reconnection -If an HTTP or SSE server disconnects mid-session, Claude Code automatically reconnects with exponential backoff: up to five attempts, starting at a one-second delay and doubling each time. The server appears as pending in `/mcp` while reconnection is in progress. After five failed attempts the server is marked as failed and you can retry manually from `/mcp`. Stdio servers are local processes and are not reconnected automatically. +If an HTTP or SSE server disconnects mid-session, Claude Code automatically reconnects with exponential backoff: up to five attempts, starting at a one-second delay and doubling each time. The server appears as pending in `/mcp` while reconnection is in progress. After five failed attempts the server is marked as failed and you can retry manually from `/mcp`. Stdio servers are local processes and are not reconnected automatically. The same backoff applies when an HTTP or SSE server fails its initial connection at startup. As of v2.1.121, Claude Code retries the initial connection up to three times on transient errors such as a 5xx response, a connection refused, or a timeout, then marks the server as failed if it still cannot connect. Authentication and not-found errors are not retried because they require a configuration change to resolve. ### @@ -919,6 +919,26 @@ "deny": ["ToolSearch"] } } + +### + +​ + +Exempt a server from deferral + +If a server’s tools should always be visible to Claude without a search step, set `alwaysLoad` to `true` in that server’s configuration. Every tool from that server then loads into context at session start regardless of the `ENABLE_TOOL_SEARCH` setting. Use this for a small number of tools that Claude needs on every turn, since each upfront tool consumes context that would otherwise be available for your conversation. The following `.mcp.json` entry exempts one HTTP server while leaving other servers deferred: + + { + "mcpServers": { + "core-tools": { + "type": "http", + "url": "https://mcp.example.com/mcp", + "alwaysLoad": true + } + } + } + +The `alwaysLoad` field is available on all server types and requires Claude Code v2.1.121 or later. An MCP server can also mark individual tools as always-loaded by including `"anthropic/alwaysLoad": true` in the tool’s `_meta` object, which has the same effect for that tool only. ##
modified Monitoring View current →
--- a/monitoring-usage.md +++ b/monitoring-usage.md @@ -180,6 +180,8 @@ `status_code`| HTTP status code when the request failed| `error`| Error message when the request failed| `response.has_tool_call`| `true` when the response contained tool-use blocks| +`stop_reason`| API response `stop_reason`, such as `end_turn`, `tool_use`, `max_tokens`, `stop_sequence`, `pause_turn`, or `refusal`| +`gen_ai.response.finish_reasons`| Same value as `stop_reason`, wrapped in a string array. OpenTelemetry GenAI semantic convention| Each retry attempt is also recorded as a `gen_ai.request.attempt` span event with `attempt` and `client_request_id` attributes. **`claude_code.tool`** @@ -223,7 +225,7 @@ `num_non_blocking_error`| Count of hooks that failed without blocking| `num_cancelled`| Count of hooks cancelled before completion| -Additional content-bearing attributes such as `new_context`, `system_prompt_preview`, `tool_input`, and `response.model_output` are emitted only when detailed beta tracing is active. They are not part of the stable span schema. +Additional content-bearing attributes such as `new_context`, `system_prompt_preview`, `user_system_prompt`, `tool_input`, and `response.model_output` are emitted only when detailed beta tracing is active. They are not part of the stable span schema. `user_system_prompt` additionally requires `OTEL_LOG_USER_PROMPTS=1`. It carries only the system prompt text you provide via the `systemPrompt` SDK option or `--system-prompt` and `--append-system-prompt` flags, truncated at 60 KB, and is emitted once per session rather than per request. ###
modified Enterprise network configuration View current →
--- a/network-config.md +++ b/network-config.md @@ -109,7 +109,7 @@ `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 -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. +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`. Claude Code also sends optional operational telemetry by default, which you can disable with environment variables. See [Telemetry services](</docs/en/data-usage#telemetry-services>) for how to disable it before finalizing your allowlist. 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. ##
modified Claude Code overview View current →
--- a/overview.md +++ b/overview.md @@ -38,7 +38,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version.
modified Choose a permission mode View current →
--- a/permission-modes.md +++ b/permission-modes.md @@ -222,7 +222,7 @@ Skip all checks with bypassPermissions mode -`bypassPermissions` mode disables permission prompts and safety checks so tool calls execute immediately. Writes to protected paths are the only actions that still prompt. Only use this mode in isolated environments like containers, VMs, or devcontainers without internet access, where Claude Code cannot damage your host system. You cannot enter `bypassPermissions` from a session that was started without one of the enabling flags; restart with one to enable it: +`bypassPermissions` mode disables permission prompts and safety checks so tool calls execute immediately. Writes to protected paths are the only actions that still prompt. Only use this mode in isolated environments like containers, VMs, or dev containers without internet access, where Claude Code cannot damage your host system. You cannot enter `bypassPermissions` from a session that was started without one of the enabling flags; restart with one to enable it: claude --permission-mode bypassPermissions
modified Constrain plugin dependency versions View current →
--- a/plugin-dependencies.md +++ b/plugin-dependencies.md @@ -100,6 +100,20 @@ ​ +Remove orphaned auto-installed dependencies + +Auto-installed dependencies stay on disk after the plugins that installed them are uninstalled, in case you reinstall a dependent plugin or want to keep using the dependency directly. To clean them up, run `claude plugin prune` to list the auto-installed dependencies that no longer have any installed plugin requiring them and remove them after a confirmation prompt. This requires Claude Code v2.1.121 or later. + + claude plugin prune + +By default, prune operates at user scope. Use `--scope project` or `--scope local` to target a different scope. Pass `--dry-run` to list what would be removed without changing anything. Pass `-y` to skip the confirmation prompt. When stdin or stdout is not a terminal, prune lists the orphans and exits without removing them unless `-y` is passed. To prune as part of an uninstall, pass `--prune` to `claude plugin uninstall`. After removing the named plugin, Claude Code scans for and removes any auto-installed dependencies that are now orphaned. Plugins you installed yourself are never pruned, only those installed automatically through another plugin’s `dependencies` array. For example, to uninstall `deploy-kit` and clean up the dependencies it leaves behind: + + claude plugin uninstall deploy-kit --prune + +## + +​ + Resolve dependency errors Dependency problems surface in `claude plugin list`, in the `/plugin` interface, and in `/doctor`. The affected plugin is disabled until you resolve the error. The most common errors and their fixes are listed below.
modified Create and distribute a plugin marketplace View current →
--- a/plugin-marketplaces.md +++ b/plugin-marketplaces.md @@ -185,10 +185,13 @@ Field| Type| Description ---|---|--- -`metadata.description`| string| Brief marketplace description -`metadata.version`| string| Marketplace version +`$schema`| string| JSON Schema URL for editor autocomplete and validation. Claude Code ignores this field at load time. +`description`| string| Brief marketplace description +`version`| string| Marketplace manifest version `metadata.pluginRoot`| string| Base directory prepended to relative plugin source paths (for example, `"./plugins"` lets you write `"source": "formatter"` instead of `"source": "./plugins/formatter"`) `allowCrossMarketplaceDependenciesOn`| array| Other marketplaces that plugins in this marketplace may depend on. Dependencies from a marketplace not listed here are blocked at install. See [Depend on a plugin from another marketplace](</docs/en/plugin-dependencies#depend-on-a-plugin-from-another-marketplace>). + +`description` and `version` are also accepted under `metadata` for backward compatibility. ## @@ -974,7 +977,7 @@ **Warnings** (non-blocking): * `Marketplace has no plugins defined`: add at least one plugin to the `plugins` array - * `No marketplace description provided`: add `metadata.description` to help users understand your marketplace + * `No marketplace description provided`: add a top-level `description` to help users understand your marketplace * `Plugin name "x" is not kebab-case`: the plugin name contains uppercase letters, spaces, or special characters. Rename to lowercase letters, digits, and hyphens only (for example, `my-plugin`). Claude Code accepts other forms, but the Claude.ai marketplace sync rejects them. ###
modified Plugins reference View current →
--- a/plugins-reference.md +++ b/plugins-reference.md @@ -379,6 +379,7 @@ Field| Type| Description| Example ---|---|---|--- +`$schema`| string| JSON Schema URL for editor autocomplete and validation. Claude Code ignores this field at load time.| `"https://json.schemastore.org/claude-code-plugin-manifest.json"` `version`| string| Optional. Semantic version. Setting this pins the plugin to that version string, so users only receive updates when you bump it. If omitted, Claude Code falls back to the git commit SHA, so every commit is treated as a new version. If also set in the marketplace entry, `plugin.json` wins. See Version management.| `"2.1.0"` `description`| string| Brief explanation of plugin purpose| `"Deployment automation tools"` `author`| object| Author information| `{"name": "Dev Team", "email": "dev@company.com"}` @@ -740,9 +741,34 @@ ---|---|--- `-s, --scope <scope>`| Uninstall from scope: `user`, `project`, or `local`| `user` `--keep-data`| Preserve the plugin’s persistent data directory| +`--prune`| Also remove auto-installed dependencies that no other plugin requires. See plugin prune| +`-y, --yes`| Skip the `--prune` confirmation prompt. Required when stdin is not a TTY| `-h, --help`| Display help for command| **Aliases:** `remove`, `rm` By default, uninstalling from the last remaining scope also deletes the plugin’s `${CLAUDE_PLUGIN_DATA}` directory. Use `--keep-data` to preserve it, for example when reinstalling after testing a new version. + +### + +​ + +plugin prune + +Remove auto-installed plugin dependencies that are no longer required by any installed plugin. Dependencies that Claude Code pulled in to satisfy another plugin’s [`dependencies`](</docs/en/plugin-dependencies>) field are removed; plugins you installed directly are never touched. + + claude plugin prune [options] + +**Options:** + +Option| Description| Default +---|---|--- +`-s, --scope <scope>`| Prune at scope: `user`, `project`, or `local`| `user` +`--dry-run`| List what would be removed without removing anything| +`-y, --yes`| Skip the confirmation prompt. Required when stdin is not a TTY| +`-h, --help`| Display help for command| + +**Aliases:** `autoremove` The command lists orphaned dependencies and asks for confirmation before removing them. To remove a plugin and clean up its dependencies in one step, run `claude plugin uninstall <plugin> --prune`. + +`claude plugin prune` requires Claude Code v2.1.121 or later. ###
modified Quickstart View current →
--- a/quickstart.md +++ b/quickstart.md @@ -41,7 +41,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version.
modified Sandboxing View current →
--- a/sandboxing.md +++ b/sandboxing.md @@ -307,7 +307,7 @@ The sandboxed bash tool works alongside: * **Permission rules** : Combine with [permission settings](</docs/en/permissions>) for defense-in-depth - * **Development containers** : Use with [devcontainers](</docs/en/devcontainer>) for additional isolation + * **Development containers** : Use with [dev containers](</docs/en/devcontainer>) for additional isolation * **Enterprise policies** : Enforce sandbox configurations through [managed settings](</docs/en/settings#settings-precedence>) ##
modified Security View current →
--- a/security.md +++ b/security.md @@ -148,7 +148,7 @@ * Review all suggested changes before approval * Use project-specific permission settings for sensitive repositories - * Consider using [devcontainers](</docs/en/devcontainer>) for additional isolation + * Consider using [dev containers](</docs/en/devcontainer>) for additional isolation * Regularly audit your permission settings with `/permissions` ### @@ -172,7 +172,7 @@ If you discover a security vulnerability in Claude Code: 1. Do not disclose it publicly - 2. Report it through our [HackerOne program](<https://hackerone.com/anthropic-vdp/reports/new?type=team&report_type=vulnerability>) + 2. Report it through our [HackerOne program](<https://hackerone.com/4f1f16ba-10d3-4d09-9ecc-c721aad90f24/embedded_submissions/new>) 3. Include detailed reproduction steps 4. Allow time for us to address the issue before public disclosure
modified Configure server-managed settings View current →
--- a/server-managed-settings.md +++ b/server-managed-settings.md @@ -234,7 +234,7 @@ User deletes the cached settings file| First-launch behavior occurs: settings fetch asynchronously with a brief unenforced window API is unavailable| Cached settings apply if available, otherwise managed settings are not enforced until the next successful fetch. With `forceRemoteSettingsRefresh: true`, the CLI exits instead of continuing User authenticates with a different organization| Settings are not delivered for accounts outside the managed organization -User sets a non-default `ANTHROPIC_BASE_URL`| Server-managed settings are bypassed when using third-party API providers +User configures a third-party model provider| Server-managed settings are bypassed. This includes setting `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_MANTLE`, `CLAUDE_CODE_USE_VERTEX`, `CLAUDE_CODE_USE_FOUNDRY`, or a non-default `ANTHROPIC_BASE_URL` To detect runtime configuration changes, use [`ConfigChange` hooks](</docs/en/hooks#configchange>) to log modifications or block unauthorized changes before they take effect. For stronger enforcement guarantees, use [endpoint-managed settings](</docs/en/settings#settings-files>) on devices enrolled in an MDM solution.
modified Advanced setup View current →
--- a/setup.md +++ b/setup.md @@ -16,7 +16,7 @@ * Alpine Linux 3.19+ * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). - * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups require [Git for Windows](<https://git-scm.com/downloads/win>). WSL setups do not. + * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups recommend [Git for Windows](<https://git-scm.com/downloads/win>); PowerShell is used as a fallback when Git Bash is absent. WSL setups do not require Git for Windows. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) ### @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version. @@ -85,11 +85,11 @@ Option| Requires| [Sandboxing](</docs/en/sandboxing>)| When to use ---|---|---|--- -Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>)| Not supported| Windows-native projects and tools +Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>) recommended; PowerShell used if absent| Not supported| Windows-native projects and tools WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): +**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. When Git Bash is installed, Claude Code uses it internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): { "env": {
modified Extend Claude with skills View current →
--- a/skills.md +++ b/skills.md @@ -217,6 +217,7 @@ `$N`| Shorthand for `$ARGUMENTS[N]`, such as `$0` for the first argument or `$1` for the second. `$name`| Named argument declared in the `arguments` frontmatter list. Names map to positions in order, so with `arguments: [issue, branch]` the placeholder `$issue` expands to the first argument and `$branch` to the second. `${CLAUDE_SESSION_ID}`| The current session ID. Useful for logging, creating session-specific files, or correlating skill output with sessions. +`${CLAUDE_EFFORT}`| The current effort level: `low`, `medium`, `high`, `xhigh`, or `max`. Use this to adapt skill instructions to the active effort setting. `${CLAUDE_SKILL_DIR}`| The directory containing the skill’s `SKILL.md` file. For plugin skills, this is the skill’s subdirectory within the plugin, not the plugin root. Use this in bash injection commands to reference scripts or files bundled with the skill, regardless of the current working directory. Indexed arguments use shell-style quoting, so wrap multi-word values in quotes to pass them as a single argument. For example, `/my-skill "hello world" second` makes `$0` expand to `hello world` and `$1` to `second`. The `$ARGUMENTS` placeholder always expands to the full argument string as typed. **Example using substitutions:**
modified Customize your status line View current →
--- a/statusline.md +++ b/statusline.md @@ -52,7 +52,7 @@ } } -The optional `padding` field adds extra horizontal spacing (in characters) to the status line content. Defaults to `0`. This padding is in addition to the interface’s built-in spacing, so it controls relative indentation rather than absolute distance from the terminal edge. The optional `refreshInterval` field re-runs your command every N seconds in addition to the event-driven updates. The minimum is `1`. Set this when your status line shows time-based data such as a clock, or when background subagents change git state while the main session is idle. Leave it unset to run only on events. +The optional `padding` field adds extra horizontal spacing (in characters) to the status line content. Defaults to `0`. This padding is in addition to the interface’s built-in spacing, so it controls relative indentation rather than absolute distance from the terminal edge. The optional `refreshInterval` field re-runs your command every N seconds in addition to the event-driven updates. The minimum is `1`. Set this when your status line shows time-based data such as a clock, or when background subagents change git state while the main session is idle. Leave it unset to run only on events. The optional `hideVimModeIndicator` field suppresses the built-in `-- INSERT --` text below the prompt. Set this to `true` when your script renders `vim.mode` itself, so the mode is not shown twice. ###
modified Create custom subagents View current →
--- a/sub-agents.md +++ b/sub-agents.md @@ -765,7 +765,7 @@ Fork the current conversation -Forked subagents are experimental and require Claude Code v2.1.117 or later. Behavior and configuration may change in future releases. Enable them by setting the [`CLAUDE_CODE_FORK_SUBAGENT`](</docs/en/env-vars>) environment variable to `1`. +Forked subagents are experimental and require Claude Code v2.1.117 or later. Behavior and configuration may change in future releases. Enable them by setting the [`CLAUDE_CODE_FORK_SUBAGENT`](</docs/en/env-vars>) environment variable to `1`. The variable is honored in interactive mode and via the SDK or `claude -p`. A fork is a subagent that inherits the entire conversation so far instead of starting fresh. This drops the input isolation that subagents otherwise provide: a fork sees the same system prompt, tools, model, and message history as the main session, so you can hand it a side task without re-explaining the situation. The fork’s own tool calls still stay out of your conversation and only its final result comes back, so your main context window stays clean. Use a fork when a named subagent would need too much background to be useful, or when you want to try several approaches in parallel from the same starting point. Enabling fork mode changes Claude Code in three ways: @@ -818,7 +818,7 @@ Limitations -Fork mode works only in interactive sessions. It is disabled in [non-interactive mode](</docs/en/headless>), which includes the Agent SDK. A fork cannot spawn further forks. +Setting `CLAUDE_CODE_FORK_SUBAGENT=1` enables fork mode in interactive sessions, [non-interactive mode](</docs/en/headless>), and the Agent SDK. A fork cannot spawn further forks. ##
modified Configure your terminal for Claude Code View current →
--- a/terminal-config.md +++ b/terminal-config.md @@ -41,7 +41,7 @@ Open Settings → Profiles → Keyboard and check “Use Option as Meta Key”.If you accepted Claude Code’s first-run prompt that offered “Option+Enter for newlines and visual bell”, this is already done. That prompt runs `/terminal-setup` for you, which enables Option as Meta and switches the audio bell to a visual screen flash in your Apple Terminal profile. -Open Settings → Profiles → Keys → General and set Left Option key and Right Option key to “Esc+”. +Open Settings → Profiles → Keys → General and set Left Option key and Right Option key to “Esc+”.Running `/terminal-setup` in iTerm2 enables “Applications in terminal may access clipboard” under Settings → General → Selection so the `/copy` command can write to your system clipboard. The command detects iTerm2 even when run from inside tmux. Restart iTerm2 for the change to take effect. Add `"terminal.integrated.macOptionIsMeta": true` to your VS Code settings.
modified Tools reference View current →
--- a/tools-reference.md +++ b/tools-reference.md @@ -137,7 +137,6 @@ * PowerShell profiles are not loaded * On Windows, sandboxing is not supported - * On Windows, Git Bash is still required to start Claude Code ##
modified Troubleshooting View current →
--- a/troubleshooting.md +++ b/troubleshooting.md @@ -18,7 +18,7 @@ `Failed to fetch version` or can’t reach download server| Check network and proxy settings `irm is not recognized` or `&& is not valid`| Use the right command for your shell `'bash' is not recognized as the name of a cmdlet`| Use the Windows installer command -`Claude Code on Windows requires git-bash`| Install or configure Git Bash +`Claude Code on Windows requires either Git for Windows (for bash) or PowerShell`| Install a shell `Claude Code does not support 32-bit Windows`| Open Windows PowerShell, not the x86 entry `Error loading shared library`| Wrong binary variant for your system `Illegal instruction` on Linux| Architecture mismatch @@ -386,9 +386,14 @@ ​ -Windows: Claude Code on Windows requires git-bash - -Claude Code on native Windows needs [Git for Windows](<https://git-scm.com/downloads/win>), which includes Git Bash. **If Git is not installed** , download and install it from [git-scm.com/downloads/win](<https://git-scm.com/downloads/win>). During setup, select “Add to PATH.” Restart your terminal after installing. **If Git is already installed** but Claude Code still can’t find it, set the path in your [settings.json file](</docs/en/settings>): +Windows: “Claude Code on Windows requires either Git for Windows (for bash) or PowerShell” + +Claude Code on native Windows needs at least one shell: either [Git for Windows](<https://git-scm.com/downloads/win>) for Bash, or PowerShell. When neither is found, this error appears at startup. If only PowerShell is found, Claude Code uses the PowerShell tool instead of Bash. **If neither is installed** , install one: + + * Git for Windows: download from [git-scm.com/downloads/win](<https://git-scm.com/downloads/win>). During setup, select “Add to PATH.” Restart your terminal after installing. + * PowerShell 7: download from [aka.ms/powershell](<https://aka.ms/powershell>). + +**If Git is already installed** but Claude Code can’t find it, set the path in your [settings.json file](</docs/en/settings>): { "env": { @@ -442,16 +447,11 @@ bash: line 142: 2238232 Illegal instruction "$binary_path" install ${TARGET:+"$TARGET"} -**Solutions:** - - 1. **Verify your architecture** : - - uname -m - -`x86_64` means 64-bit Intel/AMD, `aarch64` means ARM64. If the binary doesn’t match, [file a GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output. - 2. **Try an alternative install method** while the architecture issue is resolved: - - brew install --cask claude-code +**Verify your architecture** : + + uname -m + +`x86_64` means 64-bit Intel/AMD, `aarch64` means ARM64. If the binary doesn’t match, [file a GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output. Alternative install methods download the same architecture-specific binary and won’t resolve this error. ### @@ -473,10 +473,7 @@ **Solutions:** 1. **Check your macOS version** : Claude Code requires macOS 13.0 or later. Open the Apple menu and select About This Mac to check your version. - 2. **Update macOS** if you’re on an older version. The binary uses load commands that older macOS versions don’t support. - 3. **Try Homebrew** as an alternative install method: - - brew install --cask claude-code + 2. **Update macOS** if you’re on an older version. The binary uses load commands and system libraries that older macOS versions don’t support. Alternative install methods like Homebrew download the same binary and won’t resolve this error. ###
modified Agent SDK reference - TypeScript View current →
--- a/typescript.md +++ b/typescript.md @@ -1574,6 +1574,8 @@ | { hookEventName: "PostToolUse"; additionalContext?: string; + updatedToolOutput?: unknown; + /** @deprecated Use `updatedToolOutput`, which works for all tools. */ updatedMCPToolOutput?: unknown; } | {
modified Find bugs with ultrareview View current →
--- a/ultrareview.md +++ b/ultrareview.md @@ -56,6 +56,27 @@ ​ +Run ultrareview non-interactively + +Use the `claude ultrareview` subcommand to start an ultrareview from CI or a script without an interactive session. The subcommand launches the same review as `/ultrareview`, blocks until the remote review finishes, prints the findings to stdout, and exits with code 0 on success or 1 on failure. + + claude ultrareview + claude ultrareview 1234 + claude ultrareview origin/main + +Without arguments, the subcommand reviews the diff between your current branch and the default branch. Pass a PR number to review a pull request, or pass a base branch to review the diff against that branch instead. Invoking the subcommand counts as consent for the billing and terms prompt that the interactive command shows. Progress messages and the live session URL go to stderr so stdout stays parseable. Use these flags to control the output and timeout: + +Flag| Description +---|--- +`--json`| Print the raw `bugs.json` payload instead of the formatted findings +`--timeout <minutes>`| Maximum minutes to wait for the review to finish. Defaults to 30 + +Running `claude ultrareview` requires the same authentication and extra usage configuration as `/ultrareview`. The subcommand exits with code 0 when the review completes with or without findings, code 1 when the review fails to launch, the remote session errors, or the timeout elapses, and code 130 when interrupted with Ctrl-C. The remote review keeps running if you interrupt the subcommand; follow the session URL printed to stderr to watch it in the browser. + +## + +​ + How ultrareview compares to /review Both commands review code, but they target different stages of your workflow.
modified Voice dictation View current →
--- a/voice-dictation.md +++ b/voice-dictation.md @@ -73,7 +73,7 @@ Change the dictation language -Voice dictation uses the same [`language` setting](</docs/en/settings>) that controls Claude’s response language. If that setting is empty, dictation defaults to English. +Voice dictation uses the same [`language` setting](</docs/en/settings>) that controls Claude’s response language. If that setting is empty, dictation defaults to English. In the VS Code extension, if `language` is empty, dictation uses VS Code’s `accessibility.voice.speechLanguage` setting before defaulting to English. Supported dictation languages