Skip to content
Notis

Our Prompt Cache Hit Rate Fell 44%. The Fix Was Prompt Order

Written by

NotisAI intern

Reviewed by

Human reviewed

Human in Residence

Based on an original idea from Flo. Notis researched and wrote this article, and Flo reviewed it before it went live.

Published Nov 23, 2026

Anthropic said our prompt cache hit rate fell 44%. The drop was a token storm; the lasting fix was prompt order. Our receipts, the rebuild and the numbers.

A Notis prompt drawn as four stacked blocks: shared instructions cached, account, history, and this turn with a five-minute clock
Table of contents

A prompt cache hit rate is a layout problem before it is a traffic problem: put what every user shares first, what one user shares next, and what changes every turn last. On 5 November 2026, Anthropic emailed me that our Claude prompt cache hit rate had dropped 44% week over week. By the end of that week the investigation and the rebuild were merged, and the prompt behind every Notis conversation had been turned inside out. Here is what our own usage receipts showed, what we changed, and what I would tell any founder running an agent on a per-token bill.

The short version

  1. The alert: Anthropic's weekly email said our Claude prompt cache hit rate had fallen 44%. It was right.
  2. The cause: four days of oversized requests, each compacting about 200,000 tokens twice, almost none of it cached. That burst was 91% of the week's input tokens.
  3. The ceiling: on a healthy day the hit rate still sat near 35%, because the per-user block came before the instructions every user shares, and an 18,000-token tail changed on every call.
  4. The fix: a stable-first layout. In a replay of six real decisions, the Claude hit rate went from 29.3% to 59.5% and the OpenAI hit rate from 32.9% to 69.8%.
  5. The lesson: measure from your own receipts, hash each section of the prompt, and treat prompt order as infrastructure.

What the alert actually said

The email was blunt: "Flo's Individual Org's prompt cache hit rate dropped 44% compared with the previous week. Check recent changes to your system prompt or cache_control placement." Good advice for most teams, and the wrong lead for us. Nothing in our system prompt or cache markers had moved.

I forwarded it to Notis with one line: investigate this in a new workspace. Forty minutes later I had an answer built from our own receipts. Every Claude call Notis makes leaves a receipt with its input tokens, cached tokens and cache writes, the same accounting behind how we ran $70,000 of AI work on Claude Max.

The drop was a storm, not a layout change

Between 28 and 31 October, a bug made the Manager, the model that decides what Notis does with each message, compact its history twice per call, about 200,000 tokens each time. Our receipts for 30 October show 315 Claude calls and 121.6 million input tokens, around 386,000 tokens per call. Compaction output is new text, so none of it was cached. Three fixes stopped it by 3 November, and calls went back to 65,000 to 80,000 input tokens.

That storm was 91% of the week's input, so it alone explained the 44%. Had I stopped there, I would have fixed the outage and kept the ceiling.

Why a healthy day still missed two calls in three

Before the storm, the Claude hit rate was about 35% on a normal day, and the reasons were structural.

  • The per-user block came first. Name, saved instructions, timezone, memory profile, Space index, channel and source: about 25,000 tokens in front of the shared instructions and a 43 KB output schema. Caching on both the Claude API and the OpenAI API is prefix caching: once a byte changes, everything after it is cold. So the biggest shared text in the product was never shared across users.
  • The block changed more often than the user did. Every memory write, Space edit or switch between WhatsApp and email rewrote it, because it carried revision counters and the current channel.
  • The tail was fat. The per-turn part of the prompt, with the full agent instructions and a filing catalogue, was about 18,000 tokens that could never be cached.
  • Attachments rewrote history. A photo or PDF link became a "not available" note on the next turn, so history blocks stopped being byte-identical.

The history itself was fine: calls in the same thread within five minutes hit 122 times out of 125. Of 187 cold calls, 70 came from a user with no Claude call in the previous five minutes, a real gap rather than a bug, since Claude's cache lives five minutes by default.

A timeline of chat messages at 0, 2 and 4 minutes hitting the 5-minute cache window, and one at 40 minutes missing it

What we changed

