Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,158 pages for head.

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

claude-sonnet-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-5 …de avoids over-formatting responses with elements like bold emphasis, headers, lists, and bullet points. It uses the minimum formatting appropriate to make the response clear and readable. In typical… claude-sonnet-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-6 …<lists_and_bullets> Claude avoids over-formatting with bold emphasis, headers, lists, and bullet points, using the minimum formatting needed for clarity. If the person explicitly asks for minimal for… claude-sonnet-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5-5 …y requests minimal formatting or for Claude to not use bullet points, headers, lists, bold emphasis and so on, Claude should always format its responses without these things as requested. Claude neve… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …}, { "text": "Jane Doe, a local hero, made headlines last week for saving... In city hall news, the budget... Meteorologists predict...", "summary": "Community… Use Claude Code with a screen reader Claude Code CLI · in the page accessibility …spinners render as static text * Tables in Claude's replies read as `Header: value` sentences instead of a box-character grid * Diffs read as plain text, line by line with `+` and `-` marking added a… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor …nal picker: in [non-interactive mode](https://code.claude.com/docs/en/headless.md) with `-p`, in the Agent SDK, in the desktop app, and over [Remote Control](https://code.claude.com/docs/en/remote-con… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …docs/en/agent-sdk/cost-tracking) starts the budget over. #### Budget headroom Claude Code compares spend with the `max_budget_usd` / `maxBudgetUsd` cap after model responses arrive, because each res… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …scribed in [background tasks at exit](https://code.claude.com/docs/en/headless.md#background-tasks-at-exit), before emitting the result. The result's `total_cost_usd`, `duration_api_ms`, and `modelUsa… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …, # Base64-encode the raw bytes "mimeType": response.headers.get( "content-type", "image/png" ), # Read MIME type from the response }… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …back throws or returns output that fails validation, the action goes ahead and your app receives an [`SDKInformationalMessage`](https://code.claude.com/docs/en/agent-sdk/typescript#sdkinformationalmes… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …e.com/docs/en/agent-sdk/typescript#startup) to pre-warm subprocesses ahead of incoming traffic. If you don't know a session's working directory until its first request arrives, pre-warm with [`prewarm… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …For the `.mcp.json` form, use the same fields as the example at [HTTP headers for remote servers](#http-headers-for-remote-servers), with `"type": "sse"` for an SSE server. In code, pass the server's… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …cations differ. The preset embeds that location in the system prompt ahead of your `append` text. The location defaults to an absolute path under `~/.claude/projects/` named for the repository's path… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …DPOINT": "http://collector.example.com:4318", "OTEL_EXPORTER_OTLP_HEADERS": "Authorization=Bearer your-token", } async def main(): options = ClaudeAgentOptions(env=OTEL_ENV) async for me… Agent SDK overview Claude Code CLI · in the page agent-sdk/overview …Script, [run the CLI as a subprocess](https://code.claude.com/docs/en/headless.md) with the `-p` flag and `--output-format json`. ## Capabilities These Claude Code capabilities are available in the… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …docs/en/permission-modes.md#critical-paths). **Use when:** you run a headless agent and want a hard deny for each call that would otherwise prompt. #### Bypass permissions mode (`bypassPermissions`)… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …e reaches this USD value. The estimate can pass this value, so [leave headroom](https://code.claude.com/docs/en/agent-sdk/agent-loop.md#budget-headroom). Counts only the call's own spend; totals resto… Securely deploying AI agents Claude Code CLI · in the page agent-sdk/secure-deployment …n that boundary. | Technology | Isolation strength | Performance overhead | Complexity | | - | - | - | - | | Sandbox runtime | Good (secure defaults) | Very low | Low | | Containers (Docker) | Setup… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …nses using the Agent SDK via the CLI](https://code.claude.com/docs/en/headless.md). ## Enable streaming output To enable streaming, set `include_partial_messages` (Python) or `includePartialMessages… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …to research Anthropic and return the company name, year founded, and headquarters as structured output. ```typescript TypeScript theme={null} import { query } from "@anthropic-ai/claude-agent-sdk";… Scale to many tools with tool search Claude Code CLI · in the page agent-sdk/tool-search …itions upfront, because their serving stacks reject the required beta header. `ENABLE_TOOL_SEARCH` can't override this. Before Claude Code v2.1.221, the SDK disabled tool search for all models on Goo… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …`CLAUDE_AGENT_SDK_CLIENT_APP` to identify your app in the User-Agent header | | `executable` | `'bun' \| 'deno' \| 'node'` | Auto-detected | JavaScript runtime to use | | `executableArgs` | `string[]… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …: [ { "question": "How should I format the output?", "header": "Format", "options": [ { "label": "Summary", "description": "Brief overview" }, { "label": "Detaile… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …each owned by a different teammate Agent teams add coordination overhead and use significantly more tokens than a single session. They work best when teammates can operate independently. For sequent… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …you, or done. The new session uses the model shown in the agent view header. [Which permission mode it starts in](#permission-mode-model-and-effort) depends on how you opened agent view. Every promp… Run agents in parallel Claude Code CLI · in the page agents …rent session, named background subagents appear in the @-mention typeahead with their status. The `/agents` command prints a notice pointing to the subagent file locations. To [create and edit custom… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …rity ``` Claude Code sends this as the `X-Amzn-Bedrock-Service-Tier` header on every [Invoke API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.htm… Share session output as artifacts Claude Code CLI · in the page artifacts …it updates in place as the session continues. Share it from the page header when you want someone else to see it too. ![An artifact open in a browser at claude.ai/code/artifact. The viewer header sh… Authentication Claude Code CLI · in the page authentication …AUTH_TOKEN` environment variable. Sent as the `Authorization: Bearer` header. Use this when routing through an [LLM gateway or proxy](https://code.claude.com/docs/en/llm-gateway) that authenticates wi… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …smissed it. In [non-interactive mode](https://code.claude.com/docs/en/headless.md) with `-p` it prints the text to stderr, and in `stream-json` output it emits a `system` warning message, which Agent… Configure auto mode Claude Code CLI · in the page auto-mode-config …e agent's own unpushed work: either no prior `git commit` is visible (HEAD pre-dates the session), or a `git push` of the current branch is visible after the most recent commit (it has been pushed). C… Best practices for Claude Code Claude Code CLI · in the page best-practices …see from the code alone: * A deploy process that lives in someone's head * A file that must never be read * A check that has to pass before anything counts as done * A budget you need to stay under… Claude Code changelog Claude Code CLI · in the page changelog …ent. Set `base_url` on the upstream to use another endpoint * Changed headless sessions to reload mods in `.claude/skills` when their files change; set `CLAUDE_CODE_PLUGIN_DIR_WATCH=0` to turn this of… Channels reference Claude Code CLI · in the page channels-reference …mit)) }, }) return new Response(stream, { headers: { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache' }, }) } // POST: forward to Claude as a… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …hat Claude Code expects from any gateway: the endpoints it calls, the headers and body fields to forward, and what stops working when they're stripped. A running Claude apps gateway also serves its ow… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …because the gateway never derives its own origin from `X-Forwarded-*` headers; they are client-spoofable. Boot fails without it. `trusted_proxies` below governs client-IP resolution only. Also require… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …teway reads client IPs from `X-Forwarded-For`. The gateway honors the header only when the TCP peer is trusted. The [Google Cloud](https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.md) and [A… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …s discovery document only from this value, never from `X-Forwarded-*` headers. * `trusted_proxies`: the front end's source ranges. The gateway honors `X-Forwarded-For` only when the TCP peer is in thi… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …s discovery document only from this value, never from `X-Forwarded-*` headers. * `trusted_proxies`: the front end's source ranges. The gateway honors `X-Forwarded-For` only when the TCP peer is in thi… Claude apps gateway spend limits Claude Code CLI · in the page claude-apps-gateway-spend-limits …d. ### Authenticate to the admin API Send one of: * An `x-api-key` header matching a key in [`admin.write_keys`](https://code.claude.com/docs/en/claude-apps-gateway-config#admin) for full access, o… Explore the .claude directory Claude Code CLI · in the page claude-directory …ot exceptions - Auth middleware expects Bearer token in Authorization header - Tests use factory functions in test/factories/ ## Recurring issues - Missing null checks on API responses (src/api/*) -… Claude Code on Claude Platform on AWS Claude Code CLI · in the page claude-platform-on-aws …Claude Code sends it on every request as the `anthropic-workspace-id` header. Replace the example `wrkspc_01ABCDEFGHIJKLMN` value with your own workspace ID from your Claude Platform on AWS setup. Cl… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …anch to target, how a thread checks its work, and what needs your go-ahead. 2. Send one small piece of the real work, or start one of the threads Claude suggested if it offered any, and open the threa… claude-tag Claude Code CLI · in the page claude-tag …t-state="closed" data-page-mode="none" data-current-path="/" > <head> <!-- AI agents: this page is available as Markdown at /docs/claude-tag/overview.md. Request it directly or send "Accept:… CLI reference Claude Code CLI · in the page cli-reference …y-skip-permissions` routes to `daemon` this way; with any other flag ahead of `daemon`, the subcommand doesn't run. ## CLI flags Customize Claude Code's behavior with these command-line flags. `clau… Configure cloud environments Claude Code CLI · in the page cloud-environments …ment isn't listed under **Cloud**, select the **More** row under that heading. Hover over the environment's row and select the settings icon that appears on its right to open its dialog. When you add… Code Review Claude Code CLI · in the page code-review …st in the current diff. Those appear under an **Additional findings** heading in the review body text rather than as inline comments. ## Review a diff locally The [`/code-review` command](/docs/en/c… Review locally with /code-review Claude Code CLI · in the page code-review-local …ted changes | `/code-review` | | Your last 15 commits | `/code-review HEAD~15..HEAD` | | One branch against another | `/code-review main...my-feature` | | A single commit, where `abc1234` is the commi… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …repository owner and name, and `<commit-sha>` with the pull request's head commit: ```bash theme={null} gh api repos/OWNER/REPO/commits/<commit-sha>/check-runs --jq '.check_runs[] | {id, name}' ```… Troubleshoot Code Review Claude Code CLI · in the page code-review-troubleshooting …GitHub's **Checks** tab. The re-run covers the pull request's current head commit and doesn't subscribe the pull request either. ## Find issues that aren't showing as inline comments If the check ru…
Feedback