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

473 pages for replace.

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

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… Environment variables Claude Code CLI · in the page env-vars …as plain Backspace, or `1` to read it as Ctrl+Backspace. Either value replaces the platform default. By default, Claude Code reads it as Ctrl+Backspace on Windows, except when `TERM_PROGRAM` is `mintt… Error reference Claude Code CLI · in the page errors …links` | [Command-line errors](#nothing-was-stashed-because-a-folder-replaced-a-tracked-file) | | `Error: --json-schema is not a valid JSON Schema` | [Command-line errors](#the-json-schema-value-is-n… Extend Claude Code Claude Code CLI · in the page features-overview …laude looks up a symbol. **Context cost:** Low. Symbol lookups often replace broad file reads, so net context use can go down. > [!TIP] > > The LSP tool is inactive until you install a [code intelli… Fullscreen rendering Claude Code CLI · in the page fullscreen …flags such as a [`--system-prompt`](/docs/en/cli-reference#cli-flags) replacement, a [`--tools`](/docs/en/cli-reference#cli-flags) allowlist, or [`--setting-sources`](/docs/en/cli-reference#cli-flags)… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …I key authentication. If you authenticate with a Claude subscription, replace the `anthropic_api_key` line in any example with `claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}`. ### R… Use Claude Code GitHub Actions with cloud providers Claude Code CLI · in the page github-actions-cloud-providers …nter's write access before the credential steps. **Amazon Bedrock** Replace the `aws-region` value with your own. The credentials step exports it as `AWS_REGION` for the rest of the job. ```yaml th… Glossary Claude Code CLI · in the page glossary …es. You can add to the system prompt with `--append-system-prompt` or replace it with `--system-prompt`. The system prompt is the first layer of the [prompt cache](/docs/en/prompt-caching.md#how-the-c… Keep Claude working toward a goal Claude Code CLI · in the page goal …ondition you want satisfied. If a goal is already active, the new one replaces it. ```text theme={null} /goal all tests in test/auth pass and the lint step is clean ``` Setting a goal starts a turn… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …rm API Enable Google Cloud's Agent Platform API in your GCP project. Replace `YOUR-PROJECT-ID` with your GCP project ID here and in the configuration step below: ```bash theme={null} # Set your proj… Run Claude Code programmatically Claude Code CLI · in the page headless …you pass on the command line. Run `bash review.sh 123` and the shell replaces `"$1"` with `123`, so the script fetches the diff for PR 123. Claude Code prints the review as JSON, with the text in the… Hooks reference Claude Code CLI · in the page hooks …a `--worktree`, `isolation: "worktree"`, or for a background session. Replaces default git behavior | | `WorktreeRemove` | When a worktree that a `WorktreeCreate` hook created is being removed | | `Pr… Automate actions with hooks Claude Code CLI · in the page hooks-guide …th refactor.'" } ] } ] } } ``` You can replace the `echo` with any command that produces dynamic output, like `git log --oneline -5` to show recent commits. For injectin… How Claude Code works Claude Code CLI · in the page how-claude-code-works …`false`. For the other switches, see [Turn off the context your agent replaces](/docs/en/agent-sdk/modifying-system-prompts.md#turn-off-the-context-your-agent-replaces). #### When context fills up C… Interactive mode Claude Code CLI · in the page interactive-mode …mmand | Action | | :- | :- | | `x` | Delete character | | `r{char}` | Replace character under cursor with `{char}` | | `dd` | Delete line | | `D` | Delete to end of line | | `dw`/`de`/`db` | Delete wo… JetBrains IDEs Claude Code CLI · in the page jetbrains …rs: Set `wsl -d Ubuntu -- bash -lic "claude"` as your Claude command (replace `Ubuntu` with your WSL distribution name) #### ESC key configuration If the ESC key doesn't interrupt Claude Code operat… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …this page Each setting below is independent. They layer rather than replace each other, so apply whichever fit your repository. [Choose where to start Claude](#choose-where-to-start-claude) determin… Other LLM gateways Claude Code CLI · in the page llm-gateway …ay. Setting only that variable, without a gateway credential, doesn't replace the subscription. Requests still route through the gateway, but a saved claude.ai login remains the active credential, so… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …values to a settings file. #### Set as shell environment variables Replace the values with the ones your gateway team gave you: **Bash or Zsh** ```bash theme={null} export ANTHROPIC_BASE_URL=http… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …rned models to the `/model` picker. If you or your administrator set `replaceBuiltInOptions` in a [`modelPicker`](/docs/en/settings-reference#modelpicker) lineup, Claude Code hides the discovered mode… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …rds at the `debug` log level. The `--strict-mcp-config` flag asks to replace the managed set. If a user passes it while such a file is deployed, Claude Code exits at startup on a workstation and in a… Deploy managed settings Claude Code CLI · in the page managed-settings …licy. Claude Code keeps a local cache that it applies at startup and [replaces on each successful fetch](/docs/en/server-managed-settings.md#security-considerations). * **macOS configuration profile**… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …servers whose configuration is unchanged, and does the same when you [replace the session's MCP server list](/docs/en/agent-sdk/typescript.md#mcpsetserversresult) from the Agent SDK without naming the… How Claude remembers your project Claude Code CLI · in the page memory …file. Delete the `CLAUDE.md` so Claude reads `AGENTS.md` directly, or replace the sentence with an `@AGENTS.md` import. * **A `CLAUDE.md` symlinked to `AGENTS.md`**: nothing, or delete the symlink. Ei… Claude Code on Microsoft Foundry Claude Code CLI · in the page microsoft-foundry …integration export CLAUDE_CODE_USE_FOUNDRY=1 # Azure resource name (replace {resource} with your resource name) export ANTHROPIC_FOUNDRY_RESOURCE={resource} # Or provide the full base URL: # export… Model configuration Claude Code CLI · in the page model-config …as whose newest released version was outside the list was rejected or replaced like any other blocked selection, even when the list permitted an older version. The substitution needs a permitted vers… Monitoring Claude Code CLI · in the page monitoring-usage …Name of the workflow that spawned this agent. User-authored names are replaced with `custom` unless the gate is set | `OTEL_LOG_TOOL_DETAILS` | | `speed` | `fast` or `normal` | | | `effort` | [Effort… Enterprise network configuration Claude Code CLI · in the page network-config …managed-settings.md) mid-session. To rotate the certificate and key, replace the files at the same paths. Claude Code picks up the replacement in a running session without a restart. When an API requ… Overview Claude Code CLI · in the page overview …an, Fedora, RHEL, and Alpine. Then start Claude Code in any project. Replace `your-project` with the path to a project directory on your machine: ```bash theme={null} cd your-project claude ``` Cla… Choose a permission mode Claude Code CLI · in the page permission-modes …ety. Use it for tasks where you trust the general direction, not as a replacement for review on sensitive operations. Auto mode is available only when your account meets all of these requirements: *… Configure permissions Claude Code CLI · in the page permissions …main)`. Write the command you want Claude to run without asking, and replace the parts that vary with `*`. With this configuration, Claude Code runs npm scripts and git commits without asking and ref… Test plugins with evals Claude Code CLI · in the page plugin-evals …claude plugin eval . --case <case-name> --runs 1 --ablation none ``` Replace `<case-name>` with one of the directory names under `evals/`. ## Write and refine cases The cases `claude plugin eval in… Recommend your plugin from your CLI Claude Code CLI · in the page plugins/cli-hints …="plugin" value="example-cli@claude-plugins-official" />' >&2 fi ``` Replace `example-cli` with your plugin's name in the official marketplace. You can emit the hint on every invocation, because Cla… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …that maps option keys to string values, then pass the file on stdin. Replace `formatter@my-marketplace` with your own plugin's id as `claude plugin list` shows it. This example sets one option named… Add components to a plugin Claude Code CLI · in the page plugins/components …plugin, an optional manifest key in `.claude-plugin/plugin.json` that replaces or adds to that folder, and a name the user sees. For each key's full field table, see the [manifest reference](/docs/en/… Create a Claude Code plugin Claude Code CLI · in the page plugins/create …with one hook that runs a linter on each file Claude writes or edits. Replace the example with your own `hooks` object. ```json my-plugin/hooks/hooks.json theme={null} { "hooks": { "PostToolUse… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …nticate to the remote**: Claude Code clones the marketplace again and replaces the existing checkout with the new clone. If that clone fails, the existing checkout stays in place. The re-clone can [ti… Plugin loading reference Claude Code CLI · in the page plugins/loading …ck` or an npm lockfile instead * **`yarn.lock` or `pnpm-lock.yaml`**: replace it with an npm lockfile * **A lockfile in a format Claude Code doesn't read**: an npm lockfile needs a `lockfileVersion` o… Plugin manifest reference Claude Code CLI · in the page plugins/manifest-reference …s of them, or an object map of command name to `source` or `content`. Replaces the default `commands/` scan | | `agents` | Path, or array of paths | Agent `.md` files. Directories aren't accepted. Rep… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …ads this entry's [archive](#archive-plugin-source). A header set here replaces a header of the same name from the marketplace source's [`headers`](#fields-by-type). Requires Claude Code v2.1.238 or la… Manage mods for your organization Claude Code CLI · in the page plugins/mods/admin …u set `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS` to `0` during early access, replace it with this option. Claude Code v2.1.287 and later ignores the variable at any value, so a `0` there leaves mods on. ##… Use the mods API Claude Code CLI · in the page plugins/mods/api …await $.process.run(['gh', 'pr', 'checks', '--json', 'state']) // Replace the line under the prompt with the latest summary $.ui.status('checks: ' + summarize(status.stdout)) }) // Return… React to events with a mod Claude Code CLI · in the page plugins/mods/events …esult: `await next(e)`, then return a copy of the result with a field replaced. ### Answer an event To handle an event yourself, return a result without calling `next`. That short-circuits the chain… Interface gallery for mods Claude Code CLI · in the page plugins/mods/gallery …Select, Link, Markdown, Code, Raster, Svg } = $.ui.resolve(e) // Replace the element after return with a sample return Text({ children: ['Plain text'] }) }) } ``` **2. Run the mod** In yo… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …e to show something in the band, or `next(e)` to show nothing. A tree replaces what the mods [after yours](/docs/en/plugins/mods/events.md#the-order-mods-run-in) draw there. To keep theirs, put the re… Mods overview Claude Code CLI · in the page plugins/mods/overview …plugins/mods/interface.md). * **Redraw Claude Code's own interface**: replace or restyle parts Claude Code draws itself, such as a tool call's row, the spinner, or the dialog Claude asks questions in.… Mods reference Claude Code CLI · in the page plugins/mods/reference …ite`, `list`, `exists`, `stat`, `ancestors`. `write` isn't atomic: it replaces the file's content in place, so another process can read a partly written file. Keep data that several sessions change in…
Feedback