686 pages for input.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
overview
Claude Developer Platform · in the page
models/sonnet-5/overview
…aude-sonnet-5` Context window: 1M tokens · Max output: 128K tokens · Input pricing: $2 / MTok · Output pricing: $10 / MTok [Announcement](https://www.anthropic.com/news/claude-sonnet-5) ## How it c…
overview
Claude Developer Platform · in the page
release-notes/overview
…upport.claude.com/en/articles/14604842). Both cost $8 USD per MTok of input and $40 USD per MTok of output. Claude Fable 5.2 is available on the Claude API, [Amazon Bedrock (`bedrock-runtime`)](https:…
claude-fable-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-fable-5
…ace, Claude's understanding of a situation is dependent on the user's input, which Claude is not able to verify. Claude practices good epistemology and avoids psychoanalyzing or speculating on the mot…
claude-fable-5-1
Claude Developer Platform · in the page
release-notes/system-prompts/claude-fable-5-1
…ace, Claude's understanding of a situation is dependent on the user's input, which Claude is not able to verify. Claude practices good epistemology and avoids psychoanalyzing or speculating on the mot…
claude-opus-4-8
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-4-8
…ign tools that Claude can use to make things in response to user chat inputs. Claude's product knowledge ends here; it has no documentation access, details may have changed, and it doesn't give instr…
claude-opus-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-5
…ign tools that Claude can use to make things in response to user chat inputs. Claude's product knowledge ends here; it has no documentation access, details may have changed, and it doesn't give instr…
claude-opus-5-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-5-5
…ign tools that Claude can use to make things in response to user chat inputs. Claude's product knowledge ends here; it has no documentation access, details may have changed, and it doesn't give instr…
develop-tests
Claude Developer Platform · in the page
test-and-evaluate/develop-tests
…g, such as how well the model needs to perform on rare or challenging inputs. </Accordion> <Accordion title="Consistency"> How similar do the model’s responses need to be for similar types of…
handle-streaming-refusals
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals
…`refusal`** | During streaming when content violates policies | | API input and copyright validation | 400 error codes | When input fails validation checks | | Model-generated refusals | Standard text…
mitigate-jailbreaks
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks
…Defend your application against jailbreaks and prompt injection with input screening, hardened system prompts, and safe handling of untrusted tool content. --- Jailbreaking and prompt injection are…
reduce-hallucinations
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-hallucinations
…hallucinations. * **Iterative refinement:** Use Claude’s outputs as inputs for follow-up prompts, asking it to verify or expand on previous statements. This can catch and correct inconsistencies. *…
reduce-latency
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-latency
…process the prompt and generate the response, without considering the input and output tokens per second. It provides a general idea of the model’s speed. * **Time to first token (TTFT):** This metric…
Use Claude Code with a screen reader
Claude Code CLI · in the page
accessibility
…ers such as macOS Zoom when you set it to `1`. The cursor follows the input caret and, on Claude Code v2.1.218 or later, the highlighted row in menus and panels such as `/config` and `/plugin`. | | [`…
Escalate hard decisions with the advisor tool
Claude Code CLI · in the page
advisor
…pends on how you pay: * **API billing**: you pay the advisor model's input and output rates for advisor tokens * **Subscription plans**: advisor usage counts toward your plan's usage limits, except t…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…he tool result content sent back to Claude. Also emitted for any user inputs you stream mid-loop. * **`StreamEvent`:** only emitted when partial messages are enabled. Contains raw API streaming events…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…gents, and commands. To run without these, pass `settingSources: []`. Inputs such as managed policy settings and the global `~/.claude.json` config are still read. For more information, see [What sett…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…d `error_max_budget_usd` for the spend cap. Single-shot and streaming input handle a cap result differently: * **Single-shot `query()`**: the SDK yields the cap result and then raises, so wrap the lo…
Track cost and usage
Claude Code CLI · in the page
agent-sdk/cost-tracking
…typescript#sdkresultmessage) message at the end, except in [streaming input mode](https://code.claude.com/docs/en/agent-sdk/streaming-vs-single-mode.md), where one `query()` call carries multiple user…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…what the tool does. Claude reads this to decide when to call it. * **Input schema:** the arguments the tool accepts, declared per language: * **TypeScript**: a [Zod schema](https://zod.dev/). The h…
Rewind file changes with checkpointing
Claude Code CLI · in the page
agent-sdk/file-checkpointing
…# For example: error detection, validation failure, or user input if your_revert_condition and safe_checkpoint: await client.rewind_files(safe_checkpoint)…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…it** tool calls for compliance, debugging, or analytics * **Transform inputs and outputs** to inject credentials or redirect file paths * **Require human approval** for sensitive actions like database…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…open and warm differ between the SDKs: * **TypeScript**: use [`streamInput()`](https://code.claude.com/docs/en/agent-sdk/typescript#query-object) to add turns to an active session. Call [`startup()`]…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…missing from an SDK MCP server In the TypeScript SDK, when a tool's input schema can't be converted to JSON Schema, the server you created with [`createSdkMcpServer()`](https://code.claude.com/docs/…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…sdk/claude-code-features.md#what-settingsources-does-not-control) for inputs that are read even when `settingSources` is `[]`. ## Next Steps * Explore the [Agent SDK Overview](https://code.claude.co…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…dk/cost-tracking.md#track-cache-tokens) describes the `cache_creation_input_tokens` and `cache_read_input_tokens` fields on each result message. The SDK assembles the blocks from the array as follows…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…e `claude_code.interaction` span | | `OTEL_LOG_TOOL_DETAILS=1` | Tool input arguments such as file paths, shell commands, and search patterns on `claude_code.tool_result` events, and real agent, skill…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…`canUseTool` callback](https://code.claude.com/docs/en/agent-sdk/user-input) to handle calls that still need approval. ## How permissions are evaluated > [!NOTE] > > If you load a plugin that contai…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…Connection** | Managed automatically | Manual control | | **Streaming Input** | ✅ Supported | ✅ Supported | | **Interrupts** | ❌ Not supported | ✅ Supported | | **Hooks** | ✅ Supported | ✅ Supported |…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…he loop ends. To choose between a single-shot `query()` and streaming input, see [Choose single-shot or streaming input](https://code.claude.com/docs/en/agent-sdk/streaming-vs-single-mode.md#choose-si…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…n be influenced by the content they process: files, webpages, or user input. This is sometimes called prompt injection. For example, if a repository's README contains unusual instructions, Claude Code…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…are [handled in-loop](https://code.claude.com/docs/en/agent-sdk/user-input.md) (they don't end the call). | What you're building | What to use | | :- | :- | | One-shot task: single prompt, no follow…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…this pattern in a session with prior turns, for example in [streaming input mode](https://code.claude.com/docs/en/agent-sdk/streaming-vs-single-mode.md) or when resuming a session. ### Reset context…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…lock_start) - tool_use block StreamEvent (content_block_delta) - tool input chunks... AssistantMessage - complete tool_use block StreamEvent (content_block_stop) StreamEvent (message_delta) StreamEven…
Send messages to a running agent
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…follow-up messages and images to one Agent SDK session with streaming input, read each response, and interrupt a response to redirect Claude. Streaming input keeps an Agent SDK session open so your a…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…as two blocks: * A `tool_use` block named `StructuredOutput`, whose input is the object the agent produced for your schema * A `tool_result` block reading `Structured output provided successfully`…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…): print(f"Subagent invoked: {block.input.get('subagent_type')}") # Check if this message is from within a subagent's context if hasattr(message, "pa…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…time](#display-progress-in-real-time) does. The streamed `tool_use` input is the raw shape the model emitted. Claude Code repairs some close-but-incorrect key names before execution, mapping `id` or…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…LI startup, CLI process exit, large tool calls and results, streaming input, and structured outputs. Entries on this page are keyed to the error you see. Each entry names the cause and what to do. Sy…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…d returns the real path. Outside a compiled executable it returns the input path unchanged, so the same code runs in development without modification. Each compiled executable embeds a single platfor…
TypeScript SDK V2 session API (removed)
Claude Code CLI · in the page
agent-sdk/typescript-v2-preview
…ils> <summary>See the same operation in V1</summary> In V1, both input and output flow through a single async generator. For a basic prompt this looks similar, but adding multi-turn logic require…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…e lead's terminal lists teammates in the agent panel below the prompt input. From the panel: * **Up and down arrows**: select a teammate * **Enter**: open the selected teammate's transcript and messa…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…Agent view shows what every session is doing and which ones need your input. Agent view, opened with `claude agents`, is one screen for all your background sessions: what's running, what needs your i…
Run agents in parallel
Claude Code CLI · in the page
agents
…one screen showing every session, its state, and which ones need your input. * For a [named](https://code.claude.com/docs/en/sub-agents.md#subagent-names) background subagent in the current session, t…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…hain stalls, for example a `credential_process` helper that waits for input it can't receive, the request fails with [`AWS default-chain credential resolve timed out`](https://code.claude.com/docs/en/…
Claude Approvals classifiers
Claude Code CLI · in the page
approvals-classifiers
…and its `values` run from least to most | A definition can also set `inputs`, `tools`, and `budget`. See [Classifier definition file keys](#classifier-definition-file-keys). ### Use the example's ra…
Claude Approvals policy file reference
Claude Code CLI · in the page
approvals-policy
…vals-classifiers#tools) list `reviewers` or `labels`, or that has an [input](https://code.claude.com/docs/en/approvals-classifiers.md#inputs) with no `merge`. List it in an enforced rule with no `if`.…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…``` ### Tune with interactive controls Ask for sliders, toggles, or input fields bound to whatever you are adjusting, so you can explore values directly instead of describing them. ```text wrap the…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…heck the action** Highlight the action's row and read its command or input below the list. Go by the command or input, not the row's description, which Claude or the tool wrote. **3. Approve the act…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…es or the [block limit](https://code.claude.com/docs/en/hooks.md#stop-input) is reached. There's an [example further down](#enforce-the-check-with-a-stop-hook). * By someone who didn't write the code:…
Claude Code changelog
Claude Code CLI · in the page
changelog
…opens it * \[VSCode] Improved screen reader support: "Ready for your input." no longer cuts off Claude's last reply in VoiceOver, and the new look stops saying an agent's state twice * \[VSCode] Impr…