One read of Claude Code CLIclaude-code-20261202T123703Z
31 pages moved out of 220 read.
Pages moved
31
significant first
Pages read
220
in this capture
Captured
12:37 UTC
Corpus hash
5f04a364edf3
corpus-hash
What this read moved
26-31 of 31, page 2 of 2This capture is too large to show at once. Changes 26-31 of 31 are below, significant first; the rest are on the following screens.
plugins/mods/events Changed · +1 / -1 lines
from line 131
131131on('tool.call', { tool: ['Edit', 'Write'] }, async ($, e, next) => {
132132 // Wait for the permission check and the tool, and keep what they produced
133133 const result = await next(e)
134 // A refused call comes back as { deny }, and a failed one has isError set
134 // A refused or failed call has deny or isError set
135135 const changed = !result.deny && !result.isError
136136 if (changed && e.file_path.endsWith('.mdx')) $.ui.log('Claude changed ' + e.file_path)
137137 // Return the result as it came, so Claude reads what the tool returned
server-managed-settings Changed · +2 / -2 lines
from line 233
233233
234234* When a developer signs in at startup, such as on a first run or after `/logout`, Claude Code waits up to five seconds for the fetch before it opens the session. When the policy arrives in time, Claude Code enforces it from the first screen and shows your [`companyAnnouncements`](https://code.claude.com/docs/en/settings-reference#companyannouncements) on it. When the payload needs [security approval](#security-approval-dialogs), Claude Code ends the wait and applies the payload once the developer approves
235235* In any other startup, and when that five-second wait runs out, Claude Code opens the session while the fetch continues, so a brief window passes before the settings load and the restrictions take effect
236* If the fetch fails, a session that does start runs without server-managed settings, and endpoint-managed settings still apply. Claude Code warns in interactive sessions and in [Claude Desktop's Code tab](https://code.claude.com/docs/en/desktop.md) that no remote policy applies. If a managed source sets [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup), Claude Code exits
236* If the fetch fails, a session that does start runs without server-managed settings, and endpoint-managed settings still apply. Claude Code warns in interactive sessions and in [Claude Desktop's Code tab](https://code.claude.com/docs/en/desktop.md) that no remote policy applies. If an endpoint-managed source sets [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup), Claude Code exits
237237
238238**Subsequent launches with cached settings:**
239239
from line 313
313313
314314You can also set this key in an [endpoint-managed](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) MDM profile or system `managed-settings.json` file to enforce fail-closed behavior on first launch, before any server payload has arrived. This flag is an exception to the [precedence rule](#settings-precedence) above: Claude Code honors it when any admin-controlled managed source sets it, even if a cached server-managed payload is also present, so it doesn't ignore an MDM-delivered value when server-managed settings exist.
315315
316On later startups, Claude Code reads a server-delivered value from the cached settings, so the setting is active before the new session's first fetch. To keep the setting active without relying on the cached copy, also set the key in an endpoint-managed source.
316Claude Code reads a server-delivered value from the cached settings. To keep the setting active without relying on the cached copy, also set the key in an endpoint-managed source.
317317
318318The settings fetch also sends a `Cache-Control: no-cache` header so intermediate HTTP proxies don't serve a stale response.
319319
sessions Changed · +0 / -1 lines
from line 43
4343When Claude Code loads a conversation from its transcript, the resumed session restores the conversation along with the state saved in it:
4444
4545* Conversation history: the messages, tool calls, and results. If the session was [compacted](https://code.claude.com/docs/en/context-window.md#what-survives-compaction), the conversation opens at a `Conversation compacted` row. Claude continues with the last compaction's summary, the messages that compaction left unsummarized, and every message since. The messages that the last compaction summarized aren't loaded again.
46* Interrupted tool calls: a tool that was still running when the previous process ended, for example in a crash, doesn't get rerun when you resume.
4746* Model: with `claude --resume` or `--continue`, the session continues on the model it was using, except in the cases in [Which model a resumed session uses](https://code.claude.com/docs/en/model-config.md#which-model-a-resumed-session-uses).
4847* Permission mode: if you resume from a terminal with `claude --continue`, `claude --resume <session-id>`, or `claude --resume <name>` when the name matches one session, without `-p`, Claude Code restores the permission mode the session was in, except in the cases in [permission mode on resume](#permission-mode-on-resume), which also covers the session picker, `/resume`, and resuming with `claude -p`. Pass `--permission-mode` or `--dangerously-skip-permissions` to override the restored mode.
4948* Active goal: a [goal](https://code.claude.com/docs/en/goal.md#resume-with-an-active-goal) that was still active when the session ended carries over.
statusline Changed · +1 / -1 lines
from line 163
163163
164164To keep a line from being cut off with `…`, make it at least four columns narrower than the terminal. Those four columns leave room for the spacing Claude Code adds on each side.
165165
166This Bash example calculates the widest your output can be:
166This Bash example subtracts those four columns from the terminal width:
167167
168168```bash theme={null}
169169max_width=$((COLUMNS - 4))
workflows Changed · +1 / -1 lines
from line 361
361361| Up to 16 concurrent agents by default, fewer when Claude Code has fewer CPUs available, including inside a CPU-limited container. To change the limit, set [`CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS`](https://code.claude.com/docs/en/env-vars#variables) to a value from 1 to 256, which requires Claude Code v2.1.269 or later | Bounds local resource use |
362362| In a fan-out, agents that share the first agent's prompt-cache prefix start up to 5 seconds after it by default | All but the first read the [prefix the first agent cached](#prompt-caching-in-a-fan-out) instead of each processing it uncached |
363363| Up to 4,096 items in a single `parallel()` or `pipeline()` call: the runtime rejects a longer list with an error | A silent cap would drop part of the workload without telling the script |
364| 1,000 agents total per run | Prevents runaway loops |
364| 1,000 `agent()` calls per run | Prevents runaway loops |
365365
366366## Manage runs
367367
worktrees Changed · +0 / -1 lines
from line 155
155155* The worktree still holds work: changed or untracked files, or unpushed commits. Your gitignored files don't count, so copy out any you need.
156156* A checked-out submodule in the worktree holds changed or untracked files, or Claude Code can't inspect the worktree's submodules. This check requires Claude Code v2.1.274 or later.
157157* One of the [git config errors that block worktree creation](#git-lfs-content-is-missing-from-a-worktree-claude-code-created) applies.
158* The worktree belongs to a `--worktree` session you haven't backgrounded, whatever its age.
159158* You created the worktree with `git worktree add` outside `.claude/worktrees/`.
160159
161160#### Worktree locks and manual removal