2026-11-26 15:49 UTC

Howard John reports no useful semantic-cache hits in a 15,000-prompt Codex sample

state: seedheat: lowuncertainty: mediumrelevance: mediumsemantic-caching ai-gateways inference-costHoward John

What is this?

AI gateway engineer Howard John published a November 24, 2026 essay criticizing semantic caching—the practice of reusing answers for semantically similar prompts—as a broad cost- and latency-saving tactic. In an analysis of 15,000 prompts from 2,500 Codex sessions, he reports that apparent cache hits were harmful false positives across the approaches he tested: prompts depended on prior conversation, repository, user, or other context. He says simpler, predictable support-bot workloads may still benefit. This is one practitioner's analysis of his sample, not an independent or general benchmark.

Why it matters

The essay highlights a practical trade-off in AI inference economics: a cache can reduce cost and latency only when it can safely recognize requests whose answers are interchangeable. In coding and agentic workflows, omitted context can make similar-looking prompts mean different things; a mistaken hit may return a useless answer or, if user boundaries are mishandled, expose another user's information. The results caution against assuming semantic caching will yield broad savings, but do not establish that it fails on all workloads.

Current assessment

New: Howard John, an AI gateway engineer, published an essay on November 24, 2026, based on 15,000 prompts across 2,500 Codex sessions. He reports testing multiple cache-lookup approaches at similarity thresholds of .90 and .99. Looking only at the latest prompt produced nominal hit rates of 5–17%, but he judged every hit a false positive; using only each session's first prompt yielded 8–20%, again with harmful hits. Including the conversation produced 16–68% hits within the same conversation, which he says often ignored the last message; cross-session hits fell to 1–3% and were also false positives. His conclusion is essentially no useful hits in this sample, even at an exact-match threshold. These figures and interpretations are the author's, and the supplied sources provide no independent replication or detail sufficient to establish generality. He explicitly leaves open benefits for predictable support-bot workloads. The implication is workload- and context-sensitive: teams should validate hit correctness and preserve relevant conversation, user, and task context rather than infer savings from similarity hit rates alone. The essay also flags false sharing as a potential privacy risk when user context is not part of cache handling. Search results include vendor material describing high hit potential on a domain-bounded workload, but do not provide directly comparable evidence, so the claims are not a like-for-like contradiction.

Measured heat

