518 pages for cases.
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
…scribes the current default. Endpoint-managed policy is loaded in all cases; server-managed settings are fetched when the session authenticates with an organization credential on an [eligible configur…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…to understand the code 2. **Analyzed** the logic and identified edge cases that would crash 3. **Edited** the file to add proper error handling This is what makes the Agent SDK different: Claude exe…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…uests or to exfiltrate data. For many single-developer and CI/CD use cases, sandbox-runtime raises the bar significantly with minimal setup. The sections below cover containers and VMs for deployment…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…are generated, enable partial message streaming. > [!NOTE] > > These cases are covered on other pages: > > * **Sending messages to a running session**: see [Send messages to a running agent](https://…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…over, before falling back to a batch shim. You see the refusal in two cases: * You set `ClaudeAgentOptions(cli_path=...)` to a `.bat` or `.cmd` file, such as npm's `claude.cmd` shim. * Your install h…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ude.com/docs/en/managed-settings.md#delivery-mechanisms) loads in all cases. `resolveSettings()` includes server-managed settings only when you pass `options.serverManagedSettings` | | `options.manage…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…s = { canUseTool: handleToolRequest }; ``` The callback fires in two cases: 1. **Tool needs approval**: Claude makes a call that the [permission flow](https://code.claude.com/docs/en/agent-sdk/permi…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…e examples](#use-case-examples) for full scenarios. The strongest use cases are: * **Research and review**: multiple teammates can investigate different aspects of a problem simultaneously, then shar…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…tarted from a shell that exported the same gateway, and only in these cases: * You background your own session with `←` or `/background` * You dispatch a session into the directory you're in * You wa…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…ur configured fallback instead. Without a chain, the request fails in cases such as these: * Your session is on a [pinned model](#4-pin-model-versions) or an [application inference profile ARN](#map-…
Claude Approvals
Claude Code CLI · in the page
approvals
…s-setup.md#let-claude-approve-when-code-review-passes) For the other cases, see [Merges without human review](https://code.claude.com/docs/en/approvals-github-rules.md#merges-without-human-review).…
Claude Approvals classifiers
Claude Code CLI · in the page
approvals-classifiers
…start, was broken off, or ran longer than the check waits | In both cases, an override that needs the answer leaves the rule's own `verdict` in place. A rule's own `if` that needs the answer fails t…
Claude Approvals policy file reference
Claude Code CLI · in the page
approvals-policy
…approve a change, or one person when Claude's review passes. In both cases, the pull request's author can count as one person: ```yaml theme={null} # .claude/approvals.yml version: 1 mode: observe r…
Work with Claude Approvals on a pull request
Claude Code CLI · in the page
approvals-pull-requests
…rve mode)**. The check can wait, fail, be withheld, or be missing in cases such as these: | Case | What the check does | | :- | :- | | The pull request changes a policy or classifier file | It can w…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…Outside `bypassPermissions` mode, the publish needs your approval in cases such as these, or the classifier's review in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-promp…
Authentication
Claude Code CLI · in the page
authentication
…e opens a browser window for you to log in on first launch, except in cases such as these, where it can skip the login prompt: * **API key**: you've set the `ANTHROPIC_API_KEY` environment variable a…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…est API keys, placeholder credentials in examples, or hardcoding test cases. Placeholder means authored as a placeholder — a file or value copied from a real secret or sensitive path is never a test a…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…t can't have exceptions. Claude Code is built in a way that, in most cases, your first plain prompt in a fresh session already does the right thing, without any setup on your part. For example: * T…
Claude Code changelog
Claude Code CLI · in the page
changelog
…an editor only from "Open in editor" **85 bug fixes** * Fixed more cases of Claude and artifact publish prompts calling an artifact private when other people can open it * Fixed Claude losing the g…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…d this setting if your organization deploys managed settings. In all cases, no channel runs until a user opts it in for the session with `--channels`. | Setting | Purpose | When not configured | | :…
Checkpointing
Claude Code CLI · in the page
checkpointing
…ession) or `claude --continue --fork-session` instead. ## Common use cases Checkpoints are particularly useful when: * **Exploring alternatives**: try different implementation approaches without lo…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…g ingress, and set `listen.public_url` to the external origin in both cases. At `/login`, Claude Code accepts a plain `http://` origin only when the gateway host is loopback: `localhost`, `127.0.0.1`,…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…nd doesn't fail over. A request moves past an upstream only in these cases: * The upstream has failed * The upstream doesn't serve the requested model * The upstream has a [`groups` list](#send-each…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…in front of plain-HTTP replicas, with `listen.public_url` set in both cases. The gateway doesn't refuse plain HTTP. The IdP must serve HTTPS in production, and Postgres supports `?sslmode=require`. Se…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…on auto-fix for pull requests, and troubleshoot. > [!NOTE] > > These cases are covered on other pages: > > * **Starting your first cloud session**: [Get started with cloud sessions](https://code.clau…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…e Code deletes these transcripts after `cleanupPeriodDays` instead in cases such as these: * [Managed settings](https://code.claude.com/docs/en/managed-settings.md) set `cleanupPeriodDays` * The…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…ur-own-computer). Something other than a project fits better in these cases: * **One task that fits in a session**: "Fix the flaky login test." Start a [cloud session](https://code.claude.com/docs/en…
Claude Ship
Claude Code CLI · in the page
claude-ship
…ssues such as logic errors, security vulnerabilities, and broken edge cases * [PR Steward](https://code.claude.com/docs/en/pr-steward.md): works on review feedback and failing checks * [Claude Approva…
claude-tag
Claude Code CLI · in the page
claude-tag
…an, max plan, ultra plan, personal account, claude tag vs cowork, use cases","publisher":{"@id":"https://claude.com/#organization"},"isPartOf":{"@id":"https://claude.com/docs#website"}}]}</script><lin…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…laude Code starts in the session's VM afterward, which happens in two cases: * **The VM is restored after being idle**: after a few minutes without activity, a session's VM pauses with its files save…
Code Review
Claude Code CLI · in the page
code-review
…base, looking for logic errors, security vulnerabilities, broken edge cases, and subtle regressions. Findings are tagged by severity and don't approve or block your PR, so existing review workflows s…
Review locally with /code-review
Claude Code CLI · in the page
code-review-local
…on](https://code.claude.com/docs/en/hipaa-setup.md) applied. In these cases, `/code-review ultra` runs a local review in your session instead. Organizations that use [customer-managed encryption keys]…
Read and request reviews on a pull request
Claude Code CLI · in the page
code-review-pull-requests
…l open then. **3. Act on the result** Have your script handle these cases in order: * **The title starts with `Code review not repeated`**: Code Review [kept an earlier result](#when-a-push-keeps-t…
Set up Code Review
Claude Code CLI · in the page
code-review-setup
…s** is on by default. With it on, Claude posts a tip in each of these cases, explaining: * **The repository is set to Manual**: how to request a review with a comment * **The pull request comes from…
Troubleshoot Code Review
Claude Code CLI · in the page
code-review-troubleshooting
…command-didn’t-start-a-review) | ## A review didn't start Use these cases when no **Claude Code Review** check run appears, or when Claude posts a comment saying the review was skipped. One case cov…
Common workflows
Claude Code CLI · in the page
common-workflows
…add tests for the notification service ``` **3. Add meaningful test cases** ```text wrap theme={null} add test cases for edge conditions in the notification service ``` **4. Run and verify tests**…
Communications kit
Claude Code CLI · in the page
communications-kit
…first" | | Write tests | "write tests for \[file] that cover the edge cases around \[scenario]" | | Review before commit | "look at my working diff and tell me what looks risky" | | Open a PR | "fix \…
Manage costs effectively
Claude Code CLI · in the page
costs
…a previous checkpoint. * **Give verification targets**: Include test cases, paste screenshots, or define expected output in your prompt. When Claude can verify its own work, it catches issues before…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…k another session is doing, or you can ask it to send one. The common cases: * **Hand over a finding**: when one session discovers a breaking change or makes a decision, Claude summarizes it for the…
Desktop application
Claude Code CLI · in the page
desktop
…sually opens the session without a card. You still see a card in some cases, such as Auto with the other session in Bypass permissions. Work that resumes when you open a session yourself also resumes…
Get started with the desktop app
Claude Code CLI · in the page
desktop-quickstart
…tps://code.claude.com/docs/en/desktop-linux.md). > [!NOTE] > > These cases are covered on other pages: > > * **Already set up**: see [Use Claude Code Desktop](https://code.claude.com/docs/en/desktop.…
Error reference
Claude Code CLI · in the page
errors
…reduced `max_tokens`, and stops retrying and compacts instead in two cases: * When no reduction can fit, for example when the conversation itself nearly fills the context window. * When a retry c…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…led and `/fast` says otherwise, find the message it shows among these cases. #### Fast mode unavailable due to network connectivity issues The availability check failed, for example because your net…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…le. If that user is a bot, list it in `allowed_bots`. ## Example use cases The [examples directory](https://github.com/anthropics/claude-code-action/tree/main/examples) contains ready-to-use workflo…
Claude Code GitLab CI/CD
Claude Code CLI · in the page
gitlab-ci-cd
…d `AI_FLOW_CONTEXT` when a comment contains `@claude` ## Example use cases ### Turn issues into MRs In an issue comment: ```text wrap theme={null} @claude implement this feature based on the issue…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…I, which Google manages. > [!NOTE] > > Use a different page in these cases: > > * **Claude Models on Google Cloud (Anthropic managed)**: follow [its Claude Code setup page](https://code.claude.com/do…
Hooks reference
Claude Code CLI · in the page
hooks
…eam. ### WorktreeCreate Runs when Claude Code creates a worktree in cases such as these: * You start a session with `claude --worktree` * Claude creates a worktree during a session and switches int…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…to share across projects. > [!TIP] > > This guide covers common use cases and how to get started. For full event schemas, JSON input/output formats, and advanced features like async hooks and MCP to…
Interactive mode
Claude Code CLI · in the page
interactive-mode
…messages next. Before v2.1.281, the key interrupted the turn in both cases In [shell mode](#shell-mode-with-prefix), the key only queues your command. In terminals that don't report extended keys, `…
JetBrains IDEs
Claude Code CLI · in the page
jetbrains
…the port is reachable from your local network. The setting exists for cases where the CLI cannot reach the IDE over loopback, such as WSL2 with default NAT networking or a remote-IDE setup; see [WSL c…