R156 · Agent architecture › Context economics and caching

GPT-6.2 stops caching the Responses instructions field: where harnesses put the system prompt

Read the original

Authors André Lindenberg (shared)

prompt-cachinginference-costagent-harnesscoding-agentsvendor

Sources: OpenCode v2.3.2 changelog (2026-11-18); anomalyco/opencode issue #64550 and the fixes in #64542 and #64544; openai/codex issue #62312, which has an independent reproduction. Surfaced by André Lindenberg on LinkedIn, 2026-11-19. Behaviour as reported by these sources.

What changed

On the Responses API, a request can carry a system prompt in two ways: in the top-level instructions field, or as a leading developer message at the start of input. With GPT-6.1 both are cached once the prefix repeats. With the GPT-6.2 family (Sol and Astra), the reports say the API now places top-level instructions at the end of the model's input and never caches it. OpenAI reportedly confirmed to OpenCode maintainers that this is deliberate. Its recommendation is to put static, reusable text in the first developer message of input, ahead of the user turn.

Any harness that sends its system prompt as instructions therefore pays the full input rate for it on every agent step.

The measurements

From the OpenCode issue, with each request sent twice, a 10.1k-token text and a unique prefix per pair:

model         text sent as        1st request       2nd request
gpt-6.2-sol   instructions        written 0         cached 0
gpt-6.2-sol   developer message   written 10,113    cached 10,113
gpt-6.1-sol   instructions        written 10,114    cached 10,114
gpt-6.1-sol   developer message   written 10,113    cached 10,113

In the reporter's code-review sessions, the uncached system prompt was about 12.9k tokens per request. That made GPT-6.2 Sol reviews 2.85 times the cost of identical GPT-6.1 Sol reviews. The LinkedIn post cites about 14k uncached tokens per step in a Copilot-routed session, falling to 3 after the fix.

The Codex issue reproduces the same pattern with streaming requests, a ~9.2k-token system prompt and five tools:

That issue also reports a diagnostics mismatch. OpenAI's cache-comparison diagnostics said cache_hit for the 6.2 instructions runs, while the usage fields showed zero cached and zero cache-write tokens.

The fix in OpenCode

Version 2.3.2 sends the system prompt as a leading developer message on every Responses route: OpenAI (API key and ChatGPT sign-in), GitHub Copilot, Zen, Azure and OpenRouter. The system prompt is then cached from the second step on. On the dev branch the change applies to all models, not only 6.2 and later, so there is one request shape rather than a per-model branch.

Why it matters beyond one harness

Tradeoffs of the fix

Failure modes to watch

Review checklist for any harness on the Responses API

Cited in field guides

Connections

See R156 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.