Synthesized by Clarity (Claude) from 8 sources · May contain errors — spot one? mail@promitb.dev · Methodology →
KV Cache Residency Breaks Agent Cost Models by 3x
- Sources
- 8
- Words
- 1,332
- Read
- 7min
Topics Agentic AI LLM Inference AI Safety
◆ The signal
Your agentic workload cost model is wrong by roughly 3x because it prices tokens, not KV cache residency. DeepSeek's disk-based cache persists for hours while most competitors evict in 5 minutes — one user measured $1,050 actual spend against $3,351 in cache savings. In the same week, three open-weight MoE models (DeepSeek V4 Pro, Kimi K2.6, MiMo V2.5 Pro) landed within 6–8 points of GPT-5.5 on frontier benchmarks at 49B active parameters. The model that wins your agent workload is now determined by cache economics, not leaderboard rank — and most teams haven't built the spreadsheet to see it.
◆ INTELLIGENCE MAP
Intelligence map
01 KV Cache Economics Breaks Agent TCO Models
act nowKV cache residency — not tokens or compute — dominates agentic cost. DeepSeek's disk cache persists hours vs. 5-minute TTL at competitors, yielding 3.2x lower effective cost. MoE models compound the error: active params drive FLOPs, total params drive shard footprint, and collapsing them into one figure misprices both latency and unit economics.
- DeepSeek cache TTL
- Competitor cache TTL
- User spend vs savings
- KV cache reduction @1M
- Naive per-token cost$3351
- Cache-aware actual$1050-3.2x
02 Open-Weight MoE at Frontier Parity — Specialized Models Are Dead
monitorThree 1T+ MoE models scored 52–54 on the Intelligence Index vs. 57–60 for GPT-5.5/Opus 4.7 — a 6–8 point gap at a fraction of active compute (32B–49B active). OpenAI killed standalone Codex, folding it into GPT-5.5. Alibaba's Qwen3.6-27B beats its 400B predecessor on coding. Specialized models are collapsing into general-purpose, and small-active MoE runs on a single GPU.
- DeepSeek V4 Pro
- Kimi K2.6
- MiMo V2.5 Pro
- Qwen3.6 coding model
03 Agent Security Hardening: Planner/Executor Split Ships
act nowThe Planner/Executor Split is the first deterministic defense against prompt injection in agentic systems: two LLM instances where the planner holds tool access but never sees untrusted input, and the executor processes untrusted content but has no tools. MCP and Skills are now correctly framed as a security boundary — Skills execute bash/python/curl with zero isolation. Gmail already runs stacked defenses in production.
- MCP isolation
- Skills isolation
- Defense type
- Production example
04 Grok 4.3: Cheap Headline, Domain-Shaped Model, Novel Billing Trap
monitorGrok 4.3 ships at $1.25/M input tokens (40–60% cut) with 1M context. Benchmarks reveal extreme specialization: #1 CaseLaw, #1 CorpFin, but 11% ProofBench and 'narcolepsy' on agentic tasks. A new $0.05-per-blocked-request fee means safety filter hits are now a cost line. Hallucination score dropped 8 points even as capability improved — reliability/capability tradeoff appears structural.
- Input price
- CaseLaw v2 rank
- Blocked request fee
- Hallucination delta
05 Cloud Infrastructure: Kinetic Attacks and Multi-Cloud Acceleration
backgroundAmazon data centers suffered drone strikes requiring months of repair — kinetic attacks on cloud infra are now production reality. Ubuntu infrastructure was down 24+ hours in the same week. Meanwhile, GPT-5.5 landed on AWS Bedrock, ending Microsoft's exclusive lock on OpenAI models. Pentagon signed multi-vendor AI deals with 7 providers, explicitly excluding Anthropic as a 'supply chain risk.'
- AWS repair timeline
- Ubuntu downtime
- Anthropic status
- Bedrock new models
- AWS drone strikesMonths of repairs needed
- Ubuntu infra down24+ hours, repos offline
- GPT-5.5 on BedrockMulti-cloud OpenAI access
- Pentagon contracts7 vendors, Anthropic excluded
◆ DEEP DIVES
Deep dives
01 Your Agent Cost Model Is Wrong by 3x — The KV Cache Fix
act nowThe Broken Assumption
Most teams price agentic workloads like chat: input tokens × per-token rate. For agents that math is wrong, and wrong in a measurable way. The dominant cost in a multi-step agent isn't compute or egress. It's KV cache residency, the GPU memory held between tool calls so you don't re-prefill the context.
Here's what actually happens. Each step re-sends the same long prefix: system prompt, tool schemas, prior observations. If the cache is warm, that prefix is free. If it evicted between steps because the provider's TTL expired, you pay full prefill again. Most hosted providers evict at ~5 minutes. DeepSeek's disk-based cache persists for hours.
On a twelve-step agent with tool outputs, KV cache residency is the line item. On short chats it's rounding error. The agentic cost model most teams use is broken in a specific way.
The Numbers
A DeepSeek billing screenshot one operator posted this week shows $1,050 in actual spend against $3,351 in cache savings. That is a 3.2x gap between per-token sticker price and effective cost on a single account. DeepSeek V4 Pro's hybrid CSA/HCA attention also reports a 10% KV cache size reduction at 1M context and roughly 4x lower inference FLOPs at long context. Cheaper per GB and longer-lived compounds over the hours of a real agent session.
MoE Makes It Worse
The second failure mode is Mixture-of-Experts cost modeling. A 49B-active MoE inside a 1.6T total parameter model has two cost drivers that don't collapse. Active parameters set the matmul bill per token. Total parameters set the minimum memory footprint and shard size. Most TCO spreadsheets fold both into one FLOPs figure, which mispredicts both latency and unit economics. Two models that looked competitive on per-token pricing were not competitive once cache residency was charged honestly.
The Fix
The corrected model has three components:
- KV cache: price by GB-hour at the accelerator memory rate
- Active parameters: price by FLOPs per token (not total parameter count)
- Shard footprint: price by minimum deployable instance forced by total parameters
Then run an actual agent trace through that model, not a synthetic benchmark. The ranking of which models are cheapest for agent work will change. Independent writeups keep landing in the same place: on long-horizon agent traces, cache residency dominates per-token price.
The Harness Multiplier
Token-efficient harness design amplifies these savings. Hugging Face is shipping concrete patterns: agents.md files that front-load context an agent would otherwise scrape from docs, and token-efficient API responses that strip verbose JSON envelopes. Every token saved in a response is a token that doesn't compete for cache space. Smallest stable prefix across agent steps wins, not lowest per-token rate.
Action items
- Instrument your agent serving path to measure KV cache hit rates and GB-hour residency per session by end of this sprint
- Benchmark DeepSeek V4 Pro and V4 Flash against your current API provider on your actual agentic workloads, measuring effective per-task cost including cache behavior, within 2 weeks
- Refactor agent prefixes to be stable across steps — system prompt, tool schemas, and scratchpad should be identical tokens in identical order by next release
- Build a three-component TCO model (cache GB-hour + active FLOPs/token + shard footprint) and re-rank your model shortlist this quarter
Sources:On our agent workload, KV cache residency dominated cost · The next caller hitting a given API is not going to be a person with a browser
02 Three Trillion-Parameter MoEs in One Week — The Frontier API Premium Is Now 6 Points
monitorThe Convergence
Three open-weight MoE models shipped in one week. All landed within 6–8 points of GPT-5.5 on the Artificial Analysis Intelligence Index:
Model Total Params Active Params Intelligence Index DeepSeek V4 Pro 1.6T 49B ~54 MiMo V2.5 Pro 1T 42B ~53 Kimi K2.6 1T 32B ~52 GPT-5.5 undisclosed undisclosed ~58 The remaining gap is concentrated in HLE, TerminalBench Hard, CritPt, and Omniscience. Hard reasoning frontiers. On coding, tool use, and multi-step planning — the actual agent workload — these models are functionally at parity. The 6-point delta that justified frontier API pricing is smaller than the delta between a decent harness and a sloppy one.
Specialized Models Are Dead Weight
OpenAI killed standalone Codex this week and folded it into GPT-5.5. The message is not subtle: general-purpose models have reached coding-task sufficiency. Mistral shipped the same signal by collapsing three models into one flagship. Alibaba's Qwen3.6-27B outperforms its 400B+ predecessor on coding benchmarks at 15x smaller and single-GPU deployable. Routing logic that selects a specialized model per task is becoming dead code.
Stop building routing logic that selects specialized models per task. Build a clean abstraction layer that lets you swap the underlying model without touching business logic. You'll need it again in 6 months.
Local Inference Became Practical
PFlash speculative prefill hits 10x over llama.cpp at 128K context on an RTX 3090, using a Qwen3-0.6B drafter. Qwen 3.6 35B-A3B runs on an AMD 7700 XT at 128K with flash attention. The floor for self-hosted, cache-optimized agent infrastructure dropped this week.
There is a catch that several sources flagged independently. Open-weight models benchmark well and underperform in agent workflows. The reason is mechanical: LangChain, OpenCode, and similar harnesses are tuned to proprietary API conventions — tool-call format, system prompt layout, retry behavior. Swap in a local model and the scaffolding is wrong. The fix is not a better model. The fix is a model-specific harness. Log tool-call traces from the API run and the local run, diff them, build the adapter.
Platform Design Shifts
Hugging Face is redesigning for agents as the primary consumer by end of 2026. Three patterns worth adopting now: agents.md at repo roots for machine-readable project context, token-efficient API responses with small payloads and short stable field names, and headless-first interfaces where the CLI is canonical and the UI is a view. This is not vision. It is shipping code from a team with 15M users and 200 engineers.
Action items
- Audit all Codex API integrations and migrate to GPT-5.5 endpoints before OpenAI deprecation
- Add agents.md files to your top 5 public-facing repos this sprint — describe entry points, test commands, and sharp edges in machine-readable format
- Prototype a hybrid local+API inference architecture: use a small-active MoE (Qwen 3.6 35B-A3B or similar) for triage/pre-screening, route only complex tasks to frontier APIs
- Build model-specific agent scaffolding before concluding local models are worse — log tool-call traces and diff API vs. local runs
Sources:On our agent workload, KV cache residency dominated cost · The next caller hitting a given API is not going to be a person with a browser · Your AI model abstraction layer just became critical
03 The Planner/Executor Split — Hard Isolation for Agent Security
act nowThe Pattern
The new agent security primitive worth naming this week is the Planner/Executor Split. Two LLM instances. A hard privilege boundary between them. The planner sees the tools and the plan, never untrusted input. The executor sees untrusted content, never the tools. Prompt injection lands on the component that has no authority to act.
This isn't a prompt engineering trick. It's privilege separation ported to LLMs, the same mechanism Unix uses to keep user processes out of root. Gmail already runs stacked defenses on this pattern in production.
Skip the planner/executor split and every tool call is one clever paragraph away from exfiltration.
MCP vs Skills: A Security Boundary Decision
MCP-versus-Skills gets pitched as a bake-off. Read the capability surface and it's a security boundary decision. The asymmetry that matters:
Dimension MCP Skills Isolation Process-level (JSON-RPC over separate container) None (runs in agent's environment) Execution Typed parameters, schema validation Arbitrary bash, python, curl Versioning Server redeploy required File change Attack surface Bounded by schema Unbounded if influenced by untrusted input A Skill that ingests untrusted content and shells out is a prompt injection to RCE chain. Not theoretical. The split I'd ship: MCP for anything touching production. Skills for dev-facing agents in CI runners, ephemeral containers, and workstations. Nowhere else.
The Defense Stack
The complete taxonomy has two layers. One makes injection harder. The other caps what happens when it lands.
Model-level (probabilistic — makes injection harder)
- Spotlighting: wrap untrusted text in control tags (
<UNTRUSTED>) and tell the system prompt to treat tagged content as data only - Instruction Hierarchy: fine-tune the model to rank system prompts above user messages above third-party content
System-level (deterministic — caps blast radius)
- Planner/Executor Split: hard privilege boundary, 2x inference cost
- Least-Privilege MCP: minimum operation set per server, typed schemas that reject unexpected params
- Human-in-the-Loop: checkpoint gates on irreversible actions
The Planner/Executor Split is not free. 2x inference, coordination latency, and a handoff protocol you have to design and maintain. For any agent that reads external content and takes write actions, it's the only pattern that stops a single injection from doing damage. Pay the tax.
Action items
- Audit your agent architecture against the MCP/Skills taxonomy this sprint — map every integration: live system → MCP, procedural knowledge → Skills. Flag any Skills executing in unsandboxed environments as P1
- Implement Spotlighting (<UNTRUSTED> tags) on all LLM calls processing external content within 2 weeks
- Prototype the Planner/Executor Split for your highest-risk agent workflow — any agent that reads untrusted content AND has write tool access
- Apply least-privilege scoping to all MCP tool definitions — each server exposes minimum operations with typed parameter schemas that reject unexpected input
Sources:MCP and Skills solve different problems · The next caller hitting a given API is not going to be a person with a browser
- Spotlighting: wrap untrusted text in control tags (
◆ QUICK HITS
Quick hits
Grok 4.3 ships at $1.25/M input tokens but scores 11% on ProofBench and introduces a $0.05 fee per safety-filtered request — fine for classification and summarization, not for multi-step reasoning. Model your refusal rate before migrating.
Grok 4.3 launched at $1.25 per million tokens
Update: AWS data centers hit by drone strikes — Amazon now estimates months of repairs, not hours. If your DR runbook assumes region failures resolve in days, it is wrong. Test failover posture this week.
xAI shipped Grok 4.3 this week
Nebius acquired inference optimization startup Eigen AI for $615M — the optimization layer between models and chips is now valued as standalone infrastructure. If you're not actively tuning operator fusion, quantization, and speculative decoding, you're leaving 30–50% efficiency on the table.
CopyFail gives root on most Linux distros
GPT-5.5 and Codex now available on AWS Bedrock, ending Microsoft's exclusive OpenAI lock. If you're an AWS shop maintaining a cross-cloud Azure connection for GPT models, that complexity is now optional.
Your AI model abstraction layer just became critical
Anthropic excluded from Pentagon classified AI contracts — labeled a 'supply chain risk.' If you build on Claude APIs for government-adjacent customers, the designation propagates through procurement chains. Document a fallback.
Pentagon's classified AI contracts exclude Anthropic
Rust firmware achieved memory-efficiency and speed parity with C in a real industrial microcontroller deployment — the performance tax argument against Rust in embedded is now empirically refuted on production hardware.
xAI shipped Grok 4.3 this week
OpenAI now tracks ChatGPT users for ad targeting by default. Google considering ads in Gemini. If your team pastes code, error logs, or architecture into ChatGPT, verify whether API endpoints have different data handling policies.
xAI shipped Grok 4.3 this week
Google TPU 8 generation: 170–180% training cost-performance, 300% networking bandwidth, 200% on-chip SRAM for inference — step-function improvements that will reshape build-vs-cloud math within 6–12 months.
On our agent workload, KV cache residency dominated cost
Recursive multi-agent systems achieve 34.6–75.6% token reduction with 8.3% accuracy improvement using latent-space communication instead of natural language between agents. Audit your inter-agent chat for redundancy.
On our agent workload, KV cache residency dominated cost
◆ Bottom line
The take.
The per-token price you compare on vendor pages is not the cost you actually pay for agent workloads — KV cache residency is the dominant line item, and DeepSeek's hours-long cache TTL makes it 3.2x cheaper than providers with 5-minute eviction windows. Three open-weight MoE models hit within 6 points of GPT-5.5 this week at 32B–49B active parameters, specialized models like Codex are being killed and absorbed, and the Planner/Executor Split emerged as the first hard isolation pattern for agent security. Your three moves: instrument cache hit rates before comparing model prices, build model-agnostic abstractions before the next consolidation cycle, and split your agent's planner from its executor before the first prompt injection hits production.
Frequently asked
- How do I actually measure KV cache residency in my agent stack?
- Instrument the serving path to log cache hit rates and GB-hour residency per session, not just tokens and latency. Most observability stacks miss cache state entirely, which is why the 3x cost gap goes unnoticed. Once you have GB-hour data, price it at the accelerator memory rate and add it as a line item alongside FLOPs per token and shard footprint.
- Why do open-weight models benchmark well but underperform in my agent workflows?
- The gap is almost always harness-driven, not model-driven. LangChain, OpenCode, and similar scaffolds are tuned to proprietary API conventions — tool-call format, system prompt layout, retry behavior — so a local model gets the wrong scaffolding by default. Log tool-call traces from an API run and a local run, diff them, and build a model-specific adapter before concluding the model is worse.
- When should I use MCP versus Skills for agent tool integrations?
- Treat it as a security boundary decision, not a feature comparison. MCP gives process-level isolation, typed schemas, and bounded attack surface — use it for anything touching production. Skills run arbitrary bash/python/curl in the agent's environment with no isolation, so restrict them to dev-facing agents in ephemeral CI runners or workstations, never where they can ingest untrusted content and shell out.
- What's the minimum viable defense against prompt injection right now?
- Layer probabilistic and deterministic defenses. Ship Spotlighting (wrap untrusted content in <UNTRUSTED> tags) immediately as a zero-latency baseline, then prototype the Planner/Executor Split for any agent that reads external content and has write tool access. The split costs 2x inference but is the only deterministic cap on blast radius when injection lands.
- Is it worth building routing logic to pick specialized models per task?
- No — that logic is becoming dead code. OpenAI folded Codex into GPT-5.5, Mistral collapsed three models into one flagship, and Qwen3.6-27B beats its 400B+ predecessor on coding at 15x smaller. Build a clean model abstraction layer instead so you can swap the underlying model without touching business logic, because you'll be swapping again in six months.
◆ Same day, different angle
Read this day as…
◆ Recent in engineer
Keep reading.
- Chrome's synced passkeys all decrypt under one 32-byte secret reachable in memory.
- 221,303 Verified Live Credentials in Hugging Face Datasets
- 3 Eval Escapes in 141,006 Runs Reach Others' Production
- SRI Can't Pin the Adform Ad Tag Rewriting Wallet Addresses
- Cursor Hit 50% of PRs by Fixing Environments, Not the Model
Spot an error? mail@promitb.dev