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,316 pages for mode.

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

Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …entry instead. The root entry inlines its own copies of `zod` and `@modelcontextprotocol/sdk`. The `/core` entry imports them from your `node_modules` at the ranges the Agent SDK's `peerDependencies… TypeScript SDK V2 session API (removed) Claude Code CLI · in the page agent-sdk/typescript-v2-preview …-sdk"; const result = await unstable_v2_prompt("What is 2 + 2?", { model: "claude-opus-4-7" }); if (result.subtype === "success") { console.log(result.result); } ``` <details> <summary>See the… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …a [permission rule](/docs/en/agent-sdk/permissions.md) or permission mode. Check `tool_name` for the tool (e.g., `"Bash"`, `"Write"`). 2. **Claude asks a question**: Claude calls the `AskUserQuestion… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …g teammates also requires an interactive 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… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …ether it's working, waiting on you, or done. The new session uses the model shown in the agent view header. [Which permission mode it starts in](#permission-mode-model-and-effort) depends on how you o… Run agents in parallel Claude Code CLI · in the page agents …rk across agents: * A [background bash command](/docs/en/interactive-mode.md#background-bash-commands) runs one shell command without blocking the conversation. It doesn't spawn an agent. * A [forked… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …account with Amazon Bedrock access enabled * Access to desired Claude models (for example, Claude Sonnet 4.6) in Amazon Bedrock * AWS CLI installed and configured (optional - only needed if you don't… Track team usage with analytics Claude Code CLI · in the page analytics …h lists token usage and estimated usage-credit spend per user and per model. ### Enable contribution metrics > [!NOTE] > > Contribution metrics are in public beta and available on Claude for Teams a… Share session output as artifacts Claude Code CLI · in the page artifacts …sifier review. In these cases Claude Code asks 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… Authentication Claude Code CLI · in the page authentication …ude Code stores your login in `~/.claude/.credentials.json` with file mode `0600` instead, the same storage it uses on Linux. A Console login that creates an API key fails until the Keychain is writab… Best practices for Claude Code Claude Code CLI · in the page best-practices …flow](/docs/en/workflows.md) that checks its own findings has a fresh model try to refute the result, so the agent doing the work isn't the one grading it. Each step trades setup for attention. The p… Champion kit Claude Code CLI · in the page champion-kit …king which were missing tests surfaced two I had overlooked." * "Plan mode (`Shift+Tab`) lays out the proposed changes first, which is why I am comfortable using it on shared code." * "I configured a… Claude Code changelog Claude Code CLI · in the page changelog …* Changed the dangerous `rm` and `rmdir` prompt in bypass permissions mode in the Desktop app and VS Code to deny the command at once with a rewrite hint, so unattended sessions keep going * Changed c… Push events into a running session with channels Claude Code CLI · in the page channels …e like `← fakechat · web: what's in my working directory?`, while the model receives it as a `<channel source="plugin:fakechat:fakechat">` event, using the plugin's scoped server name. Claude reads it… Channels reference Claude Code CLI · in the page channels-reference …in the research preview. ## Overview A channel is an [MCP](https://modelcontextprotocol.io) server that runs on the same machine as Claude Code. Claude Code spawns it as a subprocess and communicat… Checkpointing Claude Code CLI · in the page checkpointing …ssage you [typed while Claude was still working](/docs/en/interactive-mode.md#queue-messages-while-claude-works) can be marked **No code restore**. Claude read that message before its turn ended. [Che… Use Claude Code with Chrome Claude Code CLI · in the page chrome …o control which sites Claude can browse, click, and type on. In [auto mode](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), when the auto mode classifier itself approves a browser call… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …soft Foundry behind a self-hosted gateway with SSO sign-in, per-group model access, and OTLP telemetry. > [!NOTE] > > The Claude apps gateway is designed for organizations that must, or prefer to, ro… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …AWS, Google Cloud's Agent Platform, and Microsoft Foundry upstreams, model routing, managed policies, and telemetry. A Claude apps gateway deployment is configured by one YAML file, conventionally `… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …w the security posture](#security): what data flows where, the threat model, and compliance answers. Reference for a security review If a sign-in or boot fails along the way, go straight to [Troubles… Deploy Claude apps gateway on AWS Claude Code CLI · in the page claude-apps-gateway-on-aws …mple provisions Claude apps gateway on AWS with Amazon Bedrock as the model upstream, using either [Amazon ECS](https://aws.amazon.com/ecs/) on [AWS Fargate](https://aws.amazon.com/fargate/) or [Amazo… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …pps gateway on Google Cloud with Google Cloud's Agent Platform as the model upstream, using either Cloud Run or GKE for compute. Google Workspace is the example identity provider (IdP), but any OpenID… Claude apps gateway spend limits Claude Code CLI · in the page claude-apps-gateway-spend-limits …group caps, then the org default, then unlimited. [`admin.group_limit_mode: max`](/docs/en/claude-apps-gateway-config#admin) flips the multi-group tie-break to least-restrictive instead. ### Authenti… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …ally, execute in the cloud**: for complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the cloud: ```bash theme={null} claude --permission-mode plan ``` In plan… Explore the .claude directory Claude Code CLI · in the page claude-directory …pm test\` - Lint: \`npm run lint\` ## Stack - TypeScript with strict mode - React 19, functional components only ## Rules - Named exports, never default exports - Tests live next to source: \`foo.ts… Claude Code on Claude Platform on AWS Claude Code CLI · in the page claude-platform-on-aws …billing. Requests reach Anthropic's API directly, so you get the same models and API features as the [Claude API](https://platform.claude.com/docs) on the same release schedule. You authenticate with… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …talled-instead-of-asking) covers where to fix that. 3. Check **Thread model** and **Thread effort** in **Project settings > General**. A new project runs every thread on Opus at high effort, which dra… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …sion. A team of Claude agents maps your architecture, builds a threat model, hunts for vulnerabilities, and independently reviews every finding before writing the report. Use the plugin to scan a whol… claude-tag Claude Code CLI · in the page claude-tag …" 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-scale=1,… CLI reference Claude Code CLI · in the page cli-reference …all` also includes completed background sessions). Pass `--permission-mode`, `--model`, `--effort`, or `--agent` to set [defaults for dispatched sessions](/docs/en/agent-view#permission-mode-model-and… Configure cloud environments Claude Code CLI · in the page cloud-environments …ic's servers when the session starts. See [Surface coverage](/docs/en/model-config.md#surface-coverage) for how `availableModels` is enforced in cloud sessions. Settings deployed to your device throug… Code Review Claude Code CLI · in the page code-review …e review` [starts a review on a PR](#manually-trigger-reviews) in any mode. When a review runs, multiple agents analyze the diff and surrounding code in parallel on Anthropic infrastructure. Each age… Code Review costs and usage Claude Code CLI · in the page code-review-costs …nts: * **`@claude review always` in Once after PR creation or Manual mode**: [opts the PR into push-triggered reviews](/docs/en/code-review-pull-requests.md#comment-commands), so additional cost accr… Review locally with /code-review Claude Code CLI · in the page code-review-local …gs, and reports what it found in your conversation. Depending on your model and effort level, the review also covers reuse, simplification, and efficiency cleanups. The command works on any plan. The… Read and request reviews on a pull request Claude Code CLI · in the page code-review-pull-requests …pository set to **Manual**, or another review right away in the other modes | | `@claude review always` | Starts a review and subscribes the PR to push-triggered reviews going forward | You want subse… Commands Claude Code CLI · in the page commands …Claude Code from inside a session. They provide a quick way to switch models, manage permissions, clear context, run a workflow, and more. Type `/` to see the commands available to you, or type `/` f… Common workflows Claude Code CLI · in the page common-workflows …tterns used here ``` ```text wrap theme={null} what are the key data models? ``` ```text wrap theme={null} how is authentication handled? ``` > [!TIP] > > Tips: > > * Start with broad questions, th… Communications kit Claude Code CLI · in the page communications-kit …rprise plan, Anthropic does not use your code or prompts to train its models. Details: https://code.claude.com/docs/en/data-usage https://code.claude.com/docs/en/security Where to go with qu… Let Claude use your computer from the CLI Claude Code CLI · in the page computer-use …res an interactive 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. Fro… Explore the context window Claude Code CLI · in the page context-window …ontent loads only when Claude actually uses one. Skills with `disable-model-invocation: true` are not in this list. They stay completely out of context until you invoke them with `/name`. After compac… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …inherited ones is not. * The per-session authentication tokens, the model and provider selection, and `CLAUDE_CODE_PROCESS_WRAPPER` itself all travel on the inherited environment, so a launcher that… Manage costs effectively Claude Code CLI · in the page costs …m spend limits, and reduce Claude Code costs with context management, model selection, extended thinking settings, and preprocessing hooks. Claude Code charges by API token consumption. For subscript… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …ed. A held message reaches Claude only when you approve it or a later mode or settings change allows it. * **Refused**: Claude Code drops the message without delivering it. Once delivered, the messag… Data usage Claude Code CLI · in the page data-usage …you the choice to allow your data to be used to improve future Claude models. We will train new models using data from Free, Pro, and Max accounts when this setting is on (including when you use Claud… Debug your configuration Claude Code CLI · in the page debug-your-config …s. ## Test against a clean configuration Start with [`claude --safe-mode`](/docs/en/cli-reference#cli-flags), which launches a session with your customizations disabled, including: * `CLAUDE.md` *… Launch sessions from links Claude Code CLI · in the page deep-links …page you do not trust, the prompt is still inert: nothing reaches the model until you read what was filled in and press Enter. When the session opens, a warning line below the input box reads `Prompt… Desktop application Claude Code CLI · in the page desktop …our first message, choose the environment, project folder, permission mode, and model in the row under the prompt box: * **Environment**: use the environment selector, the first control in the row, t… Test iOS apps in the simulator Claude Code CLI · in the page desktop-ios-simulator …ding the app or opening a URL on it follows your session's permission mode. You or your organization can also turn Claude's access off entirely. ### Allow a device the first time The first time Clau… Get started with the desktop app Claude Code CLI · in the page desktop-quickstart …, and git execute on the Linux side with native paths. **2. Choose a model** Select a model from the model picker toward the right end of the row under the prompt box. See [models](/docs/en/model-co… Schedule recurring tasks in Claude Code Desktop Claude Code CLI · in the page desktop-scheduled-tasks …and connectors | Inherits from session | | Permission prompts | [Auto mode](/docs/en/routines.md#permission-prompts-during-a-run) by default | Configurable per task | Inherits from session | | Customi…
Feedback