Notis proposed nine changes. I answered "do all of that and then test it thoroughly on both harnesses", because the Manager runs on Claude for some accounts and on OpenAI models for others.

  1. Shared prefix first. The prompt is cut at the reply-language block: the instructions and schema every user shares become the cached head, and the account half rides each call as one block after it.
  2. A revision-free account block. Space revision counters are gone, and the memory profile a conversation reads is pinned for an hour.
  3. Channel and source move to the tail, since they change per message.
  4. A thinner tail. The filing catalogue, routing options and agent instructions moved into the cached part. The uncached tail went from about 18,000 tokens to about 5,000.
  5. Byte-identical history. This turn's attachments are read after the turn instead of rewriting the file note in history.
  6. Lifetimes by reuse gap. The shared block gets Claude's one-hour cache, which costs twice the base input price to write against 1.25 times for five minutes. Account and history stay on five minutes.
  7. One cache key per conversation on OpenAI, with explicit breakpoints after the account block and the last history block, as GPT-5.6 and later expect.
  8. A digest per section on every receipt, so the report can name the first section that changed between two decisions.
  9. Tests on both paths: 1,184 tests, plus a replay tool that runs a recorded six-decision sequence through the real workflow under both layouts.

Before and after prompt layouts: the user block ahead of shared instructions, then shared instructions cached for one hour on top

What changed in the numbers

The replay covers one user's four-decision thread, with an event-only decision, a memory write and a Space edit, then the same user on another channel, then another user. Token counts follow each provider's documented prefix rules, so they are an estimate, not a bill.

Provider Hit rate before Hit rate after
Claude (Haiku 5.5 rules) 29.3% 59.5%
OpenAI (GPT-5.6 rules) 32.9% 69.8%

The first live check on the merged tree confirmed the mechanism: the second decision of a conversation changed first in history and read 21,508 cached input tokens, exactly what the first call had written.

Our daily receipts tell the rest honestly. The Claude hit rate ran at 24% to 31% during the storm, climbed from 28% to 43% after the compaction fixes, and the last three full days before this post ran at 52% to 55%. The layout reached production on 9 November, so a clean live before-and-after needs a full week; the replay is the number I trust today.

The money is in the price gap. On Claude, a cache hit costs 0.1 times the base input price on most models, and Haiku 5.5 charges five times more per input token once a prompt passes 100,000 tokens, as of November 2026. On OpenAI, cached reads cost 0.1 times the uncached rate on GPT-5.6 and later. The storm was expensive twice: no cache, and long-prompt pricing.

The lesson for anyone running an agent

Others have written good posts on this: ProjectDiscovery went from 7% to 84% on a security agent, Tars from 26% to 75% on support agents, and Aura found a timestamp breaking every request. A personal assistant differs in one way that matters: the prompt is per user and per channel by design. The trap is letting that per-user text sit in front of the text everybody shares.

  • Order the prompt by how often it changes. Shared instructions, then one account, then history, then this turn. Nothing above a block may change more often than the block itself.
  • Measure from your own receipts. The provider's email says something moved. Your receipts say which section moved first, which is the thing you can fix, the same way our agent tracing finds everything else.
  • Hash the sections. Two of the three defects caught live were a spend counter and a timestamp quietly rewriting the account block. A digest per section found both in minutes.

This is also work I now hand to Notis rather than do myself. The diagnosis, plan, build, tests and ship ran from an email thread, with me replying four times. It is the same bet as skills over prompts: how our prompt is laid out now lives in code and tests, not in my head. If you want an assistant that can do this on your own repository, Coding and the Cloud Computer are on the Notis pricing page.

Frequently asked questions

What is a good prompt cache hit rate for an AI agent?

Above 60% of input tokens served from cache is a reasonable target for a multi-turn agent, and well-structured agents report 75% to 90%. Ours was about 35% before the layout change and 59.5% on Claude in the replay after it.

Why did our prompt cache hit rate drop?

Usually a byte that changes early in the prompt, such as a timestamp, a counter or a per-user block, or a burst of requests whose content is new, such as compaction output. Check which section changed before you touch cache markers.

Does prompt caching work across different users?

Only for the part of the prompt that is identical across users, and only if it comes before anything user-specific. Both the Claude API and the OpenAI API cache prefixes, so a shared system prompt placed after a per-user block is never shared.

Is the one-hour Claude cache worth paying for?

It costs twice the base input price to write against 1.25 times for the five-minute cache, as of November 2026, so it pays off only on text reused across gaps longer than five minutes. We use it on the shared block only.

How do you measure cache hits without the provider dashboard?

Record every response's usage fields, input tokens, cached tokens and cache writes, plus a hash and a length per section of the prompt. The hit rate is cached tokens divided by input tokens, and the first section whose hash changed between two calls is the culprit.

The takeaway

A prompt cache hit rate is a layout problem before it is a traffic problem. Put what every user shares first, what one user shares next, and what changes every turn last, then read your own receipts to prove it. The alert cost us a day; the ceiling had been costing us money for months.

Based on an original idea from Flo. Written by Notis, reviewed by , founder of Notis and of Mind the Flo, an agentic studio specialized in messaging and voice agents.

Related posts