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
HomeDocsSearch
Search the documentation

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.

claude-sonnet-3-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-3-5 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, and specifying desired length or format. It tries to give concrete examples where possibl… claude-sonnet-3-7 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-3-7 …nnet 3.7, which was released in February 2025. Claude Sonnet 3.7 is a reasoning model, which means it has an additional 'reasoning' or 'extended thinking mode' which, when turned on, allows Claude to… claude-sonnet-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, and specifying desired length or format. It tries to give concrete examples where possibl… claude-sonnet-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-5 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, and specifying desired length or format. It tries to give concrete examples where possibl… claude-sonnet-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-6 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, specifying length or format) with concrete examples where possible, and can point to 'htt… claude-sonnet-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, specifying length or format) with concrete examples where possible, and can point to 'htt… claude-sonnet-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5-5 …ailed, using positive and negative examples, encouraging step-by-step reasoning, requesting specific XML tags, specifying length or format) with concrete examples where possible, and can point to 'htt… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …ve evaluations are hard to assess quickly and at scale. * **Encourage reasoning:** Use a grader model with [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) on, so that it rea… handle-streaming-refusals Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/handle-streaming-refusals …handle-streaming-refusals description: Detect and handle refusal stop reasons in streaming responses, and retry refused requests on a fallback model. featureMetadata: supportedModels: - claude-f… mitigate-jailbreaks Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks …decline the screening request itself, so treat a response with `stop_reason: "refusal"` as a harmful verdict. <Accordion title="Example: Harmlessness screen for content moderation"> ```text Us… reduce-hallucinations Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-hallucinations …ude/thinking) with `display: "summarized"`, and review the summarized reasoning in the `thinking` blocks when an answer looks wrong. This can reveal faulty logic or assumptions. * **Best-of-N verific… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …main.log` in that copy for `[wslPolicyGate] denying WSL session`. The reason for the denial follows in parentheses, such as `(cli-file-present)`. After WSL sessions are enabled, extend your managed s… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor …s `Advisor declined to advise on this request`. If the advisor gave a reason, press `Ctrl+O` to read it. * **Unavailable**: the advisor call failed, and the line reads `Advisor unavailable (<error_cod… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …t how many turns the loop takes, how much it costs, how deeply Claude reasons, and whether tools require approval before running. All of these are fields on [`ClaudeAgentOptions`](https://code.claude.… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …ut` object with `permissionDecision: "deny"` and a `permissionDecisionReason`. The reason is sent to Claude as the tool result. See the [hooks guide](https://code.claude.com/docs/en/agent-sdk/hooks.md… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …"text": f"API error: {response.status_code} {response.reason_phrase}", } ], "is_error": True, }… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …"permissionDecision": "deny", "permissionDecisionReason": "Cannot modify .env files", } } # Empty object: no decision, normal permissions apply return… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …inor. ### Resources 1 GiB RAM, 5 GiB disk, and 1 CPU per agent is a reasonable starting point for a freshly started instance. Memory usage grows with session length and tool activity, so size for th… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …) ``` ## Error handling MCP servers can fail to connect for various reasons: the server process might not be installed, credentials might be invalid, or a remote server might be unreachable. Claude… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …` mode and even when an allow rule matches. The callback receives the reason `Your organization requires approval for this tool`. In `dontAsk` mode the call is denied instead, because that mode never… Plugins in the SDK Claude Code CLI · in the page agent-sdk/plugins …aude.com/docs/en/agent-sdk/typescript#sdksystemmessage) field for the reason, then work through these checks: 1. **Check the path**: ensure the path points to the plugin root directory, the parent of… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …e, ResultMessage): print(f"Interrupted task: terminal_reason={message.terminal_reason!r}") # terminal_reason is "aborted_streaming" or "aborted_tools" #… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …ttr(block, "text"): print(block.text) # Claude's reasoning elif hasattr(block, "name"): print(f"Tool: {block.name}") # Tool being called… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …ed on another host running from a matching working directory. Common reasons to use a session store: * **Multi-host deployments.** Serverless functions, autoscaled workers, and CI runners don't shar… Work with sessions Claude Code CLI · in the page agent-sdk/sessions …picks up with full context from wherever the session left off. Common reasons to resume: * **Follow up on a completed task.** The agent already analyzed something; now you want it to act on that anal… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …`compact_boundary` message arrives. The result text then carries the reason, for example `Not enough messages to compact.` when the session holds a prompt but no reply from Claude yet. A fresh one-sh… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …of a content block | | `message_delta` | Message-level updates (stop reason, usage) | | `message_stop` | End of the message | ## Message flow Claude Code emits an `AssistantMessage` as each non-emp… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …| `'low' \| 'medium' \| 'high' \| 'xhigh' \| 'max' \| number` | No | Reasoning effort level for this agent | | `permissionMode` | `PermissionMode` | No | Permission mode for tool execution within thi… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …*: to detect this case in your code, check the result message's `stop_reason` for `"refusal"`. For what to try next, see [Usage Policy refusal](https://code.claude.com/docs/en/errors.md#usage-policy-r… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …If the promise rejects, check the error for an untyped `startupFailureReason` property holding a [`startup_failure_reason`](#startup_failure_reason) value. `startupFailureReason` requires Agent SDK v0… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …returns. If a user might take longer to respond than your process can reasonably stay running, register a [`PreToolUse` hook](https://code.claude.com/docs/en/agent-sdk/hooks) that returns the [`defer`… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …and) is on, `/bg` leaves the session in the foreground and prints the reason. See [Messages during a watch](https://code.claude.com/docs/en/ship-command-troubleshooting.md#messages-during-a-watch). I… Claude Approvals Claude Code CLI · in the page approvals …what your policy would decide. Claude also posts a comment with the reasons. Where the policy allows it, Claude can post an approving review: * **In github.com repositories where the Claude GitHub… Claude Approvals policy file reference Claude Code CLI · in the page approvals-policy …'s own `verdict` applies. Put the strict verdict on the rule for this reason. * **You want to catch a missing answer**: put an override on `= error` or `= incomplete` above the ones that read the answ… Work with Claude Approvals on a pull request Claude Code CLI · in the page approvals-pull-requests …person (1/2)** * **Claude's comment**: in the conversation, with the reasons for the result. Approvals edits the same comment as the result changes, so it stays where it first appeared To get to a p… Troubleshoot Claude Approvals Claude Code CLI · in the page approvals-troubleshooting …code.claude.com/docs/en/approvals-classifiers.md) run's state and the reason for a missing answer, open **Classifier results** in Claude's comment on the pull request: * **A run reached its budget**:… Share session output as artifacts Claude Code CLI · in the page artifacts …ith annotations beside the relevant lines, so reviewers can read your reasoning next to the code instead of reconstructing it from a description. ```text wrap theme={null} Make an artifact that walks… Configure auto mode Claude Code CLI · in the page auto-mode-config …issiondenied), which receives it as `tool_input`. If your hook reads `reason`, expect no `Auto mode:` prefix, and text such as `Blocked by classifier` instead of `No reason provided`. * **Conversation… Best practices for Claude Code Claude Code CLI · in the page best-practices …t. ### Write a specific prompt A specific prompt helps for the same reason, because it gives Claude information it doesn't already have. If you name the file, describe the symptom, and say what "fix… Champion kit Claude Code CLI · in the page champion-kit …guration is in the thread. ``` ```text theme={null} Plan mode is the reason I am comfortable using this on code that matters. Press Shift+Tab until you see "plan"; it lays out the changes it proposes… Claude Code changelog Claude Code CLI · in the page changelog …n the new look: the row above it takes less room, so more of Claude's reason shows * \[VSCode] Improved reading in the new look: the `/` menu shows what each command does, links show where they lead,… Checkpointing Claude Code CLI · in the page checkpointing …laude/debug/<session-id>.txt` names each skipped path. For every skip reason and the recovery steps, see [the skipped-files entry in the error reference](https://code.claude.com/docs/en/errors.md#rest… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …the gateway's audit log, which records every auth rejection with the reason, such as `email domain not allowed` **6. Log a developer in** This last step happens on a developer machine, not the serv… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …e those services an address the proxy can reach instead. For the same reason the gateway refuses `localhost`-style names outright while proxy-only egress is active. When one of those conditions isn't… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …evelopers can reach those limits on the first morning, for one of two reasons: * **The gateway can't see past your load balancer.** Without [`listen.trusted_proxies`](https://code.claude.com/docs/en/… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …elivery is wrapped as `failed to send message to cloud session <id>: <reason>`. | Message | What it means | | - | - | | `Cloud sessions aren't available with <provider>. They run on Anthropic's infra… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …t alongside static analysis, dependency scanning, and code review: it reasons about your code the way a human security researcher would, which complements the deterministic checks those tools provide.… Run tool calls from code with Code Mode Claude Code CLI · in the page code-mode …nnel). An older version starts without Code Mode, with or without the reason `it isn't open to your account yet` * **Account or provider**: a Claude subscription, a Console account, or a [cloud provid… Customize Code Review Claude Code CLI · in the page code-review-customize …t, not in the skill. Code Review doesn't accept a skill's text as the reason for either. * **Links to repository files**: state in words what a link or `@file` reference points to. The review sees the… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …at was in the codebase before this PR | When the review recorded its reasoning, a finding has a collapsed **Why this was flagged** section. Expand it to read why Claude flagged the issue and how it v…
Feedback