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

533 pages for wait.

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

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… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Help me process this PDF document", options: { cwd: process.cwd(), // .claude/skil… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "List the files in my project", options: { includePartialMessages: true, allowe… Streaming Input Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …e for security issues" }, parent_tool_use_id: null }; // Wait for conditions or user input await new Promise((resolve) => setTimeout(resolve, 2000)); // Follow-up with image yield… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …{ type: "string" } }, required: ["company_name"] }; try { for await (const message of query({ prompt: "Research Anthropic and provide key company information", options: { outputFo… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …={null} import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Review the authentication module for security issues", options: { // Auto-approve… Track todos Claude Code CLI · in the page agent-sdk/todo-tracking …import { query } from "@anthropic-ai/claude-agent-sdk"; try { for await (const message of query({ prompt: "Create a static website with a home page, an about page, and a shared stylesheet, and… Scale to many tools with tool search Claude Code CLI · in the page agent-sdk/tool-search …import { query } from "@anthropic-ai/claude-agent-sdk"; try { for await (const message of query({ prompt: "Find and run the appropriate database query", options: { mcpServers: {… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …d. Call connect() first. ``` Do what the message says. Either call `await client.connect()` before any other client method, or open the client with `async with ClaudeSDKClient() as client:`, which co… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …/claude-agent-sdk"; const cliPath = extractFromBunfs(binPath); for await (const message of query({ prompt: "Hello", options: { pathToClaudeCodeExecutable: cliPath }, })) { console.log(message)… TypeScript SDK V2 session API (removed) Claude Code CLI · in the page agent-sdk/typescript-v2-preview …e_v2_prompt } from "@anthropic-ai/claude-agent-sdk"; const result = await unstable_v2_prompt("What is 2 + 2?", { model: "claude-opus-4-7" }); if (result.subtype === "success") { console.log(resul… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …is different from normal conversation turns where Claude finishes and waits for your next message. For clarifying questions, Claude generates the questions and options. Your role is to present them t… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …e the three roles are independent and can explore the problem without waiting on each other: ```text wrap theme={null} I'm designing a CLI tool that helps developers track TODO comments across their… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …. ![Agent view in a terminal. A line at the top counts the sessions awaiting input, working, and completed. Four sessions are grouped under Needs input, Working, and Completed. Each row shows the ses… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …p in the chain stalls, for example a `credential_process` helper that waits for input it can't receive, the request fails with [`AWS default-chain credential resolve timed out`](/docs/en/errors#aws-de… Share session output as artifacts Claude Code CLI · in the page artifacts …see `Auto-replied to comment thread on Artifact: <name>`. * **Claude waits for you**: outside plan mode, when posting the reply would need your approval, you see `Comments are waiting on Artifact: <n… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …sion modes with `Shift+Tab` after you answer. Where the notice can't wait for an answer, Claude Code reports the same text and the session continues in auto mode, unless a gateway acknowledgment on t… Configure auto mode Claude Code CLI · in the page auto-mode-config …erage: a command that an allow rule would have approved instantly now waits for a classifier decision, and each shell command counts as a classifier call. The setting applies only while auto mode is… Best practices for Claude Code Claude Code CLI · in the page best-practices …entic coding environment. Unlike a chatbot that answers questions and waits, Claude Code can read your files, run commands, make changes, and autonomously work through problems while you watch, redire… Claude Code changelog Claude Code CLI · in the page changelog …n: the success page now appears as soon as sign-in completes, without waiting for your account profile to load * Improved web search errors in cloud and self-hosted runner sessions: a search refused w… Push events into a running session with channels Claude Code CLI · in the page channels …nt terminal. Unlike integrations that spawn a fresh cloud session or wait to be polled, the event arrives in the session you already have open: see [how channels compare](#how-channels-compare). You… Channels reference Claude Code CLI · in the page channels-reference …Connect to Claude Code over stdio (Claude Code spawns this process) await mcp.connect(new StdioServerTransport()) // Start an HTTP server that forwards every POST to Claude Bun.serve({ port: 8788,… Use Claude Code with Chrome Claude Code CLI · in the page chrome …n install page in your browser and starts a guided setup. Claude Code waits for the install, connects the extension, and enables browser tools in the same session. When the connection is ready, select… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …e/gateway.yaml","sha256":"…"} [gateway] 2026-06-10T17:03:21.395Z info waiting for migration lock (another replica may be migrating; check pg_locks for key 6775156 if this persists) [gateway] 2026-06-1… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …ndex 0 signs and all entries verify. To rotate, prepend a new secret, wait `ttl_hours`, then drop the old one. | | `ttl_hours` | No | Gateway bearer token lifetime. Default `1`. The CLI silently refre… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …stream ends. A request that arrives while a replica is at the limit waits inside the gateway for a free slot. The developer sees a response that is slow to start or appears to hang. On a `provider:… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …n` from a `0600` file instead, the way the bundle's `setup.sh` does. Wait for the instance to come up, which can take several minutes, then read its private endpoint and assemble the connection strin… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …d> ``` The CLI queues the message into the session and exits without waiting for a reply. Use it to steer a long-running session, queue the next step while the current one is still finishing, or send… Explore the .claude directory Claude Code CLI · in the page claude-directory …afted feedback](/docs/en/tools-reference#sendfeedback-tool-behavior) awaiting your review in `/feedback`. Swept after `cleanupPeriodDays` or 30 days, whichever is shorter. When the queue is at its 10-… Claude Code on Claude Platform on AWS Claude Code CLI · in the page claude-platform-on-aws …wrkspc_01ABCDEFGHIJKLMN"; process.env.AWS_REGION = "us-east-1"; for await (const msg of query({ prompt: "What's in this repo?" })) { console.log(msg); } ``` This example relies on the ambient AWS… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …ktop), the rollout hasn't reached your account, and you can [join the waitlist](https://claude.com/form/projects). [Run agents in parallel](/docs/en/agents) lists what you can use in the meantime. A… CLI reference Claude Code CLI · in the page cli-reference …ngs (space-separated). When you pass this flag with `-p`, Claude Code waits for still-pending servers to connect before running the first turn, up to the [`MCP_TIMEOUT`](/docs/en/env-vars) startup tim… Configure cloud environments Claude Code CLI · in the page cloud-environments …et its own command timeout, so the Bash tool's defaults apply. Claude waits 2 minutes for a foreground command by default and can ask for up to 10 minutes. When a command reaches its [timeout](/doc… Code Review Claude Code CLI · in the page code-review …on-interactive mode, with the `-p` flag or the Agent SDK; Claude Code waits for the review and includes the findings in the response, except for `ultra`, which [doesn't wait for the cloud review](/doc… Review locally with /code-review Claude Code CLI · in the page code-review-local …on-interactive mode, with the `-p` flag or the Agent SDK. Claude Code waits for the review and includes the findings in the response, except for `ultra`, which [doesn't wait for the cloud review](/doc… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …oting#retrigger-a-failed-or-timed-out-review) from the check run. * **Wait for the automatic retry**: a review whose session was interrupted is retried once automatically. The [check run's summary](/d… Troubleshoot Code Review Claude Code CLI · in the page code-review-troubleshooting …..** or **Code review in progress...** | The review hasn't finished | Wait for the title to change | | **Code review found no issues** | The review finished and found nothing to flag | Nothing | | A t… Commands Claude Code CLI · in the page commands …while Claude is responding and Claude Code toggles fast mode without waiting for the turn to end, though the running turn finishes at its original speed. Before v2.1.242, Claude Code decided from a f… Common workflows Claude Code CLI · in the page common-workflows …nd directories Use @ to quickly include files or directories without waiting for Claude to read them. **1. Reference a single file** ```text wrap theme={null} Explain the logic in @src/utils/auth.j… Communications kit Claude Code CLI · in the page communications-kit …format it for standup" three times this week? That's a slash command waiting to happen. A SKILL.md file in `.claude/skills/<name>/` becomes a reusable prompt; type `/name` to run it. Make one the se… Explore the context window Claude Code CLI · in the page context-window …the content itself appears.' : focusT < STARTUP_END ? 'The input box, waiting for your first message. Everything above loads silently before you type anything.' : focusT < 0.28 ? 'Your prompt. Claude… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …ingle sign-on exchange lazily or from a cache, and give any step that waits on the network its own time limit. * **Tolerate being invoked from inside itself.** Claude Code applies the launcher to ever… Manage costs effectively Claude Code CLI · in the page costs …ead. If you run `/usage-credits` again while your earlier request is waiting on an admin, Claude Code tells you a request has already been sent rather than sending a duplicate. After an admin dismiss… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …s the session finished a turn with nothing queued. Use it when you're waiting on a long task in another session and want to hear when it's done instead of checking. Requires Claude Code v2.1.236 or la… Desktop application Claude Code CLI · in the page desktop …Claude acts on an external site, a permission card appears and Claude waits for your choice: **Allow once**, **Always allow**, or **Deny**. **Allow once** approves the action without saving anything.… Get started with the desktop app Claude Code CLI · in the page desktop-quickstart …ermission-mode) in the row under the prompt box to see whether Claude waits for your approval: * **Auto or Accept edits**: Claude applies its file changes, and an indicator such as `+12 -1` appears s… Schedule recurring tasks in Claude Code Desktop Claude Code CLI · in the page desktop-scheduled-tasks …From here you can: * **Run now**: start the task immediately without waiting for the next scheduled time * **Status**: toggle between Active and Paused to pause or resume scheduled runs without delet…
Feedback