{"version":"2.1.326","anchor":"upload-ahead-of-api-requests-held-upload-added","canonical_anchor":"upload-ahead-of-api-requests-held-upload-added","heading":"Upload-ahead: sending the start of a request while you are still typing","tier":"soon","area":"Prompt Caching","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/upload-ahead-of-api-requests-held-upload-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Upload-ahead: sending the start of a request while you are still typing\n\nNew code can start uploading the unchanging start of your next request while you type, behind the tengu_playful_shannon gate\n\n**Unclear.** It is not known what turns this on, so it is unclear whether any reader gets it yet.\n\n**What**\n\nClaude 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.\n\n- 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.\n\n- 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.\n\n- It requires first-party sign-in, does not run in remote sessions, and does not run when `ANTHROPIC_UNIX_SOCKET` is set.\n\n- It opens a held, gzip-compressed upload marked with the `x-claude-code-upload-ahead` header.\n\n- The held upload is dropped for reasons such as `typing_stopped`, `fast_mode` and `history_differs`.\n\n- It records how long you typed before sending.\n\n**Why**\n\nThis 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.\n\n- Area: Prompt Caching\n- Tier: Nothing to try yet\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}