One read of Claude Code CLIclaude-code-20261119T230702Z
67 pages moved out of 205 read.
Pages moved
67
significant first
Pages read
205
in this capture
Captured
23:07 UTC
Corpus hash
43a6ad1e2fd6
corpus-hash
What this read moved
51-67 of 67, page 3 of 3This capture is too large to show at once. Changes 51-67 of 67 are below, significant first; the rest are on the following screens.
keybindings Changed · +1 / -1 lines
from line 209
209209| `historySearch:execute` | Enter | Execute selected command |
210210| `historySearch:cycleScope` | Ctrl+S | Cycle scope: session, project, everywhere |
211211
212The `historySearch:next`, `historySearch:accept`, `historySearch:cancel`, and `historySearch:execute` defaults apply to the inline history search in the classic renderer, which always searches prompts from all projects. `historySearch:cycleScope` takes effect only in [fullscreen rendering](https://code.claude.com/docs/en/fullscreen.md), where `Ctrl+R` opens a search dialog instead and `Ctrl+S` cycles its scope. The dialog's other keys are fixed and can't be rebound: `Enter` or `Tab` places the highlighted match in the prompt input and `Esc` cancels.
212`historySearch:accept`, `historySearch:cancel`, and `historySearch:execute` take effect only in the classic renderer's inline search. That search covers prompts from all projects. `historySearch:cycleScope` takes effect only in [fullscreen rendering](https://code.claude.com/docs/en/fullscreen.md), where `Ctrl+R` opens a search dialog instead and `Ctrl+S` cycles its scope. In the dialog, `Enter` or `Tab` places the highlighted match in the prompt input and `Esc` cancels.
213213
214214### Task actions
215215
large-codebases Changed · +1 / -1 lines
from line 349
349349
350350A different subdirectory holds different skills the same way: `packages/web/.claude/skills/component-patterns/` describes the frontend's component conventions instead of testing. When Claude works on a file in `packages/api/`, it loads the api-testing skill. When it works in `packages/web/`, it loads component-patterns.
351351
352You can also scope a skill by file pattern instead of by placement. The [`paths` frontmatter field](https://code.claude.com/docs/en/skills#frontmatter-reference) takes glob patterns, and Claude loads the skill automatically only when it works with matching files. Use this for a skill that lives in the repository root's `.claude/skills/` but applies only to certain files, such as a database-migration skill scoped to `**/migrations/**`.
352You can also scope a skill by file pattern instead of by placement. The [`paths` frontmatter field](https://code.claude.com/docs/en/skills#frontmatter-reference) takes glob patterns, and Claude loads the skill automatically when it works with matching files. Use this for a skill that lives in the repository root's `.claude/skills/` but applies only to certain files, such as a database-migration skill scoped to `**/migrations/**`.
353353
354354For more on creating and organizing skills, see [Skills](https://code.claude.com/docs/en/skills.md).
355355
managed-mcp Changed · +1 / -1 lines
from line 372
372372
373373### Example configuration
374374
375The configuration below sets up a hard allowlist with a denylist. The highlighted lines change how the rest of the list is evaluated, and the callouts after the block explain each one:
375The configuration below sets up an allowlist with a denylist. The highlighted lines change how the rest of the list is evaluated, and the callouts after the block explain each one:
376376
377377```json {3,5,11} theme={null}
378378{
managed-settings Changed · +1 / -0 lines
from line 278
278278* **Local admin rights**: a developer who is an administrator on the machine can edit the managed source itself, which is why MDM tooling can redeploy the profile or file on a schedule and why the HKLM registry and the macOS managed preferences domain exist.
279279* **The server-managed cache**: server-managed settings come from Anthropic's servers, and an edit to the local cache [lasts only until the next successful fetch](https://code.claude.com/docs/en/server-managed-settings.md#security-considerations).
280280* **Other tools**: managed settings bind Claude Code only. A developer who calls the API from another tool isn't under them.
281* **Allow rules and allowlists**: a developer can [add entries](https://code.claude.com/docs/en/settings.md#lists-merge-instead-of-overriding) to lists such as `permissions.allow` and `allowedMcpServers`, so deploy the list's [`allowManaged*Only` key](#managed-only-settings) where it has one. With [`allowManagedPermissionRulesOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedpermissionrulesonly), move the deny and ask rules you rely on into managed settings too.
281282
282283## Check that a policy is in force
283284
mcp Changed · +1 / -1 lines
from line 1410
14101410Your organization can set per-tool controls on [claude.ai connectors](https://claude.com/docs/connectors). Claude Code reads these settings at startup and enforces them locally, except in the desktop app's [local and SSH sessions](#how-connectors-reach-claude-code). There, the desktop app withholds `blocked` tools before it delivers a connector, and the `ask` setting doesn't reach Claude Code, so it applies the session's ordinary [permission rules](https://code.claude.com/docs/en/permissions.md) to those tools instead of prompting on every call. In sessions where Claude Code fetches connectors itself, run `/mcp` to see which setting applies to each tool on a connector.
14111411
14121412* **Tool set to `ask`**: Claude Code prompts on every call Claude makes, with the reason `Your organization requires approval for this tool`. The prompt appears even in `acceptEdits`, `auto`, and `bypassPermissions` [permission modes](https://code.claude.com/docs/en/permissions.md#permission-modes). In the terminal, you can't save your choice. Matching [allow rules](https://code.claude.com/docs/en/permissions.md) don't skip the prompt. In `dontAsk` mode, or a `-p` run with nothing to answer the prompt, Claude Code denies the call instead.
1413* **Tool set to `blocked`**: Claude Code filters the tool out before Claude sees it, so it never appears in Claude's tool list. In sessions where Claude Code fetches connectors itself, the `/mcp` tool list still shows the tool, marked `turned off by your organization`.
1413* **Tool set to `blocked`**: Claude Code filters the tool out before Claude sees it, so it doesn't appear in Claude's tool list. In sessions where Claude Code fetches connectors itself, the `/mcp` tool list still shows the tool, marked `turned off by your organization`.
14141414
14151415The desktop app and claude.ai chat apply the same `blocked` setting, so Claude can't use a blocked tool there either, and you can't withhold a tool from the desktop app's sessions while keeping it available in chat. The desktop app skips a connector whose tools are all blocked.
14161416
mcp-quickstart Changed · +1 / -3 lines
from line 264
264264
265265After saving the file, start a new Claude Code session in the project. Claude Code reads `.mcp.json` at startup.
266266
267The first time Claude Code sees a project-scoped server, it asks you to approve it. The prompt exists so a repository you clone can't launch processes on your machine without your consent. Approve the prompt. If you dismissed it, run `claude mcp reset-project-choices` and restart Claude Code to see it again.
268
269Once you've approved, run `/mcp` and check that the servers show as connected. If one shows an error instead, see [Troubleshooting](#troubleshooting).
267If Claude Code asks you to approve the servers, approve them. If you dismissed the prompt, run `claude mcp reset-project-choices` and restart Claude Code to see it again. Then run `/mcp` and check that the servers show as connected. If one shows an error instead, see [Troubleshooting](#troubleshooting).
270268
271269## Connect from other surfaces
272270
plugins/code-intelligence Changed · +1 / -1 lines
from line 92
9292The **LSP plugin recommendation** dialog names the plugin and offers these choices:
9393
9494* **Yes, install**: Claude Code installs the plugin for your user account and prints `<plugin> installed · restart to apply`. Start a new session to load the server.
95* **No, not now**: the dialog closes, and a later session can offer the plugin again. Pressing **Esc** does the same.
95* **Not now**: the dialog closes, and a later session can offer the plugin again. Pressing **Esc** does the same.
9696* **Never for this plugin**: the dialog stops appearing for that plugin and still appears for others.
9797* **Disable all LSP recommendations**: the dialog stops appearing for every language.
9898
plugins/create-marketplace Changed · +2 / -2 lines
from line 80
8080claude plugin marketplace add ./my-marketplace
8181```
8282
83The command prints `✔ Successfully added marketplace: my-marketplace (declared in user settings)`, which means the marketplace is recorded in your user settings file.
83In a terminal, the command prints `✔ Added marketplace: my-marketplace (declared in user settings)`, which means the marketplace is recorded in your user settings file.
8484
8585Install the plugin. The install id is the entry's `name`, an `@`, and the marketplace `name`.
8686
from line 88
8888claude plugin install my-first-plugin@my-marketplace
8989```
9090
91The command prints `✔ Successfully installed plugin: my-first-plugin@my-marketplace (scope: user)`.
91In a terminal, the command prints `✔ Installed plugin: my-first-plugin@my-marketplace (scope: user)`.
9292
9393Inside a session, `/plugin marketplace add ./my-marketplace` registers the marketplace the same way. `/plugin install my-first-plugin@my-marketplace` opens the plugin's details in the `/plugin` panel, where you install it. For that flow, see [Install and manage plugins](https://code.claude.com/docs/en/plugins/install.md).
9494
plugins/install Changed · +2 / -2 lines
from line 173
173173claude plugin install formatter@your-org --scope project
174174```
175175
176The command prints `Successfully installed plugin: formatter@your-org (scope: project)` when it finishes.
176In a terminal, the command prints `Installed plugin: formatter@your-org (scope: project)` when it finishes.
177177
178178Some plugins install by running a command that their marketplace names, called a [`command` source](https://code.claude.com/docs/en/plugins/marketplace-reference#command-plugin-source). Claude Code shows you that command and asks you to accept it before it runs. A script has no one to answer that prompt, so pass `--yes` there to accept it.
179179
from line 228
228228
229229The shell command adds the marketplace without a confirmation step. A marketplace you've already added from that source is reused. A new one is added under the same [organization policy checks](https://code.claude.com/docs/en/plugins/org.md#restrict-what-users-can-install) as `claude plugin marketplace add`, and is declared in your user settings even when you pass `--scope project`.
230230
231If you haven't added that marketplace yet, the command prints `Successfully added marketplace: <name> (declared in user settings)` and then [installs the plugin](#install-from-your-shell).
231If you haven't added that marketplace yet, your terminal shows `Added marketplace: <name> (declared in user settings)`, and the command then [installs the plugin](#install-from-your-shell).
232232
233233### Add a private marketplace
234234
plugins/mods/events Changed · +1 / -1 lines
from line 83
8383
8484`hook` runs once for a Bash, Edit, or Write call, and once for a call to a tool whose name starts with `mcp__github__`. A call to any other tool, such as Read, matches none of the three, so `hook` doesn't run for it.
8585
86The event name can be a wildcard. `'classic.*'` matches every [settings hook event](#hook-the-settings-hook-events). `'*'` matches every event except the [telemetry events](https://code.claude.com/docs/en/plugins/mods/reference.md#telemetry), which take their own name and a `{ to: 'collector' }` filter.
86The event name can be a wildcard. `'classic.*'` matches every [settings hook event](#hook-the-settings-hook-events). `'*'` matches most events, but not the [telemetry events](https://code.claude.com/docs/en/plugins/mods/reference.md#telemetry), which take their own name and a `{ to: 'collector' }` filter.
8787
8888Register each event once per matcher. If you call `on` twice for `session.start` with no matcher, the module fails to load with `on("session.start") is registered twice without a matcher`. Put everything your mod does at session start in one hook.
8989
plugins/org Changed · +1 / -1 lines
from line 363
363363
364364> [!NOTE]
365365>
366> In a cloud session's conversation, Claude can suggest plugins whether or not you set `pluginSuggestionMarketplaces`. To turn those suggestions off, see [Turn off plugin suggestions](https://code.claude.com/docs/en/claude-code-on-the-web.md#turn-off-plugin-suggestions).
366> In a cloud session's conversation or the desktop app's Code tab, Claude can suggest plugins whether or not you set `pluginSuggestionMarketplaces`. To turn those suggestions off, see [Turn off plugin suggestions](https://code.claude.com/docs/en/claude-code-on-the-web.md#turn-off-plugin-suggestions).
367367
368368## Audit and review
369369
plugins/relevance Changed · +1 / -1 lines
from line 11
1111> These cases are covered on other pages:
1212>
1313> * **You want to install plugins**: see [Install and manage plugins](https://code.claude.com/docs/en/plugins/install.md)
14> * **You want to turn suggestions off**: see [Understand how plugin relevance works](#understand-how-plugin-relevance-works), or for the suggestions Claude makes in a cloud session's conversation, [Turn off plugin suggestions](https://code.claude.com/docs/en/claude-code-on-the-web.md#turn-off-plugin-suggestions)
14> * **You want to turn suggestions off**: see [Understand how plugin relevance works](#understand-how-plugin-relevance-works), or for the suggestions Claude makes in the conversation, [Turn off plugin suggestions](https://code.claude.com/docs/en/claude-code-on-the-web.md#turn-off-plugin-suggestions)
1515
1616Start with the sections for your role:
1717
security Changed · +1 / -1 lines
from line 54
5454### Additional safeguards
5555
5656* **Network request approval**: In Manual mode, most tools that make network requests require user approval by default
57* **Web page summaries**: For most fetches, WebFetch runs a separate model call over the page, and Claude receives that call's answer instead of the raw page. See [WebFetch tool behavior](https://code.claude.com/docs/en/tools-reference.md#webfetch-tool-behavior)
57* **Web page summaries**: For most WebFetch fetches, a separate model call reads the page, and Claude receives that call's answer instead of the raw page. See [WebFetch tool behavior](https://code.claude.com/docs/en/tools-reference.md#webfetch-tool-behavior)
5858* **Trust verification**: In an interactive session, Claude Code shows the workspace trust dialog when you start it in a folder you haven't trusted. Servers in a project's `.mcp.json` have their own approval prompt, and [Project scope](https://code.claude.com/docs/en/mcp.md#project-scope) lists the sessions that skip it
5959 * Note: A `-p` session shows neither prompt. [What runs before you trust a folder](https://code.claude.com/docs/en/permissions.md#what-runs-before-you-trust-a-folder) lists what a repository's files can run there
6060 * Note: When you start Claude Code directly in your home directory, trust acceptance is held for the current session only and is not written to disk, so the prompt reappears on each launch. There is no setting to persist it. Start Claude Code from a project subdirectory instead, where trust acceptance is saved per directory
self-hosted-environments-testing Changed · +1 / -1 lines
from line 196
196196
197197Run `claude auth login` once interactively on the machine that executes the script, using a dedicated user account for automation. Claude Code stores the token in the OS keychain on macOS, or in `~/.claude/.credentials.json` on Linux and Windows. On a macOS host whose Keychain can't be written, as is typical in an SSH session where the login Keychain stays locked, Claude Code stores the token in `~/.claude/.credentials.json` there too. See [Credential management](https://code.claude.com/docs/en/authentication.md#credential-management).
198198
199The CLI refreshes the short-lived access token automatically on each invocation, but the underlying refresh-token grant is capped at 30 days from the initial login, so re-run `claude auth login` interactively on that host every 30 days.
199The CLI refreshes the short-lived access token automatically, but the underlying refresh-token grant is capped at 30 days from the initial login. Re-run `claude auth login` interactively on that host before the login's [earliest end date](https://code.claude.com/docs/en/authentication.md#check-when-a-stored-login-ends).
200200
201201### Ephemeral CI runners
202202
server-managed-settings Changed · +1 / -1 lines
from line 170
170170
171171### Settings precedence
172172
173Server-managed settings and [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) both occupy the highest tier in the Claude Code [settings hierarchy](https://code.claude.com/docs/en/settings.md#settings-precedence). A key you set here takes precedence over the same key in a user's own settings files or in a `--settings` value, apart from the [exceptions to managed settings precedence](https://code.claude.com/docs/en/settings.md#exceptions-to-managed-settings-precedence).
173Server-managed settings and [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) both occupy the highest tier in the Claude Code [settings hierarchy](https://code.claude.com/docs/en/settings.md#settings-precedence). A key you set here takes precedence over the same key in a user's own settings files or in a `--settings` value, apart from the [exceptions to managed settings precedence](https://code.claude.com/docs/en/settings.md#exceptions-to-managed-settings-precedence). Users' allow rules [merge with yours](https://code.claude.com/docs/en/settings.md#lists-merge-instead-of-overriding). To lock the list, see [What a developer can change](https://code.claude.com/docs/en/managed-settings.md#what-a-developer-can-change).
174174
175175Within the managed tier, Claude Code by default uses the first source that delivers at least one policy key, checking server-managed settings first and then endpoint-managed settings, apart from the [exception keys covered next](#per-key-exceptions-across-managed-sources). [How Claude Code combines managed sources](https://code.claude.com/docs/en/managed-settings.md#precedence-within-the-managed-tier) has the full ranking, the carve-out for the control keys, and the opt-in that applies every source.
176176
terminal-config Changed · +1 / -1 lines
from line 49
4949>
5050> Open Settings → Profiles → Keyboard and check "Use Option as Meta Key".
5151>
52> If you accepted Claude Code's first-run terminal setup prompt, this is already done. That prompt runs `/terminal-setup` for you, which enables Option as Meta and turns off the audible bell in your Apple Terminal profile.
52> `/terminal-setup` and the first-run terminal setup prompt enable this setting only on macOS 26 and earlier. Both also turn off your profile's audible bell.
5353>
5454> In [screen reader mode](https://code.claude.com/docs/en/accessibility.md), `/terminal-setup` leaves the bell setting unchanged so the terminal bell stays audible. If an earlier run turned the bell off, turn it back on under Settings → Profiles → Advanced → "Audible bell".
5555
third-party-integrations Changed · +1 / -1 lines
from line 166
166166
167167### Configure security policies
168168
169Security teams can configure managed permissions for what Claude Code is and is not allowed to do, which cannot be overwritten by local configuration. [Learn more](https://code.claude.com/docs/en/security.md).
169Security teams can configure managed permissions for what Claude Code is and is not allowed to do. [Learn more](https://code.claude.com/docs/en/security.md).
170170
171171To limit which of these deployment options a managed machine may use, set [`allowedProviders`](https://code.claude.com/docs/en/settings-reference#allowedproviders) in managed settings. For example, `["bedrock"]` allows Amazon Bedrock and nothing else; a Bedrock fleet that also enables the Mantle endpoint lists `"mantle"` too. The entry says which endpoint variables also need a managed `env` pin. Requires Claude Code v2.1.285 or later.
172172