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

1,272 pages for -p.

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 …> > The experimental [V2 session API](/docs/en/agent-sdk/typescript-v2-preview.md), which provided `createSession()` with a `send` / `stream` pattern, was removed in TypeScript Agent SDK 0.3.142. Use… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills ….md) can also expose [MCP prompts as commands](/docs/en/mcp.md#use-mcp-prompts-as-commands). ### Dispatch commands by name Send a command by including it in your prompt string, the same way you send… Stream responses in real-time Claude Code CLI · in the page agent-sdk/streaming-output …cation). Claude Code sets `user_message_uuid` on the turn's first non-ping stream event, and again when the message the turn is answering changes, under the conditions in [`user_message_uuid`](/docs/… Get structured output from agents Claude Code CLI · in the page agent-sdk/structured-outputs …he structure you need, and the SDK validates the output against it, re-prompting on mismatch. If validation does not succeed within the retry limit, the result is an error instead of structured data;… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …ining subagents as files](/docs/en/sub-agents.md) * **Built-in general-purpose**: Claude can invoke the built-in `general-purpose` subagent at any time via the Agent tool without you defining anything… Track todos Claude Code CLI · in the page agent-sdk/todo-tracking …x multi-step tasks** requiring three or more distinct actions * **User-provided task lists** when multiple items are mentioned * **Longer operations** that benefit from progress tracking * **Explicit… Scale to many tools with tool search Claude Code CLI · in the page agent-sdk/tool-search …ns it back on. [Disable pre-release capabilities](/docs/en/llm-gateway-protocol.md#disable-pre-release-capabilities) covers where the override applies and what the variable strips. Tool search applie… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …tput` is `None` | [CLI startup](#cli-startup), [CLI process exit](#cli-process-exit), and [Structured outputs](#structured-outputs) on this page | ## CLI startup ### CLINotFoundError: Claude Code no… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …onMode()`. See [plan mode](/docs/en/agent-sdk/permissions.md#plan-mode-plan) for how it interacts with `permissionMode: 'plan'` | | `allowedTools` | `string[]` | `[]` | Tools to auto-approve without p… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …the [permission evaluation flow](/docs/en/agent-sdk/permissions.md#how-permissions-are-evaluated), an allow rule or a mode like `acceptEdits` or `bypassPermissions`, resolves the call before `canUseTo… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …ve session. In [non-interactive mode](/docs/en/headless.md) with the `-p` flag, including Agent SDK sessions, Claude doesn't spawn teammates, and a subagent that Claude names runs as an ordinary [suba… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …he cloud from one conversation instead, see [Projects](/docs/en/claude-projects.md). > [!NOTE] > > Agent view is in research preview. The interface and keyboard shortcuts may change as the feature ev… Run agents in parallel Claude Code CLI · in the page agents …amic workflows](/docs/en/workflows.md), and [projects](/docs/en/claude-projects.md). They differ in how involved you stay, from steering each conversation yourself to letting Claude coordinate a group… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …manual setup](#set-up-manually) steps and [pin your model versions](#4-pin-model-versions) before rolling out. ## Sign in with Bedrock If you have AWS credentials and want to start using Claude Code… Track team usage with analytics Claude Code CLI · in the page analytics ….com/en/articles/12883420-view-usage-analytics-for-team-and-enterprise-plans) from your organization's analytics settings, which lists token usage and estimated usage-credit spend per user and per mod… Share session output as artifacts Claude Code CLI · in the page artifacts …ks you first, or in [auto mode](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) has the classifier review the publish: | When | What Claude Code does | | :- | :- | | The session is in… Authentication Claude Code CLI · in the page authentication …. If you see the login prompt anyway, [check what can cause it](#login-prompt-still-appears-after-an-earlier-sign-in). If the browser doesn't open automatically, press `c` to copy the login URL to yo… Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …and what to do. In [auto mode](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), a classifier checks actions such as shell commands and network requests before they run. Wherever [serve… Configure auto mode Claude Code CLI · in the page auto-mode-config …e CLI subcommands. [Auto mode](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) lets Claude Code run without routine permission prompts by routing tool calls through a classifier that b… Claude Code changelog Claude Code CLI · in the page changelog …ld a subshell * Fixed worktree-isolated sessions accepting some locale-prefixed commands the isolation guard should refuse * Fixed worktree-isolated sessions on zsh accepting some arithmetic commands… Push events into a running session with channels Claude Code CLI · in the page channels …u're away. > [!NOTE] > > Channels are in [research preview](#research-preview). They require Anthropic authentication through claude.ai or a Console API key, and are not available on Amazon Bedrock,… Channels reference Claude Code CLI · in the page channels-reference …] > > Channels are in [research preview](/docs/en/channels.md#research-preview). Team and Enterprise organizations must [explicitly enable them](/docs/en/channels.md#enterprise-controls). A channel i… Use Claude Code with Chrome Claude Code CLI · in the page chrome …ociate Agreement (BAA) with Anthropic doesn't cover data sent to third-party sites through Claude in Chrome. See the [Implementation Guide](https://trust.anthropic.com/resources?s=l1wrssd9hsbi4gak0tp5… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …eet [data residency](/docs/en/claude-apps-gateway-deploy.md#compliance-posture) requirements. If you don't have this requirement, and want access to other features such as SCIM provisioning or Claude… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …entity provider setup](/docs/en/claude-apps-gateway-deploy.md#identity-provider-setup) for what to register on the IdP side. | Field | Required | Description | | - | - | - | | `issuer` | Yes | OIDC d… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …nsult once it's running. 1. [Set up your identity provider](#identity-provider-setup): register the OAuth client and check the per-IdP notes for Okta, Entra, and Google 2. [Deploy the gateway](#deplo… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …entity provider setup](/docs/en/claude-apps-gateway-deploy.md#identity-provider-setup) for per-IdP details. > [!NOTE] > > Bedrock isn't the only Claude upstream on AWS. The gateway also supports Clau… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …entity provider setup](/docs/en/claude-apps-gateway-deploy.md#identity-provider-setup) for per-IdP details. ## What you'll build ![Diagram of Claude apps gateway on Google Cloud: Claude Code clients… Claude apps gateway spend limits Claude Code CLI · in the page claude-apps-gateway-spend-limits …50000", "period": "monthly"}' ``` This request layers a tighter \$100-per-day cap on each member of the `contractors` group: ```bash theme={null} curl -sS https://claude-gateway.internal.example.com… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …any cloud sessions for one body of work**: a [project](/docs/en/claude-projects.md) has Claude start and keep track of them for you > * **Steering a local session from another device**: sessions in yo… Explore the .claude directory Claude Code CLI · in the page claude-directory …const FILE_TREE = useMemo(() => ({ project: { label: 'your-project/', children: [{ id: 'claude-md', label: 'CLAUDE.md', type: 'file', icon: 'md',… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …uses [whichever models you have access to in Claude Code](#models-and-providers), and each scan counts toward your [usage](/docs/en/costs.md). If you want a managed service that monitors your reposit… claude-tag Claude Code CLI · in the page claude-tag …e dark" data-banner-state="visible" data-assistant-state="closed" data-page-mode="none" data-current-path="/"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-sc… CLI reference Claude Code CLI · in the page cli-reference …laude "explain this project"` | | `claude -p "query"` | Query via SDK, then exit… Configure cloud environments Claude Code CLI · in the page cloud-environments ….com/en/articles/11845131-use-claude-code-with-your-team-or-enterprise-plan). Each [cloud session](/docs/en/claude-code-on-the-web.md) runs in a cloud environment. You can configure an environment to… Code Review Claude Code CLI · in the page code-review …ions); see [GitHub App permissions](/docs/en/github-actions#github-app-permissions) for the full list. </Step> <Step title="Select repositories"> Choose which repositories to enable for Code… Code Review costs and usage Claude Code CLI · in the page code-review-costs …edits](https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans), separately from your plan's included usage. Reviews are billed to your organization, not to the developer who… Customize Code Review Claude Code CLI · in the page code-review-customize …s becomes a finding at whichever [severity level](/docs/en/code-review-pull-requests.md#severity-levels) fits the issue. A review reads the `CLAUDE.md` at your repository root and the `CLAUDE.md` fil… Review locally with /code-review Claude Code CLI · in the page code-review-local …`. Before v2.1.223, `/review` was a separate command that ran a single-pass, read-only review of a GitHub pull request. **1. Run /code-review** Run the command: ```text theme={null} /code-review ``… Set up Code Review Claude Code CLI · in the page code-review-setup …) and the [full permission list](/docs/en/github-actions.md#github-app-permissions). * When the install completes, the tab returns to Claude. If it shows a **Finish connecting GitHub** button, click i… Troubleshoot Code Review Claude Code CLI · in the page code-review-troubleshooting …view`. See [When a push keeps the earlier result](/docs/en/code-review-pull-requests.md#when-a-push-keeps-the-earlier-result) | | **Code review failed** or **Code review timed out** | The review didn'… Commands Claude Code CLI · in the page commands …dd most [network paths](/docs/en/errors#working-directory-is-a-network-path), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](/docs/en/hooks#directoryadded) run. When y… Common workflows Claude Code CLI · in the page common-workflows …n prompting and context management, see [Best practices](/docs/en/best-practices.md). This page covers: * [Prompt recipes](#prompt-recipes) for exploring code, fixing bugs, refactoring, testing, PRs… Communications kit Claude Code CLI · in the page communications-kit …on at least one real task this week, then drop a note in #claude-code-pilot covering what worked, what was annoying, and what surprised you. That feedback decides how we roll it out to everyone else.… Let Claude use your computer from the CLI Claude Code CLI · in the page computer-use …ive session, so it is not available in non-interactive mode with the `-p` flag. Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Clau… Explore the context window Claude Code CLI · in the page context-window …e start of every conversation.', link: '/en/memory#choose-where-to-put-claude-md-files' }, { t: 0.14, kind: 'auto', label: 'Project CLAUDE.md', tokens: 1800, color: '#6A9BCC'… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …uncher: the [background service](/docs/en/agent-view.md#the-supervisor-process), every session it hosts in [agent view](/docs/en/agent-view.md), and Claude Code's relaunches after an update. Set it to… Manage costs effectively Claude Code CLI · in the page costs …ttps://platform.claude.com/docs/en/about-claude/pricing#data-residency-pricing), Claude Code multiplies the list price of that response's tokens by 1.1 in the session cost figure. The same total appea… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …g, a status, or a decision, Claude passes it along instead of you copy-pasting between terminals. Claude discovers the target with `ListAgents` and sends with `SendMessage`, so you never call either t… Data usage Claude Code CLI · in the page data-usage …accounts). **Commercial users**: (Team and Enterprise plans, API, 3rd-party platforms, and Claude Gov) maintain existing policies: Anthropic does not train generative models using code or prompts sen…
Feedback