r/opencodeCLI • • 5h ago

OpenCode 2.3.2 fixed GPT-6.2 re-billing the system prompt every step. How I'd check my own setup

The v2.3.2 release note says GPT-6.2 models don't cache a system prompt sent in the Responses instructions field, so every step re-billed it as uncached input. OpenCode now sends it as a leading developer message. On GitHub Copilot gpt-6.2-sol the note says uncached input per step went from about 14,000 tokens to 3.

OpenAI's caching guide explains why: on GPT-6.2 and later, top-level instructions are appended after the input and billed at the uncached rate every request. Reusable instructions belong in the first developer message.

What I took from it: a session hit rate can look fine (70% in my worked example) while the biggest stable block is never cached. Check cached and uncached tokens per step, at step 2 and at step 10.

I wrote up the arithmetic, a ten-minute audit and a small script that prints the numbers per step: https://medium.com/@r3dtuxedo/your-system-prompt-was-never-cached-77c7bebe41fd

I wrote the article.

1 Upvotes

0 comments sorted by