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

773 pages for write.

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

Work with sessions Claude Code CLI · in the page agent-sdk/sessions …l call the agent made, every tool result, and every response. The SDK writes it to disk automatically so you can return to it later. Returning to a session means the agent has full context from befor… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …Claude invoke every discovered skill allowed_tools=["Read", "Write", "Bash"], ) async for message in query( prompt="Help me process this PDF document", options=options ):… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …if (event.delta.type === "text_delta") { process.stdout.write(event.delta.text); } } } } ``` ## StreamEvent reference When partial messages are enabled, you receive raw Cla… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …Claude will invoke it when your prompt mentions optimizing queries. Write clear, specific descriptions so Claude can match tasks to the right subagent. ### Explicit invocation To guarantee Claude… Track todos Claude Code CLI · in the page agent-sdk/todo-tracking …oesn't recognize, they aren't available unless you opt in: > > * `TodoWrite` > * `TaskCreate` > * `TaskGet` > * `TaskUpdate` > * `TaskList` > > Wherever the tools are available, Claude Code provides t… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …returned [`WarmQuery`](#warmquery) handle accepts a prompt later and writes it to an already-ready process, so the first `query()` call resolves without paying subprocess spawn and initialization cos… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …or permission mode. Check `tool_name` for the tool (e.g., `"Bash"`, `"Write"`). 2. **Claude asks a question**: Claude calls the `AskUserQuestion` tool. Check if `tool_name == "AskUserQuestion"` to han… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …still delivered. Claude Code reports a message as sent only when the write to the recipient's mailbox file succeeds, whether the message is plain text or a structured protocol message such as a plan… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …on's own recent output without sending a model request, and the model writes a fresh summary when each turn ends. A working row shows what the session says it's doing, and a blocked row shows the que… Run agents in parallel Claude Code CLI · in the page agents …kflows](/docs/en/workflows.md): run a bundled workflow or have Claude write one that runs many subagents and verifies their findings against each other. * [Run parallel sessions with worktrees](/docs/… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …e model pin step starts from your currently pinned models. The wizard writes to `~/.claude/settings.json`, or to `$CLAUDE_CONFIG_DIR/settings.json` when [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variabl… Track team usage with analytics Claude Code CLI · in the page analytics …users accept Claude Code's code editing suggestions, including Edit, Write, and NotebookEdit tool usage * **Lines of code accepted**: total lines of code written by Claude Code that users have accept… Share session output as artifacts Claude Code CLI · in the page artifacts …t updated as you investigate. ``` Unless you name a location, Claude writes the page to an HTML or Markdown file in a temporary directory outside your project, then publishes it. The artifact stays p… Authentication Claude Code CLI · in the page authentication …you have a profile instead of a stored API key: * **Which profile it writes**: Claude Code writes the profile named by `ANTHROPIC_PROFILE`, or your active profile, or `default`. If that profile is a… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …: * **An LLM gateway or proxy is in the path**: one that strips or rewrites request headers, drops request fields it doesn't recognize, or edits responses. The server then never receives the request… Configure auto mode Claude Code CLI · in the page auto-mode-config …commands that begin with `git push` or `gh pr create`. A push Claude writes another way, such as `git -C <dir> push` or `git -c <key>=<value> push`, [doesn't match the rule](/docs/en/permissions.md#b… Best practices for Claude Code Claude Code CLI · in the page best-practices …teria** | *"implement a function that validates email addresses"* | *"write a validateEmail function. example test cases: [[email protected]](mailto:[email protected]) is true, invalid is false, [user@.… Champion kit Claude Code CLI · in the page champion-kit …a screenshot and one or two sentences; avoid turning them into formal write-ups. | | Answering questions in a shared channel | About 20 minutes | Answer publicly once, then link back to that answer wh… Claude Code changelog Claude Code CLI · in the page changelog …e in the Desktop app and VS Code to deny the command at once with a rewrite hint, so unattended sessions keep going * Changed commands the settings exclude from the sandbox to ask before writing to it… Channels reference Claude Code CLI · in the page channels-reference …&& cd webhook-channel bun add @modelcontextprotocol/sdk zod ``` **2. Write the channel server** Create a file called `webhook.ts`. This is your entire channel server: it connects to Claude Code over… Use Claude Code with Chrome Claude Code CLI · in the page chrome …e v2.1.293 or later. ### Draft content in Google Docs Use Claude to write directly in your documents without API setup: ```text wrap theme={null} Draft a project update based on the recent commits… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …ateway-config.md) covers every option in the YAML file the quickstart writes, and the [deployment guide](/docs/en/claude-apps-gateway-deploy.md) covers per-IdP setup, Kubernetes and Cloud Run deployme… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …apply. This page is the reference for every option in that file. To write your first one, start from the [quickstart](/docs/en/claude-apps-gateway#quickstart), which builds a minimal working config… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …dpoints, for example with an HTTP-to-HTTPS or host-canonicalization rewrite at the ingress. Claude Code doesn't follow redirects on those requests, so an ingress rule that redirects them breaks sign-i… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …ay-db` security group only admits the gateway's security group. **4. Write gateway.yaml** The `upstreams` block points at Bedrock with `auth: {}`, so the gateway authenticates via the AWS default cr… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …Cloud Run or GKE runtime must be on, or routed into, this VPC. **5. Write gateway.yaml** The `upstreams` block points at Google Cloud's Agent Platform with `auth: {}`, so the gateway authenticates… Claude apps gateway spend limits Claude Code CLI · in the page claude-apps-gateway-spend-limits …e.com/v1/organizations/spend_limits \ -H "x-api-key: $GATEWAY_ADMIN_WRITE_KEY" \ -H "Content-Type: application/json" \ -d '{"scope": {"type": "organization"}, "amount": "50000", "period": "month… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …* **A linked worktree with a sparse checkout**: `git sparse-checkout` writes settings to the worktree's own `config.worktree` file, which the upload doesn't accept, so a worktree that has those settin… Explore the .claude directory Claude Code CLI · in the page claude-directory …r servers only you need, run <C>claude mcp add --scope user</C>. This writes to <C>~/.claude.json</C> instead of <C>.mcp.json</C></>], exampleIntro: <>This example configures the Notion MCP se… Claude Code on Claude Platform on AWS Claude Code CLI · in the page claude-platform-on-aws …default, set `ENABLE_PROMPT_CACHING_1H=1`. The API bills 1-hour cache writes at a higher rate. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pricing… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …he documents instead of adding a repository, and threads deliver each write-up as a file on the project's [**Library** tab](#see-what-needs-you-in-overview). In any of them you can send a batch of ta… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …uidance plugin](/docs/en/security-guidance.md) reviews code as Claude writes it, [`/security-review`](/docs/en/commands#all-commands) runs a single pass over your branch, and [Code Review](/docs/en/co… claude-tag Claude Code CLI · in the page claude-tag …'s class unchanged, as for .tm-hero and .home-landing above, but rewrites an <img>'s class list. .card, [data-component-part], #content-container, #content-area, #header, #page-title, #page-c… CLI reference Claude Code CLI · in the page cli-reference …| | `--debug-file <path>` | Write debug logs to a specific file path. Implicitly enables debug mode. Takes precedence over `CLAUDE_CODE_DEBUG_LOGS_DIR`… Configure cloud environments Claude Code CLI · in the page cloud-environments …de mcp add` at the default local scope or the user scope | No | Those write to `~/.claude.json` on your machine, not the repo. Add the server with `claude mcp add --scope project`, which writes the re… Code Review Claude Code CLI · in the page code-review …and posts comments and the [check run](#check-run-output) through its write access to pull requests and checks. During installation, you grant a broader permission set shared by other Claude features,… Customize Code Review Claude Code CLI · in the page code-review-customize …tions, alongside Code Review's default review guidance. The step that writes the final review consults it before settling severity and writing the summary. This example layout has a root file and one… Review locally with /code-review Claude Code CLI · in the page code-review-local ….md#resolve-skills-that-share-a-name). * **Build your own reviewer**: write a reviewer [subagent](/docs/en/sub-agents.md) or a review [skill](/docs/en/skills.md) * **Use a neighboring command**: [`/si… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …a rule to [`REVIEW.md`](/docs/en/code-review-customize#choose-what-to-write-in-review-md). To get that next review without pushing, comment `@claude review` as a [top-level pull request comment](#com… Set up Code Review Claude Code CLI · in the page code-review-setup …en't an owner, have one install and link the app before you start | | Write access to each repository you add, from the GitHub account you connect to Claude | Adding the repository | ## Turn on Code… Troubleshoot Code Review Claude Code CLI · in the page code-review-troubleshooting …-commands) and post a new comment that meets them. * **You don't have write access**: you need write, maintain, or admin permission on the repository. On a pull request from a fork, the permission tha… Commands Claude Code CLI · in the page commands …n/skills#bundled-skills)**: a bundled skill. It works like skills you write yourself: a prompt handed to Claude. * `/verify` runs only when you invoke it. Before v2.1.215, Claude could also run `/ve… Communications kit Claude Code CLI · in the page communications-kit …[!NOTE] > > Treat everything here as draft copy, not finished copy. Rewrite each message in your organization's voice, swap the example tasks for real bugs and modules from your own codebase, and repl… Let Claude use your computer from the CLI Claude Code CLI · in the page computer-use …idate native apps**: ask Claude to build a macOS menu bar app. Claude writes the Swift, compiles it, launches it, and clicks through every control to verify it works before you ever open it. * **End-t… Explore the context window Claude Code CLI · in the page context-window …d nested CLAUDE.md files load into message history when Claude reads, writes, or edits their trigger file, so compaction summarizes them away with everything else. If a rule must persist across compac… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …by binary path, never by display name. ## Set up the launcher **1. Write the launcher script** Create an executable script at an absolute path, such as `/opt/corp/launcher`. Claude Code runs it wi… Manage costs effectively Claude Code CLI · in the page costs …-sonnet-4-6: 1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55) ``` These totals reset when `/clear` starts a new session, so the next session's total cost starts at \$0. Before v… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …can send the answer across. A message is a piece of text one Claude writes to another, never the sender's conversation history or files. To move a whole conversation or its context, [resume the sess… Data usage Claude Code CLI · in the page data-usage …-in [Claude apps gateway](/docs/en/claude-apps-gateway) sessions, Yes writes the same payload to a local archive under `~/.claude/feedback-bundles/` instead of uploading; nothing leaves your machine u… Debug your configuration Claude Code CLI · in the page debug-your-config …file has grown long enough that individual rules get less attention. [Write effective instructions](/docs/en/memory.md#write-effective-instructions) covers the specificity, size, and structure pattern…
Feedback