1,431 pages for text.
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
…/android). --- Only one version, January 18, 2026, uses `**` to mark text that changed from the version before it. ## January 18, 2026 ```text wrap <claude_behavior> <product_information> Here is s…
claude-sonnet-4-6
Claude Developer Platform · in the page
release-notes/system-prompts/claude-sonnet-4-6
…oid app](https://anthropic.com/android). --- ## November 9, 2026 ```text wrap <claude_behavior> <product_information> Here is some information about Claude and Anthropic's products in case the perso…
claude-sonnet-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-sonnet-5
…oid app](https://anthropic.com/android). --- ## November 9, 2026 ```text wrap <claude_behavior> <product_information> Here is some information about Claude and Anthropic's products in case the perso…
claude-sonnet-5-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-sonnet-5-5
…oid app](https://anthropic.com/android). --- ## November 9, 2026 ```text wrap <claude_behavior> <product_information> Here is some information about Claude and Anthropic's products in case the perso…
develop-tests
Claude Developer Platform · in the page
test-and-evaluate/develop-tests
…use or share certain details? </Accordion> <Accordion title="Context utilization"> How effectively does the model use provided context? How well does it reference and build upon information…
handle-streaming-refusals
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals
…```json { "role": "assistant", "content": [ { "type": "text", "text": "Hello.." } ], "stop_reason": "refusal", "stop_details": { "type": "refusal", "category": "…
increase-consistency
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/increase-consistency
…e. <Accordion title="Example: Standardizing customer feedback"> ```text User wrap You're a Customer Insights AI. Analyze this feedback and output in JSON format with keys: "sentiment" (positive/n…
mitigate-jailbreaks
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks
…n title="Example: Harmlessness screen for content moderation"> ```text User wrap A user submitted this content: <content> {{CONTENT}} </content> Classify whether this content…
reduce-hallucinations
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-hallucinations
…most advanced language models, such as Claude, can sometimes generate text that is factually incorrect or inconsistent with the given context. This phenomenon, known as “hallucination,” can undermine…
reduce-latency
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-latency
…content": "Summarize this customer feedback in 2 sentences: [feedback text]"}] }' ``` ```bash CLI # For time-sensitive applications, use Claude Haiku 5.5 at low effort ant messages create…
reduce-prompt-leak
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-prompt-leak
…pt-leak description: Reduce the risk of prompt leaks by separating context from user queries, filtering Claude's outputs, and auditing prompts, without degrading task performance. --- Prompt leaks ca…
Use Claude Code with a screen reader
Claude Code CLI · in the page
accessibility
…r mode that replaces its visual terminal interface with plain, linear text. Instead of boxes, progress animations, and in-place redraws, Claude Code prints labeled lines that a screen reader such as V…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…nt loop works > Understand the message lifecycle, tool execution, context window, and architecture that power your SDK agents. The Agent SDK lets you embed Claude Code's autonomous agent loop in you…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…for block in message.content: if hasattr(block, "text"): print(block.text) if isinstance(message, ResultMessage) and message.subtype == "success":…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…essage } from "@anthropic-ai/claude-agent-sdk"; function userMessage(text: string): SDKUserMessage { return { type: "user", message: { role: "user", content: text }, parent_tool_use_id: null }; }…
Track cost and usage
Claude Code CLI · in the page
agent-sdk/cost-tracking
…rkload runs many short sessions against the same system prompt and context with gaps longer than 5 minutes between them, the cache expires between sessions and each new session pays full input price.…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…oval-for-specific-tools). | | Remove a built-in tool from Claude's context | Pass a `tools` array listing only the built-ins you want. See [Configure allowed tools](#configure-allowed-tools). | | Let…
Rewind file changes with checkpointing
Claude Code CLI · in the page
agent-sdk/file-checkpointing
…ubagents.md) edits aren't tracked, while edits from a [skill with `context: fork`](https://code.claude.com/docs/en/skills#run-skills-in-a-subagent) running in the foreground are. ## How checkpointing…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…to do: allow the operation, block it, modify the input, or inject context into the conversation. This example registers a `PreToolUse` hook (step 1) with a `"Write|Edit"` matcher (step 3) so the cal…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…_EXPORTER_OTLP_ENDPOINT=http://collector.example.com:4318 ``` Prompt text and tool inputs are not included in exports by default. See [Control sensitive data in exports](https://code.claude.com/docs/…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…r 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 agents to e…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…uct-specific rules like coding standards, output format, or domain context | `claude_code` preset with `append` | Everything above, with your instructions added after the preset. Nothing is removed, s…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…es to your application The SDK automatically propagates W3C trace context into the CLI subprocess. When you call `query()` while an OpenTelemetry span is active in your application, the SDK injects `…
Agent SDK overview
Claude Code CLI · in the page
agent-sdk/overview
…oop](https://code.claude.com/docs/en/agent-sdk/agent-loop.md), and context management that power Claude Code, programmable in Python and TypeScript. ## Compare the Agent SDK to other Claude tools Th…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…ons trigger it: * `permissionMode: 'bypassPermissions'`: the warning text starts with `canUseTool will not be invoked: permissionMode 'bypassPermissions'`. Tool calls are approved before `canUseTool`…
Plugins in the SDK
Claude Code CLI · in the page
agent-sdk/plugins
…her events * **MCP servers**: external tool integrations via Model Context Protocol For complete information on plugin structure and how to create plugins, see [Plugins](https://code.claude.com/docs/…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…| **Conversation** | Single exchange | Multiple exchanges in same context | | **Connection** | Managed automatically | Manual control | | **Streaming Input** | ✅ Supported | ✅ Supported | | **Interru…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…for block in message.content: if hasattr(block, "text"): print(block.text) # Claude's reasoning elif hasattr(block, "name"):…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…ode paths, these tools generate their actions dynamically based on context and goals. This flexibility is what makes them useful, but it also means their behavior can be influenced by the content they…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…error: ${error}`); } // Resume from the store. The agent has full context from the first call. for await (const message of query({ prompt: "Summarize what those files do", options: { sessionStore…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…turn to it later. Returning to a session means the agent has full context from before: files it already read, analysis it already performed, decisions it already made. You can ask a follow-up questio…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…l-invoked**: Claude autonomously chooses when to use them based on context * **User-invoked**: you dispatch a skill directly by sending `/<name>` in a prompt. See [Commands in Agent SDK sessions](#com…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…sponses in real-time > Get real-time responses from the Agent SDK as text and tool calls stream in By default, the Agent SDK yields a complete `AssistantMessage` for each non-empty content block, su…
Send messages to a running agent
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…lient` and pass each message to `client.query()`. Pass a string for a text message. To attach an image, pass an [async generator](https://docs.python.org/3/glossary.html#term-asynchronous-generator) t…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…ed objects back. ## Why structured outputs? Agents return free-form text by default, which works for chat but not when you need to use the output programmatically. Structured outputs give you typed…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
# Subagents in the SDK > Define and invoke subagents to isolate context, run tasks in parallel, and apply specialized instructions in your Claude Agent SDK applications. Subagents are separate agent…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…leted" ? "✅" : task.status === "in_progress" ? "🔧" : "❌"; const text = task.status === "in_progress" && task.activeForm ? task.activeForm : task.subject; console.log(`${id}. ${icon} ${text…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…g them on demand. Instead of loading all tool definitions into the context window upfront, the agent searches your tool catalog and loads only the tools it needs. This approach solves two challenges…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…is a resolved path that points at something that can't run, such as a text file, a directory, or a file without execute permission. Read the native-binary message's libc suggestion as one possible cau…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…nstead. The root entry inlines its own copies of `zod` and `@modelcontextprotocol/sdk`. The `/core` entry imports them from your `node_modules` at the ranges the Agent SDK's `peerDependencies` declar…
TypeScript SDK V2 session API (removed)
Claude Code CLI · in the page
agent-sdk/typescript-v2-preview
…ple below creates a session, sends "Hello!" to Claude, and prints the text response. It uses [`await using`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declar…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…gentOptions async def handle_tool_request(tool_name, input_data, context): # Prompt user and return allow or deny ... options = ClaudeAgentOptions(can_use_tool=handle_tool_request) ``` ``…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…ynthesizing results. Teammates work independently, each in its own context window, and communicate directly with each other. You can also talk to any teammate directly without going through the lead.…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…com/docs/en/settings-reference#defaulttoagentsview) key directly: ```text theme={null} /config defaultToAgentsView=true ``` **2. Start Claude Code** Exit the session, then run `claude` with no argu…
Run agents in parallel
Claude Code CLI · in the page
agents
…egated workers inside one session that do a side task in their own context and return a summary | A side task would flood your main conversation with search results, logs, or file contents you won't r…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…de Code to simplify cost tracking and access control. ## 1M token context window Fable models, Sonnet 5 and later, and Opus 4.7 and later run with the [1M token context window](https://platform.clau…
Track team usage with analytics
Claude Code CLI · in the page
analytics
…trimmed, multiple spaces are collapsed, quotes are standardized, and text is converted to lowercase. #### Time window Sessions from 21 days before to 2 days after the PR merge date are considered f…
Claude Approvals classifiers
Claude Code CLI · in the page
approvals-classifiers
…asks for, and Approvals can carry it out after the run. A run reads text that the pull request's author wrote, and that text can try to steer the classifier's answer. On paths that matter, [ask for…
Claude Approvals and your GitHub rules
Claude Code CLI · in the page
approvals-github-rules
…or an override, or in a `reuse` condition, because [a pull request's text can steer](#classifier-answers-that-a-pull-request-can-steer) it. To limit what a steered answer can change, [add a rule that…
Claude Approvals policy file reference
Claude Code CLI · in the page
approvals-policy
…fault | Description | | :- | :- | :- | :- | | `purpose` | One line of text | Required | Why the rule exists | | [`paths`](#paths) | List of patterns | Required | The changed files that the rule matche…