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-20261202T130701Z

3 pages moved out of 220 read.

Pages moved 3 significant first
Pages read 220 in this capture
Captured 13:07 UTC
Corpus hash b85078232ee6 corpus-hash

What this read moved

1-3 of 3

hooks 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 1094
10941094A hook's `additionalContext`, `systemMessage`, and `initialUserMessage` strings, and its plain stdout, are capped at 10,000 characters:
10951095 
10961096* **Scope**: Claude Code measures each string on its own, even when several hooks run for the same event. For JSON output, each field is measured separately; plain stdout is measured whole.
1097* **Over the limit**: except for [PreCompact stdout](#precompact-output), Claude Code saves the output to a file in the session directory. It replaces the output with the file path and a preview of up to the first 2,000 characters. A large valid Bash result is handled the same way, described under [Output limits](https://code.claude.com/docs/en/tools-reference.md#output-limits). Unlike that Bash ceiling, this cap has no setting or environment variable to raise it.
1097* **Over the limit**: except for [PreCompact stdout](#precompact-output), Claude Code saves the output to a file in the session directory. It replaces the output with the file path and a preview of up to the first 2,000 characters. The 10,000-character cap has no setting or environment variable to raise it.
10981098* **Reading the file**: Claude Code doesn't ask Claude to read the file, so keep anything Claude must always see within the cap.
10991099 
11001100The JSON object supports three kinds of fields:
from line 3640
36403640| `prompt_cache_warm` | boolean | Whether the current model's prompt cache is likely still warm, meaning the switch forfeits it |
36413641| `cache_ttl` | string | [Prompt cache lifetime](https://code.claude.com/docs/en/prompt-caching.md#cache-lifetime) of the main conversation at the time of this switch: `"5m"` or `"1h"` |
36423642| `estimated_cache_write_usd` | number | Estimated cost in US dollars of writing `context_tokens` to the prompt cache on `to_model` at the `cache_ttl` rate, excluding the next response. The server may not need to re-cache the whole context, so treat it as an estimate |
3643| `pricing` | string | How Claude Code priced `estimated_cache_writ
3643| `pricing` | string | How Claude Code priced `estimated_cache_write_usd`: `"configured"` at your organization's own rates when it has configured them, `"catalog"` at list price, or `"default"` when `to_model` has no known pric

settings-reference Changed · +2 / -0 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 2352
23522352 
23532353The [`/autocompact`](https://code.claude.com/docs/en/commands#all-commands) command saves a window for the current model under [`modelSettings`](#modelsettings), which takes precedence over this key in the same file for that model. [Set the auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window) covers how the command, flag, variable, and setting interact.
23542354 
2355To change the current model's window from a terminal session, you can also run `/config` and pick a size in the **Auto-compact window** row. Claude Code saves your choice for that model under [`modelSettings`](#modelsettings). The row requires Claude Code v2.1.334 or later.
2356 
23552357### `autoMemoryDirectory`
23562358 
23572359Store [auto memory](https://code.claude.com/docs/en/memory.md#storage-location) in a directory of your choice instead of the per-project default.
from line 3312
33103312 
33113313### `tui`
33123314 
3313Choose the terminal UI renderer. Use `"fullscreen"` for the flicker-free [alt-screen renderer](https://code.claude.com/docs/en/fullscreen.md) with virtualized scrollback, or `"default"` for the classic main-screen renderer. Running `/tui fullscreen` or `/tui default` writes this key for you.
3314 
3315* **Sc
3315Choose the terminal UI r

tools-reference Changed · +1 / -1 lines

from line 174
174174 
175175| Result | What Claude gets |
176176| :- | :- |
177| Valid | Inline up to roughly 30,000 characters by default; past that, the path of a file saved to the session directory and truncated past 64 MiB, plus a preview of up to the first 2,000 characters, and Claude reads or searches the file when it needs the rest |
177| Valid | Inline up to roughly 30,000 characters by default. Past that, the path of a file saved to the session directory and truncated past 64 MiB, plus a preview of up to 2,000 characters. The preview shows the start of the output, or its start and end in some [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md). Claude reads or searches the file when it needs the rest |
178178| Failure | Inline up to roughly 10,000 characters; past that, a head-and-tail excerpt of that size cut from the read-back window, with no file path |
179179 
180180A command that exits 1 counts as a valid result for the Bash tool only when Claude Code recognizes exit code 1 as a benign outcome for that command: `grep`, `rg`, `egrep`, `fgrep`, `find`, `diff`, `test`, and `[`, plus `git diff` and `git grep`. Every other command that exits 1 counts as a failure, even when exit 1 is a benign informational outcome: no matches for `pgrep` and `jq -e`, files that differ for `cmp`.
Feedback