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

529 pages for wait.

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

onboarding Claude Developer Platform · in the page managed-agents/onboarding …st session", ) ``` ```typescript TypeScript const session = await client.beta.sessions.create({ agent: "agent_01J8XkN5uT3vHpLqRfWdY2", environment_id: "env_01K2mPsT7hNwR4jXuLvCqD8",… permission-policies Claude Developer Platform · in the page managed-agents/permission-policies …ools (the pre-built agent toolset and MCP toolset) run automatically, wait for your approval, or have each call evaluated by the server. Custom tools are run by your application and controlled by you,… quickstart Claude Developer Platform · in the page managed-agents/quickstart …dk"; const client = new Anthropic(); const agent = await client.beta.agents.create({ name: "Coding Assistant", model: "claude-opus-5-5", system: "You ar… reference Claude Developer Platform · in the page managed-agents/reference …n.status_idle` | Agent finished its current task and is waiting for input. Includes a `stop_reason` (java, php: `stopReason`; csharp, go: `StopReason`) indicating why the agent stopped.… scheduled-deployments Claude Developer Platform · in the page managed-agents/scheduled-deployments …}, ) ``` ```typescript TypeScript const deployment = await client.beta.deployments.create({ name: "Weekly compliance scan", agent: agent.id, environment_id: environment.id,… secure-deployment Claude Developer Platform · in the page managed-agents/secure-deployment …}, ) ``` ```typescript TypeScript const environment = await client.beta.environments.create({ name: "support-agent", config: { type: "cloud", networking: { t… secure-deployment-monitoring Claude Developer Platform · in the page managed-agents/secure-deployment-monitoring …--------------------------- | | Sessions that go idle, for example to wait for approval | The `session.status_idled` webhook. It fires each time a session goes idle, for any reason… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …ipt const client = new Anthropic(); const environment = await client.beta.environments.create({ name: "self-hosted", config: { type: "self_hosted" } }); consol… self-hosted-sandboxes-custom-tools Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-custom-tools …r own code runs: the agent emits an `agent.custom_tool_use` event and waits for a matching `user.custom_tool_result`. Your worker can be that code. Because it runs inside your sandbox, the tool reache… self-hosted-sandboxes-operations Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-operations …go: `Depth`) | Items waiting to be claimed.… self-hosted-sandboxes-reference Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-reference …rd input. | | `--max-idle` | How long to wait after the session goes idle with an `end_turn` [stop reason](https://platform.claude.com/docs/en/build-with-claude/handling-s… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …with contextlib.suppress(asyncio.CancelledError): await task asyncio.run(main()) ``` ```typescript TypeScript import Anthropic from "@anthropic-ai/sdk"; import { Enviro… session-operations Claude Developer Platform · in the page managed-agents/session-operations …--------------------------------------- | | `idle` | Agent is waiting for input, including user messages or tool confirmations. Sessions created without `initial_events` (java, php: `initialEv… session-threads Claude Developer Platform · in the page managed-agents/session-threads …one of its threads is working. When no thread is working and a thread waits on your client, the session is `idle`; see [Know when the work is done](https://platform.claude.com/docs/en/managed-agents/w… sessions Claude Developer Platform · in the page managed-agents/sessions …ironment.id, ) ``` ```typescript TypeScript const session = await client.beta.sessions.create({ agent: agent.id, environment_id: environment.id }); ``` ```csharp C# var sessi… skills Claude Developer Platform · in the page managed-agents/skills …from "node:fs"; const client = new Anthropic(); const skill = await client.skills.create({ files: [await toFile(fs.createReadStream("example_skill.zip"), "example_skill.zip")] }); cons… tools Claude Developer Platform · in the page managed-agents/tools …}, ], ) ``` ```typescript TypeScript const agent = await client.beta.agents.create({ name: "Coding Assistant", model: "claude-opus-5-5", tools: [ { type: "a… tools-web-restrictions Claude Developer Platform · in the page managed-agents/tools-web-restrictions …script TypeScript const client = new Anthropic(); const agent = await client.beta.agents.create({ name: "Research Agent", model: "claude-opus-5-5", tools: [ { type: "age… vaults Claude Developer Platform · in the page managed-agents/vaults …# "vlt_01ABC..." ``` ```typescript TypeScript const vault = await client.beta.vaults.create({ display_name: "Alice", metadata: { external_user_id: "usr_abc123" } }); console.log(v… webhooks Claude Developer Platform · in the page managed-agents/webhooks …| | `session.status_idled` | Agent awaiting input, for example, a tool permission approval or a new user message.… workflow-runs Claude Developer Platform · in the page managed-agents/workflow-runs …kflow. To review a plan first, tell the agent to describe the run and wait for your approval. As a run starts, `workflow_run.created` shows its name, description, and phases. If a run starts that you… 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 …peScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-fable-5", max_tokens: 16000, tools: [ { name… whats-new-fable-5-1 Claude Developer Platform · in the page models/fable-5-1/whats-new-fable-5-1 …ipt TypeScript const client = new Anthropic(); const response = await client.beta.messages.create({ model: "claude-fable-5-1", max_tokens: 4096, output_config: { effort: "high" },… migration-guide Claude Developer Platform · in the page models/opus-5-5/migration-guide …ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 4096, messages: [ { role: "user",… migration-guide Claude Developer Platform · in the page models/sonnet-5-5/migration-guide …ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-sonnet-5-5", max_tokens: 4096, messages: [ { role: "user",… overview Claude Developer Platform · in the page release-notes/overview …he session live, send messages, and allow or deny tool calls that are waiting for approval. Pass `--web` to serve the Claude Console's session viewer locally and open the session there instead. See [C… claude-opus-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4 …the user that it doesn't have experiences outside of the chat and is waiting to help with any questions or projects they may have. In general conversation, Claude doesn't always ask questions but, w… claude-opus-4-1 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-1 …the user that it doesn't have experiences outside of the chat and is waiting to help with any questions or projects they may have. In general conversation, Claude doesn't always ask questions but, w… claude-sonnet-4 Claude Developer Platform · in the page release-notes/system-prompts/claude-sonnet-4 …the user that it doesn't have experiences outside of the chat and is waiting to help with any questions or projects they may have. In general conversation, Claude doesn't always ask questions but, w… develop-tests Claude Developer Platform · in the page test-and-evaluate/develop-tests …ompletion(prompt: string): Promise<string> { const message = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [{ role: "user",… handle-streaming-refusals Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/handle-streaming-refusals …Conversation reset due to refusal"); } try { const stream = await client.messages.stream({ messages: [...messages, { role: "user", content: "Hello" }], model: "claude-opus-5-5",… reduce-latency Claude Developer Platform · in the page test-and-evaluate/strengthen-guardrails/reduce-latency …e applications, use Claude Haiku 5.5 at low effort const message = await client.messages.create({ model: "claude-haiku-5-5", max_tokens: 1024, output_config: { effort: "low" }, messa… Use Claude Code with a screen reader Claude Code CLI · in the page accessibility …/en/env-vars#variables) | Environment variable | How long Claude Code waits after the confirmation line before it draws the first prompt in screen reader mode. Requires Claude Code v2.1.217 or later.… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …t { query } from "@anthropic-ai/claude-agent-sdk"; > > try { > for await (const message of query({ prompt: "Summarize this project" })) { > if (message.type === "assistant") { > // Each as… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Help me refactor the auth module", options: { // "user" loads from ~/.claude/, "pr… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Summarize the open TODOs in this repo", options: { model: "claude-sonnet-5", a… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …subagents are still running at the end of the final turn, Claude Code waits for them, up to the cap described in [background tasks at exit](/docs/en/headless#background-tasks-at-exit), before emitting… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …y]: async with httpx.AsyncClient() as client: response = await client.get( "https://api.open-meteo.com/v1/forecast", params={ "latitude": args["lati… Rewind file changes with checkpointing Claude Code CLI · in the page agent-sdk/file-checkpointing …ession ID async with ClaudeSDKClient(options) as client: await client.query("Refactor the authentication module") # Step 2: Capture checkpoint UUID from the first user message… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …async with ClaudeSDKClient(options=options) as client: await client.query("Create a .env file with the standard local development database configuration") async for message in cl… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Summarize the files in this directory", options: { cwd: "/work/session-a" }, })) { c… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Use the docs MCP server to explain what hooks are in Claude Code", options: { mcpS… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …} from "@anthropic-ai/claude-agent-sdk"; const messages = []; for await (const message of query({ prompt: "Add a new React component for user profiles", options: { systemPrompt: { typ… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …EL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer your-token", }; for await (const message of query({ prompt: "List the files in this directory", // env replaces the inherited environment in TypeSc… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …rom "@anthropic-ai/claude-agent-sdk"; async function main() { for await (const message of query({ prompt: "Help me refactor this code", options: { permissionMode: "default" // Set the… Plugins in the SDK Claude Code CLI · in the page agent-sdk/plugins …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Hello", options: { plugins: [ { type: "local", path: "./my-plugin" },… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …ations: ToolAnnotations | None = None ) -> Callable[[Callable[[Any], Awaitable[dict[str, Any]]]], SdkMcpTool[Any]] ``` #### Parameters | Parameter | Type | Description | | :- | :- | :- | | `name` |… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …": "module"` in `package.json` lets your agent script use top-level `await`, and [tsx](https://tsx.hirok.io) runs TypeScript files directly. npm prints `added N packages` when the install succeeds. *… Persist sessions to external storage Claude Code CLI · in the page agent-sdk/session-storage …emorySessionStore(); let sessionId: string | undefined; try { for await (const message of query({ prompt: "List the TypeScript files under src/", options: { sessionStore: store }, })) {… Work with sessions Claude Code CLI · in the page agent-sdk/sessions …# First query: client captures the session ID internally await client.query("Analyze the auth module") async for message in client.receive_response(): print_response(me…
Feedback