766 pages for runs.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…ze ``` </CodeGroup> ## Run the bash tool locally The bash handler runs the requested command with a timeout, captures combined stdout and stderr, and truncates the result so a runaway command can’…
overview
Claude Developer Platform · in the page
build-with-claude/overview
…me, description and input schema. Claude asks to call them; your code runs them and returns the result. | | [Data residency](https://platform.claude.com/docs/en/manage-claude/data-residency) | Control…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…oes with an invalid block On the Claude API, the prefix check always runs on these models. Set `thinking.block_binding.prefix_mismatch_behavior` to choose what happens to a block that fails it. The f…
change-tools-or-instructions
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/change-tools-or-instructions
…instruction, so apply limits such as read-only mode in the code that runs your tools. Some models [don’t accept system messages](https://platform.claude.com/docs/en/build-with-claude/mid-conversation…
fix-bound-to-a-different-conversation
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/fix-bound-to-a-different-conversation
…w turns. ### Five steps for a test that can fail, and a program that runs them 1. In your own code, send the beta header and `"drop_block"` on each request of a session, to a [model with preserved t…
prefix-checks
Claude Developer Platform · in the page
build-with-claude/preserved-thinking/prefix-checks
…nversation`. ### Which models run the prefix check The prefix check runs on the Claude API and on [some cloud platforms](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#feat…
Request 2 caches its request content (not the response)
Claude Developer Platform · in the page
build-with-claude/prompt-caching
…ing batch processing would likely expire before the follow-up request runs. ### Replacing the `max_tokens=1` workaround Some applications send `max_tokens: 1` requests to warm the cache. Prefer `max…
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…ude Fable 5.2:** It sometimes writes few progress updates during long runs of tool calls. It might also make its first tool call without saying what it’s about to do. Ask for an opening line and for r…
prompting-claude-fable-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5
…e 5 and Claude Mythos 5, covering effort, instruction following, long runs, memory, and scaffolding changes. --- This guide covers the prompting and scaffolding patterns specific to Claude Fable 5 an…
Delivering work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-1
…g-claude-fable-5-1#keep-the-conversation-history-append-only) * Prose runs long and dense: [Writing density](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-f…
Finishing work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-2
…`high` suits hard coding, research, agentic work, and long unattended runs. Turns take noticeably longer to finish than at `medium`. * `xhigh` is for your hardest long-running coding and agentic work…
prompting-claude-haiku-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-haiku-5-5
…hinking and `medium` effort. ## Safeguard refusals Claude Haiku 5.5 runs safety classifiers that can decline a request. A declined request returns a response with `stop_reason: "refusal"`, and `stop…
prompting-claude-opus-4-8
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-4-8
…e this approach; it produces meaningfully different directions across runs. Example prompt: ```text wrap Before building, propose 4 distinct visual directions tailored to this brief (each as: bg hex…
prompting-claude-opus-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5
…hout noting it. ``` ## Running with thinking disabled Claude Opus 5 runs with [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) on by default, and thinking can be disabled o…
prompting-claude-opus-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5-5
…way through a long task after reporting progress: [Unattended agentic runs](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5-5#unattended-agentic-runs)…
prompting-claude-sonnet-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-sonnet-5
…e agentic than Claude Sonnet 4.6 by default and reaches for tools and runs self-verification loops more readily. With thinking disabled, the model is less likely to reach for tools or consider searchi…
prompting-claude-sonnet-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5
…ting-claude-sonnet-5-5#steer-initiative-and-scope) * Your integration runs with thinking off today: [Running without up-front thinking](https://platform.claude.com/docs/en/build-with-claude/prompt-eng…
refusals-and-fallback
Claude Developer Platform · in the page
build-with-claude/refusals-and-fallback
…declines and the refusal category has a recommended fallback, the API runs the same request on the model Anthropic recommends for that category. You can instead [name up to three fallback models of yo…
search-results
Claude Developer Platform · in the page
build-with-claude/search-results
…-tools/tool-use/define-tools#forcing-tool-use), so the retrieval step runs every time. ### Example: Knowledge base tool <CodeGroup exclude="shell"> <CodeGroupItem language="cURL"> The tool-cal…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…` object as your Skills, as the example does. Without it, the request runs in a new container, and files from earlier in the turn are lost. </Note> ### Using multiple Skills Combine multiple Skills…
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…neration ended near `remaining` ≈ 95,000. **Request 2.** Your client runs the tool, then resends the full history with the tool result appended: ```json { "messages": [ { "role": "user", "cont…
thinking
Claude Developer Platform · in the page
build-with-claude/thinking
…[text: "The weather in Paris is 20°C and sunny"] ``` The entire turn runs in a single thinking mode: you can’t toggle thinking in the middle of a turn, including during the tool-use loop. In extended…
thinking-troubleshooting
Claude Developer Platform · in the page
build-with-claude/thinking-troubleshooting
…in the request and what the model supports. On most models, thinking runs as `thinking: {type: "adaptive"}`, and many have it on by default. Some earlier models instead use [extended thinking](https:…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…t model prompting access | Pre-built, configurable agent harness that runs in managed infrastructure | | **Best for** | Custom agent loops and fine-grained control | Long-running tasks and asynchronou…
claude_api_primer
Claude Developer Platform · in the page
claude_api_primer
…and Claude Sonnet 4.5 don’t accept a prefill. The following example runs on Claude Opus 4.5 and sets the format of a multiple-choice answer. The prefill, `The answer is (`, ends right before the ans…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…ng issues and house-style decisions the reviewer has recorded between runs. ``` </File> <File filename="deployments/nightly.md"> ```markdown --- name: Nightly review agent: ..…
scripting
Claude Developer Platform · in the page
cli-sdks-libraries/cli/scripting
…tion"> Once the agent has replied, list the events. `--transform` runs against each listed event, so this prints the text of every message in order. `--format auto` overrides the interactive explo…
sessions-connect
Claude Developer Platform · in the page
cli-sdks-libraries/cli/sessions-connect
…ch includes the messages exchanged between the agent that the session runs and the agents it delegates to. | Key | Action | | ----- | ----- | | Enter | Send your input as a `user.message` event. Alt+…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…idwall/gjson/blob/master/SYNTAX.md). For list endpoints the transform runs against each item individually, not the envelope: ```bash ant beta:agents list --transform "{id,name,model}" --format jsonl…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…station for an access token. The Claude for Foundation Models package runs this flow automatically and requests new tokens as they expire; there is no attestation code for you to write. Tokens are sc…
middleware
Claude Developer Platform · in the page
cli-sdks-libraries/middleware
…- The Anthropic SDK provides a middleware (or interceptor) hook that runs your code before the SDK sends a request and after it receives the response. Use middleware for cross-cutting concerns such a…
php
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/php
…'], body: ['hello' => 'world'] ); ``` ### Middleware Middleware runs your code around every HTTP request the client sends. [SDK middleware](https://platform.claude.com/docs/en/cli-sdks-libraries…
Pins this configuration to one organization. Every plan verifies
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform
…ic` is the only official source address for this provider. A provider runs with access to your Anthropic credentials, and one installed from any other address could read them. ## Add an environment a…
GitHub's OIDC issuer. Its signing keys come from OIDC discovery.
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform/authentication
…ntication#example-a-teams-workspace-and-ci-identity) does. The second runs with a credential for that workspace. Set `workspace_id` in the second configuration’s provider block, so that the provider…
behavior
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/terraform/behavior
…t_20261001` type, an agent can hand work to subagents, start workflow runs, and consult an advisor model. The type’s settings, `subagents`, `workflows`, and `advisor`, go inside the `multiagent_202610…
get-started
Claude Developer Platform · in the page
get-started
…with the CLI is recommended for local development. For code that runs in CI or on a server with an identity provider, set up [Workload Identity Federation](https://platform.claude.com/docs/en/man…
home
Claude Developer Platform · in the page
home
…t is | Direct access to Claude models | A prebuilt agent harness that runs on managed infrastructure | | Best for | Single-turn responses and low-level control | Complex, long-running agents | | A…
access-transparency
Claude Developer Platform · in the page
manage-claude/access-transparency
…<Accordion title="Will I see an event each time a safety classifier runs on my traffic?"> No. Automated processing does not generate `anthropic_access` events; you will see an `anthropic_access`…
access-transparency-log
Claude Developer Platform · in the page
manage-claude/access-transparency-log
…for your own canonicalization code. ## Verify your log Verification runs on your own infrastructure. Everything the API returns is untrusted until it verifies against two things you hold yourself. T…
administering-claude
Claude Developer Platform · in the page
manage-claude/administering-claude
…own members and its own spend and rate limits. Each request to Claude runs in one workspace, and the files and batches the request creates stay there. * **Keys:** [Developer API keys](https://platform…
analytics-api
Claude Developer Platform · in the page
manage-claude/analytics-api
…t UTC date. Data arrives later on days when an upstream data pipeline runs late, and exact freshness varies by query. Rather than assuming a fixed time, check the error response: requesting a date tha…
api-and-data-retention
Claude Developer Platform · in the page
manage-claude/api-and-data-retention
…stores your jobs, the Files API stores your files, and code execution runs in persistent containers. Data for these features is retained according to the feature’s documented policy. Using them is a c…
api-keys
Claude Developer Platform · in the page
manage-claude/api-keys
…lity. What to replace a workspace key with depends on where the code runs: * **A workload with an identity provider:** Use Workload Identity Federation, which needs no long-lived key. See [Migrate f…
app-attest
Claude Developer Platform · in the page
manage-claude/app-attest
…station for an access token. The Claude for Foundation Models package runs this flow automatically and requests new tokens as they expire; there is no attestation code for you to write. Tokens are sc…
authentication
Claude Developer Platform · in the page
manage-claude/authentication
…aude/admin-api-keys). ## Choose your path Choose by where your code runs: <CardGroup cols={2}> <Card title="CLI sign-in" image="https://platform.claude.com/docs/images/authentication/cli-sign-in.…
claude-tag-api
Claude Developer Platform · in the page
manage-claude/claude-tag-api
…` is returned only when another change overlaps your request while it runs; nothing your request asked to change or delete was done, except that a setup request might already have set the channel up,…
cmek-coverage-claude-enterprise
Claude Developer Platform · in the page
manage-claude/cmek-coverage-claude-enterprise
…experience: each task’s name and instructions, and the content of its runs. * Claude in Chrome. * Claude Science, which is in beta. * Plugin versions in the [Plugins API](https://platform.claude.com/d…
Fetch the first page (newest activities first).
Claude Developer Platform · in the page
manage-claude/compliance-activity-feed
…claude.ai or Claude Console user took the action. Processes Anthropic runs on the user’s behalf can also appear as this type; see the paragraph after this table. | `email_address`, `user_id`, `ip_addr…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…est. That forward walk is also how you keep an export current across runs: persist the final page’s `last_id` and resume from it as `after_id` on the next run. Because the list is ordered by `updated…
compliance-errors
Claude Developer Platform · in the page
manage-claude/compliance-errors
…econd, double up to 60 seconds). If this error keeps recurring across runs, contact your Anthropic representative and include the `request-id` response header. ## 500 Internal Server Error A 500 fro…