By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
The Helios team moved the customer record to the top of the prompt because it looked important. Nothing else changed. Cache reads fell from 58% of input tokens to 4%, and the monthly token bill rose by more than the last two trims had saved.
A prompt cache lets the provider reuse work it has already done. It stores the processed prompt prefix, and a later request that starts with exactly the same token sequence skips that work. The match runs from the first token, so one changed character near the front invalidates everything after it.
That makes prompt order a performance decision, not a style preference. The customer record is different on every call, so putting it first guaranteed that no two calls shared a prefix.
Order the prompt by volatility, slowest first. Each boundary in the list below is a candidate cache boundary, because everything above it is text that repeats across calls.
| Position | Content | Changes | Breakpoint after it? |
|---|---|---|---|
| 1 | Policy handbook, label definitions, scope rules | Per release | Yes |
| 2 | Tool schemas | Per deploy | Yes, once the schemas settle |
| 3 | Few-shot examples | Per release | Usually the last stable block |
| 4 | Conversation state and customer record | Per call | No |
| 5 | Retrieved snippets | Per call | No |
| 6 | The current task | Per call | No |
The prompt that died had the record at position 1 and the handbook at position 5. Same tokens, same content, no reusable prefix. The repair is a move, not a rewrite.
Draw the request path before you place anything. The interesting branch is the one where the prefix changed: that call pays the write cost, and a release can silently move all traffic onto it.
A cache breakpoint marks the end of a block you want stored. Everything up to that point becomes the cached prefix. Place it after the last stable block, and place a second one after the next stable group so a change in the tail does not invalidate the head.
The economics are asymmetric. A cache write costs more than an ordinary input token, and a cache read costs much less, so caching pays only when the same prefix is read again inside the lifetime. The lifetime is short by default, with a longer option at a higher write cost, and there is a minimum prefix length. Check the prompt-caching page for the current multipliers and minimum; do not carry remembered numbers into a review.
{
"bundle": "helios-support@14",
"layout": [
{"block": "policy_handbook", "tokens": 4200, "changes": "per release"},
{"block": "tool_schemas", "tokens": 850, "changes": "per deploy", "breakpoint": true},
{"block": "scope_and_style", "tokens": 600, "changes": "per release", "breakpoint": true},
{"block": "customer_history", "tokens": 400, "changes": "per call"},
{"block": "retrieved_snippets", "tokens": 450, "changes": "per call"},
{"block": "task", "tokens": 500, "changes": "per call"}
],
"expected_cache_read": "5,650 of 7,000 tokens per call"
}The layout is also a packaging decision. The stable prefix belongs in one versioned artifact, such as a prompt bundle named helios-support@14, not in six places across the codebase. A change to the bundle is a release: bump the version, run the probe set, deploy. Because the package boundary matches the cache boundary, a release rewrites one cached region.
A Skill packages instructions, assets and sometimes scripts that the model loads when a task matches, so a procedure used by several agents lives in one maintained place. Use a Skill when the stable content is a repeatable procedure. Keep a cached prefix when the content is reference text that every call needs, because a Skill load is an extra step the model must choose.
| Stable content | Package as | Why |
|---|---|---|
| Policy wording every call must quote | Prompt bundle, cached prefix | Always needed, never inferred |
| A claims-assessment procedure used by four agents | Skill | One maintained copy, loaded on demand |
| Tool schemas shared by three services | Versioned schema file | One deploy changes all three |
Two habits catch most of these. Build the prompt in a function that takes the stable block from the bundle and never formats it, and log the cache read and write token counts on every call. A hit rate that drops after a deploy is then a five-minute diagnosis.
You inherit this 6,200-token prompt: the user's question, then a per-customer account summary, then the 40-rule policy manual, then four worked examples, then a formatted timestamp, then the tool schemas.
Write the reordered list as a layout manifest, not as prose. A manifest survives the next engineer, and a paragraph does not.
Key takeaways
A prompt cache matches from the first token, so one early change invalidates the prefix.
Order by volatility: stable text first, per-call state and the task last.
Place breakpoints at the end of stable groups, never above per-call blocks.
Package the prefix as a versioned artifact; a change is a release.
A timestamp or an A/B variant can silence the cache.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.