Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20260821T003701Z

3 pages moved out of 186 read.

Pages moved 3 significant first
Pages read 186 in this capture
Captured 00:37 UTC
Corpus hash a5d5b53afca7 corpus-hash

What this read moved

1-3 of 3

agent-sdk/typescript Changed · +22 / -3 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 621
621621 account: AccountInfo;
622622 fast_mode_state?: "off" | "cooldown" | "on";
623623 fast_mode_disabled_reason?: FastModeDisabledReason;
624 hooks_applied?: boolean;
624625};
625626```
626627 
628`hooks_applied` reports whether Claude Code registered the `hooks` that the `initialize` request carried. The SDK sends that request once when the session starts and again on each [`reinitialize()`](#query-object) call. The field requires Agent SDK v0.3.238 or later.
629 
630Claude Code omits the field when the request carried no hooks. When the request carried hooks, the value depends on whether the request is the session's first initialize and, for a repeated one, on how it reached the session:
631 
632* `true`: Claude Code registered the hooks. A session's first initialize returns this value. So does a repeated initialize sent over the CLI's stdin. In that case the hooks in the new request replace the hooks registered earlier.
633* `false`: Claude Code ignored the hooks. A repeated initialize sent to a remote session returns this value, so a second client that joins a session can't replace the hooks the first client registered.
634 
635Before Agent SDK v0.3.238, the response never carried the field, and Claude Code ignored `hooks` on every repeated initialize.
636 
627637The response always reports `fast_mode_state`, and when something blocks [fast mode](/docs/en/fast-mode), `fast_mode_disabled_reason` carries the reason code alongside it, so you can explain the blocked state instead of re-deriving availability. Both behaviors require Claude Code v2.1.219 or later. Before v2.1.219, the response omitted `fast_mode_state` when fast mode wasn't available and never carried a reason. For the reason codes and their meanings, see [`fast_mode_disabled_reason`](#sdkresultmessage) on the result message.
628638 
629639When a client sends `initialize` to a session that is already running, the control-response wrapper also carries an optional `pending_permission_requests` array. The field is on the response wrapper itself, not in the `SDKControlInitializeResponse` payload above. Each entry is a complete `control_request` message with the same `{ type: "control_request", request_id, request }` shape the session streams for permission requests while running.
from line 4241
42314241};
42324242```
42334243 
4234### `McpServerStatusConfig`
4235 
4236The configuration of an MCP server as reported by `mcpServerStatus()`. This is the union of all MCP server transport types.
4237 
4238```typescript theme={null}
4239type McpServerStatusConfig =
4240 | McpStdioServerConfig
4241 | McpSSEServerConfig
4242 | McpHttpServerConfig
4243 | McpSdkServerConfig
4244 | McpClaudeAIProxyServerConfig;
4245```
4246 
4247See [`McpServerConfig`](#mcpserverconfig) for details on each transport type.
4248 
4249### `AccountInfo`
4250 
4251Account information for the authenticated user.
4252 
4253```typescript theme={null}
4254type AccountInfo = {
4255 email?: string;
4256 organization?: string;
4257 subscriptionType?: string;
4258 tokenSource?: string;
4259 apiKeySource?: string;
4260};
4261```
4262 
4263### `ModelUsage`
4264 
4265Per-model usage statistics returned in result messages. The `costUSD` value is a client-side estimate. See [Track cost and usage](/docs/en/agent-sdk/cost-tracking) for billing caveats.
4266 
4267```typescript theme={null}
4268type ModelUsage = {
4269 inputTokens: number;
4270 outputTokens: number;
4271 cacheReadInputTokens: number;
4272 cacheCreationInputTokens: number;
4273 webSearchRequests: number;
4274 costUSD: number;
4275 conte
4244### `

code-review Changed · +5 / -5 lines

from line 142
142142Code Review reads two files from your repository to guide what it flags. They differ in how strongly they influence the review:
143143 
144144* **`CLAUDE.md`**: shared project instructions that Claude Code uses for all tasks, not just reviews. Code Review reads it as project context and flags newly introduced violations as nits.
145* **`REVIEW.md`**: review-only instructions, injected directly into every agent in the review pipeline as highest priority. Use it to change what gets flagged, at what severity, and how findings are reported.
145* **`REVIEW.md`**: review-only instructions, given to the agents that find and verify findings and consulted by the agents that rank and report them. Use it to say what your team wants flagged, at what severity, and how findings are reported.
146146 
147147### CLAUDE.md
148148 
from line 154
154154 
155155### REVIEW\.md
156156 
157`REVIEW.md` is a file at your repository root that overrides how Code Review behaves on your repo. Its contents are injected into the system prompt of every agent in the review pipeline as the highest-priority instruction block, taking precedence over the default review guidance.
157`REVIEW.md` is a file at your repository root that tailors Code Review to your repo. The agents in the review pipeline that find and verify findings receive its contents as your repository's review instructions, alongside Code Review's default review guidance, and the agents that rank and report findings consult it before settling severity and writing the review.
158158 
159Because it's pasted verbatim, `REVIEW.md` is plain instructions: [`@` import syntax](/docs/en/memory#import-additional-files) is not expanded, and referenced files are not read into the prompt. Put the rules you want enforced directly in the file.
159The agents read the file's text as-is, so `REVIEW.md` is plain instructions: [`@` import syntax](/docs/en/memory#import-additional-files) is not expanded, and referenced files are not read along with it. Put the rules you want enforced directly in the file.
160160 
161161#### What you can tune
162162 
from line 168
168168 
169169**Skip rules**: list paths, branch patterns, and finding categories where Claude should post no findings. Common candidates are generated code, lockfiles, vendored dependencies, and machine-authored branches, along with anything your CI already enforces like linting or spellcheck. For paths that warrant some review but not full scrutiny, set a higher bar instead of skipping entirely: "in `scripts/`, only report if near-certain and severe."
170170 
171**Repo-specific checks**: add rules you want flagged on every PR, like "new API routes must have an integration test." Because `REVIEW.md` is injected as highest priority, these land more reliably than the same rules in a long `CLAUDE.md`.
171**Repo-specific checks**: add rules you want flagged on every PR, like "new API routes must have an integration test." Because `REVIEW.md` reaches every finding and verification agent directly, these land more reliably than the same rules in a long `CLAUDE.md`.
172172 
173173**Verification bar**: require evidence before a class of finding is posted. For example, "behavior claims need a `file:line` citation in the source, not an inference from naming" cuts false positives that would otherwise cost the author a round trip.
174174 

terminal-config Changed · +7 / -0 lines

## Fix Backspace deleting a whole word on Windows

from line 8
88* [Option-key shortcuts do nothing on macOS](#enable-option-key-shortcuts-on-macos)
99* [No sound or alert when Claude finishes](#get-a-terminal-bell-or-notification)
1010* [You run Claude Code inside tmux](#configure-tmux)
11* [Backspace deletes a whole word on Windows](#fix-backspace-deleting-a-whole-word-on-windows)
1112* [Display flickers or scrollback jumps](#switch-to-fullscreen-rendering)
1213* [You want Vim keys in the prompt](#edit-prompts-with-vim-keybindings)
1314 
from line 115
114115```
115116 
116117The `allow-passthrough` line lets notifications and progress updates reach the outer terminal instead of being swallowed by tmux. The `extended-keys` lines let tmux distinguish Shift+Enter from plain Enter so the newline shortcut works.
118 
119## Fix Backspace deleting a whole word on Windows
120 
121On Windows, Claude Code reads a Backspace that arrives as `^H` as Ctrl+Backspace, which [deletes the previous word](/docs/en/interactive-mode#text-editing), except when `TERM_PROGRAM` is `mintty` or `TERM` is `cygwin`. On macOS and Linux, Claude Code reads it as plain Backspace.
122 
123If each press of Backspace deletes a whole word, your terminal sends `^H` for plain Backspace. Set [`CLAUDE_CODE_BS_AS_CTRL_BACKSPACE=0`](/docs/en/env-vars). Backspace and Ctrl+H then erase one character each. If Ctrl+Backspace erases only one character on macOS or Linux because your terminal sends `^H` for it, set the variable to `1` instead.
117124 
118125## Match the color theme
119126 
Feedback