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

777 pages for write.

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

Manage costs effectively Claude Code CLI · in the page costs …-sonnet-4-6: 1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55) ``` These totals reset when `/clear` starts a new session, so the next session's total cost starts at \$0. Before v… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …can send the answer across. A message is a piece of text one Claude writes to another, never the sender's conversation history or files. To move a whole conversation or its context, [resume the sess… Data usage Claude Code CLI · in the page data-usage …-in [Claude apps gateway](/docs/en/claude-apps-gateway) sessions, Yes writes the same payload to a local archive under `~/.claude/feedback-bundles/` instead of uploading; nothing leaves your machine u… Debug your configuration Claude Code CLI · in the page debug-your-config …file has grown long enough that individual rules get less attention. [Write effective instructions](/docs/en/memory.md#write-effective-instructions) covers the specificity, size, and structure pattern… Launch sessions from links Claude Code CLI · in the page deep-links …r the handler. You don't run a separate install command. Registration writes to user-level locations only: | Platform | Handler location | | - | - | | macOS | `~/Applications/Claude Code URL Handler.… Desktop application Claude Code CLI · in the page desktop …ssing **Enter** before you accept the suggestion doesn't send it. * **Write your own prompt**: start typing. The suggestion shows only while the prompt box is empty and has no attached files. Go to *… Schedule recurring tasks in Claude Code Desktop Claude Code CLI · in the page desktop-scheduled-tasks …der name on disk, so the name must be unique across your tasks. **4. Write the instructions** In the box below the name, enter what Claude should do when the task runs. **5. Turn on Only on this co… Development containers Claude Code CLI · in the page devcontainer …LAUDE_CONFIG_DIR`](/docs/en/env-vars) to the same path so Claude Code writes `.claude.json` inside the volume. The following example mounts the volume and sets `CLAUDE_CONFIG_DIR` for a container whos… Environment variables Claude Code CLI · in the page env-vars …ttings file `env` block, the settings file value applies. Claude Code writes each `env` entry into the process environment, replacing the value inherited from the shell. The [`env` setting](/docs/en/s… Error reference Claude Code CLI · in the page errors …session` | [Tool errors](#subagent-type-is-required) | | `Error: this write left the memory index at MEMORY.md at ..., over its ... read limit` | [Tool errors](#memory-index-is-over-its-read-limit) |… Extend Claude Code Claude Code CLI · in the page features-overview …ows](/docs/en/workflows.md)** run many subagents from a script Claude writes, returning one result * **[Cross-session messaging](/docs/en/cross-session-messaging.md)** lets Claude pass a message from… Fullscreen rendering Claude Code CLI · in the page fullscreen …CLAUDE_CODE_NO_FLICKER` from the relaunched process so the setting it writes takes effect. ### Fullscreen by default Attached [background sessions](/docs/en/agent-view.md) render fullscreen, and oth… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …n relies on three of the app's permissions: * **Contents**: read and write, so Claude can modify repository files * **Issues**: read and write, so Claude can respond to issues * **Pull requests**: re… Use Claude Code GitHub Actions with cloud providers Claude Code CLI · in the page github-actions-cloud-providers …hem. Grant it three repository permissions: * **Contents**: read and write * **Issues**: read and write * **Pull requests**: read and write After registering the app, generate a private key and keep… Claude Code with GitHub Enterprise Server Claude Code CLI · in the page github-enterprise-server …rmission | Access | Used for | | :- | :- | :- | | Contents | Read and write | Cloning repositories and pushing branches | | Pull requests | Read and write | Creating PRs and posting review comments |… Claude Code GitLab CI/CD Claude Code CLI · in the page gitlab-ci-cd …rules. Claude Code enforces workspace-scoped permissions to constrain writes. Every change flows through an MR so reviewers see the diff and approvals still apply. Pick regional endpoints to reduce l… Glossary Claude Code CLI · in the page glossary …/). ## A ### AGENTS.md A markdown file of project instructions you write for AI coding agents. If your repository has one and no [CLAUDE.md](#claude-md), Claude reads it as your project instruction… Keep Claude working toward a goal Claude Code CLI · in the page goal …ecent reason, so you can see what Claude is working toward next. ### Write an effective condition The [evaluator](#how-evaluation-works) judges your condition against what Claude has surfaced in the… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …e model pin step starts from your currently pinned models. The wizard writes to `~/.claude/settings.json`, or to `$CLAUDE_CONFIG_DIR/settings.json` when [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variabl… Run Claude Code programmatically Claude Code CLI · in the page headless …er command-line tool. This example pipes a build log into Claude and writes the explanation to a file: ```bash theme={null} cat build-error.txt | claude -p 'concisely explain the root cause of this… Hooks reference Claude Code CLI · in the page hooks …al surrounding whitespace | `Bash` matches only the Bash tool; `Edit\|Write` and `Edit, Write` each match either tool exactly; `code-reviewer` matches only that agent type | | Contains any other chara… Automate actions with hooks Claude Code CLI · in the page hooks-guide …{ "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write" }] }… How Claude Code works Claude Code CLI · in the page how-claude-code-works …text Claude Code adds on its own If Claude follows a rule you didn't write, such as adding a `Co-Authored-By` trailer to a commit, the rule may have come from a [system reminder](/docs/en/glossary.md… Interactive mode Claude Code CLI · in the page interactive-mode …only, not in [fullscreen rendering](/docs/en/fullscreen.md) | | `[` | Write the full conversation to your terminal's native scrollback so `Cmd+F`, tmux copy mode, and other native tools can search it.… JetBrains IDEs Claude Code CLI · in the page jetbrains …a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` head… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …`k` and `ctrl+K` is the same as `ctrl+k`. To bind Shift and a letter, write `shift+k`. ### Non-US keyboard layouts Write the key names of Ctrl shortcuts as Latin characters even when your active key… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …v` before running anything. Tests and the dev server fail without it. Write database queries with the Knex query builder. Never put raw SQL strings in route handlers. Never edit a migration after it h… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …hen it saves a setting there; if you create it by hand or have Claude write it, add it to your gitignore yourself first so you don't accidentally commit your credential > [!WARNING] > > Don't put the… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …can't parse it once a gateway converts it to server-sent events or rewrites that `Content-Type` header. [Streaming errors behind a gateway or proxy](/docs/en/amazon-bedrock.md#streaming-errors-behind… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …s`](#provide-servers-through-managed-settings). Any process that can write to a system path with administrator privileges can deploy the file. Across a fleet, that's usually through device management… Deploy managed settings Claude Code CLI · in the page managed-settings …oose a delivery mechanism](#choose-a-delivery-mechanism) first. **1. Write managed-settings.json** Write a `managed-settings.json` that holds the keys you've decided to enforce, in the same JSON sha… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …e below to turn it into the command Claude Code accepts. Each command writes to [local scope](#local-scope) unless you add `--scope project` or `--scope user`. #### Add a server from a URL A URL mea… Connect to MCP servers Claude Code CLI · in the page mcp-quickstart …space free. ## Where servers are saved The `claude mcp add` command writes the server's details to a configuration file. By default it registers the server at `local` scope: private to you, active o… How Claude remembers your project Claude Code CLI · in the page memory …y knowledge across sessions: * **CLAUDE.md files**: instructions you write to give Claude persistent context. Claude can also read a repository's [`AGENTS.md` files](#agents-md) in place of CLAUDE.md… Claude Code on Microsoft Foundry Claude Code CLI · in the page microsoft-foundry …TL instead of the 5-minute default, set the following variable; cache writes with a 1-hour TTL are billed at a higher rate: ```bash theme={null} export ENABLE_PROMPT_CACHING_1H=1 ``` To set differen… Model configuration Claude Code CLI · in the page model-config …names the file. * **Claude Code couldn't save your choice.** `/model` writes `model` to `~/.claude/settings.json`. If you can't write to that file, for example because another tool generates it or lin… Monitoring Claude Code CLI · in the page monitoring-usage …rt Claude Code with `claude --debug-file <path>` and check the log it writes to that path. Claude Code reports failures from the exporters you configure as `[3P telemetry]` errors, where 3P means thir… Enterprise network configuration Claude Code CLI · in the page network-config …ten rotations**: when Claude Code re-reads while your rotation is mid-write, such as reading a certificate and key that don't match each other, it keeps the previous pair and re-reads on the next fail… Output styles Claude Code CLI · in the page output-styles …ormat with a built-in output style such as Concise or Explanatory, or write a custom style. An output style is a set of instructions that sets Claude's role, tone, and response format for every respo… Overview Claude Code CLI · in the page overview …encies, and writing release notes. > > ```bash theme={null} > claude "write tests for the auth module, run them, and fix any failures" > ``` > **Build features and fix bugs** > > Describe what you wa… Choose a permission mode Claude Code CLI · in the page permission-modes …mple `claude --permission-mode manual` or `"defaultMode": "manual"`. Writes to [protected paths](#protected-paths) are never auto-approved except in `bypassPermissions` mode and in plan-mode sessions… Configure permissions Claude Code CLI · in the page permissions …| Permanently per repository and command | | File modification | Edit/write files | Yes | Until session end | | Web fetch | WebFetch | Yes, except a built-in set of [preapproved documentation domains]… Test plugins with evals Claude Code CLI · in the page plugin-evals # Test plugins with evals > Write eval cases for your Claude Code plugin, run them with claude plugin eval, grade the results, compare against a no-plugin baseline, and gate CI on the score. The `cl… Recommend your plugin from your CLI Claude Code CLI · in the page plugins/cli-hints …. When your CLI detects that it's running inside Claude Code, have it write a one-line `<claude-code-hint />` tag to stderr. Claude Code removes the line from Bash and PowerShell tool output before th… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …user`, `project`, or `local`, and names the settings file the command writes to. `update` also takes `managed`. ### plugin init Scaffold a new plugin at `~/.claude/skills/<name>/`. Unless your admin… Code intelligence plugins Claude Code CLI · in the page plugins/code-intelligence …e servers, so Claude gets no diagnostics or code navigation there. To write your own language server plugin, or to connect a language server that has no plugin, see [LSP servers in plugin components](… Add components to a plugin Claude Code CLI · in the page plugins/components …same way and can also carry supporting files in its own directory, so write new ones as skills and keep `commands/` for files you already have. This file becomes `/my-plugin:about` and takes the same… Create a Claude Code plugin Claude Code CLI · in the page plugins/create …``bash theme={null} mkdir -p my-first-plugin/.claude-plugin ``` **2. Write the manifest** The [manifest](/docs/en/plugins/manifest-reference.md) is a JSON file named `plugin.json` that tells Claude… Create a marketplace Claude Code CLI · in the page plugins/create-marketplace …ect in `plugins` is a plugin entry and needs a `name` and a `source`. Write the entry's `source` as a path from the marketplace root. The root is `my-marketplace/`, the directory that contains `.claud… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …there once from your shell and commit the `.claude/settings.json` it writes. Claude Code then registers the marketplace for each teammate who [trusts the folder](/docs/en/plugins/org.md#require-plugi…
Feedback