Changes on
18 changes detected
Show diff (102 lines)
--- a/amazon-bedrock.md
+++ b/amazon-bedrock.md
@@ -259,6 +259,84 @@
+Use the Mantle endpoint
+
+Mantle is an Amazon Bedrock endpoint that serves Claude models through the native Anthropic API shape rather than the Bedrock Invoke API. It uses the same AWS credentials, IAM permissions, and `awsAuthRefresh` configuration described earlier on this page.
+
+Mantle requires Claude Code v2.1.94 or later. Run `claude --version` to check.
+
+###
+
+
+
+Enable Mantle
+
+With AWS credentials already configured, set `CLAUDE_CODE_USE_MANTLE` to route requests to the Mantle endpoint:
+
+ export CLAUDE_CODE_USE_MANTLE=1
+ export AWS_REGION=us-east-1
+
+Claude Code constructs the endpoint URL from `AWS_REGION`. To override it for a custom endpoint or gateway, set `ANTHROPIC_BEDROCK_MANTLE_BASE_URL`. Run `/status` inside Claude Code to confirm. The provider line shows `Amazon Bedrock (Mantle)` when Mantle is active.
+
+###
+
+
+
+Select a Mantle model
+
+Mantle uses model IDs prefixed with `anthropic.` and without a version suffix, for example `anthropic.claude-haiku-4-5`. The models available to your account depend on what your organization has been granted; additional model IDs are listed in your onboarding materials from AWS. Contact your AWS account team to request access to allowlisted models. Set the model with the `--model` flag or with `/model` inside Claude Code:
+
+ claude --model anthropic.claude-haiku-4-5
+
+###
+
+
+
+Run Mantle alongside the Invoke API
+
+The models available to you on Mantle may not include every model you use today. Setting both `CLAUDE_CODE_USE_BEDROCK` and `CLAUDE_CODE_USE_MANTLE` lets Claude Code call both endpoints from the same session. Model IDs that match the Mantle format are routed to Mantle, and all other model IDs go to the Bedrock Invoke API.
+
+ export CLAUDE_CODE_USE_BEDROCK=1
+ export CLAUDE_CODE_USE_MANTLE=1
+
+To surface a Mantle model in the `/model` picker, list its ID in `availableModels` in your [settings file](</docs/en/settings>). This setting also restricts the picker to the listed entries, so include every alias you want to keep available:
+
+ {
+ "availableModels": ["opus", "sonnet", "haiku", "anthropic.claude-haiku-4-5"]
+ }
+
+Entries with the `anthropic.` prefix are added as custom picker options and routed to Mantle. Replace `anthropic.claude-haiku-4-5` with the model ID your account has been granted. See [Restrict model selection](</docs/en/model-config#restrict-model-selection>) for how `availableModels` interacts with other model settings. When both providers are active, `/status` shows `Amazon Bedrock + Amazon Bedrock (Mantle)`.
+
+###
+
+
+
+Route Mantle through a gateway
+
+If your organization routes model traffic through a centralized [LLM gateway](</docs/en/llm-gateway>) that injects AWS credentials server-side, disable client-side authentication so Claude Code sends requests without SigV4 signatures or `x-api-key` headers:
+
+ export CLAUDE_CODE_USE_MANTLE=1
+ export CLAUDE_CODE_SKIP_MANTLE_AUTH=1
+ export ANTHROPIC_BEDROCK_MANTLE_BASE_URL=https://your-gateway.example.com
+
+###
+
+
+
+Mantle environment variables
+
+These variables are specific to the Mantle endpoint. See [Environment variables](</docs/en/env-vars>) for the full list.
+
+Variable| Purpose
+---|---
+`CLAUDE_CODE_USE_MANTLE`| Enable the Mantle endpoint. Set to `1` or `true`.
+`ANTHROPIC_BEDROCK_MANTLE_BASE_URL`| Override the default Mantle endpoint URL
+`CLAUDE_CODE_SKIP_MANTLE_AUTH`| Skip client-side authentication for proxy setups
+
+##
+
+
+
Troubleshooting
###
@@ -286,6 +364,14 @@
* Specify the model as an [inference profile](<https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html>) ID
Claude Code uses the Bedrock [Invoke API](<https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html>) and does not support the Converse API.
+
+###
+
+
+
+Mantle endpoint errors
+
+If `/status` does not show `Amazon Bedrock (Mantle)` after you set `CLAUDE_CODE_USE_MANTLE`, the variable is not reaching the process. Confirm it is exported in the shell where you launched `claude`, or set it in the `env` block of your [settings file](</docs/en/settings>). A `403` from the Mantle endpoint with valid credentials means your AWS account has not been granted access to the model you requested. Contact your AWS account team to request access. A `400` that names the model ID means that model is not served on Mantle. Mantle has its own model lineup separate from the standard Bedrock catalog, so inference profile IDs such as `us.anthropic.claude-sonnet-4-6` will not work. Use a Mantle-format ID, or enable both endpoints so Claude Code routes each request to the endpoint where the model is available.
##
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,36 @@
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.94
+
+April 7, 2026
+
+ * Added support for Amazon Bedrock powered by Mantle, set `CLAUDE_CODE_USE_MANTLE=1`
+ * Changed default effort level from medium to high for API-key, Bedrock/Vertex/Foundry, Team, and Enterprise users (control this with `/effort`)
+ * Added compact `Slacked #channel` header with a clickable channel link for Slack MCP send-message tool calls
+ * Added `keep-coding-instructions` frontmatter field support for plugin output styles
+ * Added `hookSpecificOutput.sessionTitle` to `UserPromptSubmit` hooks for setting the session title
+ * Plugin skills declared via `"skills": ["./"]` now use the skill’s frontmatter `name` for the invocation name instead of the directory basename, giving a stable name across install methods
+ * Fixed agents appearing stuck after a 429 rate-limit response with a long Retry-After header — the error now surfaces immediately instead of silently waiting
+ * Fixed Console login on macOS silently failing with “Not logged in” when the login keychain is locked or its password is out of sync — the error is now surfaced and `claude doctor` diagnoses the fix
+ * Fixed plugin skill hooks defined in YAML frontmatter being silently ignored
+ * Fixed plugin hooks failing with “No such file or directory” when `CLAUDE_PLUGIN_ROOT` was not set
+ * Fixed `${CLAUDE_PLUGIN_ROOT}` resolving to the marketplace source directory instead of the installed cache for local-marketplace plugins on startup
+ * Fixed scrollback showing the same diff repeated and blank pages in long-running sessions
+ * Fixed multiline user prompts in the transcript indenting wrapped lines under the `❯` caret instead of under the text
+ * Fixed Shift+Space inserting the literal word “space” instead of a space character in search inputs
+ * Fixed hyperlinks opening two browser tabs when clicked inside tmux running in an xterm.js-based terminal (VS Code, Hyper, Tabby)
+ * Fixed an alt-screen rendering bug where content height changes mid-scroll could leave compounding ghost lines
+ * Fixed `FORCE_HYPERLINK` environment variable being ignored when set via `settings.json` `env`
+ * Fixed native terminal cursor not tracking the selected tab in dialogs, so screen readers and magnifiers can follow tab navigation
+ * Fixed Bedrock invocation of Sonnet 3.5 v2 by using the `us.` inference profile ID
+ * Fixed SDK/print mode not preserving the partial assistant response in conversation history when interrupted mid-stream
+ * Improved `--resume` to resume sessions from other worktrees of the same repo directly instead of printing a `cd` command
+ * Fixed CJK and other multibyte text being corrupted with U+FFFD in stream-json input/output when chunk boundaries split a UTF-8 sequence
+ * [VSCode] Reduced cold-open subprocess work on starting a session
+ * [VSCode] Fixed dropdown menus selecting the wrong item when the mouse was over the list while typing or using arrow keys
+ * [VSCode] Added a warning banner when `settings.json` files fail to parse, so users know their permission rules are not being applied
--- a/claude-directory.md
+++ b/claude-directory.md
@@ -6,12 +6,15 @@
What’s not shown
-The explorer covers the files you’ll interact with most. A few things live elsewhere:
+The explorer covers files you author and edit. A few authored files live elsewhere:
File| Location| Purpose
---|---|---
`managed-settings.json`| System-level, varies by OS| Enterprise-enforced settings that you can’t override. See [server-managed settings](</docs/en/server-managed-settings>).
`CLAUDE.local.md`| Project root| Your private preferences for this project, loaded alongside CLAUDE.md. Create it manually and add it to `.gitignore`.
+Installed plugins| `~/.claude/plugins/`| Cloned marketplaces, installed plugin versions, and per-plugin data, managed by `claude plugin` commands. Orphaned versions are deleted 7 days after a plugin update or uninstall. See [plugin caching](</docs/en/plugins-reference#plugin-caching-and-file-resolution>).
+
+`~/.claude` also holds data Claude Code writes as you work: transcripts, prompt history, file snapshots, caches, and logs. See application data below.
##
@@ -73,6 +76,80 @@
+Application data
+
+Beyond the config you author, `~/.claude` holds data Claude Code writes during sessions. These files are plaintext. Anything that passes through a tool (file contents, command output, pasted text) lands in a transcript on disk.
+
+###
+
+
+
+Swept automatically
+
+Files older than [`cleanupPeriodDays`](</docs/en/settings#available-settings>) (default 30) are deleted on the next startup.
+
+Path under `~/.claude/`| Contents
+---|---
+`projects/<project>/<session>.jsonl`| Full conversation transcript: every message, tool call, and tool result
+`projects/<project>/<session>/tool-results/`| Large tool outputs spilled to separate files
+`file-history/<session>/`| Pre-edit snapshots of files Claude changed, used for [checkpoint restore](</docs/en/checkpointing>)
+`plans/`| Plan files written during [plan mode](</docs/en/permission-modes#plan-mode>)
+`debug/`| Per-session debug logs
+`paste-cache/`, `image-cache/`| Contents of large pastes and attached images
+`session-env/`| Per-session environment metadata
+
+###
+
+
+
+Not swept
+
+These persist until you delete them.
+
+Path under `~/.claude/`| Contents
+---|---
+`history.jsonl`| Every prompt you’ve typed, with timestamp and project path. Used for up-arrow recall.
+`statsig/`| Feature-flag cache and a stable anonymous device ID
+`stats-cache.json`| Aggregated token and cost counts shown by `/cost`
+`backups/`| Timestamped copies of `~/.claude.json` taken before config migrations
+`downloads/`| Native binary downloads staged by the auto-updater
+`todos/`| Legacy per-session task lists. No longer written by current versions; safe to delete.
+
+`shell-snapshots/` and `sockets/` are runtime files removed when the session exits cleanly.
+
+###
+
+
+
+Plaintext storage
+
+Transcripts and history are not encrypted at rest; OS file permissions are the only protection. If a tool reads a `.env` file or a command prints a credential, that value is written to `projects/<project>/<session>.jsonl`. To reduce exposure:
+
+ * Lower `cleanupPeriodDays` to shorten how long transcripts are kept
+ * For headless runs, pass `--no-session-persistence` with `-p`, or set `persistSession: false` in the SDK, to skip writing transcripts entirely. There is no interactive-mode equivalent.
+ * Use [permission rules](</docs/en/permissions>) to deny reads of credential files
+
+###
+
+
+
+Clear local data
+
+You can delete these at any time. You lose the listed capability for past sessions; new sessions are unaffected.
+
+Delete| You lose
+---|---
+`~/.claude/projects/`| Resume, continue, and rewind for past sessions
+`~/.claude/history.jsonl`| Up-arrow prompt recall
+`~/.claude/file-history/`| Checkpoint restore for past sessions
+`~/.claude/debug/`, `paste-cache/`, `image-cache/`, `todos/`| Nothing user-facing
+
+Don’t delete `~/.claude.json`, `settings.json`, or `plugins/`: those hold your auth, preferences, and installed plugins.
+
+##
+
+
+
Related resources
* [Manage Claude’s memory](</docs/en/memory>): write and organize CLAUDE.md, rules, and auto memory
--- a/code-review.md
+++ b/code-review.md
@@ -37,6 +37,14 @@
+Rate and reply to findings
+
+Each review comment from Claude arrives with 👍 and 👎 already attached so both buttons appear in the GitHub UI for one-click rating. Click 👍 if the finding was useful or 👎 if it was wrong or noisy. Anthropic collects reaction counts after the PR merges and uses them to tune the reviewer. Reactions do not trigger a re-review or change anything on the PR. Replying to an inline comment does not prompt Claude to respond or update the PR. To act on a finding, fix the code and push. If the PR is subscribed to push-triggered reviews, the next run resolves the thread when the issue is fixed. To request a fresh review without pushing, comment `@claude review once` as a top-level PR comment.
+
+###
+
+
+
Check run output
Beyond the inline review comments, each review populates the **Claude Code Review** check run that appears alongside your CI checks. Expand its **Details** link to see a summary of every finding in one place, sorted by severity:
--- a/common-workflows.md
+++ b/common-workflows.md
@@ -535,7 +535,7 @@
* `claude --resume` opens a conversation picker or resumes by name
* `claude --from-pr 123` resumes sessions linked to a specific pull request
-From inside an active session, use `/resume` to switch to a different conversation. Sessions are stored per project directory. The `/resume` picker shows interactive sessions from the same git repository, including worktrees. Sessions created by `claude -p` or SDK invocations do not appear in the picker, but you can still resume one by passing its session ID directly to `claude --resume <session-id>`.
+From inside an active session, use `/resume` to switch to a different conversation. Sessions are stored per project directory. The `/resume` picker shows interactive sessions from the same git repository, including worktrees. When you select a session from another worktree of the same repository, Claude Code resumes it directly without requiring you to switch directories first. Sessions created by `claude -p` or SDK invocations do not appear in the picker, but you can still resume one by passing its session ID directly to `claude --resume <session-id>`.
###
--- a/data-usage.md
+++ b/data-usage.md
@@ -52,7 +52,7 @@
* Standard: 30-day retention period
* [Zero data retention](</docs/en/zero-data-retention>): available for Claude Code on Claude for Enterprise. ZDR is enabled on a per-organization basis; each new organization must have ZDR enabled separately by your account team
- * Local caching: Claude Code clients may store sessions locally for up to 30 days to enable session resumption (configurable)
+ * Local caching: Claude Code clients store session transcripts locally in plaintext under `~/.claude/projects/` for 30 days by default (configurable via `cleanupPeriodDays`) to enable session resumption. See [application data](</docs/en/claude-directory#application-data>) for what’s stored and how to clear it.
You can delete individual Claude Code on the web sessions at any time. Deleting a session permanently removes the session’s event data. For instructions on how to delete sessions, see [Managing sessions](</docs/en/claude-code-on-the-web#managing-sessions>). Learn more about data retention practices in our [Privacy Center](<https://privacy.anthropic.com/>). For full details, please review our [Commercial Terms of Service](<https://www.anthropic.com/legal/commercial-terms>) (for Team, Enterprise, and API users) or [Consumer Terms](<https://www.anthropic.com/legal/consumer-terms>) (for Free, Pro, and Max users) and [Privacy Policy](<https://www.anthropic.com/legal/privacy>).
--- a/env-vars.md
+++ b/env-vars.md
@@ -6,6 +6,7 @@
`ANTHROPIC_AUTH_TOKEN`| Custom value for the `Authorization` header (the value you set here will be prefixed with `Bearer `)
`ANTHROPIC_BASE_URL`| Override the API endpoint to route requests through a proxy or gateway. When set to a non-first-party host, [MCP tool search](</docs/en/mcp#scale-with-mcp-tool-search>) is disabled by default. Set `ENABLE_TOOL_SEARCH=true` if your proxy forwards `tool_reference` blocks
`ANTHROPIC_BEDROCK_BASE_URL`| Override the Bedrock endpoint URL. Use for custom Bedrock endpoints or when routing through an [LLM gateway](</docs/en/llm-gateway>). See [Amazon Bedrock](</docs/en/amazon-bedrock>)
+`ANTHROPIC_BEDROCK_MANTLE_BASE_URL`| Override the Bedrock Mantle endpoint URL. See [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>)
`ANTHROPIC_BETAS`| Comma-separated list of additional `anthropic-beta` header values to include in API requests. Claude Code already sends the beta headers it needs; use this to opt into an [Anthropic API beta](<https://platform.claude.com/docs/en/api/beta-headers>) before Claude Code adds native support. Unlike the [`--betas` flag](</docs/en/cli-reference#cli-flags>), which requires API key authentication, this variable works with all auth methods including Claude.ai subscription
`ANTHROPIC_CUSTOM_HEADERS`| Custom headers to add to requests (`Name: Value` format, newline-separated for multiple headers)
`ANTHROPIC_CUSTOM_MODEL_OPTION`| Model ID to add as a custom entry in the `/model` picker. Use this to make a non-standard or gateway-specific model selectable without replacing built-in aliases. See [Model configuration](</docs/en/model-config#add-a-custom-model-option>)
@@ -31,11 +32,11 @@
`ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION`| Override AWS region for the Haiku-class model when using Bedrock
`ANTHROPIC_VERTEX_BASE_URL`| Override the Vertex AI endpoint URL. Use for custom Vertex endpoints or when routing through an [LLM gateway](</docs/en/llm-gateway>). See [Google Vertex AI](</docs/en/google-vertex-ai>)
`ANTHROPIC_VERTEX_PROJECT_ID`| GCP project ID for Vertex AI. Required when using [Google Vertex AI](</docs/en/google-vertex-ai>)
-`API_TIMEOUT_MS`| Timeout for API requests in milliseconds (default: 600000, or 10 minutes). Increase this when requests time out on slow networks or when routing through a proxy
+`API_TIMEOUT_MS`| Timeout for API requests in milliseconds (default: 600000, or 10 minutes; maximum: 2147483647). Increase this when requests time out on slow networks or when routing through a proxy. Values above the maximum overflow the underlying timer and cause requests to fail immediately
`AWS_BEARER_TOKEN_BEDROCK`| Bedrock API key for authentication (see [Bedrock API keys](<https://aws.amazon.com/blogs/machine-learning/accelerate-ai-development-with-amazon-bedrock-api-keys/>))
-`BASH_DEFAULT_TIMEOUT_MS`| Default timeout for long-running bash commands
+`BASH_DEFAULT_TIMEOUT_MS`| Default timeout for long-running bash commands (default: 120000, or 2 minutes)
`BASH_MAX_OUTPUT_LENGTH`| Maximum number of characters in bash outputs before they are middle-truncated
-`BASH_MAX_TIMEOUT_MS`| Maximum timeout the model can set for long-running bash commands
+`BASH_MAX_TIMEOUT_MS`| Maximum timeout the model can set for long-running bash commands (default: 600000, or 10 minutes)
`CLAUDECODE`| Set to `1` in shell environments Claude Code spawns (Bash tool, tmux sessions). Not set in [hooks](</docs/en/hooks>) or [status line](</docs/en/statusline>) commands. Use to detect when a script is running inside a shell spawned by Claude Code
`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS`| Set to `1` to disable all built-in [subagent](</docs/en/sub-agents>) types such as Explore and Plan. Only applies in non-interactive mode (the `-p` flag). Useful for SDK users who want a blank slate
`CLAUDE_AGENT_SDK_MCP_NO_PREFIX`| Set to `1` to skip the `mcp__<server>__` prefix on tool names from SDK-created MCP servers. Tools use their original names. SDK usage only
@@ -110,6 +111,7 @@
`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_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)
`CLAUDE_CODE_SKIP_VERTEX_AUTH`| Skip Google authentication for Vertex (for example, when using an LLM gateway)
`CLAUDE_CODE_SUBAGENT_MODEL`| See [Model configuration](</docs/en/model-config>)
`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`| Set to `1` to strip Anthropic and cloud provider credentials from subprocess environments (Bash tool, hooks, MCP stdio servers). The parent Claude process keeps these credentials for API calls, but child processes cannot read them, reducing exposure to prompt injection attacks that attempt to exfiltrate secrets via shell expansion. `claude-code-action` sets this automatically when `allowed_non_write_users` is configured
@@ -121,6 +123,7 @@
`CLAUDE_CODE_TMPDIR`| Override the temp directory used for internal temp files. Claude Code appends `/claude-{uid}/` (Unix) or `/claude/` (Windows) to this path. Default: `/tmp` on macOS, `os.tmpdir()` on Linux/Windows
`CLAUDE_CODE_USE_BEDROCK`| Use [Bedrock](</docs/en/amazon-bedrock>)
`CLAUDE_CODE_USE_FOUNDRY`| Use [Microsoft Foundry](</docs/en/microsoft-foundry>)
+`CLAUDE_CODE_USE_MANTLE`| Use the Bedrock [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>)
`CLAUDE_CODE_USE_POWERSHELL_TOOL`| Set to `1` to enable the PowerShell tool on Windows (opt-in preview). When enabled, Claude can run PowerShell commands natively instead of routing through Git Bash. Only supported on native Windows, not WSL. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>)
`CLAUDE_CODE_USE_VERTEX`| Use [Vertex](</docs/en/google-vertex-ai>)
`CLAUDE_CONFIG_DIR`| Override the configuration directory (default: `~/.claude`). All settings, credentials, session history, and plugins are stored under this path. Useful for running multiple accounts side by side: for example, `alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'`
@@ -163,8 +166,8 @@
`MCP_OAUTH_CALLBACK_PORT`| Fixed port for the OAuth redirect callback, as an alternative to `--callback-port` when adding an MCP server with [pre-configured credentials](</docs/en/mcp#use-pre-configured-oauth-credentials>)
`MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE`| Maximum number of remote MCP servers (HTTP/SSE) to connect in parallel during startup (default: 20)
`MCP_SERVER_CONNECTION_BATCH_SIZE`| Maximum number of local MCP servers (stdio) to connect in parallel during startup (default: 3)
-`MCP_TIMEOUT`| Timeout in milliseconds for MCP server startup
-`MCP_TOOL_TIMEOUT`| Timeout in milliseconds for MCP tool execution
+`MCP_TIMEOUT`| Timeout in milliseconds for MCP server startup (default: 30000, or 30 seconds)
+`MCP_TOOL_TIMEOUT`| Timeout in milliseconds for MCP tool execution (default: 100000000, about 28 hours)
`NO_PROXY`| List of domains and IPs to which requests will be directly issued, bypassing proxy
`OTEL_LOG_TOOL_CONTENT`| Set to `1` to include tool input and output content in OpenTelemetry span events. Disabled by default to protect sensitive data. See [Monitoring](</docs/en/monitoring-usage>)
`OTEL_LOG_TOOL_DETAILS`| Set to `1` to include MCP server names and tool details in telemetry. Disabled by default to protect PII. See [Monitoring](</docs/en/monitoring-usage>)
--- a/hooks.md
+++ b/hooks.md
@@ -505,7 +505,7 @@
Exit code output
-The exit code from your hook command tells Claude Code whether the action should proceed, be blocked, or be ignored. **Exit 0** means success. Claude Code parses stdout for JSON output fields. JSON output is only processed on exit 0. For most events, stdout is only shown in verbose mode (`Ctrl+O`). The exceptions are `UserPromptSubmit` and `SessionStart`, where stdout is added as context that Claude can see and act on. **Exit 2** means a blocking error. Claude Code ignores stdout and any JSON in it. Instead, stderr text is fed back to Claude as an error message. The effect depends on the event: `PreToolUse` blocks the tool call, `UserPromptSubmit` rejects the prompt, and so on. See exit code 2 behavior for the full list. **Any other exit code** is a non-blocking error. stderr is shown in verbose mode (`Ctrl+O`) and execution continues. For example, a hook command script that blocks dangerous Bash commands:
+The exit code from your hook command tells Claude Code whether the action should proceed, be blocked, or be ignored. **Exit 0** means success. Claude Code parses stdout for JSON output fields. JSON output is only processed on exit 0. For most events, stdout is written to the debug log but not shown in the transcript. The exceptions are `UserPromptSubmit` and `SessionStart`, where stdout is added as context that Claude can see and act on. **Exit 2** means a blocking error. Claude Code ignores stdout and any JSON in it. Instead, stderr text is fed back to Claude as an error message. The effect depends on the event: `PreToolUse` blocks the tool call, `UserPromptSubmit` rejects the prompt, and so on. See exit code 2 behavior for the full list. **Any other exit code** is a non-blocking error for most hook events. The transcript shows a one-line `<hook name> hook error` notice and execution continues. The full stderr is written to the debug log. For example, a hook command script that blocks dangerous Bash commands:
#!/bin/bash
# Reads JSON input from stdin, checks the command
@@ -517,6 +517,8 @@
fi
exit 0 # Success: tool call proceeds
+
+For most hook events, only exit code 2 blocks the action. Claude Code treats exit code 1 as a non-blocking error and proceeds with the action, even though 1 is the conventional Unix failure code. If your hook is meant to enforce a policy, use `exit 2`. The exception is `WorktreeCreate`, where any non-zero exit code aborts worktree creation.
####
@@ -591,7 +593,7 @@
---|---|---
`continue`| `true`| If `false`, Claude stops processing entirely after the hook runs. Takes precedence over any event-specific decision fields
`stopReason`| none| Message shown to the user when `continue` is `false`. Not shown to Claude
-`suppressOutput`| `false`| If `true`, hides stdout from verbose mode output
+`suppressOutput`| `false`| If `true`, omits stdout from the debug log
`systemMessage`| none| Warning message shown to the user
To stop Claude entirely regardless of event type:
@@ -843,13 +845,15 @@
`decision`| `"block"` prevents the prompt from being processed and erases it from context. Omit to allow the prompt to proceed
`reason`| Shown to the user when `decision` is `"block"`. Not added to context
`additionalContext`| String added to Claude’s context
+`sessionTitle`| Sets the session title, same effect as `/rename`. Use to name sessions automatically based on the prompt content
{
"decision": "block",
"reason": "Explanation for decision",
"hookSpecificOutput": {
"hookEventName": "UserPromptSubmit",
- "additionalContext": "My additional context here"
+ "additionalContext": "My additional context here",
+ "sessionTitle": "My session title"
}
}
@@ -2499,7 +2503,7 @@
Debug hooks
-Run `claude --debug` to see hook execution details, including which hooks matched, their exit codes, and output.
+Hook execution details, including which hooks matched, their exit codes, and full stdout and stderr, are written to the debug log file. Start Claude Code with `claude --debug-file <path>` to write the log to a known location, or run `claude --debug` and read the log at `~/.claude/debug/<session-id>.txt`. The `--debug` flag does not print to the terminal.
[DEBUG] Executing hooks for PostToolUse:Write
[DEBUG] Found 1 hook commands to execute
--- a/hooks-guide.md
+++ b/hooks-guide.md
@@ -450,7 +450,7 @@
* **Exit 0** : the action proceeds. For `UserPromptSubmit` and `SessionStart` hooks, anything you write to stdout is added to Claude’s context.
* **Exit 2** : the action is blocked. Write a reason to stderr, and Claude receives it as feedback so it can adjust.
- * **Any other exit code** : the action proceeds. Stderr is logged but not shown to Claude. Toggle verbose mode with `Ctrl+O` to see these messages in the transcript.
+ * **Any other exit code** : the action proceeds. The transcript shows a one-line error notice; the full stderr goes to the [debug log](</docs/en/hooks#debug-hooks>).
####
@@ -546,7 +546,7 @@
}
}
-MCP tools use a different naming convention than built-in tools: `mcp__<server>__<tool>`, where `<server>` is the MCP server name and `<tool>` is the tool it provides. For example, `mcp__github__search_repositories` or `mcp__filesystem__read_file`. Use a regex matcher to target all tools from a specific server, or match across servers with a pattern like `mcp__.*__write.*`. See [Match MCP tools](</docs/en/hooks#match-mcp-tools>) in the reference for the full list of examples.The command below extracts the tool name from the hook’s JSON input with `jq` and writes it to stderr, where it shows up in verbose mode (`Ctrl+O`):
+MCP tools use a different naming convention than built-in tools: `mcp__<server>__<tool>`, where `<server>` is the MCP server name and `<tool>` is the tool it provides. For example, `mcp__github__search_repositories` or `mcp__filesystem__read_file`. Use a regex matcher to target all tools from a specific server, or match across servers with a pattern like `mcp__.*__write.*`. See [Match MCP tools](</docs/en/hooks#match-mcp-tools>) in the reference for the full list of examples.The command below extracts the tool name from the hook’s JSON input with `jq` and writes it to stderr. Writing to stderr keeps stdout clean for JSON output and sends the message to the [debug log](</docs/en/hooks#debug-hooks>):
{
"hooks": {
@@ -827,7 +827,7 @@
Debug techniques
-Toggle verbose mode with `Ctrl+O` to see hook output in the transcript, or run `claude --debug` for full execution details including which hooks matched and their exit codes.
+The transcript view, toggled with `Ctrl+O`, shows a one-line summary for each hook that fired: success is silent, blocking errors show stderr, and non-blocking errors show only the hook name. For full execution details including which hooks matched, their exit codes, stdout, and stderr, read the debug log. Start Claude Code with `claude --debug-file /tmp/claude.log` to write to a known path, then `tail -f /tmp/claude.log` in another terminal. If you started without that flag, run `/debug` mid-session to enable logging and find the log path.
##
--- a/how-claude-code-works.md
+++ b/how-claude-code-works.md
@@ -96,7 +96,7 @@
Work with sessions
-Claude Code saves your conversation locally as you work. Each message, tool use, and result is stored, which enables rewinding, resuming, and forking sessions. Before Claude makes code changes, it also snapshots the affected files so you can revert if needed. **Sessions are independent.** Each new session starts with a fresh context window, without the conversation history from previous sessions. Claude can persist learnings across sessions using [auto memory](</docs/en/memory#auto-memory>), and you can add your own persistent instructions in [CLAUDE.md](</docs/en/memory>).
+Claude Code saves your conversation locally as you work. Each message, tool use, and result is written to a plaintext JSONL file under `~/.claude/projects/`, which enables rewinding, resuming, and forking sessions. Before Claude makes code changes, it also snapshots the affected files so you can revert if needed. For paths, retention, and how to clear this data, see [application data in `~/.claude`](</docs/en/claude-directory#application-data>). **Sessions are independent.** Each new session starts with a fresh context window, without the conversation history from previous sessions. Claude can persist learnings across sessions using [auto memory](</docs/en/memory#auto-memory>), and you can add your own persistent instructions in [CLAUDE.md](</docs/en/memory>).
###
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -24,7 +24,7 @@
`Ctrl+X Ctrl+K`| Kill all background agents. Press twice within 3 seconds to confirm| Background agent control
`Ctrl+D`| Exit Claude Code session| EOF signal
`Ctrl+G` or `Ctrl+X Ctrl+E`| Open in default text editor| Edit your prompt or custom response in your default text editor. `Ctrl+X Ctrl+E` is the readline-native binding
-`Ctrl+L`| Redraw the screen| Repaints the current UI without clearing conversation history
+`Ctrl+L`| Clear prompt input| Clears typed text, keeps conversation history
`Ctrl+O`| Toggle verbose output| Shows detailed tool usage and execution. Also expands MCP read and search calls, which collapse to a single line like “Queried slack” by default
`Ctrl+R`| Reverse search command history| Search through previous commands interactively
`Ctrl+V` or `Cmd+V` (iTerm2) or `Alt+V` (Windows)| Paste image from clipboard| Inserts an `[Image #N]` chip at the cursor so you can reference it positionally in your prompt
--- a/keybindings.md
+++ b/keybindings.md
@@ -83,7 +83,7 @@
---|---|---
`app:interrupt`| Ctrl+C| Cancel current operation
`app:exit`| Ctrl+D| Exit Claude Code
-`app:redraw`| Ctrl+L| Redraw the screen
+`app:redraw`| (unbound)| Force terminal redraw
`app:toggleTodos`| Ctrl+T| Toggle task list visibility
`app:toggleTranscript`| Ctrl+O| Toggle verbose transcript
@@ -112,6 +112,7 @@
Action| Default| Description
---|---|---
`chat:cancel`| Escape| Cancel current input
+`chat:clearInput`| Ctrl+L| Clear prompt input
`chat:killAgents`| Ctrl+X Ctrl+K| Kill all background agents
`chat:cycleMode`| Shift+Tab*| Cycle permission modes
`chat:modelPicker`| Cmd+P / Meta+P| Open model picker
--- a/model-config.md
+++ b/model-config.md
@@ -116,6 +116,14 @@
When `availableModels` is set at multiple levels, such as user settings and project settings, arrays are merged and deduplicated. To enforce a strict allowlist, set `availableModels` in managed or policy settings which take highest priority.
+###
+
+
+
+Mantle model IDs
+
+When the [Bedrock Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>) is enabled, entries in `availableModels` that start with `anthropic.` are added to the `/model` picker as custom options and routed to the Mantle endpoint. This is an exception to the alias-only matching described in Pin models for third-party deployments. The setting still restricts the picker to listed entries, so include the standard aliases alongside any Mantle IDs.
+
##
@@ -155,7 +163,7 @@
Adjust effort level
-[Effort levels](<https://platform.claude.com/docs/en/build-with-claude/effort>) control adaptive reasoning, which dynamically allocates thinking based on task complexity. Lower effort is faster and cheaper for straightforward tasks, while higher effort provides deeper reasoning for complex problems. Three levels persist across sessions: **low** , **medium** , and **high**. A fourth level, **max** , provides the deepest reasoning with no constraint on token spending, so responses are slower and cost more than at `high`. `max` is available on Opus 4.6 only and does not persist across sessions except through the `CLAUDE_CODE_EFFORT_LEVEL` environment variable. Opus 4.6 and Sonnet 4.6 default to medium effort. This applies to all providers, including Bedrock, Vertex AI, and direct API access. Medium is the recommended level for most coding tasks: it balances speed and reasoning depth, and higher levels can cause the model to overthink routine work. Reserve `high` or `max` for tasks that genuinely benefit from deeper reasoning, such as hard debugging problems or complex architectural decisions. For one-off deep reasoning without changing your session setting, include “ultrathink” in your prompt to trigger high effort for that turn. **Setting effort:**
+[Effort levels](<https://platform.claude.com/docs/en/build-with-claude/effort>) control adaptive reasoning, which dynamically allocates thinking based on task complexity. Lower effort is faster and cheaper for straightforward tasks, while higher effort provides deeper reasoning for complex problems. Three levels persist across sessions: **low** , **medium** , and **high**. A fourth level, **max** , provides the deepest reasoning with no constraint on token spending, so responses are slower and cost more than at `high`. `max` is available on Opus 4.6 only and does not persist across sessions except through the `CLAUDE_CODE_EFFORT_LEVEL` environment variable. The default effort level depends on your plan. Pro and Max subscribers default to medium effort. All other users default to high effort: API key, Team, Enterprise, and third-party provider (Bedrock, Vertex AI, Foundry) users. Your plan’s default suits most coding tasks. Raise effort for work that benefits from deeper reasoning, such as hard debugging problems or complex architectural decisions. Higher levels can cause the model to overthink routine work. For one-off deep reasoning without changing your session setting, include “ultrathink” in your prompt to trigger high effort for that turn. This has no effect if your session is already at high or max. **Setting effort:**
* **`/effort`** : run `/effort low`, `/effort medium`, `/effort high`, or `/effort max` to change the level, or `/effort auto` to reset to the model default
* **In`/model`**: use left/right arrow keys to adjust the effort slider when selecting a model
--- a/output-styles.md
+++ b/output-styles.md
@@ -62,7 +62,7 @@
[Define how the assistant should behave in this style...]
-You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`).
+You can save these files at the user level (`~/.claude/output-styles`) or project level (`.claude/output-styles`). [Plugins](</docs/en/plugins-reference>) can also ship output styles in an `output-styles/` directory.
###
--- a/plugins.md
+++ b/plugins.md
@@ -75,12 +75,12 @@
my-first-plugin/.claude-plugin/plugin.json
{
- "name": "my-first-plugin",
- "description": "A greeting plugin to learn the basics",
- "version": "1.0.0",
- "author": {
- "name": "Your Name"
- }
+ "name": "my-first-plugin",
+ "description": "A greeting plugin to learn the basics",
+ "version": "1.0.0",
+ "author": {
+ "name": "Your Name"
+ }
}
Field| Purpose
--- a/plugins-reference.md
+++ b/plugins-reference.md
@@ -391,6 +391,7 @@
* Components from custom paths use the same naming and namespacing rules
* Multiple paths can be specified as arrays
* To keep the default directory and add more paths for commands, agents, skills, or output styles, include the default in your array: `"commands": ["./commands/", "./extras/deploy.md"]`
+ * When a skill path points to a directory that contains a `SKILL.md` directly, for example `"skills": ["./"]` pointing to the plugin root, the frontmatter `name` field in `SKILL.md` determines the skill’s invocation name. This gives a stable name regardless of the install directory. If `name` is not set in the frontmatter, the directory basename is used as a fallback.
**Path examples** :
@@ -480,7 +481,7 @@
* Through `claude --plugin-dir`, for the duration of a session.
* Through a marketplace, installed for future sessions.
-For security and verification purposes, Claude Code copies _marketplace_ plugins to the user’s local **plugin cache** (`~/.claude/plugins/cache`) rather than using them in-place. Understanding this behavior is important when developing plugins that reference external files.
+For security and verification purposes, Claude Code copies _marketplace_ plugins to the user’s local **plugin cache** (`~/.claude/plugins/cache`) rather than using them in-place. Understanding this behavior is important when developing plugins that reference external files. Each installed version is a separate directory in the cache. When you update or uninstall a plugin, the previous version directory is marked as orphaned and removed automatically 7 days later. The grace period lets concurrent Claude Code sessions that already loaded the old version keep running without errors.
###
--- a/troubleshooting.md
+++ b/troubleshooting.md
@@ -567,6 +567,28 @@
+Model not found or not accessible
+
+If you see `There's an issue with the selected model (...). It may not exist or you may not have access to it`, the API rejected the configured model name. Common causes:
+
+ * A typo in the model name passed to `--model`
+ * A stale or deprecated model ID saved in your settings
+ * An API key without access to that model on your current usage tier
+
+Check where the model is set, in [priority order](</docs/en/model-config#setting-your-model>):
+
+ * The `--model` flag
+ * The `ANTHROPIC_MODEL` environment variable
+ * The `model` field in `.claude/settings.local.json`
+ * The `model` field in your project’s `.claude/settings.json`
+ * The `model` field in `~/.claude/settings.json`
+
+To clear a stale value, remove the `model` field from your settings or unset `ANTHROPIC_MODEL`, and Claude Code will fall back to the default model for your account. To browse models available to your account, start `claude` interactively and run `/model` to open the picker. For Vertex AI deployments, see [the Vertex AI troubleshooting section](</docs/en/google-vertex-ai#troubleshooting>).
+
+###
+
+
+
”This organization has been disabled” with an active subscription
If you see `API Error: 400 ... "This organization has been disabled"` despite having an active Claude subscription, an `ANTHROPIC_API_KEY` environment variable is overriding your subscription. This commonly happens when an old API key from a previous employer or project is still set in your shell profile. When `ANTHROPIC_API_KEY` is present and you have approved it, Claude Code uses that key instead of your subscription’s OAuth credentials. In non-interactive mode (`-p`), the key is always used when present. See [authentication precedence](</docs/en/authentication#authentication-precedence>) for the full resolution order. To use your subscription instead, unset the environment variable and remove it from your shell profile:
@@ -595,7 +617,7 @@
”Not logged in” or token expired
-If Claude Code prompts you to log in again after a session, your OAuth token may have expired. Run `/login` to re-authenticate. If this happens frequently, check that your system clock is accurate, as token validation depends on correct timestamps.
+If Claude Code prompts you to log in again after a session, your OAuth token may have expired. Run `/login` to re-authenticate. If this happens frequently, check that your system clock is accurate, as token validation depends on correct timestamps. On macOS, login can also fail when the Keychain is locked or its password is out of sync with your account password, which prevents Claude Code from saving credentials. Run `claude doctor` to check Keychain access. To unlock the Keychain manually, run `security unlock-keychain ~/Library/Keychains/login.keychain-db`. If unlocking doesn’t help, open Keychain Access, select the `login` keychain, and choose Edit > Change Password for Keychain “login” to resync it with your account password.
##
--- a/ultraplan.md
+++ b/ultraplan.md
@@ -1,4 +1,4 @@
-Ultraplan is in research preview. Behavior and capabilities may change based on feedback.
+Ultraplan is in research preview and requires Claude Code v2.1.91 or later. Behavior and capabilities may change based on feedback.
Ultraplan hands a planning task from your local CLI to a [Claude Code on the web](</docs/en/claude-code-on-the-web>) session running in [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>). Claude drafts the plan in the cloud while you keep working in your terminal. When the plan is ready, you open it in your browser to comment on specific sections, ask for revisions, and choose where to execute it. This is useful when you want a richer review surface than the terminal offers:
@@ -6,7 +6,7 @@
* **Hands-off drafting** : the plan is generated remotely, so your terminal stays free for other work
* **Flexible execution** : approve the plan to run on the web and open a pull request, or send it back to your terminal
-Ultraplan requires a [Claude Code on the web](</docs/en/claude-code-on-the-web#who-can-use-claude-code-on-the-web>) account and a GitHub repository. The cloud session runs in your account’s default [cloud environment](</docs/en/claude-code-on-the-web#cloud-environment>).
+Ultraplan requires a [Claude Code on the web](</docs/en/claude-code-on-the-web#who-can-use-claude-code-on-the-web>) account and a GitHub repository. Because it runs on Anthropic’s cloud infrastructure, it is not available when using Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry. The cloud session runs in your account’s default [cloud environment](</docs/en/claude-code-on-the-web#cloud-environment>).
##