One read of Claude Code CLIclaude-code-20261113T213701Z
8 pages moved out of 204 read.
Pages moved
8
significant first
Pages read
204
in this capture
Captured
21:37 UTC
Corpus hash
fe948d99f764
corpus-hash
What this read moved
1-8 of 8setup Changed · +5 / -5 lines
from line 36
3636>
3737> **macOS, Linux, WSL:**
3838>
39> ```bash theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
39> ```bash theme={null}
4040> curl -fsSL https://claude.ai/install.sh | bash
4141> ```
4242>
from line 44
4444>
4545> **Windows PowerShell:**
4646>
47> ```powershell theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
47> ```powershell theme={null}
4848> irm https://claude.ai/install.ps1 | iex
4949> ```
5050>
5151> **Windows CMD:**
5252>
53> ```batch theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
53> ```batch theme={null}
5454> curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
5555> ```
5656>
from line 68
6868
6969> [tab] Homebrew
7070>
71> ```bash theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
71> ```bash theme={null}
7272> brew install --cask claude-code
7373> ```
7474>
from line 80
8080
8181> [tab] WinGet
8282>
83> ```powershell theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
83> ```powershell theme={null}
8484> winget install Anthropic.ClaudeCode
8585> ```
8686>
vs-code Changed · +9 / -0 lines
### Use or turn off suggested prompts
from line 198
198198 Thinking blocks you already have stay empty. In responses after the reload, click a block or press `Ctrl+O` to expand them all.
199199* **Multi-line input**: press `Shift+Enter` to add a new line without sending. This also works in the "Other" free-text input of question dialogs.
200200
201### Use or turn off suggested prompts
202
203After Claude replies, the panel can show a suggested next prompt as gray italic text in the empty prompt box. Each suggestion uses a [short background request](https://code.claude.com/docs/en/interactive-mode.md#prompt-suggestions) that counts toward your plan's usage limits or API costs.
204
205* **Use the suggestion**: press `Tab` to turn it into editable text, then send it. Pressing `Enter` before you accept it doesn't send the suggestion.
206* **Write your own prompt**: start typing, which hides the suggestion.
207
208To turn suggestions off, set [`promptSuggestionEnabled`](https://code.claude.com/docs/en/settings-reference#promptsuggestionenabled) to `false` in `~/.claude/settings.json`. You stop seeing them in new conversations, or in open ones after you run **Developer: Reload Window** from the Command Palette. If you set [`CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION`](https://code.claude.com/docs/en/env-vars) to `true`, change it to `false` where you set it, or you keep seeing suggestions.
209
201210### Reference files and folders
202211
203212Use @-mentions to give Claude context about specific files or folders. When you type `@` followed by a file or folder name, Claude reads that content and can answer questions about it or make changes to it. Claude Code supports fuzzy matching, so you can type partial names to find what you need:
agent-sdk/secure-deployment Changed · +2 / -2 lines
from line 113
113113 --network none \
114114 --memory 2g \
115115 --cpus 2 \
116 --pids-limit 100 \
116 --pids-limit 600 \
117117 --user 1000:1000 \
118118 -v /path/to/code:/workspace:ro \
119119 -v /var/run/proxy.sock:/var/run/proxy.sock:ro \
from line 131
131131| `--tmpfs /tmp:...` | Provides a writable temporary directory that's cleared when the container stops |
132132| `--network none` | Cuts the container off from external networks |
133133| `--memory 2g` | Limits memory usage to prevent resource exhaustion |
134| `--pids-limit 100` | Limits process count to prevent fork bombs |
134| `--pids-limit 600` | Limits processes and threads to prevent fork bombs |
135135| `--user 1000:1000` | Runs as a non-root user |
136136| `-v ...:/workspace:ro` | Mounts code read-only so the agent can analyze but not modify it. **Avoid mounting sensitive host directories like `~/.ssh`, `~/.aws`, or `~/.config`** |
137137| `-v .../proxy.sock:...` | Mounts a Unix socket connected to a proxy running outside the container (see below) |
claude-code-on-the-web Changed · +2 / -2 lines
from line 185
185185
186186```
187187Sent to cloud session.
188Session ID: session_01DiUkqY2kzbUbDmW1w96rfi
189View: https://claude.ai/code/session_01DiUkqY2kzbUbDmW1w96rfi?from=cli&m=0
188Session ID: session_01HJKLMNOPQRSTUVWXYZ
189View: https://claude.ai/code/session_01HJKLMNOPQRSTUVWXYZ?from=cli&m=0
190190```
191191
192192Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn't supported with `--cloud <session-id>`.
desktop Changed · +0 / -4 lines
from line 2257
22572257
22582258The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions.
22592259
2260If you define the same server name in `claude_desktop_config.json` and in `~/.claude.json` or `.mcp.json`, the Code tab in local sessions connects once and uses the `claude_desktop_config.json` definition.
2261
2262The app also re-delivers stdio servers from `~/.claude.json` to the embedded CLI in local sessions. When the top level of `~/.claude.json` (user scope) and `.mcp.json` define the same stdio server name, the Code tab uses the `~/.claude.json` definition, departing from the CLI [scope hierarchy](https://code.claude.com/docs/en/mcp.md#scope-hierarchy-and-precedence).
2263
22642260> [!NOTE]
22652261>
22662262> The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](https://code.claude.com/docs/en/mcp.md#import-mcp-servers-from-claude-desktop) for the import flow and scope options.
github-actions Changed · +1 / -0 lines
from line 125
125125| Administration | Read |
126126| Checks | Read and write |
127127| Contents | Read and write |
128| Dependabot alerts | Read |
128129| Discussions | Read and write |
129130| Issues | Read and write |
130131| Members | Read |
mcp Changed · +0 / -2 lines
from line 831
831831
832832A server your organization provides through the [`managedMcpServers`](https://code.claude.com/docs/en/managed-mcp#provide-servers-through-managed-settings) managed setting ranks above all of these, so when one of them duplicates it, Claude Code connects the organization's definition. Requires Claude Code v2.1.259 or later.
833833
834If you open a local session in the [Desktop app's Code tab](https://code.claude.com/docs/en/desktop.md#mcp-servers-from-the-claude-desktop-chat-app) with the same stdio server name at the top level of `~/.claude.json` (user scope) and in `.mcp.json`, the Code tab uses the `~/.claude.json` definition.
835
836834### Environment variable expansion in `.mcp.json`
837835
838836Claude Code supports environment variable expansion in `.mcp.json` files, allowing teams to share configurations while maintaining flexibility for machine-specific paths and sensitive values like API keys.
self-hosted-environments-deploy Changed · +1 / -1 lines
from line 113
113113
114114* **Listener**: the listener is a forward proxy on `127.0.0.1`. The runner starts the listener before registering with the control plane, and exits at startup if the listener can't start.
115115* **Proxy variables**: the runner rewrites whichever of `HTTPS_PROXY` and `HTTP_PROXY` you set so that it points at the listener. That rewritten value reaches the runner itself, its lifecycle hooks, and every session it runs.
116* **Token rotation**: a rotated token takes effect without a restart. For each connection the listener opens to your proxy, the runner runs your command or reads your file again and adds the result as the header.
116* **Token rotation**: when you rotate the token, new connections carry the new one without a runner restart. For each connection the listener opens to your proxy, the runner runs your command or reads your file again and adds the result as the header. A connection that's already open stays usable with the old token until your proxy closes it or the runner exits.
117117* **Session environment**: a session reaches your proxy only through the listener. In each session's environment the runner removes `ALL_PROXY`, removes any spelling of `HTTPS_PROXY` or `HTTP_PROXY` that you didn't set, and pins `NO_PROXY` to the runner's own value.
118118* **Logs**: the runner never logs the header value.
119119