Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

766 pages for errors.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

claude-sonnet-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4 …e carefully before acknowledging the user, since users sometimes make errors themselves. Claude tailors its response format to suit the conversation topic. For example, Claude avoids using markdown o… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …s. * Edge case analysis: Percentage of edge cases handled without errors. **Qualitative scales:** * Likert scales: “Rate coherence from 1 (nonsensical) to 5 (perfectly logical)” * Ex… handle-streaming-refusals Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/handle-streaming-refusals …ng integration, check the following: * **Refusals are responses, not errors.** A refusal arrives as a successful HTTP 200 response with `stop_reason`: `"refusal"`, so monitoring built only on error r… increase-consistency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/increase-consistency …sks. Each prompt then covers a single subtask, reducing inconsistency errors across scaled workflows. ## Keep Claude in character For role-based applications, maintaining consistent character requir… Use Claude Code with a screen reader Claude Code CLI · in the page accessibility …t it is: your messages, Claude's replies and thinking, tool activity, errors and warnings, and prompts. The labels are also searchable, so you can jump between sections of the transcript by searching… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor …capable than the current main model](https://code.claude.com/docs/en/errors.md#advisor-is-less-capable-than-the-current-main-model). Subagents whose own model satisfies the pairing may still use the… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …_turns`, and `session_id` so you can track cost and resume even after errors. Guard for these cases: * After a session crash, the final result is an `error_during_execution` whose cost fields may be… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …otal spend: ${total_spend:.4f}") asyncio.run(main()) ``` ## Handle errors, caching, and output token counts For accurate cost tracking, account for the placeholder output count on assistant messag… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …mpose the message instead of surfacing the raw exception. See [Handle errors](#handle-errors). | | Return images or files | Use `image` or `resource` blocks in the content array. See [Return images an… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …UseFailure` | Yes | Yes | Tool execution failure | Handle or log tool errors | | `PostToolBatch` | No | Yes | A full batch of tool calls resolves, once per batch before the next model call | Inject co… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …he stored credentials for MCP server](https://code.claude.com/docs/en/errors.md#couldnt-read-the-stored-credentials-for-mcp-server). Before Claude Code v2.1.307, the status was `needs-auth` instead wh… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …reviewed. Unattended coding automation, like a CI job that fixes lint errors or reviews diffs, still fits the preset because the work itself is what the preset is written for. * **Different identity**… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …log events after the task completes. The CLI fails silently on export errors by default: if the endpoint is unreachable or rejects the data, the agent still runs normally and the CLI drops the telemet… Plugins in the SDK Claude Code CLI · in the page agent-sdk/plugins …esn't appear in the init message's `plugins` list, check its [`plugin_errors`](https://code.claude.com/docs/en/agent-sdk/typescript#sdksystemmessage) field for the reason, then work through these chec… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …set [`CLAUDE_CODE_RETRY_WATCHDOG=1`](https://code.claude.com/docs/en/errors#tune-retry-behavior) to keep retrying transient capacity errors. With `CLAUDE_CODE_RETRY_WATCHDOG` set on v2.1.199 or later… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …y. > > For the causes and fixes behind these and other authentication errors, see [Authentication errors](https://code.claude.com/docs/en/errors.md#authentication-errors) in the Error reference. ###… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …ubleshooting For general skills troubleshooting, such as YAML syntax errors and debugging, see the [Claude Code skills troubleshooting section](https://code.claude.com/docs/en/skills.md#troubleshooti… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …ambiguous, or the agent hits its retry limit trying to fix validation errors. It can also happen without any validation failure: a [model fallback](https://code.claude.com/docs/en/model-config.md#auto… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …ls with [`subagent_type is required`](https://code.claude.com/docs/en/errors#subagent-type-is-required). ## What subagents inherit Unless the subagent is a [fork](https://code.claude.com/docs/en/sub… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting # Troubleshoot the Agent SDK > Fix Agent SDK errors: the Claude Code CLI fails to start or exits, your prompt generator throws, a tool message is too large, or structured output is missing. This pag… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …set [`CLAUDE_CODE_RETRY_WATCHDOG=1`](https://code.claude.com/docs/en/errors#tune-retry-behavior) to keep retrying transient capacity errors. With `CLAUDE_CODE_RETRY_WATCHDOG` set on v2.1.199 or later… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …box file. Entries that don't match the message format are reported as errors and removed from the file; the valid messages are still delivered. Claude Code reports a message as sent only when the wri… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …xits with a [`Workspace not trusted`](https://code.claude.com/docs/en/errors#workspace-not-trusted-when-dispatching-a-background-session) error instead. To run a specific [subagent](https://code.clau… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …-chain credential resolve timed out`](https://code.claude.com/docs/en/errors#aws-default-chain-credential-resolve-timed-out). If your chain runs an interactive sign-in that legitimately needs longer,… Claude Approvals policy file reference Claude Code CLI · in the page approvals-policy …is in an open pull request, Approvals can check the changed file for errors, and applies none of its rules. The rules on the default branch decide for that pull request. Once the change merges, new… Share session output as artifacts Claude Code CLI · in the page artifacts …e.ai login`, see [that error's entry](https://code.claude.com/docs/en/errors.md#artifacts-need-a-claude-ai-login) for how to sign in. ### When Claude Code asks before publishing A new artifact that… Authentication Claude Code CLI · in the page authentication …with an [expired profile login error](https://code.claude.com/docs/en/errors.md#anthropic-profile-login-expired) until you sign in again. You won't see the keyless option in these cases: * You run a… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …he server returned no safety verdict](https://code.claude.com/docs/en/errors.md#the-server-returned-no-safety-verdict): the denial you see when the server gives no verdict for an action * [Manage cost… Configure auto mode Claude Code CLI · in the page auto-mode-config …ot determine the safety of an action](https://code.claude.com/docs/en/errors.md#auto-mode-cannot-determine-the-safety-of-an-action) ### Fix a denial with an allow rule, an environment entry, or a ret… Best practices for Claude Code Claude Code CLI · in the page best-practices …: pnpm tsc --noEmit # Conventions - Use the error helpers in src/lib/errors.ts, never throw raw strings - src/legacy/ is still live but don't copy its patterns into new code # Gotchas - Integration… Claude Code changelog Claude Code CLI · in the page changelog …y_idle_sessions` metric counts such sessions * Changed most warnings, errors and notices in the conversation to start with a ∷ mark, so they are easier to tell apart from Claude's replies * Changed `c… Checkpointing Claude Code CLI · in the page checkpointing …fail with [`No files were restored`](https://code.claude.com/docs/en/errors#no-files-were-restored). To keep snapshots longer, set [`cleanupPeriodDays`](https://code.claude.com/docs/en/settings-refer… Use Claude Code with Chrome Claude Code CLI · in the page chrome …oding tasks in a single workflow: * **Live debugging**: read console errors and DOM state directly, then fix the code that caused them * **Design verification**: build a UI from a Figma mock, then op… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …icy requires a Cloud gateway sign-in](https://code.claude.com/docs/en/errors.md#administrator-policy-requires-a-cloud-gateway-sign-in). Developers who select a cloud provider through an environment va… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …0`, which is strict. Raise if you see "token expired / not yet valid" errors right after sign-in due to host/IdP clock skew. | | `token_endpoint_auth_method` | No | How the gateway authenticates to th… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …icy requires a Cloud gateway sign-in](https://code.claude.com/docs/en/errors.md#administrator-policy-requires-a-cloud-gateway-sign-in) describes the messages developers see. See [where each mechanism… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …before relying on it. ## Troubleshooting For gateway boot and login errors, see the platform-agnostic [troubleshooting table](https://code.claude.com/docs/en/claude-apps-gateway-deploy.md#troublesho… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …to your environment. ## Troubleshooting For gateway boot and login errors, see the platform-agnostic [troubleshooting table](https://code.claude.com/docs/en/claude-apps-gateway-deploy.md#troublesho… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …ed config file. The [refusal message](https://code.claude.com/docs/en/errors.md#the-repository-upload-cant-follow-a-git-setting) names the setting and the fix * Sessions created from a bundle can push… Explore the .claude directory Claude Code CLI · in the page claude-directory …he cause is a settings file that can't be read or parsed, or settings errors with `cleanupPeriodDays` or `desktopSessionCleanupPeriodDays` set, `/status` shows a warning until you fix the cause. When… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …he project reports when access is still wrong, see [Repository access errors](#repository-access-errors). ## Work in a project Give Claude work through the project conversation: tasks one at a time… Claude Ship Claude Code CLI · in the page claude-ship …de.claude.com/docs/en/code-review.md): looks for issues such as logic errors, security vulnerabilities, and broken edge cases * [PR Steward](https://code.claude.com/docs/en/pr-steward.md): works on re… CLI reference Claude Code CLI · in the page cli-reference …ude -c -p "query"` | Continue via SDK | `claude -c -p "Check for type errors"` | | `claude -r "<session>" "query"` | Resume session by ID or name | `claude -r "auth-refactor" "Finish this PR"` | | `cl… Configure cloud environments Claude Code CLI · in the page cloud-environments …e [what a blocked request looks like](https://code.claude.com/docs/en/errors.md#host-not-allowed-in-a-cloud-session). | | **Full** | Any domain | Whichever level you pick, sessions can still reach th… Run tool calls from code with Code Mode Claude Code CLI · in the page code-mode …laude can get the unredacted output * **Remove images, PDFs, and page errors**: to hide `images`, `documents`, or `imagePagesFailed`, set that field to `[]` and return the copy each time the hook runs… Code Review Claude Code CLI · in the page code-review # Code Review > Set up automated PR reviews that catch logic errors, security vulnerabilities, and regressions using multi-agent analysis of your full codebase <Note> Code Review is in research pr… Customize Code Review Claude Code CLI · in the page code-review-customize …Do not report - Anything CI already enforces: lint, formatting, type errors - Generated files under `src/gen/` and any `*.lock` file - Test-only code that intentionally violates production rules ##… Commands Claude Code CLI · in the page commands …from the added directory. You can't add most [network paths](/docs/en/errors#working-directory-is-a-network-path), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](/docs… Common workflows Claude Code CLI · in the page common-workflows …escriptions would be unclear or cumbersome > * Include screenshots of errors, UI designs, or diagrams for better context > * You can work with multiple images in a conversation > * Image analysis work… Explore the context window Claude Code CLI · in the page context-window …al concepts, files examined or modified with important code snippets, errors and how they were fixed, pending tasks, and current work. It replaces the verbatim conversation: full tool outputs and inte…
Feedback