469 pages for replace.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…acts. Mount a shared volume or sync those separately. * **Mirror, not replacement**: the subprocess writes to local disk first, and the SDK forwards a copy of each batch to the store. A fresh session'…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…xample starts a local filesystem MCP server for `/Users/me/projects`. Replace that path with a directory on your machine: ```typescript TypeScript theme={null} import { query } from "@anthropic-ai/cl…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…f `@anthropic-ai/claude-code` is still listed in your `package.json`, replace it with `@anthropic-ai/claude-agent-sdk` and update the version range as well, for example from `"^0.0.42"` to `"^0.3.0"`.…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…system prompts You can provide a custom string as `systemPrompt` to replace the default entirely with your own instructions. ```typescript TypeScript theme={null} import { query } from "@anthropic-…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…` is merged on top of the inherited environment. In TypeScript, `env` replaces the inherited environment entirely, so include `...process.env` in the object you pass. The CLI exports three independen…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…sionResultAllow` or `PermissionResultDeny`). The callback is the SDK replacement for the interactive permission prompt: it's invoked only when the [permission evaluation flow](/docs/en/agent-sdk/perm…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…nd()`, so the store is a mirror of the local transcript rather than a replacement for it. Which copy outlives the run depends on how the run started: * **Fresh session, or a resume when the store has…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…_CONFIG_DIR/projects/` instead. > > To find your session's directory, replace every non-alphanumeric character in the absolute working directory with `-`: `/Users/me/proj` becomes `-Users-me-proj`. Fo…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…) can retract an already-completed output mid-stream, and if no retry replaces it the run ends with the same error. Check the `errors` list on the error result message to tell the two causes apart bef…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…The two SDKs treat the `env` option differently: the TypeScript SDK replaces the subprocess environment with it, so spread `process.env` into it to keep variables like `PATH`, while the Python SDK m…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…e `env` option, as the examples on this page do. In TypeScript, `env` replaces the subprocess environment, so spread `...process.env` to keep inherited variables. In Python, `env` is merged on top of…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…Set the value in the `env` option on `query()`. In TypeScript, `env` replaces the subprocess environment, so spread `...process.env` to keep inherited variables. In Python, `env` is merged on top of…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…n the same form. ### Claude Code returned an error result Both SDKs replace the process-exit error with this message when the CLI reported an error result before exiting: ``` Claude Code returned a…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…| undefined>` | `process.env` | Environment variables. When set, this replaces the subprocess environment instead of merging with `process.env`, so pass `{ ...process.env, YOUR_VAR: 'value' }` to keep…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…nput_data} sandboxed_input["command"] = input_data["command"].replace( "/tmp", "/tmp/sandbox" ) return PermissionResultAllow(updated_input=sandboxed_input) retu…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…then either: * Give them additional instructions directly * Spawn a replacement teammate to continue the work A message from the lead or another teammate wakes an in-process teammate that is waitin…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…sion Press `Enter` or `→` on a selected row to attach. Agent view is replaced by the full interactive session. When you attach, Claude posts a short recap of what happened while you were away. While…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…nter and set `AWS_PROFILE` so the credential chain uses that profile. Replace `your-profile-name` with the name of your AWS profile before running these commands. ```bash theme={null} aws sso login -…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…ax-highlighted code. A file that doesn't decode, or that contains the replacement character `U+FFFD`, is [refused with the line and column to fix](/docs/en/errors.md#the-source-file-is-not-valid-utf-8…
Authentication
Claude Code CLI · in the page
authentication
…-settings.md#settings-precedence), and cached server-managed settings replace the device-managed file apart from a few [per-key exceptions](/docs/en/server-managed-settings.md#per-key-exceptions-acros…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…aude Code starts by asking whether to add to your environment list or replace it, and keeps the rules you wrote either way. Claude Code then asks how you use this project and offers two optional scans…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…including technical implementation, UI/UX, edge cases, and tradeoffs. Replace `[brief description]` with your feature before sending the prompt. ```text wrap theme={null} I want to build [brief descr…
Claude Code changelog
Claude Code CLI · in the page
changelog
…rees and branch checkouts that Claude Code creates so they ignore git replace refs, as its other git operations already do * Fixed profile store write protection not applying when the config directory…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…annelPlugins` | Which plugins can register once channels are enabled. Replaces the Anthropic-maintained list when set. | Anthropic default list applies | Pro and Max users without an organization ski…
Channels reference
Claude Code CLI · in the page
channels-reference
…/docs/en/channels#restrict-which-channel-plugins-can-run) list, which replaces the default Anthropic allowlist. ## See also * [Channels](/docs/en/channels.md) to install and use Telegram, Discord, i…
Checkpointing
Claude Code CLI · in the page
checkpointing
…](/docs/en/errors.md#restored-the-code-but-skipped-files). ### Not a replacement for version control Checkpoints are designed for quick, session-level recovery. For permanent version history and col…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…oject, and server-managed settings. This example declares one block. Replace `203.0.113.0/24` with your own block. It is a documentation range, and Claude Code refuses those. ```json theme={null} {…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…No | The PEM-encoded CA certificate itself, not a path to a file. It replaces the system trust store for IdP requests only. To load a mounted file, write `${file:/etc/gateway/idp-ca.pem}`. Use for Ke…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…-memory) for shell-capable settings limits silent changes but doesn't replace host security. * **A malicious OIDC provider**: the provider signs the id\_tokens the gateway trusts, so it can assert any…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…e optional keys included commented out. Copy it to `gateway.yaml` and replace every `REPLACE_ME` before building. * **`Dockerfile`** builds the runtime image from the prebuilt `linux-x64` binary and c…
Claude apps gateway spend limits
Claude Code CLI · in the page
claude-apps-gateway-spend-limits
….yaml`; each `POST /v1/organizations/spend_limits` request creates or replaces one cap from `{scope, amount, period}`. The API mirrors the wire shapes of Anthropic's public [Admin API](https://platfor…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…output style: a set of instructions for Claude that, by default, also replaces the built-in software-engineering task instructions. Use this to adapt Claude Code for uses beyond coding, or to add teac…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…ode sends it on every request as the `anthropic-workspace-id` header. Replace the example `wrkspc_01ABCDEFGHIJKLMN` value with your own workspace ID from your Claude Platform on AWS setup. Claude Cod…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…the thread is waiting on. * Interrupt the thread with **Stop**, which replaces the send button while the thread is working, or by pressing Esc. ### Choose models and let Claude manage context Set mo…
Scan your codebase for vulnerabilities
Claude Code CLI · in the page
claude-security
…es, supply-chain checks, and policy enforcement | The plugin doesn't replace your existing source-code security tools. Run it alongside static analysis, dependency scanning, and code review: it reaso…
claude-tag
Claude Code CLI · in the page
claude-tag
…var matches = document.querySelectorAll('[id="' + candidates[i].replace(/"/g, '\\"') + '"]'); for (var j = 0; j < matches.length; j++) { if (matches[j].closest('#sidebar, #sidebar-…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--system-prompt` | Replace the entire system prompt with custom text…
Code Review
Claude Code CLI · in the page
code-review
…s[] | {id, name}'` and take the `id` of the `Claude Code Review` run. Replace `OWNER`, `REPO`, and `CHECK_RUN_ID` with your repository owner, repository name, and that ID: ```bash theme={null} gh api…
Review locally with /code-review
Claude Code CLI · in the page
code-review-local
…your `CLAUDE.md`. To go further, start from one of these pages: * **Replace the command**: a project or personal skill named `code-review` runs in place of the bundled one, and the `/review` alias k…
Read and request reviews on a pull request
Claude Code CLI · in the page
code-review-pull-requests
…ommit's check runs and take the `id` of the `Claude Code Review` run. Replace `OWNER` and `REPO` with your repository owner and name, and `<commit-sha>` with the pull request's head commit: ```bash t…
Commands
Claude Code CLI · in the page
commands
…ccessibility rules. Uses a brand-neutral placeholder palette that you replace with your own. Requires Claude Code v2.1.198 or later…
Common workflows
Claude Code CLI · in the page
common-workflows
…ject root directory** ```bash theme={null} cd /path/to/project ``` Replace `/path/to/project` with the path to your project. **2. Start Claude Code** ```bash theme={null} claude ``` **3. Ask fo…
Communications kit
Claude Code CLI · in the page
communications-kit
…e example tasks for real bugs and modules from your own codebase, and replace the `[bracketed placeholders]` before sending. The announcements that drive adoption are the ones that read like someone a…
Explore the context window
Claude Code CLI · in the page
context-window
…t', tokens: 0, color: '#D97757', vis: 'brief', desc: 'Replaces the conversation with a structured summary. You see a "Conversation compacted" message. The summarization happens without…
Run Claude Code behind a corporate launcher
Claude Code CLI · in the page
corporate-launcher
…earlier on `PATH` that runs your launcher with the real binary; don't replace the managed symlink. The background service and its sessions start without a `PATH` lookup, so the two launchers don't sta…
Manage costs effectively
Claude Code CLI · in the page
costs
…ong ago that data was fetched. Press `r` to retry; a successful retry replaces the last-known bars with fresh data. Without a snapshot from the past 60 minutes, `/usage` reports that the usage endpoin…
Launch sessions from links
Claude Code CLI · in the page
deep-links
…repository called `acme/payments` with a two-line diagnostic prompt. Replace `acme/payments` with your repository's `owner/name` slug when you build your own: ```text theme={null} claude-cli://open?…
Desktop application
Claude Code CLI · in the page
desktop
…config`, or directly above your first `Host *` entry if you have one. Replace the Docker container `devbox`, its user `dev`, and the machine `build.example.com` with your own. The entry's command star…
Schedule recurring tasks in Claude Code Desktop
Claude Code CLI · in the page
desktop-scheduled-tasks
…anything. When you turn it on, a separate blank form for a local task replaces the form. Then fill in the local form's fields: * **Name**: enter a name, as in the [steps to create a scheduled task](…
Development containers
Claude Code CLI · in the page
devcontainer
…r.io/anthropics/devcontainer-features/claude-code:1.0": {} } } ``` Replace the `image` line with your project's base image or remove it if your existing file uses a Dockerfile. The Claude Code fea…