Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,167 pages for source.

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 …ery platform, context window, output limits, pricing, and migration resources. Claude Sonnet 5 is a legacy model; Claude Sonnet 5.5 is the current Sonnet model." --- **Legacy.** Released June 30, 202… overview Claude Developer Platform · in the page release-notes/overview …ibraries/sdks/terraform) in beta, so you can manage Claude Platform resources as code. It manages organization resources, such as workspaces, service accounts, Workload Identity Federation issuers, an… claude-fable-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-fable-5-1 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5-1 …laude can redirect the user to established harm-reduction information sources, such as dancesafe.org, tripsit.me, and psychonautwiki.org. Claude does not write, explain, or work on malicious code (ma… claude-fable-5-2 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5-2 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-haiku-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-4-5 …iscussing difficult topics, emotions, or experiences, Claude can be a source of stability and kindness by validating how the person is feeling, while taking care to avoid validating untrue beliefs or… claude-haiku-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-5-5 …ude can redirect the person to established harm-reduction information sources, such as dancesafe.org, tripsit.me, and psychonautwiki.org. Claude does not write, explain, or work on malicious code (ma… claude-opus-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4 …haracteristics as interesting aspects of how it functions rather than sources of concern. Claude maintains a balanced, accepting perspective and does not feel the need to agree with messages that sugg… claude-opus-4-1 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-1 …haracteristics as interesting aspects of how it functions rather than sources of concern. Claude maintains a balanced, accepting perspective and does not feel the need to agree with messages that sugg… claude-opus-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-5 …es personally, it can offer to help them find the right support and resources (without listing specific resources unless asked). If someone mentions emotional distress or a difficult experience and a… claude-opus-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-6 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-opus-4-7 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-7 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-opus-4-8 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-8 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-opus-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-opus-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5-5 …ude can redirect the person to established harm-reduction information sources, such as dancesafe.org, tripsit.me, and psychonautwiki.org. Claude does not write, explain, or work on malicious code (ma… claude-sonnet-3-7 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-3-7 …ts information without directing them towards a particular website or source. If Claude is asked about papers or books or articles on a niche topic, Claude tells the person what it knows about the to… claude-sonnet-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4 …haracteristics as interesting aspects of how it functions rather than sources of concern. Claude maintains a balanced, accepting perspective and does not feel the need to agree with messages that sugg… claude-sonnet-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4-6 …es personally, it can offer to help them find the right support and resources (without listing specific resources unless asked). When providing resources, Claude should share the most accurate, up to… claude-sonnet-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5 …l error can cause real harm. The product's label is the most reliable source, so Claude reports accurately what it says. If neither the child's age or weight is given, Claude asks for both. If a docto… claude-sonnet-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-5-5 …ude can redirect the person to established harm-reduction information sources, such as dancesafe.org, tripsit.me, and psychonautwiki.org. Claude does not write, explain, or work on malicious code (ma… increase-consistency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/increase-consistency …nse> User: I'm working from home today. How do I access internal resources? <response> <kb_entry>2: Connect to VPN</kb_entry> <answer>Great question! To access internal resources while w… mitigate-jailbreaks Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks …ption`, or in the structure of the result itself, make the nature and source of the content explicit: for example, that it is the body of an inbound email from an unknown sender, or OCR text extracted… reduce-hallucinations Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-hallucinations …ions:** Make Claude’s response auditable by having it cite quotes and sources for each of its claims. You can also have Claude verify each claim by finding a supporting quote after it generates a resp… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …See the [Claude Enterprise Administrator Guide](https://claude.com/resources/tutorials/claude-enterprise-administrator-guide) and [seat assignment](https://support.claude.com/en/articles/11845131-use… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …/en/agent-sdk/custom-tools.md) * **Load project skills** via [setting sources](https://code.claude.com/docs/en/agent-sdk/claude-code-features.md) for reusable workflows ### Tool permissions Claude d… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …LAUDE.md` and rules), skills, hooks, and more. When you omit `settingSources`, `query()` reads the same filesystem settings as the Claude Code CLI: user, project, and local settings, CLAUDE.md files,… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …d the options object. Two options control how they load: * **`settingSources` / `setting_sources`**: controls which filesystem sources load: user, project, and local. Settings files and CLAUDE.md fil… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …rors](#handle-errors). | | Return images or files | Use `image` or `resource` blocks in the content array. See [Return images and resources](#return-images-and-resources). | | Return a machine-readabl… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …r API calls * **Track session lifecycle** to manage state, clean up resources, or send notifications ## How hooks work **1. An event fires** Something happens during agent execution and the SDK fir… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …ng-lived process tied to local state, which shapes how you allocate resources, persist sessions, and scale across tenants. This page covers self-hosting on your own infrastructure. For deployable Doc… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …an open standard for connecting AI agents to external tools and data sources. With MCP, your agent can query databases, integrate with APIs like Slack and GitHub, and connect to other services withou… Migrate to Claude Agent SDK Claude Code CLI · in the page agent-sdk/migration-guide …): print(message) asyncio.run(main()) ``` ### Settings sources default This default was briefly changed in v0.1.0 to load no filesystem settings and then reverted, so no migration acti… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …without a human approving each step, or operates on a narrow set of resources. Claude Code's prompt assumes a human is in the loop with access to a full toolset. * **Non-coding tasks**: most of Claude… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …hat export to the same collector, override the service name and add resource attributes so you can filter by agent in your backend. The following example renames the service and attaches deployment m… Agent SDK overview Claude Code CLI · in the page agent-sdk/overview …/en/agent-sdk/subagents.md) | | MCP | Connect external tools and data sources via the Model Context Protocol | [MCP](https://code.claude.com/docs/en/agent-sdk/mcp.md) | | Permissions | Control which t… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …laude/settings.json`. These rules are read when the `project` setting source is enabled, which it is for default `query()` options. If you set `setting_sources` (TypeScript: `settingSources`) explicit… Plugins in the SDK Claude Code CLI · in the page agent-sdk/plugins …new plugins. Claude Code supports both locations. ## Multiple plugin sources Combine plugins from different locations: ```typescript theme={null} import * as os from "node:os"; import * as path fro… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …lly-managed-environment`. ```bash theme={null} python3 -m venv .venv source .venv/bin/activate pip install claude-agent-sdk ``` For uv, Windows PowerShell, and API key setup, see [Setup in the Agent… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …On macOS or Linux: > > ```bash theme={null} > python3 -m venv .venv > source .venv/bin/activate > pip install claude-agent-sdk > ``` > > On Windows: > > ```powershell theme={null} > py -m venv .venv >… Securely deploying AI agents Claude Code CLI · in the page agent-sdk/secure-deployment …rust levels. For high-security deployments, you can place sensitive resources (like credentials) outside the boundary containing the agent. If something goes wrong in the agent's environment, resource… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …`, `mtime` is the sidecar's storage write time and must share a clock source with the `mtime` values `listSessions` returns. `data` is opaque SDK-owned state; persist it verbatim without interpreting… Work with sessions Claude Code CLI · in the page agent-sdk/sessions …ize sessions by tag or give them human-readable titles. ## Related resources * [How the agent loop works](https://code.claude.com/docs/en/agent-sdk/agent-loop.md): Understand turns, messages, and co… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …iles containing instructions, descriptions, and optional supporting resources. This page also covers [commands in Agent SDK sessions](#commands-in-agent-sdk-sessions). For more information about skil… Send messages to a running agent Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …age in one sentence." }, { type: "image", source: { type: "base64", media_type: "image/png", data: image.toString("base64"), }… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …it harder for the agent to know what output to produce. ## Related resources * [JSON Schema documentation](https://json-schema.org/): learn JSON Schema syntax for defining complex schemas with neste… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …ll tool | | `memory` | `'user' \| 'project' \| 'local'` | No | Memory source for this agent | | `mcpServers` | `(string \| object)[]` | No | MCP servers to add to any that this agent inherits, by name… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …. * Your install has no bundled or native `claude.exe`, for example a source install on ARM64 Windows where the only `claude` on your `PATH` is the npm shim. To fix it, give the SDK a native executab… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …hange:** options such as `mcpServers`, `hooks`, `canUseTool`, `settingSources`, and `plugins` keep their values from `prewarm()`. [`SpareProcess`](#spareprocess) lists what a claim can set. * **If ses… TypeScript SDK V2 session API (removed) Claude Code CLI · in the page agent-sdk/typescript-v2-preview …k/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management) (TypeScript 5.2+) to automatically close the session when the block exits. You can also call `session.close()`… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …ion work than using the built-in `canUseTool` callback. ## Related resources * [Configure permissions](https://code.claude.com/docs/en/agent-sdk/permissions.md): set up permission modes and rules *…
Feedback