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

533 pages for pattern.

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

structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …n and inheritance to share structure when defining JSON schemas. Each pattern affects the output structure differently. **Composition** produces nested JSON output. Deriving a schema from class… thinking Claude Developer Platform · in the page build-with-claude/thinking …hich can delay and group streaming events into this “chunky” delivery pattern. </Note> For general streaming mechanics, see [Streaming messages](https://platform.claude.com/docs/en/build-with-claude/… vision-coordinates Claude Developer Platform · in the page build-with-claude/vision-coordinates …se-tool#handle-coordinate-scaling-for-higher-resolutions) covers that pattern. ## Next steps <CardGroup cols={2}> <Card title="Agent Skills" icon="stack" href="https://platform.claude.com/docs/en/… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …docs/en/build-with-claude/working-with-messages description: "Request patterns for the Messages API: a basic request, multi-turn conversations, mid-conversation system messages, prefill and its altern… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …m.claude.com/docs/en/cli-sdks-libraries/cli/scripting"> Scripting patterns and use from Claude Code </Card> </CardGroup> On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …ries/cli/scripting"> Version control for API resources, scripting patterns, and use from Claude Code </Card> <Card title="Workload Identity Federation" icon="cloud" href="https://platform.cla… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …ries/cli/scripting"> Version control for API resources, scripting patterns, and use from Claude Code </Card> </CardGroup> scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting …ractive explorer instead. </Tip> </Step> </Steps> ## Scripting patterns The CLI is designed to compose with standard shell tooling. ### Chain list output into a second command `--transform i… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …cripting). ## Command structure Commands follow a `resource action` pattern. Nested resources use colons: ```text wrap ant <resource>[:<subresource>] <action> [flags] ``` Run `ant --help` for the… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …rovider errors with no framework equivalent surface as `ClaudeError`. Pattern-match to drive product flows: ```swift do { let response = try await session.respond(to: prompt) print(response.conte… overview Claude Developer Platform · in the page cli-sdks-libraries/overview …latform.claude.com/docs/en/cli-sdks-libraries/sdks/java"> Builder pattern, CompletableFuture async </Card> <Card title="PHP" href="https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …ooting with Anthropic support. To handle errors, use the `errors.As` pattern: ```go _, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{ MaxTokens: 1024, Messages: []anthropic… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …escription: Install and configure the Anthropic Java SDK with builder patterns and async support --- The Anthropic Java SDK provides convenient access to the Claude API from applications written in J… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …ll and configure the Anthropic PHP SDK with value objects and builder patterns --- The Anthropic PHP library provides convenient access to the Claude API from any PHP 8.1.0+ application. <Info> Fo… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …Claude automatically run them. For detailed documentation on tool use patterns including the tool runner, see [Tool runner (SDK)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-run… GitHub's OIDC issuer. Its signing keys come from OIDC discovery. Claude Developer Platform · in the page cli-sdks-libraries/sdks/terraform/authentication …tiple-identities) example in the provider’s repository shows the full pattern, including a module used twice. After `ant auth login --profile research`, the first block also uses the research profile… get-started Claude Developer Platform · in the page get-started …ext steps You made your first API call. Next, learn the Messages API patterns you’ll use in every Claude integration. <Card title="Using the Messages API" icon="messages" href="https://platform.clau… home Claude Developer Platform · in the page home …ude Cookbook](https://platform.claude.com/cookbook): Code samples and patterns * [Starter apps](https://github.com/anthropics/claude-quickstarts): Deployable projects to build on * [Courses](https… access-transparency Claude Developer Platform · in the page manage-claude/access-transparency …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns#window-polling): an event can become visible up to 2 business days after its `created_at`. If you poll the feed by `creat… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …applies to schema property names, `enum` values, `const` values, and `pattern` regular expressions. Patient-specific information should appear only in message content, where it is protected under HIPA… First request Claude Developer Platform · in the page manage-claude/claude-code-analytics-api …ration, set your User-Agent header to help Anthropic understand usage patterns: ```text wrap User-Agent: YourApp/1.0.0 (https://example.com) ``` </Tip> ## Claude Code Analytics API Track Clau… cmek Claude Developer Platform · in the page manage-claude/cmek …ata (records derived from Anthropic's automated safety scans, such as pattern identifiers and match indicators, not conversation content) is retained under Anthropic-managed encryption and remains rea… cmek-data-retention Claude Developer Platform · in the page manage-claude/cmek-data-retention …are records derived from Anthropic’s automated safety scans, such as pattern identifiers and match indicators, not conversation content. Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns"> Choose a polling or batch consumption pattern and plan SIEM correlation. </Card> <Card title="Handle Complianc… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns" title="Design your compliance integration"> Choose a feed-consumption pattern, plan SIEM correlation, and decide you… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …ess Key is created. The following request deletes one chat. The same pattern applies to the other delete endpoints; only the URL changes. ```bash cURL # WARNING: This operation PERMANENTLY deletes t… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns#choose-a-feed-consumption-pattern) for choosing between window-polling and cursor-driven ingestion. ### Server busy read… compliance-faq Claude Developer Platform · in the page manage-claude/compliance-faq …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns#plan-content-retention) for when to export content to your own archive. </Accordion> <Accordion title="What does the… detect-changes Claude Developer Platform · in the page manage-claude/compliance-security-posture/detect-changes …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns#correlate-with-your-siem)). ### One person made many attestation changes Alert when one person makes more attestation c… send-events Claude Developer Platform · in the page manage-claude/compliance-security-posture/send-events …ps://platform.claude.com/docs/en/manage-claude/compliance-integration-patterns#window-polling), with a `created_at` that is already in the past. So an integration that only moves forward, from a curso… faq Claude Developer Platform · in the page manage-claude/enterprise-frontier-safeguards/faq …le. | | Automated safety monitoring | Automated systems that look for patterns of misuse across many requests. With EFS, they analyze data stored in your cloud account, and your team reviews any findi… inference-hooks Claude Developer Platform · in the page manage-claude/inference-hooks …hemas, signature verification, operational semantics, and integration patterns for building the AI security server. </Card> </CardGroup> endpoints-and-parameters Claude Developer Platform · in the page manage-claude/oauth-apps/endpoints-and-parameters …sub` | Your back end’s subject. If your app’s settings have a subject pattern, the subject must match it. | | `aud` | Exactly one audience: the value in your app’s settings, not the full URL of the en… set-up-your-app Claude Developer Platform · in the page manage-claude/oauth-apps/linked-billing/set-up-your-app …cs/en/manage-claude/workload-identity-federation). 2. Set a **Subject pattern** that your back end’s tokens match in their `sub` claim, or set claim conditions under **Advanced match options**. `auth.… usage-cost-analytics-api Claude Developer Platform · in the page manage-claude/usage-cost-analytics-api …ration, set your User-Agent header to help Anthropic understand usage patterns: ```text wrap User-Agent: YourApp/1.0.0 (https://yourapp.com) ``` </Tip> ## How results are shaped * **Every row… First request Claude Developer Platform · in the page manage-claude/usage-cost-api …s: * **Accurate usage tracking:** Get precise token counts and usage patterns instead of relying solely on response token counting * **Cost reconciliation:** Match internal records with Anthropic bil… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …ing> Match the rule to one exact workload identity, not a broad pattern. `subject_prefix` is an exact match unless it ends in `*`. For GitHub Actions, pin the subject to a protected branch, such… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …m.claude.com/docs/en/manage-claude/wif-providers/kubernetes) for that pattern. </Note> </Tab> </Tabs> ## Configure Anthropic In the Claude Console, go to the [Workload identity](https://platfo… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …a trailing-`*` prefix match both work against them. For more complex patterns, use a Common Expression Language (CEL) `condition`. ```json { "name": "spire-inference-worker", "issuer_id": "fdis_… workload-identity-federation Claude Developer Platform · in the page manage-claude/workload-identity-federation …Microsoft Entra ID, or Kubernetes. Each tile prefills the issuer URL pattern and the match fields that provider’s JWTs support. For any other standards-compliant provider (such as SPIFFE or Okta), se… dreams Claude Developer Platform · in the page managed-agents/dreams …nizes, and * 1 to 100 **sessions:** past transcripts Claude mines for patterns and insights to fold into the output. The dream produces another **output memory store**, separate from the input. The o… environments Claude Developer Platform · in the page managed-agents/environments …ifies hosts the sandbox can reach. Specify bare hostnames or wildcard patterns (such as `*.example.com`). Do not include a URL scheme, port, or path. A bare hostname matches that exact host: `example.… event-deltas Claude Developer Platform · in the page managed-agents/event-deltas …ts/event-deltas#preview-session-thread-events). `[]` is a shell glob pattern, so quote the URL whenever you build the request in a shell. The examples percent-encode the brackets as `%5B%5D`, which a… mcp-connector Claude Developer Platform · in the page managed-agents/mcp-connector …"add_issue_comment", enabled = true }, ] } }, ] ``` This pattern is useful when a server exposes many tools but the agent only needs a few, or when you want tools added by the server oper… multiagent-orchestration Claude Developer Platform · in the page managed-agents/multiagent-orchestration …st of multiple well-scoped tasks that contribute to an overall goal. Patterns that work well: * **Parallelization:** Fan out independent subtasks simultaneously (searching multiple sources, analyzin… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …SDK both ship pre-built workers. The `ant` CLI supports the always-on pattern only; the SDK supports both always-on and webhook-triggered. Both are configurable: see [Self-hosted worker](https://platf… self-hosted-sandboxes-custom-tools Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-custom-tools …to register a custom tool implementation. In the sandbox-per-session pattern, [run the SDK worker inside the sandbox](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes-per-sess… self-hosted-sandboxes-memory Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-memory …rectory, the worker fails the work item. In the [sandbox-per-session pattern](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes-per-session), the sandbox image needs a writable… self-hosted-sandboxes-per-session Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-per-session …beta Claude Platform on AWS: beta --- In the sandbox-per-session pattern, each session runs in a fresh sandbox, which can have its own filesystem, resource limits, and network controls. To compar… self-hosted-sandboxes-security Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-security …* **Know that your key leaked.** Anthropic can detect anomalous usage patterns, but cannot know your key was compromised. If you suspect `ANTHROPIC_ENVIRONMENT_KEY` leaked, revoke it and generate a re…
Feedback