Opus Plans, DeepSeek Executes: Our Coding Agent Runs on a Tier Map
Verdict: run your coding agent on a tier map, not a model — the frontier model plans, a 1M-window model priced for volume executes, and one router in front keeps every prompt prefix byte-stable and every request traced.
In one week our coding agent made 21,434 requests, and 92% of them went to the frontier tier, carrying 350,822 prompt tokens on average. Agents carry a lot of context, which is exactly why it matters which model reads it. Planning now stays on Claude Opus 5.5. Execution runs on DeepSeek-V4-Flash with a 1M window. The desk-side pool from the previous part is the tier we are opening next.
The map
| tier | model | job |
|---|---|---|
| planning | Claude Opus 5.5 | decide what to do |
| execution | DeepSeek-V4-Flash, 1M window | do it, at volume |
| long context | our desk-side DeepSeek pool | the next tier |
Claude Code already thinks in tiers — it names a planning model, a default model and a fast model. We point each name at a provider. Nothing in the agent changes; the routing lives one hop away.
One router in front of every session
The router speaks Anthropic's API to the agent and chooses the provider per turn from the model the turn asked for. It holds the credentials itself — the agent's config carries only a placeholder — so switching a tier's provider never puts a secret in a settings file.
It also rewrites each request into a canonical prefix: tools in a fixed order, stable bytes. A prompt cache can only reuse a prefix that is identical, and one reordered tool makes every session pay its full prefill again. It is the same lesson as moving the clock out of the system prompt, which took prompt time on a second turn from 6.8 s to 1.55 s: whatever changes per turn belongs after the part you want cached.
For the local tier, the router already translates the agent's wire format into the pool's — streaming tool calls included — behind a size gate, a time budget and a circuit breaker that hand the turn to the cloud whenever the pool is busy.
Two rules that make the map trustworthy
The tier that judges stays on a provider that answers. In auto mode, Claude Code vets tool calls with a model call of its own, so that tier is infrastructure, not a preference.
A lapsed credential moves a turn instead of failing it. When the planning tier's login lapses, the turn completes on the execution tier while the official client renews the login; a rejected login degrades the same way. We tested both — an expired token and a rejected one — and both turns completed.
Measure before you move
We backfilled 26,473 requests from the agent's own transcripts before changing anything, and the router writes one row per turn from then on: model asked for, model served, tier, tokens in and out, cache reads, latency. Every number in this post came from those rows.
What to take away
Name the tiers your agent already has, point each at the model that fits the job, and put one router in front that owns credentials, prefix stability and tracing. The agent does not notice. The bill and the cache do.
The Desk-Side Stack · part 7 of 8
- The KV-Cache Translator That Couldn't Exist
- DeepSeek's Latent Cache Is 3× Smaller. That Makes It Easier, Not Harder.
- NVIDIA Made KV Caches Portable Between Models. We Shipped It The Same Day — On A CPU.
- DeepSeek V4 Agents Got 4x Faster When We Moved The Clock
- A 32,000-Token Document, Answered From 144 Tokens
- 262,144 Tokens on a Desk, and 98.5% of the Next Turn Already Cached
- Opus Plans, DeepSeek Executes: Our Coding Agent Runs on a Tier Map
- Frontier Tokens Are for Deciding, Not for Digging
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.