608 pages for reason.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Commands
Claude Code CLI · in the page
commands
…. `/model` and `/effort` adjust which model you're using and how much reasoning it applies. When the conversation gets long, `/context` shows what's filling the window and `/compact` summarizes it to…
Explore the context window
Claude Code CLI · in the page
context-window
…eplaces the verbatim conversation: full tool outputs and intermediate reasoning are gone. Claude Code re-reads the files modified most recently and re-injects the skills you invoked, listed below. Cla…
Run Claude Code behind a corporate launcher
Claude Code CLI · in the page
corporate-launcher
…d, Claude Code refuses to start the affected process and [reports the reason](https://code.claude.com/docs/en/errors.md#claude_code_process_wrapper-launcher-errors). In a settings file, write the arr…
Manage costs effectively
Claude Code CLI · in the page
costs
…ch Claude Code turn carries file contents, tool calls, and multi-step reasoning, so one debugging session can consume more than a day of chat. ### Claude Console API organizations manage Claude Code…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…ult under Claude's `SendMessage` call begins `Not sent` and names the reason. Once the cause is fixed in that session, a later listing no longer shows this condition, and Claude can message that sessi…
Debug your configuration
Claude Code CLI · in the page
debug-your-config
…can be defined correctly but still not provide tools for a few common reasons: * Project-scoped servers in `.mcp.json` require a one-time approval. If you dismissed the prompt, the server stays disab…
Desktop application
Claude Code CLI · in the page
desktop
…aude takes, plus Claude's thinking | Use Thinking to follow Claude's reasoning with tool calls still collapsed. Use Verbose when debugging why Claude took a particular action. Claude Desktop versions…
Environment variables
Claude Code CLI · in the page
env-vars
…_ADAPTIVE_THINKING` | Set to `1` to disable [adaptive reasoning](/docs/en/model-config#adjust-effort-level) on Opus 4.6 and Sonnet 4.6 and fall back to the fixed thinking budget contro…
Error reference
Claude Code CLI · in the page
errors
…rogram-file-is-gone) | | `Remote Control disconnected:` followed by a reason that mentions a `share link` | [Remote Control](https://code.claude.com/docs/en/remote-control.md#what-connected-devices-se…
Extend Claude Code
Claude Code CLI · in the page
features-overview
…ubagents, hooks, MCP, and plugins. Claude Code combines a model that reasons about your code with [built-in tools](https://code.claude.com/docs/en/how-claude-code-works.md#tools) for file operations,…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
….com/docs/en/errors#cannot-switch-renderers-in-this-session) with the reasons. It doesn't switch or save anything. You can also set the `CLAUDE_CODE_NO_FLICKER` environment variable before starting C…
Glossary
Claude Code CLI · in the page
glossary
…m-dispatch) ## E ### Effort level A setting that controls adaptive reasoning, which lets the model decide whether and how much to think on each step. Higher effort means more thinking tokens and de…
Keep Claude working toward a goal
Claude Code CLI · in the page
goal
…ch verdict the evaluator returns, and you can press Ctrl+O to see the reason behind it. The status view also shows the most recent reason, so you can see what Claude is working toward next. ### Write…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…arning: 1 MCP server skipped due to invalid config:`, followed by the reason for each skipped entry. When you redirect stderr, or when a program such as a CI runner or an SDK host captures it, Claude…
Hooks reference
Claude Code CLI · in the page
hooks
…olUse", > permissionDecision: "deny", > permissionDecisionReason: "Destructive command blocked by hook" > } > }' > else > exit 0 # no decision; normal permission flow applies > fi…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…s/en/hooks.md#exit-code-0) to Claude's context. * **Exit 2**: write a reason to stderr. Depending on the event, Claude receives it as feedback so it can adjust, the user sees it, or no message appears…
How Claude Code works
Claude Code CLI · in the page
how-claude-code-works
…The agentic loop is powered by two components: [models](#models) that reason and [tools](#tools) that act. Claude Code is the layer around the model that provides the tools and manages the context the…
Customize keyboard shortcuts
Claude Code CLI · in the page
keybindings
…Reserved shortcuts These shortcuts cannot be rebound: | Shortcut | Reason | | :- | :- | | Ctrl+C | Hardcoded interrupt/cancel | | Ctrl+D | Hardcoded exit | | Ctrl+M | Claude Code always receives it…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…'adaptive' found` | The upstream model build doesn't accept adaptive reasoning, which Claude Code requests for Claude Opus 4.6, Claude Sonnet 4.6, Claude Haiku 5.5, Claude Fable 5, and later models |…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…s a gateway alias | Thinking with a fixed budget rather than adaptive reasoning, and no effort or context management fields. Claude Code still sends [mid-conversation system messages](#feature-pass-th…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…gateway alias `prod-opus`, runs on default assumptions for [adaptive reasoning](https://code.claude.com/docs/en/model-config.md#adaptive-reasoning-and-fixed-thinking-budgets), the effort parameter, a…
Control MCP server access for your organization
Claude Code CLI · in the page
managed-mcp
…erver silently disappears, the user gets no signal that policy is the reason, so tell affected users which servers are blocked when you roll out a new restriction. ## Monitor MCP usage When you conf…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…"url": "https://example.com/mcp" } } } ``` For security reasons, Claude Code prompts for approval in interactive sessions before using project-scoped servers from `.mcp.json` files. To r…
Model configuration
Claude Code CLI · in the page
model-config
…coding tasks | | **`opus`** | Uses the latest Opus model for complex reasoning tasks | | **`haiku`** | Uses the fast and efficient Haiku model for simple tasks | | **`sonnet[1m]`** | Uses Sonnet with…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…all` | `true` when the response contained tool-use blocks | | | `stop_reason` | API response `stop_reason`, such as `end_turn`, `tool_use`, `max_tokens`, `stop_sequence`, `pause_turn`, or `refusal` |…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…s, the log shows a `Failed to read` or `Failed to load` line with the reason instead. You can also run `/status` in an interactive session and check these rows: * **Proxy**: shows the active proxy U…
Output styles
Claude Code CLI · in the page
output-styles
…| | [Proactive](#proactive) | Claude starts work right away and makes reasonable assumptions rather than asking about routine decisions | You want Claude to keep working through routine decisions, and…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…h the log for `ignoring CLAUDE_CODE_AUTO_MODE_MODEL`, which gives the reason and any step to take * **No such line**: read `Auto mode server` in `/status` at the Claude Code prompt: * **`Enabled`**:…
Configure permissions
Claude Code CLI · in the page
permissions
…the result. * **No**: Claude Code sends your comment to Claude as the reason for the denial, and Claude continues working. If you select **No** without a comment on a prompt from the main conversation…
Test plugins with evals
Claude Code CLI · in the page
plugin-evals
…rst run. `results.json` is still written with `partial: true` and the reason | | 130 | Interrupted. Partial results are written | | 143 | Terminated, such as by a CI timeout | The with-minus-without…
Plugin commands reference
Claude Code CLI · in the page
plugins/cli-reference
…hout writing when it can't scaffold safely, and the message names the reason. These are common reasons: * An unknown `--with` value * An existing scaffold at the target without `--force` * A managed…
Create a marketplace
Claude Code CLI · in the page
plugins/create-marketplace
…y. It reports: * JSON syntax errors, as `json: Invalid JSON syntax: <reason>` * Missing required fields, such as `owner: Invalid input` * A marketplace or plugin name that breaks the naming rules in…
Install and manage plugins
Claude Code CLI · in the page
plugins/install
…s `The plugin couldn't`. Open the **Errors** tab in `/plugin` for the reason, then see [After install: plugin not working](https://code.claude.com/docs/en/plugins/troubleshooting.md#plugin-installed-b…
Marketplace reference
Claude Code CLI · in the page
plugins/marketplace-reference
…d value fails the install with a message that names the value and the reason. The refused values include: * **A git address, a folder or `file:` path, or an `npm:` alias**: use a [`github`, `url`, or…
Manage mods for your organization
Claude Code CLI · in the page
plugins/mods/admin
…-claude-code). A user whose mod was refused or didn't load finds the reason in their debug log. [Refusal messages](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#refusal-messages) lists…
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…failure doesn't reject the call, so check `r.isAnswered`, and read `r.reason` when it's `false`. The call rejects for a request Claude Code won't send, such as a model your organization blocks. [The…
Create a mod
Claude Code CLI · in the page
plugins/mods/create
…d](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md): the reasons a mod does nothing, and the debug log * [Read the source of built-in mods](https://code.claude.com/docs/en/plugins/mods/ov…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…what happened. * **Withhold the result from Claude**: return `{ deny: reason }` after `await next(e)`. Claude reads your reason in place of what `next` returned. When the tool ran, the deny keeps its…
Draw in the interface with a mod
Claude Code CLI · in the page
plugins/mods/interface
…Placed: true }`. When the pane is waiting, `isPlaced` is `false` and `reason` is a string that says why. A waiting pane appears when the user opens it or widens the terminal. To say something is avail…
Mods overview
Claude Code CLI · in the page
plugins/mods/overview
…d](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md): the reasons a mod does nothing, and the debug log * [Manage mods for your organization](https://code.claude.com/docs/en/plugins/mods/a…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…` is set, so a resumed subagent isn't counted again. Return `{ deny: reason }` to refuse a resumed run. The run doesn't start, and the subagent stays as it was. When a `SendMessage` call asked for th…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…starting `claude plugin test: hooks modules are turned off` with the reason, and exits with status 1. ### Stub what Claude Code would answer No model, store, or tool runs in a test, so wherever you…
Troubleshoot a mod
Claude Code CLI · in the page
plugins/mods/troubleshoot
…ile checking a call that a mod approved, so it refused the call | The reason Claude reads for the denied call | | `is not for plugins outside policy to change` | Your mod tried to change an environmen…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…fetching anything and refused it. The message names the value and the reason: ```text theme={null} "github:acme/formatter" was not installed: it is not an http or https link. An npm plugin source mus…
Prompt library
Claude Code CLI · in the page
prompt-library
…me the constraint Claude missed, not just that it's wrong. A specific reason gives Claude a concrete constraint to satisfy on the retry, instead of guessing again.", next: "Press `Esc` twice to op…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…the indicator changes to show the failure, and Claude Code shows the reason in a notification and adds it to the conversation. Run `/remote-control` to reconnect, unless the reason says the session c…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…lowedDomains`. Plain `ssh`, `scp`, and `rsync` over SSH fail for the reason [the database client entry](#a-database-client-or-other-non-http-tool-fails-to-reach-an-allowed-host) gives. ### A databas…
Run prompts on a schedule
Claude Code CLI · in the page
scheduled-tasks
…ctive, longer waits when nothing is pending. The chosen delay and the reason for it are printed at the end of each iteration. The example below checks CI and review comments, with Claude waiting long…
Catch security issues as Claude writes code
Claude Code CLI · in the page
security-guidance
…ity/log.txt`. Check there first if reviews are not appearing. Common reasons a review layer skips: * The directory is not a git repository: the end-of-turn and commit reviews require git state and s…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…reaches 128 KB: ```text theme={null} Session <id> finished: failed — reason: child exited 126: /opt/wrapper.sh: line 9: /usr/local/bin/claude: Argument list too long ``` Linux limits each single arg…