Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20261203T060701Z

16 pages moved out of 220 read.

Pages moved 16 significant first
Pages read 220 in this capture
Captured 06:07 UTC
Corpus hash 70fb3d6ec395 corpus-hash

What this read moved

1-16 of 16

agent-sdk/mcp Changed · +18 / -21 lines

from line 138
138138 
139139## Connection timing
140140 
141Claude Code starts connecting your MCP servers when the session starts, and sends the [init message](#error-handling) once the first-turn wait, if any, ends. How long the first turn waits for a server depends on where you configured it. If you set `permissionPromptToolName`, the first turn always waits for that tool's server, up to `MCP_TIMEOUT`, wherever you configured it.
141Your MCP servers start connecting when the session starts, and the first turn waits for some of them so Claude can use their tools right away.
142142 
143For a server in `options.mcpServers`, find its type in the first column to see how long the first turn waits for it.
143The following table shows how long the first turn waits for servers from `options.mcpServers`, plugins, and settings files:
144144 
145| Server type | Delays the first turn? | First-turn wait timeout |
146| :- | :- | :- |
147| stdio server, or HTTP/SSE server without a cached tool list | Yes, until it connects | [`MCP_TIMEOUT`](https://code.claude.com/docs/en/env-vars), 30 seconds by default; the connection fails at that deadline |
148| Remote server with a cached tool list, saved by Claude Code from a previous connection | No; the cached tools are available from the first turn | None; connects on its first tool call, and that deferred connect has its own timeout |
149| In-process [SDK server](#sdk-mcp-servers) | Yes, until it connects and lists its tools | [`MCP_TIMEOUT`](https://code.claude.com/docs/en/env-vars), 30 seconds by default, per connect attempt; the connection fails at that deadline |
145| Server | How long the first turn waits |
146| :- | :- |
147| HTTP or SSE server with a [cached tool list](https://code.claude.com/docs/en/mcp.md#server-status-detail) | No wait. The first turn starts with the cached tools, and the server connects on its first tool call |
148| Any other server that provides your [`permissionPromptToolName`](https://code.claude.com/docs/en/agent-sdk/typescript#options) tool | Up to the [`MCP_TIMEOUT`](https://code.claude.com/docs/en/env-vars) value, 30 seconds by default |
149| Any other stdio, HTTP, or SSE server in `options.mcpServers` | Until the server connects or fails. The connection [times out](#connection-timeouts) after `MCP_TIMEOUT` |
150| In-process [SDK server](#sdk-mcp-servers) in `options.mcpServers` | Until the server connects and lists its tools. Each connect attempt times out after `MCP_TIMEOUT` |
151| Any other server from a plugin or a [settings file](#from-a-config-file) such as `.mcp.json`, when `options.mcpServers` has a stdio, HTTP, or SSE server | Up to `MCP_TIMEOUT` |
152| Any other server from a plugin or a settings file, when you turn [tool search](https://code.claude.com/docs/en/agent-sdk/tool-search.md#configure-tool-search) off, your model lacks it, or you set `ANTHROPIC_BASE_URL` to a [gateway](https://code.claude.com/docs/en/mcp.md#tool-search-through-a-gateway) and leave `ENABLE_TOOL_SEARCH` unset | Up to 2 seconds |
153| Any other server from a plugin or a settings file | Up to 2 seconds for a [named server](#named-servers) or one that sets [`alwaysLoad: true`](#make-startup-wait-for-servers), and no wait for other servers |
150154 
151A server has a cached tool list only when the [MCP discovery cache](https://code.claude.com/docs/en/mcp.md#server-status-detail) is on.
155A server that's still connecting when the first turn starts shows a `pending` status in the [init message](#error-handling). It keeps connecting in the background, and Claude can [use the server's tools](https://code.claude.com/docs/en/mcp.md#tool-availability) once it connects.
152156 
153Servers from [settings files](#from-a-config-file) such as `.mcp.json`, or from plugins, often still show `pending` in the init message. How long the first turn waits for them depends on `options.mcpServers` and tool search:
154 
155* **`options.mcpServers` includes a stdio, HTTP, or SSE server**: the first turn waits for the pending settings-file and plugin servers too, up to `MCP_TIMEOUT`.
156* **Otherwise, when `ANTHROPIC_BASE_URL` points to a [gateway](https://code.claude.com/docs/en/mcp.md#tool-search-through-a-gateway) and [`ENABLE_TOOL_SEARCH`](https://code.claude.com/docs/en/mcp#configure-tool-search) is unset**: the first turn waits up to 2 seconds for every pending settings-file and plugin server.
157* **Otherwise, with [tool search](https://code.claude.com/docs/en/agent-sdk/tool-search.md) on, which is the default**: the first turn waits up to 2 seconds, and only for pending servers that set [`alwaysLoad: true`](https://code.claude.com/docs/en/mcp#exempt-a-server-from-deferral) or that you [named](#named-servers). The rest keep connecting in the background, and Claude [reaches their tools](https://code.claude.com/docs/en/mcp.md#tool-availability) once they connect.
158* **Otherwise, with tool search off**: the first turn waits up to 2 seconds for every pending settings-file and plugin server. Tool search is off when your [`ENABLE_TOOL_SEARCH` value or model](https://code.claude.com/docs/en/agent-sdk/tool-search#configure-tool-search) turns it off, or when you exclude the `ToolSearch` tool, for example through `disallowedTools`.
159 
160157### Named servers
161158 
162159You name a server by listing any of its tools, such as `mcp__github__list_issues` or `mcp__github__*`, in [`allowedTools`](#allow-mcp-tools) or in a `permissions.allow` rule in the `settings` option. An [`mcp_tool` hook](https://code.claude.com/docs/en/hooks#mcp-tool-hook-fields) also names the server it calls when you configure it on a prompt-submission, tool-use, permission, subagent, task, elicitation, or worktree event. Before v2.1.284, naming a server had no effect on the first-turn wait.
from line 160
163160 
164161### Set the first-turn wait yourself
165162 
166To choose the first-turn wait yourself, set `CLAUDE_CODE_MCP_STARTUP_WAIT_MS` in the [`env` option](https://code.claude.com/docs/en/agent-sdk/configuration#set-environment-variables), for example `CLAUDE_CODE_MCP_STARTUP_WAIT_MS: "5000"`. The first turn then waits up to that many milliseconds for pending settings-file and plugin servers, whether or not tool search is on. The same limit replaces the `MCP_TIMEOUT` wait for the stdio, HTTP, and SSE servers in `options.mcpServers`.
163To lengthen or shorten the first-turn wait, set the `CLAUDE_CODE_MCP_STARTUP_WAIT_MS` environment variable in the [`env` option](https://code.claude.com/docs/en/agent-sdk/configuration#set-environment-variables), for example `CLAUDE_CODE_MCP_STARTUP_WAIT_MS: "5000"`. Requires Claude Code v2.1.274 or later.
167164 
165The first turn then waits up to that many milliseconds for stdio, HTTP, and SSE servers that are still connecting, wherever you configured them. Set the variable to `0` to skip that wait.
166 
168167Three waits apply whatever value you set, including `0`:
169168 
170169* **A `permissionPromptToolName` server**: up to `MCP_TIMEOUT`.
171170* **An in-process [SDK server](#sdk-mcp-servers)**: up to `MCP_TIMEOUT` per connect attempt.
172171* **A still-connecting [named server](#named-servers)**: at least up to 2 seconds, so a value below `2000` doesn't shorten its wait.
173 
174Set the variable to `0` to skip the wait for every other server. Servers still pending when the wait ends keep connecting in the background. `CLAUDE_CODE_MCP_STARTUP_WAIT_MS` requires Claude Code v2.1.274 or later.
175172 
176173### Make startup wait for servers
177174 

amazon-bedrock Changed · +4 / -2 lines

from line 362
362362 
363363If you configured a [fallback model chain](https://code.claude.com/docs/en/model-config.md#fallback-model-chains), Claude Code switches to your configured fallback instead. Without a chain, the request fails in cases such as these:
364364 
365* Your session is on a pinned model, a specific version you picked, or an [application inference profile ARN](#map-each-model-version-to-an-inference-profile)
365* Your session is on a [pinned model](#4-pin-model-versions) or an [application inference profile ARN](#map-each-model-version-to-an-inference-profile)
366* Your session is still on the [specific Sonnet or Opus version you started it on](#start-a-session-on-a-specific-model), such as with the `--model` flag
367* In this session, you last set `/model` to a specific [non-default](#4-pin-model-versions) Sonnet or Opus version, such as Opus 4.8
366368* None of the [models Claude Code tries](#startup-model-checks) is available. In [auto mode](https://code.claude.com/docs/en/permission-modes.md#enable-auto-mode-on-bedrock-agent-platform-or-foundry), Claude Code only switches to a model auto mode supports on Amazon Bedrock.
367369 
368To keep working, run `/model` in the session and press `s` on a model your account can use, which leaves your default unchanged. A `403` shows as [AWS authentication failed](https://code.claude.com/docs/en/errors.md#aws-authentication-failed).
370If the request fails because the model is unavailable, run [`/model`](https://code.claude.com/docs/en/model-config#setting-your-model), highlight a model your account can use, and press `s` to switch this session. A `403` shows as [AWS authentication failed](https://code.claude.com/docs/en/errors.md#aws-authentication-failed).
369371 
370372To have rejected requests fail instead of switching, set [`CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1`](https://code.claude.com/docs/en/env-vars). If you configured a fallback model chain, remove it as well, because Claude Code still moves to that fallback.
371373 

google-vertex-ai Changed · +4 / -2 lines

from line 245
245245 
246246If you configured a [fallback model chain](https://code.claude.com/docs/en/model-config.md#fallback-model-chains), Claude Code switches to your configured fallback instead. Without a chain, the request fails in cases such as these:
247247 
248* Your session is on a pinned model or a specific version you picked
248* Your session is on a [pinned model](#5-pin-model-versions)
249* Your session is still on the [specific Sonnet or Opus version you started it on](#start-a-session-on-a-specific-model), such as with the `--model` flag
250* In this session, you last set `/model` to a specific [non-default](#5-pin-model-versions) Sonnet or Opus version, such as Opus 4.8
249251* None of the [models Claude Code tries](#startup-model-checks) is available. In [auto mode](https://code.claude.com/docs/en/permission-modes.md#enable-auto-mode-on-bedrock-agent-platform-or-foundry), Claude Code only switches to a model auto mode supports on Agent Platform.
250252 
251To keep working, run `/model` in the session and press `s` on a model available in your project and region, which leaves your default unchanged.
253If the request fails because the model is unavailable, run [`/model`](https://code.claude.com/docs/en/model-config#setting-your-model), highlight a model available in your project and region, and press `s` to switch this session.
252254 
253255To have rejected requests fail instead of switching, set [`CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK=1`](https://code.claude.com/docs/en/env-vars). If you configured a fallback model chain, remove it as well, because Claude Code still moves to that fallback.
254256 

interactive-mode Changed · +12 / -0 lines

## Keep working briefly past a usage limit

from line 733
733733 
734734Session recap is on by default for every plan and provider. To turn automatic recaps off, open `/config` and turn off **Session recap**. The automatic recap never appears in non-interactive mode. Claude Code caps both automatic recaps and `/recap` output at 400 characters.
735735 
736## Keep working briefly past a usage limit
737 
738If you reach your claude.ai plan's 5-hour [usage limit](https://code.claude.com/docs/en/errors.md#youve-hit-your-session-limit) partway through a task, Claude can keep working briefly to reach a stopping point. That work runs on a wrap-up allowance and counts toward your weekly limit.
739 
740While Claude uses the allowance, a line under the prompt starts like this:
741 
742```text theme={null}
743Usage limit reached · wrapping up · limit resets 3:45pm · clau.de/wrap-up
744```
745 
746To keep working after the allowance ends, run [`/usage-credits`](https://code.claude.com/docs/en/costs#add-usage-credits-to-your-subscription) at the Claude Code prompt, or [wait for the reset](#wait-for-a-usage-limit-to-reset). For who is eligible and how often the allowance applies, see [Claude Code Wrap-Up Allowance](https://support.claude.com/en/articles/17040437-claude-code-wrap-up-allowance) in the Help Center.
747 
736748## Wait for a usage limit to reset
737749 
738750When a claude.ai [usage limit](https://code.claude.com/docs/en/errors.md#youve-hit-your-session-limit) stops Claude mid-task, Claude Code waits in the open session and continues the task on its own after the limit resets. Automatic continue is on by default in interactive sessions signed in with a claude.ai subscription. Requires Claude Code v2.1.234 or later.

model-config Changed · +13 / -4 lines

#### Warnings for retiring models

from line 161
161161 
162162If you set the model with the `--model` flag, the `ANTHROPIC_MODEL` environment variable, or the `model` setting, Claude Code doesn't reject a mistyped value up front. The session starts, and the first request produces [There's an issue with the selected model](https://code.claude.com/docs/en/errors.md#theres-an-issue-with-the-selected-model). On the Anthropic API, you can see a [warning that suggests the closest name](#fix-a-mistyped-model-name) if the value nearly spells a model name or alias and doesn't start with `claude-`.
163163 
164When the requested model has a scheduled retirement date or is automatically remapped to a newer version, Claude Code shows a warning that names the requested model. Interactive sessions show it as a startup notice. From v2.1.182, the same warning is written to stderr in [non-interactive mode](https://code.claude.com/docs/en/headless.md) when using the default text output format. The check also covers a `model` set in [subagent frontmatter](https://code.claude.com/docs/en/sub-agents.md). The stderr warning is suppressed for `--output-format json` and `stream-json`; read the actual model from the `modelUsage` field of the [result message](https://code.claude.com/docs/en/headless.md#get-structured-output) instead.
165 
166164For example, start a session on Opus:
167165 
168166```bash theme={null}
from line 192
194192 
195193On platforms that embed Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](https://code.claude.com/docs/en/env-vars), the host's model configuration takes precedence over managed model settings. A managed `availableModels` allowlist stays in force unless the host supplies its own. [Exceptions to managed settings precedence](https://code.claude.com/docs/en/settings.md#exceptions-to-managed-settings-precedence) says which keys and variables the host overrides.
196194 
195#### Warnings for retiring models
196 
197When your Claude Code version lists a retirement date for the requested model ID on your provider, or remaps that model to a newer one, you see a warning:
198 
199* Interactive sessions show it as a startup notice.
200* From v2.1.182, [non-interactive mode](https://code.claude.com/docs/en/headless.md) writes it to stderr in the default text output format. With `--output-format json` or `stream-json`, read the actual model from the `modelUsage` field of the [result message](https://code.claude.com/docs/en/headless.md#get-structured-output) instead.
201 
202For the current schedule, check the [retirement dates](https://platform.claude.com/docs/en/about-claude/model-deprecations).
203 
197204#### Which model a resumed session uses
198205 
199206A session you resume with `claude --resume` or `--continue` keeps the model it was saved on, except in cases such as these, where it follows the [priority order](#setting-your-model) instead:
from line 313
306313* **[Automatic model fallback](#automatic-model-fallback)**: a fallback whose target is excluded does not run, so the flagged request ends with a refusal instead
307314* **[Auto mode classifier](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode)**: when the allowlist excludes the [default classifier model](https://code.claude.com/docs/en/permission-modes.md#default-classifier-model), classifier requests that would use that model run on the session model, or an Opus model in [Fable](#work-with-fable) sessions. On providers other than the Anthropic API, that Opus fallback runs on the model you set in `ANTHROPIC_DEFAULT_OPUS_MODEL` or otherwise on Opus 5, without consulting the allowlist. Requires Claude Code v2.1.210 or later
308315* **[Fast mode](https://code.claude.com/docs/en/fast-mode.md)**: enabling fast mode is refused when the model the session would run on afterward is outside the allowlist
309* **Availability fallback on Amazon Bedrock and Google Cloud's Agent Platform**: when your account loses access to a model mid-session, the switch to another model skips excluded models. The startup model checks on [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md#when-your-organization-enforces-a-model-allowlist) and [Google Cloud's Agent Platform](https://code.claude.com/docs/en/google-vertex-ai.md#when-your-organization-enforces-a-model-allowlist) skip excluded models only when managed settings also set [`enforceAvailableModels`](#enforce-the-allowlist-for-the-default-model)
316* **Availability fallback on [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md#when-your-organization-enforces-a-model-allowlist), [Google Cloud's Agent Platform](https://code.claude.com/docs/en/google-vertex-ai.md#when-your-organization-enforces-a-model-allowlist), and Microsoft Foundry**: Claude Code can choose a replacement model outside a [prefix-matched](https://code.claude.com/docs/en/settings-reference.md#availablemodelsmatch) allowlist. To keep the replacement on the allowlist, also set [`enforceAvailableModels`](#enforce-the-allowlist-for-the-default-model) in managed settings.
310317 
318This example puts the Sonnet and Haiku families on the allowlist:
319 
311320```json theme={null}
312321{
313322 "availableModels": ["sonnet", "haiku"]
from line 690
681690 
682691After an automatic model fallback, see [Effort level after a fallback](#effort-level-after-a-fallback) for the level that applies. For subagents and teammates, see [Effort level of subagents and teammates](#effort-level-of-subagents-and-teammates).
683692 
684Opus 5.5 starts at `medium` unless one of the sources above sets a level for it, and a top-level `effortLevel` in your user settings file doesn't count for Opus 5.5. That key is the older form `/effort` wrote before Claude Code saved levels per model: it keeps applying where it applied before, on Opus 5, Fable 5.1, and earlier models, while Opus 5.5 and models released after it start at their own default until you choose a level for them with `/effort` or the `/model` picker. A top-level `effortLevel` in project, local, or managed settings, or one passed with `--settings`, applies to every model.
693Opus 5.5 and models released after it ignore a top-level `effortLevel` key in your user settings file. A top-level `effortLevel` in project, local, or managed settings, or one passed with the `--settings` flag, applies to every model.
685694 
686695When you set `low`, `medium`, `high`, or `xhigh` in an interactive session on your machine, you choose how long it lasts by how you confirm it:
687696 

permissions Changed · +5 / -3 lines

from line 429
429429 
430430##### How deep a pattern matches
431431 
432A rule only matches files under its anchor; within that bound, matching depth depends on the pattern shape and, for single-segment directory patterns, the rule type, described below. Bare filenames follow gitignore semantics and match at any depth, so `Read(.env)` and `Read(**/.env)` are equivalent:
432Bare filenames follow gitignore semantics and match at any depth, so `Read(.env)` and `Read(**/.env)` are equivalent:
433433 
434434| Deny rule | Blocks | Does not block |
435435| - | - | - |
from line 436
436436| `Read(.env)` or `Read(**/.env)` | any `.env` at or under the current directory | `.env` in a parent directory or another project |
437437| `Read(//**/.env)` | any `.env` anywhere on the filesystem | nothing; the rule is anchored at the filesystem root |
438438 
439A relative pattern with a single directory segment, such as `src/**`, matches at different depths depending on the rule type:
439A relative pattern with one directory before `/**`, such as `src/**`, matches deeper in a deny or ask rule than in an allow rule:
440440 
441441* **Allow rules**: `Edit(src/**)` matches only `<cwd>/src` and the files under it. To allow a directory name at any depth, write `Edit(**/src/**)`.
442442* **Deny and ask rules**: `Read(secrets/**)` matches a directory named `secrets` at any depth under the current directory, so the rule also applies to nested copies.
from line 623
623623* `Agent(Plan)` matches the Plan subagent
624624* `Agent(my-custom-agent)` matches a custom subagent named `my-custom-agent`
625625 
626Add these rules to the `deny` array in your settings or use the `--disallowedTools` CLI flag to disable specific agents. To disable the Explore agent:
626To stop Claude from starting a subagent with the [Agent tool](https://code.claude.com/docs/en/tools-reference.md#agent-tool-behavior), add that subagent's rule to the `deny` array in your settings or pass it with the `--disallowedTools` CLI flag.
627 
628This example denies the Explore subagent:
627629 
628630```json theme={null}
629631{

plugins/dependencies Changed · +5 / -2 lines

from line 82
8282 
8383By default, Claude Code doesn't install a dependency from a different marketplace than the declaring plugin's own, unless the user already has that dependency installed and enabled at the same scope. This default prevents one marketplace from silently installing plugins from a source the user hasn't reviewed.
8484 
85To allow the install, add the target marketplace's name to `allowCrossMarketplaceDependenciesOn` in the root marketplace's `marketplace.json`. The root marketplace is the one that hosts the plugin the user is installing. Only the root marketplace's allowlist applies.
85To allow the install, add the target marketplace's name to the `allowCrossMarketplaceDependenciesOn` allowlist in the root marketplace's `marketplace.json`. The root marketplace is the one that hosts the plugin the user is installing.
8686 
8787The following `marketplace.json` allows `deploy-kit` to depend on a plugin from `your-shared-marketplace`:
8888 
from line 103
103103}
104104```
105105 
106If `allowCrossMarketplaceDependenciesOn` is missing or doesn't include the target marketplace, Claude Code doesn't install the dependency. When the dependency is declared in the marketplace entry, the install itself is refused with a message that starts `Dependency "audit-logger@your-shared-marketplace" (required by deploy-kit@your-marketplace) is in marketplace "your-shared-marketplace", which is not in the allowlist` and names the field to set. When it's declared in `plugin.json`, the install completes without the dependency and your plugin then fails to load.
106If you leave `your-shared-marketplace` off this allowlist and a user installs `deploy-kit`, Claude Code doesn't install `audit-logger` for it:
107 
108* **Dependency declared in the marketplace entry**: `claude plugin install` refuses the install with a message that contains `Dependency "audit-logger@your-shared-marketplace" (required by deploy-kit@your-marketplace) is in marketplace "your-shared-marketplace", which is not in the allowlist` and names the field to set
109* **Dependency declared in `plugin.json`**: the install completes without `audit-logger`, and `deploy-kit` then fails to load
107110 
108111The allowlist check doesn't apply to a dependency that is already enabled. If a user installs `audit-logger` from `your-shared-marketplace` themselves first, at the same scope, `deploy-kit` then installs without any change to the allowlist.
109112 

plugins/host-marketplace Changed · +1 / -6 lines

from line 390
390390 
391391## Depend on and recommend other plugins
392392 
393An entry can declare dependencies on other plugins.
394 
395* **Version ranges**: a dependency can carry a semver range.
396* **Cross-marketplace dependencies**: a dependency from another marketplace installs only when your marketplace lists that marketplace in `allowCrossMarketplaceDependenciesOn`.
397 
398For version ranges, the `<plugin>--v<version>` git-tag convention they resolve against, and cross-marketplace trust, see [Plugin dependencies](https://code.claude.com/docs/en/plugins/dependencies.md).
393An entry can declare dependencies on other plugins. For version ranges, the `<plugin>--v<version>` git-tag convention they resolve against, and dependencies on another marketplace's plugins, see [Plugin dependencies](https://code.claude.com/docs/en/plugins/dependencies.md).
399394 
400395To have Claude Code suggest a plugin when a project matches it, add a `relevance` block to the entry with the signals that identify the project. Users see these suggestions only when an admin lists your marketplace in `pluginSuggestionMarketplaces`. For the signals and the enablement step, see [Plugin relevance](https://code.claude.com/docs/en/plugins/relevance.md).
401396 

settings-example Changed · +3 / -3 lines

from line 94
9494* **Telemetry goes in managed or personal settings.** Claude Code ignores the [OpenTelemetry exporter variables](https://code.claude.com/docs/en/settings-reference.md#variables-claude-code-ignores-in-env) in a repository's settings files, apart from some values that turn telemetry off. Set them in [managed settings](https://code.claude.com/docs/en/monitoring-usage.md#administrator-configuration) for your organization, or in each person's `~/.claude/settings.json`.
9595* **Allow rules wait for trust.** Allow rules and `extraKnownMarketplaces` entries take effect after each person [trusts this folder itself](https://code.claude.com/docs/en/permissions.md#project-allow-rules-and-workspace-trust), not only a parent folder; deny and ask rules apply in every session, trusted or not.
9696* **The hook is a script in the repo.** This file's hook runs `.claude/hooks/block-rm.sh`; [How a hook resolves](https://code.claude.com/docs/en/hooks.md#how-a-hook-resolves) walks through writing it.
97* **Rules match the command and path as written.** `Bash(git push *)` doesn't match [`git -C . push`](https://code.claude.com/docs/en/permissions#bash-rule-limits). `Read(./.env)` on its own stops the file tools and commands that name the file, such as `cat .env`, but not [`grep -r` run over the directory](https://code.claude.com/docs/en/permissions#read-and-edit); the `sandbox` block in this file closes that gap, because the sandbox [adds your `Read` deny paths](https://code.claude.com/docs/en/settings-reference#sandbox-filesystem-denyread) to what every sandboxed command can't read.
97* **Rules match the command and path as written.** `Bash(git push *)` doesn't match [`git -C . push`](https://code.claude.com/docs/en/permissions#bash-rule-limits). Outside the sandbox, some Bash commands [can still read a file that a `Read` deny rule covers](https://code.claude.com/docs/en/permissions#what-read-and-edit-rules-cover), such as `grep -r` run from the directory that holds the file.
9898 
9999> [tab] Copyable settings file
100100>
from line 172
172172> "ask": [
173173> "Bash(git push *)"
174174> ],
175> // Deny reads of env files and the secrets folder by the file tools and file-reading commands
175> // Deny reads of env files and the secrets folder by the file tools and file commands Claude Code recognizes, such as cat
176176> "deny": [
177177> "Read(./.env)",
178178> "Read(./.env.*)",
from line 317
317317> ],
318318> "enforceAvailableModels": true,
319319> "permissions": {
320> // Deny curl commands and reads of the project's .env file and secrets folder on every machine
320> // On every machine, deny curl commands, and deny reads of the project's .env file and secrets folder by the file tools and file commands Claude Code recognizes
321321> "deny": [
322322> "Bash(curl *)",
323323> "Read(./.env)",

sub-agents Changed · +6 / -4 lines

from line 77
7777 
7878Built-in subagents are registered by default in interactive sessions. You can restrict them with a deny rule or an environment variable:
7979 
80* To block a specific built-in type, add it to `permissions.deny` as shown in [Disable specific subagents](#disable-specific-subagents).
81* To prevent Claude from delegating to any subagent, deny the `Agent` tool itself with [`permissions.deny`](https://code.claude.com/docs/en/permissions#tool-specific-permission-rules).
80* To stop Claude from starting a specific built-in subagent with the [Agent tool](https://code.claude.com/docs/en/tools-reference.md#agent-tool-behavior), add a deny rule as shown in [Disable specific subagents](#disable-specific-subagents).
81* To stop Claude from starting any subagent with the Agent tool, add the tool name `Agent` to the [`permissions.deny`](https://code.claude.com/docs/en/permissions#tool-specific-permission-rules) array.
8282* To remove only the built-in `Explore` and `Plan` subagents, set [`CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS=1`](https://code.claude.com/docs/en/env-vars). Claude reads and explores files directly instead of delegating to them. Requires Claude Code v2.1.198 or later.
8383* In [non-interactive mode](https://code.claude.com/docs/en/headless.md) and the [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md), set [`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1`](https://code.claude.com/docs/en/env-vars) to remove all built-in types and supply only your own.
8484 
from line 529
529529>
530530> In version 2.1.63, the Task tool was renamed to Agent. Existing `Task(...)` references in settings and agent definitions still work as aliases.
531531 
532This example names `worker` and `researcher` as the subagent types for the `coordinator` agent:
533 
532534```yaml theme={null}
533535---
534536name: coordinator
from line 539
537539---
538540```
539541 
540This is an allowlist: only the `worker` and `researcher` subagents can be spawned. If the agent tries to spawn any other type, the request fails and the agent sees only the allowed types in its prompt. To block specific agents while allowing all others, use [`permissions.deny`](#disable-specific-subagents) instead.
542To block specific agents while allowing all others, use [`permissions.deny`](#disable-specific-subagents) instead.
541543 
542544To allow spawning any subagent without restrictions, use `Agent` without parentheses:
543545 
from line 758
756758 
757759#### Disable specific subagents
758760 
759You can prevent Claude from using specific subagents by adding them to the `deny` array in your [settings](https://code.claude.com/docs/en/settings-reference.md#permission-settings). Use the format `Agent(subagent-name)` where `subagent-name` matches the subagent's name field.
761To stop Claude from starting specific subagents with the [Agent tool](https://code.claude.com/docs/en/tools-reference.md#agent-tool-behavior), add a rule for each to the `deny` array in your [settings](https://code.claude.com/docs/en/settings-reference.md#permission-settings). Use the format `Agent(subagent-name)` where `subagent-name` matches the subagent's name field.
760762 
761763```json theme={null}
762764{

errors Changed · +1 / -0 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 47
4747| `the prompt to confirm went unanswered · nothing was sent`, from v2.1.324 | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
4848| `Claude stopped here · send a message to be asked again` | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
4949| `Claude stopped here because <model> now requires usage credits` | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
50| `Usage limit reached · wrapping up` | [Keep working briefly past a usage limit](https://code.claude.com/docs/en/interactive-mode.md#keep-working-briefly-past-a-usage-limit) |
5051| `Server is temporarily limiting requests` | [Usage limits](#server-is-temporarily-limiting-requests) |
5152| `Request rejected (429)` | [Usage limits](#request-rejected-429) |
5253| `Credit balance is too low` | [Usage limits](#credit-balance-is-too-low) |
from line 2371
23702371 
23712372### The proxy refused the connection
23722373 
2373You see this message when Claude reads an [artifact](https://code.claude.com/docs/en/artifacts.md) through the proxy you set in `HTTPS_PROXY` or a related [proxy variable](https://code.claude.com/docs/en/network-config.md#environment-variables). Artifact content comes from `*.frame.claudeusercontent.com`, so Claude Code first sends the proxy a `CONNECT` request asking
2374You see this message when Claude reads an [artifact](https://code.claude.com/docs/en/artifacts.md) through the proxy you set in `HTTPS_PROXY` or a related [proxy variable](https://code.claude.

hooks Changed · +1 / -1 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 426
426426 
427427The `if` field holds exactly one permission rule. There is no `&&`, `||`, or list syntax for combining rules; to apply multiple conditions, define a separate hook handler for each.
428428 
429In an `if` condition for a file tool, a single-segment directory pattern like `"Edit(src/**)"` matches only the `src` directory in the working directory and the files under it. To match a directory named `src` at any depth, write `"Edit(**/src/**)"`.
429In an `if` condition for a file tool, a `dir/**` pattern such as `"Edit(src/**)"` matches only the `src` directory in the working directory and the files under it. To match a directory named `src` at any depth, write `"Edit(**/src/**)"`.
430430 
431431#### How `if` patterns match Bash commands
432432 
from line 3663
36633663 
36643664#### PreModelSwitch decision control
36653665 
3666`PreModelSwitch` hooks can cancel the switch, ask the user to confirm it, or let it proceed.
3666`PreModelSwitch` hooks can cancel the switch, ask the user to confirm it, or let it proceed. Exit code 2 o

plugins/marketplace-reference Changed · +1 / -1 lines

from line 65
6565| `metadata.description`, `metadata.version` | string | Alternate location for `description` and `version` |
6666| `metadata.pluginRoot` | string | Directory that bare plugin source names resolve under. See [Relative path plugin source](#relative-path-plugin-source) |
6767| `forceRemoveDeletedPlugins` | boolean | When `true`, a plugin you remove from `plugins` is uninstalled on users' machines. See [Host and maintain a marketplace](https://code.claude.com/docs/en/plugins/host-marketplace.md) |
68| `allowCrossMarketplaceDependenciesOn` | array of strings | Marketplace names whose plugins may be installed as dependencies of this marketplace's plugins. When you install a plugin, only the list in that plugin's own marketplace applies, for its whole dependency chain. See [Plugin dependencies](https://code.claude.com/docs/en/plugins/dependencies.md) |
68| `allowCrossMarketplaceDependenciesOn` | array of strings | Marketplace names whose plugins may be installed as dependencies. See [Depend on a plugin from another marketplace](https://code.claude.com/docs/en/plugins/dependencies.md#depend-on-a-plugin-from-another-marketplace) |
6969| `renames` | object | Map from a former plugin `name` to its current name, or to `null` for a plugin you removed. See [Host and maintain a marketplace](https://code.claude.com/docs/en/plugins/host-marketplace.md) |
7070 
7171## Plugin entries

settings-reference Changed · +1 / -1 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 398
398398}
399399```
400400 
401In your user settings file, `~/.claude/settings.json`, this key is the older form `/effort` wrote before it saved levels per model, and it keeps applying where it applied before, on Opus 5, Fable 5.1, and earlier models. Opus 5.5 and models released after it ignore it and start at their own default until you save a level for them, which `/effort` writes under [`modelSettings`](#modelsettings). In project, local, and managed settings, and with `--settings`, this key applies to every model.
401Opus 5.5 and models released after it ignore this key in your user settings file, `~/.claude/settings.json`. In project, local, and managed settings, and with the `--settings` flag, this key applies to every model.
402402 
403403### `enforceAvailableModels`
404404 
from line 3300
33003300 
33013301### `timeZone`
33023302 
3303Show the times in the interface in a time zone other than your system's. Set it to an [IANA time zone name](https://www.iana.org/time-zones), such as `"UTC"` or `"Europe/Dublin"`. The times that [`timeFormat`](#timeformat) controls then show in th
3303Show the times in the interface in a time zone other than your system's. Set it to an [IANA time zone name](https://www.iana.org/time-zones), such as `"UTC"` or `"Europe/Dublin"`. The times that [`timeFormat`](#timeformat) controls then show in this zone. If `timeFormat` is `"24-hour-utc"`, times stay in UTC and Claude Code ignores this key. `/config` has no row for this key, so set it in a settings file. Requires Claude Code v2.1.257 or later.
3304 
3305* **Scope**: [`Any file`](#scopes)
3306* **Type**: string, an IANA time zone nam

skills Changed · +1 / -1 lines

from line 317
317317 
318318What Claude Code does with a synced skill's body depends on where the session runs:
319319 
320* In a cloud session, the body keeps the behavior a local skill has, because the session runs in an isolated container.
320* In a cloud session, [`!` commands](#inject-dynamic-context) can run under the usual [permission checks](#permission-checks-on-injected-commands).
321321* In a Cowork session on your desktop, the body keeps the behavior a local skill has, except that Claude Code replaces every `!` command line with the [`disableSkillShellExecution` placeholder](#inject-dynamic-context), as it does for every skill you supply there.
322322* In a terminal or VS Code session, [`!` commands](#inject-dynamic-context) can run under the usual [permission checks](#permission-checks-on-injected-commands). To stop them, turn on the [`disableSkillShellExecution`](https://code.claude.com/docs/en/settings-reference#disableskillshellexecution) setting, which also stops `!` commands in your own skills and in plugins.
323323 

web-quickstart Changed · +1 / -1 lines

from line 137
137137The [permission mode control](https://code.claude.com/docs/en/permission-modes.md#switch-permission-modes) shows the permission mode the session will run in:
138138 
139139* **Auto**: a classifier reviews Claude's actions instead of asking you. Appears unless your organization turns off [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode). On claude.ai/code, if it's grayed out, select a model that supports auto mode
140* **Accept edits**: Claude makes changes and pushes a branch without stopping for approval
140* **Accept edits**: Claude can run most shell commands and make most file edits without asking you
141141* **Plan**: Claude proposes an approach and waits for you to approve it before editing files
142142 
143143Cloud sessions don't offer Manual or Bypass permissions. See the [full list of permission modes](https://code.claude.com/docs/en/permission-modes.md#available-modes) for what each one allows.
Feedback