now 0 pts/hpeak 3 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 74h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-23 13:00⭐ origin echo-reconstructedThe author argues semantic caching is often ineffective or risky for context-dependent and agentic prompts, and reports high false-positive
Howard John on blog (echo) · attributed from hn.story.50637722
—
11-25 02:40first on hacker news · published · +37.7hOverhyped AI Gateway Features Part 1: Semantic Caching
jmcshane
—
11-25 02:40amplified on hacker news 👑hn.story.50637722
jmcshane
peak 2 · 0 comments · 103% of case engagement
11-25 03:21our radar first saw it · +38.4hdiscovery anchor: hn.story.50637722—
pace: p32 vs 2088 stories at the 72h mark (now 74h old) — ahead of a100-inference-hillclimb (2.0x), behind agentfx-agent-animation-tool (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnOverhyped AI Gateway Features Part 1: Semantic Caching
Retrieved article excerpt

Open article · Retrieved 2026-11-25T03:22:36.292718+00:00

# Overhyped AI Gateway Features Part 1: Semantic Caching

November 24, 2026 · 5 min

> This is part one of a series.
>
> 1. **Overhyped AI Gateway Features Part 1: Semantic Caching** (this post)
> 2. Overhyped AI Gateway Features Part 2: Prompt Compression (coming soon!)
> 3. Overhyped AI Gateway Features Part 3: coming soon!

Over the past few years of working on an [AI/LLM Gateway](https://agentgateway.dev/), I've seen a lot of features go through the hype cycle, treated as magic silver-bullets to cut costs or improve performance, pared with benchmarks that are either outright fabricated, hallucinated, or excessively cherry-picked.

In this series I wanted to cover some of the most overhyped features in the space, what they promise, what they deliver, and where the fall short.

## The pitch[#](https://blog.howardjohn.info/posts/overhyped-ai-gateway-1-semantic-caching/#the-pitch)

First up is semantic caching.

Unlike traditional caching, which relies on an exact match of data, semantic caching attempts to cache results for *similar* queries.
For example, "What is the capital of France?" and "Which city is the capital of France?" are semantically similar queries, and a semantic cache could return the cached "Paris" result for both.

The benefit here is clear - a cached result is ~free, both in latency and cost.
Back when we were first looking into semantic caching in ~2023, we gave a killer demo showing theoretical million-dollar savings just caching similar "Hello" requests.
Unfortunately, the real-world falls short.

## Where it breaks down[#](https://blog.howardjohn.info/posts/overhyped-ai-gateway-1-semantic-caching/#where-it-breaks-down)

While in theory this is great, in practice there are severe limitations in most cases.

**Context:** in most real LLM usages, the model is provided context that is specific to the current query. For example, the logged in user, the date, the working directory, or other session-specific information. This inherently limits the effectiveness of semantic caching (hopefully! see **False sharing** below).

**Agentic requests:** when using "agents" (in this case, simply meaning multi-turn requests), semantic caching essentially cannot work. Either you use the entire conversation as the cache key (incredibly unlikely to have multiple turns and LLM responses repeated) or you look only at the last message (which loses all of the real semantic context).

**Similar is not the same as identical:** subtle differences that are obvious to humans may be missed by semantic similarity algorithms, leading to incorrect cache hits. For example, `Convert 100 USD to EUR` and `Convert 100 EUR to USD` have completely different meanings, but are likely to trigger a semantic cache hit.

**False sharing:** can occur if caching doesn't take into account user context. For example, if two different users make similar queries, a semantic cache might return one user's result to the other, potentially exposing sensitive information from their conversation.

## Real world data[#](https://blog.howardjohn.info/posts/overhyped-ai-gateway-1-semantic-caching/#real-world-data)

To put this to the test, I analyzed 15,000 prompts from 2,500 Codex sessions analyzing which prompts could be a cache hit had they run through a semantic caching engine. I took a few different approaches on what was actually considered for the cache lookup. I ran across a .90 and .99 similarity threshold.

**Each prompt (just looking at the most recent prompt)**: 5-17% hit rate. Sounds great, right? Wrong! **Every** hit was a false positive. Common examples include "wdyt", "fix it", "keep going", and "review the local change" -- *none* of these can be correctly cached as they all depend on prior context.

**Just the first prompt of a session**: 8-20% hit rate. Unlike checking each prompt, which has obvious missing context from prior messages, just caching the first prompt seems intuitively more likely to succeed (albeit at minimal cost savings). However, again all cache hits would have been harmful. Many prompts were identical, but to different repos, or intentionally repeating the same prompt ("Ralph Loop"). Close matches like "fix issue 1234" and "fix issue 1243" are semantically close but completely different in reality. The case where true hits were plausible was 'hello' prompts - but these were all me testing connectivity/model availability/etc where a cache hit would obscure the result.

**Caching the entire prompt (ignoring system prompts and model responses)**: considering the SAME conversation the hit rate is 16-68%. This is extremely high and for a good reason: `<long conversation> + last message` is semantically very similar to `<long conversation>`. However, this means the last message is entirely ignored and the same response would be returned again which would be useless (and frustrating!). If we consider only cross-session hits, we drop to 1-3%. All of these had the same false hits as checking each prompt individually - which makes sense, as at the start of the conversation "full conversation" is the same as "each prompt"; once we get into multi-message sessions the hit rate plummets.

So overall, at least for my Codex samples, the false positive rate was extremely high - *even if we had a exact-match threshold*. There were essentially zero cases where semantic caching would have provided a benefit.

That being said, much simpler support-bot style use cases, where queries are more predictable and less context-dependent, might still benefit from semantic caching. However, as AI progresses and most use cases are becoming more and more context dependant, the effectiveness of semantic caching will likely continue to diminish. The presence of a single tool in the request has the potential to make cache hits invalid.
jmcshane20
🟧 echo.blog ⭐The author argues semantic caching is often ineffective or risky for context-dependent and agentic prompts, and reports high false-positive Howard John——

Interpretation history

Decision trace