What
Claude Code has new code for "upload-ahead". While you are still typing, it can start sending the part of the next request that will not change (the earlier conversation, called the request prefix) to Anthropic's servers. When you press Enter and the real request matches, only the rest is sent.
- It only acts when the gate
tengu_playful_shannon, a server-controlled switch, has the value "shadow" or "on". Nothing has been read about this gate, so whether it is on for anyone is not known. - It fires only when the prompt cache, a short-lived server-side copy of recent requests, has expired and the prefix is at least 131072 characters long.
- It requires first-party sign-in, does not run in remote sessions, and does not run when
ANTHROPIC_UNIX_SOCKETis set. - It opens a held, gzip-compressed upload marked with the
x-claude-code-upload-aheadheader. - The held upload is dropped for reasons such as
typing_stopped,fast_modeandhistory_differs. - It records how long you typed before sending.
Why
This targets the wait for the first reply after the prompt cache has expired on a long conversation, since much of the request can already be on its way before you finish typing. Whether you see any effect depends on a gate whose state has not been read.
tengu_playful_shannon Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.326: not a boolean we can read
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.326. It isn't a statement about your account. What a flag value here can and cannot tell you
New in this build: tengu_playful_shannon