modified Changelog View current →
--- a/changelog.md +++ b/changelog.md @@ -1,4 +1,49 @@ 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.113 + +April 17, 2026 + + * Changed the CLI to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript + * Added `sandbox.network.deniedDomains` setting to block specific domains even when a broader `allowedDomains` wildcard would otherwise permit them + * Fullscreen mode: Shift+↑/↓ now scrolls the viewport when extending a selection past the visible edge + * `Ctrl+A` and `Ctrl+E` now move to the start/end of the current logical line in multiline input, matching readline behavior + * Windows: `Ctrl+Backspace` now deletes the previous word + * Long URLs in responses and bash output stay clickable when they wrap across lines (in terminals with OSC 8 hyperlinks) + * Improved `/loop`: pressing Esc now cancels pending wakeups, and wakeups display as “Claude resuming /loop wakeup” for clarity + * `/extra-usage` now works from Remote Control (mobile/web) clients + * Remote Control clients can now query `@`-file autocomplete suggestions + * Improved `/ultrareview`: faster launch with parallelized checks, diffstat in the launch dialog, and animated launching state + * Subagents that stall mid-stream now fail with a clear error after 10 minutes instead of hanging silently + * Bash tool: multi-line commands whose first line is a comment now show the full command in the transcript, closing a UI-spoofing vector + * Running `cd <current-directory> && git …` no longer triggers a permission prompt when the `cd` is a no-op + * Security: on macOS, `/private/{etc,var,tmp,home}` paths are now treated as dangerous removal targets under `Bash(rm:*)` allow rules + * Security: Bash deny rules now match commands wrapped in `env`/`sudo`/`watch`/`ionice`/`setsid` and similar exec wrappers + * Security: `Bash(find:*)` allow rules no longer auto-approve `find -exec`/`-delete` + * Fixed MCP concurrent-call timeout handling where a message for one tool call could silently disarm another call’s watchdog + * Fixed Cmd-backspace / `Ctrl+U` to once again delete from the cursor to the start of the line + * Fixed markdown tables breaking when a cell contains an inline code span with a pipe character + * Fixed session recap auto-firing while composing unsent text in the prompt + * Fixed `/copy` “Full response” not aligning markdown table columns for pasting into GitHub, Notion, or Slack + * Fixed messages typed while viewing a running subagent being hidden from its transcript and misattributed to the parent AI + * Fixed Bash `dangerouslyDisableSandbox` running commands outside the sandbox without a permission prompt + * Fixed `/effort auto` confirmation — now says “Effort level set to max” to match the status bar label + * Fixed the “copied N chars” toast overcounting emoji and other multi-code-unit characters + * Fixed `/insights` crashing with `EBUSY` on Windows + * Fixed exit confirmation dialog mislabeling one-shot scheduled tasks as recurring — now shows a countdown + * Fixed slash/@ completion menu not sitting flush against the prompt border in fullscreen mode + * Fixed `CLAUDE_CODE_EXTRA_BODY` `output_config.effort` causing 400 errors on subagent calls to models that don’t support effort and on Vertex AI + * Fixed prompt cursor disappearing when `NO_COLOR` is set + * Fixed `ToolSearch` ranking so pasted MCP tool names surface the actual tool instead of description-matching siblings + * Fixed compacting a resumed long-context session failing with “Extra usage is required for long context requests” + * Fixed `plugin install` succeeding when a dependency version conflicts with an already-installed plugin — now reports `range-conflict` + * Fixed “Refine with Ultraplan” not showing the remote session URL in the transcript + * Fixed SDK image content blocks that fail to process crashing the session — now degrade to a text placeholder + * Fixed Remote Control sessions not streaming subagent transcripts + * Fixed Remote Control sessions not being archived when Claude Code exits + * Fixed `thinking.type.enabled is not supported` 400 error when using Opus 4.7 via a Bedrock Application Inference Profile ARN ​
modified Hooks reference View current →
--- a/hooks.md +++ b/hooks.md @@ -290,7 +290,7 @@ `if`| no| Permission rule syntax to filter when this hook runs, such as `"Bash(git *)"` or `"Edit(*.ts)"`. The hook only spawns if the tool call matches the pattern. Only evaluated on tool events: `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, and `PermissionDenied`. On other events, a hook with `if` set never runs. Uses the same syntax as [permission rules](</docs/en/permissions>) `timeout`| no| Seconds before canceling. Defaults: 600 for command, 30 for prompt, 60 for agent `statusMessage`| no| Custom spinner message displayed while the hook runs -`once`| no| If `true`, runs only once per session then is removed. Skills only, not agents. See Hooks in skills and agents +`once`| no| If `true`, runs once per session then is removed. Only honored for hooks declared in skill frontmatter; ignored in settings files and agent frontmatter ####
modified Hosting the Agent SDK View current →
--- a/hosting.md +++ b/hosting.md @@ -25,8 +25,8 @@ Each SDK instance requires: * **Runtime dependencies** - * Python 3.10+ (for Python SDK) or Node.js 18+ (for TypeScript SDK) - * Node.js (required by the bundled Claude Code CLI that the SDK spawns; both SDK packages include it, so no separate install is needed) + * Python 3.10+ for the Python SDK, or Node.js 18+ for the TypeScript SDK + * Both SDK packages bundle a native Claude Code binary for the host platform, so no separate Claude Code or Node.js install is needed for the spawned CLI * **Resource allocation** * Recommended: 1GiB RAM, 5GiB of disk, and 1 CPU (vary this based on your task as needed) * **Network access**
modified Model configuration View current →
--- a/model-config.md +++ b/model-config.md @@ -159,7 +159,7 @@ * **In plan mode** \- Uses `opus` for complex reasoning and architecture decisions * **In execution mode** \- Automatically switches to `sonnet` for code generation and implementation -This gives you the best of both worlds: Opus’s superior reasoning for planning, and Sonnet’s efficiency for execution. +This gives you the best of both worlds: Opus’s superior reasoning for planning, and Sonnet’s efficiency for execution. The plan-mode Opus phase runs with the standard 200K context window. The automatic 1M upgrade described in Extended context applies to the `opus` model setting and does not extend to `opusplan`. ###
modified Automate work with routines View current →
--- a/routines.md +++ b/routines.md @@ -260,12 +260,10 @@ Labels| Labels applied to the PR Is draft| Whether the PR is in draft state Is merged| Whether the PR has been merged -From fork| Whether the PR comes from a fork Each filter pairs a field with an operator: equals, contains, starts with, is one of, is not one of, or matches regex. The `matches regex` operator tests the entire field value, not a substring within it. To match any title containing `hotfix`, write `.*hotfix.*`. Without the surrounding `.*`, the filter matches only a title that is exactly `hotfix` with nothing before or after. For literal substring matching without regex syntax, use the `contains` operator instead. A few example filter combinations: * **Auth module review** : base branch `main`, head branch contains `auth-provider`. Sends any PR that touches authentication to a focused reviewer. - * **External contributor triage** : from fork is `true`. Routes every fork-based PR through an extra security and style review before a human looks at it. * **Ready-for-review only** : is draft is `false`. Skips drafts so the routine only runs when the PR is ready for review. * **Label-gated backport** : labels include `needs-backport`. Triggers a port-to-another-branch routine only when a maintainer tags the PR.
modified Advanced setup View current →
--- a/setup.md +++ b/setup.md @@ -275,35 +275,13 @@ ​ -Deprecated npm installation - -npm installation is deprecated. The native installer is faster, requires no dependencies, and auto-updates in the background. Use the native installation method when possible. - -#### - -​ - -Migrate from npm to native - -If you previously installed Claude Code with npm, switch to the native installer: - - # Install the native binary - curl -fsSL https://claude.ai/install.sh | bash - - # Remove the old npm installation - npm uninstall -g @anthropic-ai/claude-code - -You can also run `claude install` from an existing npm installation to install the native binary alongside it, then remove the npm version. - -#### - -​ - Install with npm -If you need npm installation for compatibility reasons, you must have [Node.js 18+](<https://nodejs.org/en/download>) installed. Install the package globally: +You can also install Claude Code as a global npm package. The package requires [Node.js 18 or later](<https://nodejs.org/en/download>). npm install -g @anthropic-ai/claude-code + +The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshooting#native-binary-not-found-after-npm-install>) if the binary is missing after install. Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshooting#permission-errors-during-installation>).
modified Troubleshooting View current →
--- a/troubleshooting.md +++ b/troubleshooting.md @@ -539,6 +539,20 @@ curl -fsSL https://claude.ai/install.sh | bash +### + +​ + +Native binary not found after npm install + +The `@anthropic-ai/claude-code` npm package pulls in the native binary through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`. If running `claude` after install prints `Could not find native binary package "@anthropic-ai/claude-code-<platform>"`, check the following causes: + + * **Optional dependencies are disabled.** Remove `--omit=optional` from your npm install command, `--no-optional` from pnpm, or `--ignore-optional` from yarn, and check that `.npmrc` does not set `optional=false`. Then reinstall. The native binary is delivered only as an optional dependency, so there is no JavaScript fallback if it is skipped. + * **Unsupported platform.** Prebuilt binaries are published for `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Claude Code does not ship a binary for other platforms; see the [system requirements](</docs/en/setup#system-requirements>). + * **Corporate npm mirror is missing the platform packages.** Ensure your registry mirrors all eight `@anthropic-ai/claude-code-*` platform packages in addition to the meta package. + +Installing with `--ignore-scripts` does not trigger this error. The postinstall step that links the binary into place is skipped, so Claude Code falls back to a wrapper that locates and spawns the platform binary on each launch. This works but starts more slowly; reinstall with scripts enabled for direct execution. + ## ​
modified Agent SDK reference - TypeScript View current →
--- a/typescript.md +++ b/typescript.md @@ -7,6 +7,8 @@ Installation npm install @anthropic-ai/claude-agent-sdk + +The SDK bundles a native Claude Code binary for your platform as an optional dependency such as `@anthropic-ai/claude-agent-sdk-darwin-arm64`. You don’t need to install Claude Code separately. If your package manager skips optional dependencies, the SDK throws `Native CLI binary for <platform> not found`; set `pathToClaudeCodeExecutable` to a separately installed `claude` binary instead. ## @@ -425,7 +427,7 @@ `mcpServers`| `Record<string, [`McpServerConfig`](#mcp-server-config)>`| `{}`| MCP server configurations `model`| `string`| Default from CLI| Claude model to use `outputFormat`| `{ type: 'json_schema', schema: JSONSchema }`| `undefined`| Define output format for agent results. See [Structured outputs](</docs/en/agent-sdk/structured-outputs>) for details -`pathToClaudeCodeExecutable`| `string`| Uses built-in executable| Path to Claude Code executable +`pathToClaudeCodeExecutable`| `string`| Auto-resolved from bundled native binary| Path to Claude Code executable. Only needed if optional dependencies were skipped during install or your platform isn’t in the supported set `permissionMode`| `PermissionMode`| `'default'`| Permission mode for the session `permissionPromptToolName`| `string`| `undefined`| MCP tool name for permission prompts `persistSession`| `boolean`| `true`| When `false`, disables session persistence to disk. Sessions cannot be resumed later
modified TypeScript SDK V2 interface (preview) View current →
--- a/typescript-v2-preview.md +++ b/typescript-v2-preview.md @@ -15,6 +15,8 @@ The V2 interface is included in the existing SDK package: npm install @anthropic-ai/claude-agent-sdk + +The SDK bundles a native Claude Code binary for your platform as an optional dependency, so you don’t need to install Claude Code separately. ##