What
The request-reuse mode set by CLAUDE_CODE_INCREMENTAL_REQUEST_BODY reuses content from earlier requests to the model. It now does more.
- Per-subagent reuse. A subagent is a helper agent Claude starts for part of a job. Before, only the main conversation's saved request was kept. Now a saved request is kept for each subagent, up to a count set remotely through
tengu_vast_frost; a value of 0 clears them. If the server rejects a reused request because the bytes sent were wrong, that subagent's saved entry is cleared. Requests that reuse a subagent's saved content are taggedkeptForSubagent. This applies only withCLAUDE_CODE_INCREMENTAL_REQUEST_BODYset to 2 and Anthropic's own API. Nothing has been read about howtengu_vast_frostis set. - Split near the tools list. When the request is broken into compressed blocks, a new
cutNearToolsEndoption, controlled by a switch, can place a boundary near the end of the tools section. Before, boundaries were only placed at the messages and system sections. The code that finds saved content was also made more general; it used to match on the exact stored copy. - Request details sent to Anthropic now include whether the tools-end split was on and whether subagent content was reused, when set.
Why
Sessions that use many subagents could avoid rebuilding and resending the same large request again and again, which may also help prompt caching. The mode stays off unless you turn it on.
Names in the bundleCLAUDE_CODE_INCREMENTAL_REQUEST_BODY