Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20261203T063702Z

49 pages moved out of 220 read.

Pages moved 49 significant first
Pages read 220 in this capture
Captured 06:37 UTC
Corpus hash 2b45ca2bedcb corpus-hash

What this read moved

26-49 of 49, page 2 of 2

This capture is too large to show at once. Changes 26-49 of 49 are below, significant first; the rest are on the following screens.

claude-directory Changed · +3 / -1 lines

from line 213
213213 
214214## Choose the right file
215215 
216Different kinds of customization live in different files. Use this table to find where a change belongs.
216Different kinds of customization live in different files.
217 
218The following table shows where common changes belong:
217219 
218220| You want to | Edit | Scope | Reference |
219221| :- | :- | :- | :- |

cli-reference Changed · +2 / -2 lines

from line 37
3737| `claude mcp login <name>` | Run a configured MCP server's OAuth flow without opening the interactive `/mcp` panel. Works for HTTP, SSE, and claude.ai connector servers. Add `--no-browser` over SSH to print the authorization URL instead of opening a browser. For an HTTP or SSE server, paste the redirect URL back at the prompt. For a claude.ai connector, see [Authorize a connector again from your shell](https://code.claude.com/docs/en/remote-control.md#authorize-a-connector-again-from-your-shell). See [Authenticate from the command line](https://code.claude.com/docs/en/mcp.md#authenticate-from-the-command-line) | `claude mcp login sentry` |
3838| `claude mcp logout <name>` | Clear stored OAuth credentials for an MCP server | `claude mcp logout sentry` |
3939| `claude plugin` | Manage Claude Code [plugins](https://code.claude.com/docs/en/plugins/overview.md). Alias: `claude plugins`. See [plugin reference](https://code.claude.com/docs/en/plugins/cli-reference.md#claude-plugin-commands) for subcommands | `claude plugin install code-review@claude-plugins-official` |
40| `claude purge [path]` | Delete all local Claude Code state for a project: transcripts, task lists, debug logs, file-edit history, prompt history lines, and the project's entry in `~/.claude.json`. Omit `[path]` to pick from an interactive list. Flags: `--dry-run` to preview, `-y`/`--yes` to skip confirmation, `-i`/`--interactive` to confirm each item, `--all` for every project. See [Clear local data](https://code.claude.com/docs/en/claude-directory.md#clear-local-data) | `claude purge ~/work/repo --dry-run` |
40| `claude purge [path]` | Delete local Claude Code state for a project, such as transcripts, task lists, debug logs, file-edit history, prompt history lines, and the project's entry in `~/.claude.json`. Omit `[path]` to pick from an interactive list. Flags: `--dry-run` to preview, `-y`/`--yes` to skip confirmation, `-i`/`--interactive` to confirm each item, `--all` for every project. See [Clear local data](https://code.claude.com/docs/en/claude-directory.md#clear-local-data) | `claude purge ~/work/repo --dry-run` |
4141| `claude remote-control` | Start a [Remote Control](https://code.claude.com/docs/en/remote-control.md) server to control Claude Code from claude.ai or the Claude app. Alias: `claude rc`. Runs in server mode (no local interactive session). See [Server mode flags](https://code.claude.com/docs/en/remote-control.md#start-a-remote-control-session). After you stop the server, you can bring back the sessions it was serving. See [Resume sessions after stopping the server](https://code.claude.com/docs/en/remote-control.md#resume-sessions-after-stopping-the-server) | `claude remote-control --name "My Project"` |
4242| `claude respawn <id>` | Restart a [background session](https://code.claude.com/docs/en/agent-view.md#manage-sessions-from-the-shell), running or stopped, with its conversation intact. Use `--all` to restart every running session, e.g. to pick up an updated Claude Code binary | `claude respawn 7c5dcf5d` |
4343| `claude rm <id>` | Remove a [background session](https://code.claude.com/docs/en/agent-view.md#manage-sessions-from-the-shell) from the list. If Claude Code refuses to delete the session because of its worktree, see [Delete a session after Claude Code refuses](https://code.claude.com/docs/en/agent-view.md#delete-a-session-after-claude-code-refuses). The conversation transcript stays on your local machine, available through `claude --resume` | `claude rm 7c5dcf5d` |
from line 68
6868| `--append-system-prompt-file` | Load additional system prompt text from a file and append to the default prompt | `claude --append-system-prompt-file ./extra-rules.txt` |
6969| `--autocompact <auto\|tokens>` | Set the [auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window) for this session without changing your saved settings. Accepts the same values as `/autocompact`; that section covers the value forms and what overrides the flag. Requires Claude Code v2.1.221 or later | `claude --autocompact 500k` |
7070| `--ax-screen-reader` | Render screen-reader friendly output: flat text without decorative borders or animations. Forces the classic renderer, so the [`tui`](https://code.claude.com/docs/en/settings-reference#tui) setting has no effect; attached [background sessions](https://code.claude.com/docs/en/agent-view.md) still render fullscreen. Takes precedence over [`CLAUDE_AX_SCREEN_READER`](https://code.claude.com/docs/en/env-vars) and the [`axScreenReader`](https://code.claude.com/docs/en/settings-reference#axscreenreader) setting. Requires Claude Code v2.1.181 or later | `claude --ax-screen-reader` |
71| `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-dir` still load. Claude has access to Bash, file read, and file edit tools. Sets [`CLAUDE_CODE_SIMPLE`](https://code.claude.com/docs/en/env-vars). See [bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode) | `claude --bare -p "query"` |
71| `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-dir` still load. Claude has access to Bash, file read, and file edit tools. Sets [`CLAUDE_CODE_SIMPLE`](https://code.claude.com/docs/en/env-vars). See [bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode) | `claude --bare -p "query"` |
7272| `--betas` | Beta headers to include in API requests with the `-p` flag, for API key users only | `claude -p "query" --betas context-1m-2025-08-07` |
7373| `--bg`, `--background` | Start the session as a [background agent](https://code.claude.com/docs/en/agent-view.md) and return immediately. Prints the session ID and management commands. Combine with `--exec` to run a shell command as a background job instead of a Claude session, or with `--agent` to run a specific subagent. Checks [workspace trust](https://code.claude.com/docs/en/permissions.md#project-allow-rules-and-workspace-trust) for the directory before it starts. Can't be combined with `-p`/`--print`; see the [error reference](https://code.claude.com/docs/en/errors.md#command-line-errors) | `claude --bg "investigate the flaky test"` |
7474| `--channels` | (Research preview) MCP servers whose [channel](https://code.claude.com/docs/en/channels.md) notifications Claude should listen for in this session. Space-separated list of `plugin:<name>@<marketplace>` entries. Requires Anthropic authentication through claude.ai or a Console API key | `claude --channels plugin:my-notifier@my-marketplace` |

code-review-customize Changed · +1 / -1 lines

from line 222
222222 
223223#### What a review reads for each branch setup
224224 
225Find your repository's situation in the first column of the table below.
225The following table shows which copy of `REVIEW.md` and which files a review reads for each branch protection setup.
226226 
227227| Branch protection | Copy read | Files read |
228228| :- | :- | :- |

code-review-local Changed · +3 / -1 lines

from line 37
3737 
3838## Choose what to review
3939 
40To review something other than your current branch, type a target after the effort level and any flags. Claude receives that text as the review target. A target can be a pull request number, a branch name, a file path, or a Git revision range. Find what you want reviewed in the first column and type what the second column shows:
40To review something other than your current branch, type a target after the effort level and any flags. Claude receives that text as the review target. A target can be a pull request number, a branch name, a file path, or a Git revision range.
41 
42The following table shows what to type for common targets:
4143 
4244| To point the review at | Type |
4345| :- | :- |

desktop Changed · +1 / -1 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 1322
13221322 
13231323The second try of 90 seconds needs a connection [through the OpenSSH client](#use-your-ssh-configuration). It also needs Claude Desktop v4.4212.0 or later for a new session, and v4.23118.0 or later for a message or a retry. If Desktop runs on Windows, or the remote machine [sets `MaxSessions 1`](#remote-machine-requirements-for-ssh-sessions), it needs v6.6395.0 or later.
13241324 
1325If the remote machine itself waits for an approval on your phone, approve within 45 seconds, whatever `ConnectTimeout` you set. You can't raise this limit, because Desktop sets `ServerAliveInterval` and `ServerAliveCountMax` itself, and `ssh` then closes a login in which the remote machine sends nothing for that long.
1325If the remote machine itself waits at login for an approval on your phone, you have at most 75 seconds to approve, however high you set `ConnectTimeout`. You can't raise this limit, because Desktop sets `ServerAliveInterval` and `ServerAliveCountMax` itself, and `ssh` then closes a login in which the remote machine sends nothing for that long.
13261326 
13271327##### Fix a `Match host` block that only Desktop applies
13281328 
from line 2806
28062806 
28072807Note which machine `ssh` names in its message, which can be a jump host and not `<SSH host>`, then follow the case that fits:
28082808 
2809* **`ssh` asks whether to continue connecting**: [compare](#check-a-remote-machines-host-key
2809* **`ssh` asks whether to continue connecting**: [compare](#check-

glossary Changed · +1 / -1 lines

from line 61
6161 
6262### Bare mode
6363 
64With `--bare`, Claude Code starts without your hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory, or CLAUDE.md, apart from skills in a directory you pass with `--add-dir`. Recommended for CI and scripted calls.
64With `--bare`, Claude Code starts without your hooks, skills, custom commands, subagents, MCP servers, auto memory, or CLAUDE.md, apart from skills in a directory you pass with `--add-dir`. Recommended for CI and scripted calls.
6565 
6666Learn more: [Start faster with bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode)
6767 

llm-gateway-connect Changed · +1 / -1 lines

from line 2
22 
33> Point Claude Code at your organization's LLM gateway. Check whether your admin already configured it, or set the base URL and credential yourself, then verify the connection and fix gateway errors.
44 
5An [LLM gateway](https://code.claude.com/docs/en/llm-gateway) is a proxy your organization runs between Claude Code and the model provider. When your organization uses one, Claude Code authenticates to the gateway with a credential your organization issues instead of your personal claude.ai login.
5An [LLM gateway](https://code.claude.com/docs/en/llm-gateway) is a proxy your organization runs between Claude Code and the model provider. While a [gateway credential](https://code.claude.com/docs/en/llm-gateway#subscriptions-and-gateways) from your organization is active, Claude Code uses it instead of your personal claude.ai login.
66 
77This page is for developers running Claude Code through a gateway their organization operates. It covers two paths: [checking whether your administrator already configured it for you](#check-for-an-existing-configuration), and [configuring it yourself](#configure-claude-code-yourself) when they haven't.
88 

llm-gateway-protocol Changed · +1 / -1 lines

from line 255
2552551. The same body again
2562562. The same body without those blocks, sent only if your gateway answers the first retry with another `400` or `422` that Claude Code doesn't recognize
257257 
258Find your gateway's response to the retries in the first column:
258The following table shows what Claude Code does after your gateway accepts or rejects the retries, and what you do:
259259 
260260| Your gateway | What follows | What you do |
261261| :- | :- | :- |

managed-mcp Changed · +3 / -1 lines

from line 513
513513 
514514## How restrictions appear to users
515515 
516For what users see at startup when `managed-mcp.json` is deployed and the session also has `--mcp-config` servers, see [Exclusive control with managed-mcp.json](#exclusive-control-with-managed-mcp-json). Use this table to recognize the other reports and to tell users what to expect before you roll out a change:
516For what users see at startup when `managed-mcp.json` is deployed and the session also has `--mcp-config` servers, see [Exclusive control with managed-mcp.json](#exclusive-control-with-managed-mcp-json).
517 
518The following table shows what users see in other cases:
517519 
518520| Restriction | What the user sees |
519521| :- | :- |

managed-settings Changed · +1 / -1 lines

from line 55
5555 
5656The MDM and file rows are together called endpoint-managed settings, because the policy is stored on the developer's device, as opposed to the server-managed row, where Claude Code fetches it.
5757 
58Pick a mechanism by how you already manage devices, using the table below.
58The following table compares the mechanisms by how you deliver them, when Claude Code reads them, and when each one fits:
5959 
6060| Mechanism | How you deliver it | When Claude Code reads it | Use it when |
6161| :- | :- | :- | :- |

mcp Changed · +1 / -1 lines

from line 404
404404 
405405#### Stdio servers that exit or fail to start
406406 
407To start a stdio server again, read the column that matches what happened to it. Find your row by how you run Claude Code: an interactive session, a `claude -p` run, or an Agent SDK session.
407The following table shows what happens when a stdio server exits or fails to start in an interactive session, a `claude -p` run, or an Agent SDK session.
408408 
409409| How you run Claude Code | The server's process exits mid-session | The server's first connection fails |
410410| - | - | - |

monitoring-usage Changed · +1 / -1 lines

from line 1733
17331733 
17341734Rows for `safety_event` apply only to a session on v2.1.307 through v2.1.311 that [still sends the event](#safety-event).
17351735 
1736When building detection rules, look up the signal you want to monitor and query your backend for the corresponding event and attributes:
1736For detection rules, the following table lists signals with the event and attributes to query:
17371737 
17381738| Signal | Event | Key attributes |
17391739| - | - | - |

permissions Changed · +1 / -1 lines

from line 852
852852Before you run `claude -p` in a repository you didn't write, decide what it may run on your machine:
853853 
854854* Pass `--setting-sources user`, or set the SDK's `settingSources` without project settings, so Claude Code reads neither the project's settings files nor its `.mcp.json`
855* Start with [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) so Claude Code reads no hooks, skills, custom commands, subagents, plugins, or `.mcp.json` servers from the project. The project's `env` block and helpers such as `awsAuthRefresh` in its settings files still apply, and Claude Code reads `apiKeyHelper` only from `--settings`
855* Start with [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) so Claude Code skips hooks, skills, custom commands, subagents, and `.mcp.json` servers from the project. The project's `env` block and helpers such as `awsAuthRefresh` in its settings files still apply, and Claude Code reads `apiKeyHelper` only from `--settings`
856856* Pass `--settings '{"disableAllHooks": true}'` to [turn hooks off](https://code.claude.com/docs/en/hooks.md#disable-or-remove-hooks) for that run. Setting it in your user settings alone isn't enough, because the repository's project settings take precedence over yours and can set it back to `false`
857857* Add a [`disabledMcpjsonServers`](https://code.claude.com/docs/en/settings-reference#disabledmcpjsonservers) entry to reject a `.mcp.json` server by name in every session type
858858 

plugins/code-intelligence Changed · +1 / -1 lines

from line 20
2020 
2121**1. Install the language server binary**
2222 
23Find your language in the table below and install the binary in its row. If your language isn't listed, see [Add a language without an official plugin](#add-a-language-without-an-official-plugin).
23Install the binary for your language. The following table lists languages with their plugin and binary. If your language isn't listed, see [Add a language without an official plugin](#add-a-language-without-an-official-plugin).
2424 
2525| Language | Plugin | Binary |
2626| :- | :- | :- |

pr-steward-security Changed · +1 / -1 lines

from line 22
2222 
2323### PR Steward's session environment
2424 
25Check where a PR Steward session runs, how it handles permission prompts, and which comments and instruction files it reads:
25The following table shows where a PR Steward session runs, how it handles permission prompts, and which comments and instruction files it reads:
2626 
2727| Topic | How a session works |
2828| :- | :- |

routines Changed · +1 / -1 lines

from line 518
518518 
519519### Warnings under History
520520 
521When a warning under **History** begins with "The last run" or "This didn't run", find it in the first column and do what its row says. The warning clears once a later run starts.
521The following table gives the next step for warnings under **History** that begin with "The last run" or "This didn't run". The warning clears once a later run starts.
522522 
523523| Warning | What to do |
524524| :- | :- |

scheduled-tasks Changed · +1 / -1 lines

from line 189
189189* **Unevenly spaced runs**: a task with uneven gaps, such as one scheduled for `:00` and `:15` each hour, can run a different number of minutes late at each.
190190* **Every five minutes**: a task written `*/5 * * * *` isn't delayed. A run exactly five minutes after the last one would start after a five-minute [prompt cache](https://code.claude.com/docs/en/prompt-caching.md#which-ttl-each-request-gets) had expired, so each run starts 15 seconds sooner.
191191 
192Find your schedule in the first column of this table to see when each of its runs starts.
192The following table shows when each run starts for common schedules.
193193 
194194| Schedule | When each run starts |
195195| :- | :- |

self-hosted-environments-configuration Changed · +3 / -1 lines

from line 376
3763764. If your platform still has the workload from the first request, because nothing [removed](#make-on-demand-runners-exit-when-idle) it when its runner exited, the hook creates no new workload and no runner starts
3773775. Each later spawn request for the session ends the same way
378378 
379Open your own hook and read what it does when the workload already exists, for example when your platform rejects the duplicate name. Find that behavior in the first column to see what the re-opened session shows in the **Activity** tab:
379Open your own hook and read what it does when the workload already exists, for example when your platform rejects the duplicate name.
380 
381The following table lists hook responses and what the re-opened session shows in the **Activity** tab:
380382 
381383| When the workload exists, your hook | **Queued** changes to **Failed** | Spawn error |
382384| :- | :- | :- |

server-managed-settings Changed · +2 / -2 lines

from line 388
388388* **`claude install` or `claude update`**: Claude Code doesn't show the dialog during either command. The command runs with the last-approved settings, and the dialog appears in your next interactive session. If Claude Code waits for the settings fetch at startup, such as with [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup) set or on a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) deployment, it shows the dialog during the command instead, and an install run from a pipe fails; see [`Raw mode is not supported` during install](https://code.claude.com/docs/en/troubleshoot-install#raw-mode-is-not-supported-during-install). Before v2.1.246, Claude Code tried to show the dialog during these commands too.
389389* **A `claude plugin` command that prints to a terminal but can't read from the keyboard**: when Claude Code doesn't wait for the settings fetch at startup, the command doesn't apply the delivered settings. Without [cached settings](#fetch-and-caching-behavior), a command that changes your plugins or marketplaces [stops with an error](https://code.claude.com/docs/en/errors.md#managed-settings-need-your-approval). With cached settings, it runs with the last-approved settings. The dialog appears when you next run `claude` in a terminal.
390390 
391 The command can't read from the keyboard when you pipe or redirect its input and, on macOS and Linux, it also can't open `/dev/tty`. If you pipe or redirect its output too, the run is non-interactive instead, and the delivered settings apply for that run only.
391 The command can't read from the keyboard when you pipe or redirect its input on Windows, or on macOS and Linux when it also can't open `/dev/tty`. If you pipe or redirect its output too, the run is non-interactive instead, and the delivered settings apply for that run.
392392* **An error closes the dialog before you answer**: Claude Code doesn't apply the delivered settings and keeps the last-approved settings. It shows the dialog again in the next session that can show it.
393* **A non-interactive run**, such as `claude -p`, an Agent SDK session, or a session in the VS Code extension's chat panel or the desktop app's Code tab: Claude Code can't show the dialog. When the delivered settings would require approval, they apply for that run only.
393* **A non-interactive run**, such as `claude -p`, an Agent SDK session, or a session in the VS Code extension's chat panel or the desktop app's Code tab: Claude Code can't show the dialog. When the delivered settings would require approval, they apply for that run.
394394 
395395 Claude Code doesn't record the settings as approved or write them to the [local cache](#fetch-and-caching-behavior), and the next interactive session shows the dialog. Until a user approves in an interactive session, each non-interactive run fetches the settings again at startup.
396396 

settings-reference Changed · +1 / -1 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 398
398398}
399399```
400400 
401Opus 5.5 and models released after it ignore this key in your user settings file, `~/.claude/settings.json`. In project, local, and managed settings, and with the `--settings` flag, this key applies to every model.
401To set a default effort level for every model, add the `effortLevel` key to project, local, or managed settings, or to the settings you pass with the `--settings` flag. In your user settings file, `~/.claude/settings.json`, Claude Code ignores this key for Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and newer models.
402402 
403403### `enforceAvailableModels`
404404 
from line 3300
33003300 
33013301### `timeZone`
33023302 
3303Show the times in the interface in a time zone other than your system's. Set it to an [IANA time zone name](https://www.iana.org/time-zones), such as `"UTC"` or `"Europe/Dublin"`. The times that [`timeFormat`](#timeformat) controls then show in this zone. If `timeFormat` is `"24-hour-utc"`, times stay in UTC and Claude Code ignores this key. `/config` has no row for this key, so set it in a settings file. Requires Claude Code v2.1.257 or later.
3304 
3305* **Scope**: [`Any file`](#scopes)
3306* **Type**: string, an IANA time zone nam
3303Show the times in the interface in a time zone other than your system's. Set it to an [IANA time zone name](https://www.iana.org/time-zones), such as `"UTC"` or `"Europe/Dublin"`. The times that [`timeFormat`](#timeformat) controls then show in this zone. If `timeFormat` is `"24-hour-utc"`, times stay in UTC and Claude Code ignores this key. `/config` has no row for this key, so set it in a settings file. Requires Clau

sub-agents Changed · +1 / -1 lines

from line 269
269269 
270270This working-directory check covers the whole repository containing the directory you launched Claude Code from. When your session runs in a linked [worktree](https://code.claude.com/docs/en/worktrees.md) of its own, the check also covers the main checkout that worktree is linked from.
271271 
272For Bash commands, Claude Code also checks the command itself in two ways:
272For Bash commands, Claude Code also checks the command itself:
273273 
274274* It blocks a command that redirects git into the main checkout.
275275* It refuses a command when it can't verify from the command text that any git the command runs stays inside the worktree, for example when the command name is computed at runtime.

troubleshoot-install Changed · +1 / -1 lines

from line 6
66 
77## Find your error
88 
9Match the error message or symptom you're seeing to a fix:
9The following table lists install and login error messages and symptoms, with a fix for each:
1010 
1111| What you see | Solution |
1212| :- | :- |

troubleshooting Changed · +3 / -1 lines

from line 2
22 
33> Fix high CPU or memory usage, hangs, auto-compact thrashing, and search problems in Claude Code, and find the right page for other issues.
44 
5This page covers performance, stability, and search problems once Claude Code is running. For other issues, start with the page that matches where you're stuck:
5This page covers performance, stability, and search problems once Claude Code is running.
6 
7The following table shows which page covers other issues:
68 
79| Symptom | Go to |
810| :- | :- |

worktrees Changed · +1 / -1 lines

from line 107
107107 
108108The same enforcement covers every subagent Claude spawns from the isolated session. It applies whether the session is interactive or started in the [background](https://code.claude.com/docs/en/agent-view.md#how-file-edits-are-isolated). [Subagents that run in their own worktree](#isolate-subagents-with-worktrees) carry the same checks.
109109 
110Claude Code applies four checks:
110Claude Code applies these checks:
111111 
112112* **File edits**: Claude Code blocks an `Edit`, `Write`, or `NotebookEdit` that targets a path in the main checkout. To change a file in the main checkout, edit it yourself or start an interactive session there.
113113* **Command working directory**: Claude Code blocks a Bash, PowerShell, or Monitor command whose working directory resolves to the main checkout, or whose working directory it can't verify stays outside it.
Feedback