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

368 pages for /code.

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

multiagent-orchestration Claude Developer Platform · in the page managed-agents/multiagent-orchestration …u-5-5 --- You write unit tests. ``` </File> </CodeGroupItem> ```python Python lead_agent = client.beta.agents.create( name="Engineering Lead", model="claude-o… onboarding Claude Developer Platform · in the page managed-agents/onboarding …nv_01K2mPsT7hNwR4jXuLvCqD8", title: "My first session" ) ``` </CodeGroup> permission-policies Claude Developer Platform · in the page managed-agents/permission-policies …cy: type: always_ask --- ``` </File> </CodeGroupItem> ```python Python agent = client.beta.agents.create( name="Coding Assistant", model="claude-opus-5… quickstart Claude Developer Platform · in the page managed-agents/quickstart …d `agent.id`. You'll reference it in every session you create. </CodeGroupItem> <CodeGroupItem> ```bash CLI ant apply coding-assistant.md ``` <File filena… scheduled-deployments Claude Developer Platform · in the page managed-agents/scheduled-deployments …To see the deployment object, run `ant beta:deployments retrieve`. </CodeGroupItem> ```python Python deployment = client.beta.deployments.create( name="Weekly compliance scan", agen… secure-deployment Claude Developer Platform · in the page managed-agents/secure-deployment …llowed_hosts: - help.example.com ``` </File> </CodeGroupItem> ```python Python environment = client.beta.environments.create( name="support-agent", config={… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …g: type: self_hosted ``` </File> </CodeGroupItem> ```python Python client = anthropic.Anthropic() environment = client.beta.environments.create(… self-hosted-sandboxes-custom-tools Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-custom-tools …aged-agents/events-and-streaming#return-a-custom-tool-result). </CodeGroupItem> ```go Go package main import ( "context" "log" "os" "os/signal"… self-hosted-sandboxes-memory Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-memory …m language="C#"> The C# SDK does not have `EnvironmentWorker`. </CodeGroupItem> ```go Go worker := environments.NewEnvironmentWorker(client, environments.EnvironmentWorkerOptions{ Enviro… self-hosted-sandboxes-operations Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-operations …_ID")) puts "depth=#{stats.depth} pending=#{stats.pending}" ``` </CodeGroup> ```text wrap { "type": "work_queue_stats", "depth": 0, "pending": 0, "oldest_queued_at": null, "workers_pol… self-hosted-sandboxes-reference Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-reference …/managed-agents/events-and-streaming#return-a-custom-tool-result). </CodeGroupItem> ```go Go worker := environments.NewEnvironmentWorker(client, environments.EnvironmentWorkerOptions{ Enviro… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …` CLI worker instead: `ant beta:worker poll --workdir /workspace`. </CodeGroupItem> ```go Go package main import ( "context" "log" "os" "os/signal" "syscall" "github.com/a… session-operations Claude Developer Platform · in the page managed-agents/session-operations …"linear", url: "https://mcp.linear.app/sse"} ] } ) ``` </CodeGroup> ## Updating the session budget A session [created with a budget](https://platform.claude.com/docs/en/managed-agents/… session-threads Claude Developer Platform · in the page managed-agents/session-threads …type : agent.name puts "[#{label}] #{thread.status}" end ``` </CodeGroup> The full list includes the primary thread. `parent_thread_id` (java: `parentThreadId`; php: `parentThreadID`; csharp,… sessions Claude Developer Platform · in the page managed-agents/sessions …e( agent: agent.id, environment_id: environment.id ) ``` </CodeGroup> To pin a session to a specific agent version, pass an object. This lets you control exactly which version runs and st… skills Claude Developer Platform · in the page managed-agents/skills …ds your edits as a new version instead of creating a second skill. </CodeGroupItem> ```python Python import anthropic from anthropic.lib import files_from_dir client = anthropic.Anthropic(… tools Claude Developer Platform · in the page managed-agents/tools …fetch enabled: false --- ``` </File> </CodeGroupItem> ```python Python agent = client.beta.agents.create( name="Coding Assistant", model="claude-opus-5… tools-web-restrictions Claude Developer Platform · in the page managed-agents/tools-web-restrictions …ply) creates the agent and prints its ID, not the `configs` array. </CodeGroupItem> ```python Python client = Anthropic() agent = client.beta.agents.create( name="Research Agent",… vaults Claude Developer Platform · in the page managed-agents/vaults …ck.json`. To see the vault record, run `ant beta:vaults retrieve`. </CodeGroupItem> ```python Python vault = client.beta.vaults.create( display_name="Alice", metadata={"external_use… webhooks Claude Developer Platform · in the page managed-agents/webhooks …" end # handle other event types status 200 end ``` </CodeGroup> ## Handle an event Parse the body, switch on `data.type`, and fetch the resource by ID. Return any `2xx` to acknowle… workflow-runs Claude Developer Platform · in the page managed-agents/workflow-runs …latform.claude.com/docs/en/cli-sdks-libraries/overview) to run it. </CodeGroupItem> <CodeGroupItem language="CLI"> This workflow needs more logic than a single shell command. Use the [Claude… Or, for Claude Mythos 5.1, which offers the same capabilities to verified organizations: Claude Developer Platform · in the page models/fable-5-1/migration-guide …moved to Thursday." } ] ) puts message ``` </CodeGroup> After (Claude Fable 5.1): leave `tool_choice` at `auto`, name the tool in the instruction, and set `strict: true`… whats-new-fable-5-1 Claude Developer Platform · in the page models/fable-5-1/whats-new-fable-5-1 …m/docs/en/managed-agents/overview), and the [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) keep that prefix intact for you. If your code builds the `messages` array itself, che… migration-guide Claude Developer Platform · in the page models/haiku-5-5/migration-guide …version](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#upgrade-to-latest-tool-version). * **Text editor:** If you use the text editor tool, move to `text_editor_202… migration-guide Claude Developer Platform · in the page models/opus-5-5/migration-guide …ch do |block| puts block.text if block.type == :text end ``` </CodeGroup> ## Handle thinking in every response Thinking runs on every Claude Opus 5.5 request, so every response can start wit… whats-new-opus-5-5 Claude Developer Platform · in the page models/opus-5-5/whats-new-opus-5-5 …5 # Before model = Anthropic::Model::CLAUDE_OPUS_5_5 # After ``` </CodeGroup> Then remove any `thinking: {"type": "disabled"}` or `thinking: {"type": "enabled", ...}` settings and choose an [effo… Models overview Claude Developer Platform · in the page models/overview …ecution](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool) tools. It doesn't cover other server tools, such as web fetch. `server_tools.web_search.supported` and `serv… migration-guide Claude Developer Platform · in the page models/sonnet-5-5/migration-guide …ch do |block| puts block.text if block.type == :text end ``` </CodeGroup> ## Thinking runs by default On Claude Sonnet 5.5, a request with no `thinking` field runs with [adaptive thinking](h… whats-new-sonnet-5-5 Claude Developer Platform · in the page models/sonnet-5-5/whats-new-sonnet-5-5 …# Before model = Anthropic::Model::CLAUDE_SONNET_5_5 # After ``` </CodeGroup> Then check six things: 1. If your code turns thinking off with `disabled`, send `between_tools` instead, at `high` e… overview Claude Developer Platform · in the page release-notes/overview …on tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool) carry C2PA Content Credentials when you retrieve them through the [Files API](https://platform.claude.com/do… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …nalysis Accuracy: #{100.0 * correct / tweets.length}%" ``` </CodeGroup> </Accordion> <Accordion title="Consistency (FAQ bot): cosine similarity evaluation"> **What it measures:** Co… handle-streaming-refusals Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/handle-streaming-refusals …latform.claude.com/docs/en/cli-sdks-libraries/overview) to run it. </CodeGroupItem> <CodeGroupItem language="CLI"> Detecting a refusal in the stream and resetting the conversation needs more… reduce-latency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-latency …uts message.content.find { |block| block.type == :text }&.text ``` </CodeGroup> For more details about model metrics, see the [models overview](https://platform.claude.com/docs/en/models/overview)… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …b), [cloud scheduled tasks](/docs/en/routines), [Code Review](/docs/en/code-review), [Remote Control](/docs/en/remote-control), and the [Chrome extension](/docs/en/chrome) aren't available through Con… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …tart This example connects to the [Claude Code documentation](https://code.claude.com/docs) MCP server using [HTTP transport](#http%2Fsse-servers) and uses [`allowedTools`](#allow-mcp-tools) with a w… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …ecurity and code-quality guidance. Save it as `~/.claude/output-styles/code-reviewer.md` to make it available across projects: ```markdown ~/.claude/output-styles/code-reviewer.md theme={null} --- na… Securely deploying AI agents Claude Code CLI · in the page agent-sdk/secure-deployment …\ --cpus 2 \ --pids-limit 100 \ --user 1000:1000 \ -v /path/to/code:/workspace:ro \ -v /var/run/proxy.sock:/var/run/proxy.sock:ro \ agent-image ``` Here's what each option does: | Option… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …ed skills**: prompt artifacts included with Claude Code, for example `/code-review` * **Your skills**: prompt artifacts that you author, each a directory holding a `SKILL.md` file. A user-invocable sk… Run agents in parallel Claude Code CLI · in the page agents …cts](/docs/en/claude-projects) | One ongoing conversation at claude.ai/code or in the desktop app. Claude starts parallel sessions called threads, in the cloud or, when you ask, on your computer throu… Track team usage with analytics Claude Code CLI · in the page analytics …wn dashboard. For review activity and spend, see [View usage](/docs/en/code-review-costs#view-usage). ## Access analytics for Team and Enterprise Navigate to [claude.ai/analytics/claude-code](https:… Share session output as artifacts Claude Code CLI · in the page artifacts …eone else to see it too. ![An artifact open in a browser at claude.ai/code/artifact. The viewer header shows the artifact title acme-funnel-fix, a Share button, and the author avatar. The Share menu… Best practices for Claude Code Claude Code CLI · in the page best-practices …typed language, install a [code intelligence plugin](/docs/en/plugins/code-intelligence) to give Claude precise symbol navigation and automatic error detection after edits. For guidance on choosing… Claude Code changelog Claude Code CLI · in the page changelog …mcp` or `claude mcp` when an MCP server needs authentication * Fixed `/code-review` ending on a raw JSON array in cloud sessions, the Agent SDK and IDE integrations; the findings now print as a number… Checkpointing Claude Code CLI · in the page checkpointing …ed skill that runs in the background, the default, and a background [`/code-review --fix`](/docs/en/code-review-local) run. ### External changes not tracked Checkpointing only tracks files that have… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …dWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/code#applied-as-managed-policy), Claude Desktop doesn't turn on the [Bash sandbox](/docs/en/sandboxing) in the Code tab * An OTLP… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …a cloud session from any of these surfaces: * **Browser**: [claude.ai/code](https://claude.ai/code), also called Claude Code on the web * **Mobile**: the **Code** tab in the [Claude app](/docs/en/mob… Explore the .claude directory Claude Code CLI · in the page claude-directory …)', border: '0.5px solid var(--ce-border-subtle)' }}>{children}</code>, []); const commandsNote = useMemo(() => <>Commands and skills are now the same mechanism. For new workflows, use <A href… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …plans yet. If **Projects** doesn't appear in the sidebar at [claude.ai/code](https://claude.ai/code) or in the Code tab of the [desktop app](/docs/en/desktop), the rollout hasn't reached your account,… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …mands) runs a single pass over your branch, and [Code Review](/docs/en/code-review) reviews pull requests. For how the layers stack, see [How the plugin fits with other security tools](#how-the-plugin… claude-tag Claude Code CLI · in the page claude-tag …hema enum in anthropics/apps desktop-changelog/schema.json: general/code/cowork/3p). href^= prefix matching also covers Mintlify's duplicate-slug suffixes (#general-2, #code-3, … across releases…
Feedback