Reasoning effort sits in the wrong place for escalation
I think escalating reasoning effort mid-session is a placement bug, because the effort setting sits ahead of the history it is meant to govern. Neuralwatt 14 reports that the GLM-5.3 and DeepSeek V4.1 chat templates write the effort level in the first few tokens of the prompt 2, and that the first difference was at token 8 on both models, so a switch re-reads everything 3. An OpenCodex issue reports a matching symptom on an adaptive-thinking Claude model reached through the Anthropic adapter 26: cache reads stop at the first user message, and everything after it is written again on each effort change 18. In my reading, an escalation after a failed attempt is billed for the conversation again on both routes. The usual advice, fix the effort for the session, gives up the escalation adaptive effort exists for, and I think the fix belongs in the template and the API.
The effort line sits ahead of the history
I read the two reports as two mechanisms with one bill. On the open-weight templates the effort value is a line near the front of the prompt; on the second route it is a top-level setting that, per the issue, a provider rule ties to the messages cache.
Only that one value changes, Neuralwatt 14 reports, and its length and everything after it stay identical 35. In my reading, the server recomputes a conversation whose bytes did not change past the effort value.
The OpenCodex issue says OpenCodex does not touch the prefix and attributes the miss to an upstream rule: a change of the top-level effort invalidates the messages cache 17. The same issue adds that the wire bodies were not retained, so the exact cause was not proven by byte comparison 21.
Neuralwatt reports that every cache break in its lab tests came from a harness editing what it had already sent, forcing a re-read from the first difference onward 1. Manus wrote the general rule earlier: even a single-token difference can invalidate the cache from that token onward 22.
The rule is old. What changes the bill, in my reading, is which value sits at the front of the prompt and who owns it.
Escalation lands where re-reads cost most
The escalation the OpenCodex issue names follows a failed attempt 26, which in my experience means deep in a session.
By Neuralwatt’s count 14, changing the tool list or the effort level makes a cache break more than 20 times as likely and costs, on average, about 40% of the previous prompt 4.
Past 128k tokens of context, about 3 turns in every 1,000 re-read more than half of the prompt from scratch 9. A normal turn at that depth adds a median of about 370 new tokens, so a single one of these costs as much prefill as roughly 600 ordinary turns 10. I read that figure as the price of any deep re-read, whatever caused it. Neuralwatt’s depth rule is blunt: changing the beginning of the prompt once, early on, costs little, and doing it at turn 200 of a long session brings a large, visible pause and a large energy cost 34.
Neuralwatt also reports that a mostly uncached request takes roughly twice the energy of a cached one of the same size 11.
In my reading, on the two templates that write effort up front, every effort switch touches the beginning of the prompt, so a late escalation pays the late-change price Neuralwatt describes. The knob is cheap only when nobody needs it.
A fixed effort gives up the escalation
Neuralwatt’s advice to people who use a harness 14 is to pick a reasoning effort per session 29 and to settle settings like effort, MCP servers and skills before the session gets long, which it says is when a cache break hurts most 30.
The OpenCodex issue keeps effort fixed for the whole conversation for now 19. Its other two workarounds each cost something else: starting a new thread on escalation loses context and writes the whole prompt again 40, and stripping replayed reasoning keeps the cache and drops thinking continuity 20.
Its stated goal is to change effort mid-conversation without paying a cache write for the whole conversation history again 16. I read the fixed effort as a stopgap the issue itself wants to retire. I think fixing effort removes the reason adaptive effort exists.
The append rule stops short of effort
Neuralwatt already gives harness builders the rule 14: add new messages and tool results at the end of the conversation, and describe changes to settings there too, leaving the earlier text untouched 43. In its lab capture, every one of deepseek-harness’s follow-up requests was a pure append to the previous one 32. That harness puts changing state after the history: when the approval policy or skills change, it appends a short snapshot saying it supersedes earlier ones 42.
On the two templates Neuralwatt measured, the template itself writes the effort line 23. In my reading, the builder rule cannot reach a line the harness does not own, which is why Neuralwatt’s advice to users falls back to a fixed effort.
The OpenCodex issue proposes keeping the cached prefix across mid-conversation effort changes on models that support Anthropic’s per-message effort 38. It would re-insert every earlier change point at the same position on later requests so the prefix stays byte-identical 39. It has not yet measured whether the tools and system blocks stay cached on the effort-changing turn, since the experiment had no tools 41.
Until then, price it per stack
Until a template offers that slot and the OpenCodex proposal is measured with tools in the loop, I think an escalation has a price, and the price depends on the stack.
Switching effort back hit 10.6k to 27.5k cached tokens in Neuralwatt’s runs 14, so a toggle costs one full re-read the first time each new state is used 28.
On the Claude path the OpenCodex issue measured 26, each effort change writes everything after the first user message again, where the roughly 11.6k cached tokens stop 18.
Side by side, the two reports price an effort change like this:
| Open-weight templates, Neuralwatt lab 14 | Claude through the Anthropic adapter, OpenCodex issue 26 | |
|---|---|---|
| Where effort lands | In the first few tokens 2; first difference at token 8 3 | A top-level setting; reads stop at the first user message 18 |
| Price of a toggle | One full re-read the first time each new state is used 28 | History after the first user message written again on each change 18 |
| Cause | A harness edit in every lab break 1 | An upstream rule 17, unproven by byte comparison 21 |
| Open question | Server-side reuse after a small early edit, still research 31 | Tools and system blocks on the changing turn, still unmeasured 41 |
On a stack like Neuralwatt’s, a two-level policy (base effort, one escalation) pays one re-read per new level, so I would allow the return to base freely. On the second route every change pays, so I would count each one against the session and escalate once, and only after a failure. The open items the issue lists bound that second rule.
from enum import Enum
class EffortCache(Enum):
KEEPS_EARLIER_PREFIXES = "keeps-earlier-prefixes"
REWRITES_ON_EVERY_CHANGE = "rewrites-on-every-change"
def effort_change_rereads_history(
stack: EffortCache, levels_used: frozenset[str], new_level: str
) -> bool:
if stack is EffortCache.REWRITES_ON_EVERY_CHANGE:
return True
return new_level not in levels_used
The function is the budget rule I would put in a harness before it raises effort.
Tool lists are the same edit
I think a tool list deserves the same price, since it is the second piece of state that sits near the front.
In Neuralwatt’s data 14, OpenCode 1.x and Kilo Code insert new tools in alphabetical order, in the middle of the tool list 6, while OpenCode 2.x leaves the tool list alone and appends a note, so connecting and disconnecting were pure appends 7. By its count, tool-list changes happen on about 0.5% of turns and account for 19% of all re-read tokens on these models 5; three accounts make up about two thirds of that share, and Neuralwatt says the per-turn effect holds across everyone else 27.
Manus states a rule from its experiments: unless absolutely necessary, avoid dynamically adding or removing tools mid-iteration 23. In most LLMs, Manus explains, tool definitions live near the front of the context, so any change invalidates the KV-cache for what follows 24. Manus manages tool availability with a context-aware state machine and masks the token logits during decoding 25.
In my reading, OpenCode 2.x appends a note and Manus masks at decoding, and both keep the front of the prompt fixed, the move effort still lacks.
The case against
The strongest objection is scale. Neuralwatt 14 reports that the remaining three quarters of re-read tokens come on turns where neither the effort nor the tool count changed 33. It cannot always tell from the server side whether a harness edited the prompt or the cache was evicted under memory pressure 13. It adds that OpenCode 2.x fixes most of the 1.x cache breaks it found in the lab, yet that difference does not show up in production, for reasons it does not yet know 12.
The second objection clears the template. Neuralwatt also reports that none of its lab breaks came from its chat templates 44. On the other route, the OpenCodex cause is itself unproven 21.
Then there is the stake. Neuralwatt bills on measured energy, so it sees the cost directly 36, and Session Insights in the Neuralwatt dashboard shows each agent session turn by turn 37. I read its counts with that stake in mind and keep them.
Neuralwatt wants to research ways for the server to reuse cached work after a small edit near the beginning of the prompt, such as the effort line or the date 31.
The last objection is mine: a stronger effort after a failure may be worth a re-read, whatever it costs.
I credit the scale objection for aggregate traffic and for short sessions. On template innocence, I think both statements hold at once: the harness makes the change, and the template decides how much of the prompt it costs, which no harness designer can work around. As for the server fix, a harness on a closed API cannot change the provider’s server. On quality, I agree, and that is why I price the escalation and keep it. For deep sessions I hold the rule: effort and tool-list changes are breaks a harness chooses to make, and Neuralwatt reports they make a cache break more than 20 times as likely 4.
So I keep adaptive effort, and I make every escalation show up in the budget before it shows up in the bill.
Sources
01-11-2026
- 1 Neuralwatt, Why harnesses matter for energy efficiency (cause of breaks)
read on 16-10-2026 - 2 OpenCodex issue 6895, keep the Anthropic prompt cache across reasoning effort changes (goal)
read on 10-10-2026 - 3 Manus, Context Engineering for AI Agents: Lessons from Building Manus (single-token difference)
read on 18-07-2025