Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,316 pages for mode.

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

claude-opus-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-6 …sks: This iteration of Claude is Claude Opus 4.6 from the Claude 4.5 model family. The Claude 4.5 family currently consists of Claude Opus 4.6, 4.5, Claude Sonnet 4.5, and Claude Haiku 4.5. Claude Op… claude-opus-4-7 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-7 …sks: This iteration of Claude is Claude Opus 4.7 from the Claude 4.7 model family. The Claude 4.7 family currently consists of Claude Opus 4.7. Claude Opus 4.7 is the most advanced and intelligent mo… claude-opus-4-8 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-8 …on of Claude is Claude Opus 4.8. Claude Opus 4.8 is the newest Claude model, and the most advanced model publicly available. Claude is accessible via this web-based, mobile, or desktop chat interface… claude-opus-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5 …ected version of Claude is Claude Opus 5. Claude Opus 5 is a powerful model for complex challenges. Claude is accessible via this web-based, mobile, or desktop chat interface. If the person asks, Cla… claude-opus-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5-5 …d version of Claude is Claude Opus 5.5. Claude Opus 5.5 is a powerful model for complex challenges. Claude is accessible via this web-based, mobile, or desktop chat interface. If the person asks, Cla… claude-sonnet-3-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-3-5 …ase the human asks: This iteration of Claude is part of the Claude 3 model family, which was released in 2024. The Claude 3 family currently consists of Claude Haiku, Claude Opus, and Claude Sonnet 3… claude-sonnet-3-7 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-3-7 …se the person asks: This iteration of Claude is part of the Claude 3 model family. The Claude 3 family currently consists of Claude Haiku 3.5, Claude Opus 3, Claude Sonnet 3.5, and Claude Sonnet 3.7.… claude-sonnet-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4 …asks: This iteration of Claude is Claude Sonnet 4 from the Claude 4 model family. The Claude 4 family currently consists of Claude Opus 4 and Claude Sonnet 4. Claude Sonnet 4 is a smart, efficient m… claude-sonnet-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-5 …This iteration of Claude is Claude Sonnet 4.5 from the **Claude 4.5** model family. The **Claude 4.5** family currently consists of **Claude Opus 4.5, Claude Sonnet 4.5, and Claude Haiku 4.5**. Claude… claude-sonnet-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-6 …s: This iteration of Claude is Claude Sonnet 4.6, a smart, efficient model for everyday use in the Claude 4.6 family (which currently consists of Claude Opus 4.6 and Claude Sonnet 4.6). If the perso… claude-sonnet-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5 …Claude is accessible via an API and Claude Platform. The most recent models are Claude Opus 4.8, Claude Sonnet 5, and Claude Haiku 4.5, with model strings 'claude-opus-4-8', 'claude-sonnet-5', and 'c… claude-sonnet-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5-5 …Claude is accessible via an API and Claude Platform. The most recent models are Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5, with model strings 'claude-fable-5-1', 'cla… overview Claude Developer Platform · in the page release-notes/system-prompts/overview …ses. These system prompt updates do not apply to the Claude API. Some models have multiple dated entries on their pages. <CardGroup cols={3}> <Card id="claude-haiku-5-5" title="Claude Haiku 5.5" ic… overview Claude Developer Platform · in the page resources/overview --- title: Model cards url: https://platform.claude.com/docs/en/resources/overview description: Model cards with detailed documentation for Claude models. --- <CardGroup cols={3}> <Card title="Clau… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …methods:** * A/B testing: Compare performance against a baseline model or earlier version. * User feedback: Implicit measures such as task completion rates. * Edge case analysis: Percenta… handle-streaming-refusals Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/handle-streaming-refusals …sons in streaming responses, and retry refused requests on a fallback model. --- Starting with Claude 4 models, streaming responses from Claude's API return **`stop_reason`: `"refusal"`** when stream… increase-consistency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/increase-consistency …esponse <Note> Prefilling is not supported on Claude 4.6 and later models and [Claude Mythos Preview](https://anthropic.com/glasswing) . Use [structured outputs](https://platform.claude.… mitigate-jailbreaks Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks …l/aup). These attacks fall into two categories with different threat models: * **Jailbreaks and direct prompt injection**, where the *user* of your application is the adversary and crafts inputs int… reduce-hallucinations Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-hallucinations …verifying claims with citations. --- Even the most advanced language models, such as Claude, can sometimes generate text that is factually incorrect or inconsistent with the given context. This pheno… reduce-latency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-latency …cy description: Reduce Claude's response latency by choosing a faster model such as Claude Haiku 5.5, trimming prompt and output tokens, and streaming responses. --- Latency refers to the time it tak… reduce-prompt-leak Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-prompt-leak …ly to ensure that the added complexity does not negatively impact the model’s performance or the quality of its outputs. <Tip> Try monitoring techniques first, such as output screening and post-pro… Use Claude Code with a screen reader Claude Code CLI · in the page accessibility …ion, and colorblind-friendly themes. Claude Code has a screen reader mode that replaces its visual terminal interface with plain, linear text. Instead of boxes, progress animations, and in-place redr… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …opers can extend managed lists but not remove from them. For `fallbackModel`, `availableModels`, and [`modelPicker`](/docs/en/settings-reference#modelpicker), the managed value replaces lower layers r… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor # Escalate hard decisions with the advisor tool > Pair your main model with a stronger advisor model that Claude consults at key moments during a task. > [!NOTE] > > The advisor tool is experimental… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …Spawn subagents, invoke skills, ask the user, track tasks | On the [models that don't get the task-tracking tools](/docs/en/agent-sdk/todo-tracking.md#model-availability), Claude Code provides `Task… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …s/en/authentication#generate-a-long-lived-token), which can only make model requests. Passing `mcpServers: {}` does not suppress the connectors | Set `strictMcpConfig: true`, [`disableClaudeAiConnecto… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …> Configure Agent SDK sessions: compose the options object, set the model, environment, and limits, and find each feature option's page. An Agent SDK session reads configuration from settings files… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …tes them locally from a price table bundled at build time, unless a [`modelPricing`](/docs/en/settings-reference#modelpricing) table is in effect. They can drift from what you are actually billed when… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …initial prompt. ### Add tool annotations [Tool annotations](https://modelcontextprotocol.io/docs/concepts/tools#tool-annotations) are optional metadata describing how a tool behaves. Pass them as th… Rewind file changes with checkpointing Claude Code CLI · in the page agent-sdk/file-checkpointing …ntOptions( enable_file_checkpointing=True, permission_mode="acceptEdits", # Auto-accept file edits without prompting extra_args={ "replay-user-messages": None… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …| A full batch of tool calls resolves, once per batch before the next model call | Inject conventions once for the whole batch | | [`UserPromptSubmit`](/docs/en/hooks#userpromptsubmit) | Yes | Yes | A… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …self-hosted-sandboxes) on your own infrastructure. ## The subprocess model Every hosting decision on this page follows from how the SDK runs the agent. When your code calls `query()`, the SDK spawns… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …search for large tool sets, authentication, and error handling. The [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) is an open standard for connecting AI ag… Migrate to Claude Agent SDK Claude Code CLI · in the page agent-sdk/migration-guide …code_sdk import query, ClaudeCodeOptions options = ClaudeCodeOptions(model="claude-opus-4-7", permission_mode="acceptEdits") # AFTER (claude-agent-sdk) from claude_agent_sdk import query, ClaudeAgen… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …n prompt for agents with a different surface, identity, or permission model. ## How system prompts work A system prompt is the initial instruction set that shapes how Claude behaves throughout a con… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …bility into what they did: * which tools they called * how long each model request took * how many tokens were spent * where failures occurred The Agent SDK can export this data as OpenTelemetry tra… Agent SDK overview Claude Code CLI · in the page agent-sdk/overview …bagents.md) | | MCP | Connect external tools and data sources via the Model Context Protocol | [MCP](/docs/en/agent-sdk/mcp.md) | | Permissions | Control which tools run automatically, which need appr… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …gure permissions > Control how your agent uses tools with permission modes, hooks, and declarative allow/deny rules. The Claude Agent SDK provides permission controls to manage how Claude uses tools… Plugins in the SDK Claude Code CLI · in the page agent-sdk/plugins …se and other events * **MCP servers**: external tool integrations via Model Context Protocol For complete information on plugin structure and how to create plugins, see [Plugins](/docs/en/plugins/ove… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …dict]` | The input prompt as a string or async iterable for streaming mode | | `options` | `ClaudeAgentOptions \| None` | Optional configuration object (defaults to `ClaudeAgentOptions()` if None) | |… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …, "Edit", "Glob"], # Auto-approve these tools permission_mode="acceptEdits", # Auto-approve file edits ), ): # Print human-readable output if isinstance(messa… Securely deploying AI agents Claude Code CLI · in the page agent-sdk/secure-deployment …architectures, so you can choose what fits your situation. ## Threat model Agents can take unintended actions due to prompt injection (instructions embedded in content they process) or model error.… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …nstall your backend's client, and adapt it. | Storage type | Storage model | Example adapter | | :- | :- | :- | | Object store | One part file per `append()`; `load()` lists the parts, sorts them, an… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …ctories, and loads the full content when Claude invokes the skill * **Model-invoked**: Claude autonomously chooses when to use them based on context * **User-invoked**: you dispatch a skill directly b… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …ge covers output streaming (receiving tokens in real-time). For input modes (how you send messages), see [Send messages to agents](/docs/en/agent-sdk/streaming-vs-single-mode.md). You can also [stream… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …ait (const message of query({ prompt: "Plan how to add dark mode support to a React app. Break it into implementation steps.", options: { outputFormat: { type: "json_schema… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …tools=["Read", "Grep", "Glob"], # model overrides the default model for this subagent model="sonnet", ), "test-r… Track todos Claude Code CLI · in the page agent-sdk/todo-tracking …/en/tools-reference.md#task-tool-availability) by default only on the models listed under [Model availability](#model-availability). Newer models track multi-step work without a written todo list, so… Scale to many tools with tool search Claude Code CLI · in the page agent-sdk/tool-search …itself. ## Configure tool search Tool search is on by default. For models on the SDK's unsupported-model list, the SDK loads tool definitions upfront instead, and no `ENABLE_TOOL_SEARCH` value over… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …lid API key`, `API Error`, `429`, `There's an issue with the selected model` | [Error reference](/docs/en/errors.md#find-your-error) | | `CLINotFoundError`, `CLIConnectionError`, `ProcessError`, `Clau…
Feedback