Design a model-aware context budget for a workload that switches between Haiku and Opus
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
You route easy turns to a small model (Claude Haiku 4.5 or GPT-5 nano) and hard turns to a large model (Claude Opus 4.7 or GPT-5). How should your context budget differ between the two routes, and what concrete numbers would you start with?
Give the small-model route a tighter context budget than the large-model route because small models lose accuracy faster as context grows; size both budgets from per-route eval curves, not from advertised window limits.
Picture two chefs sharing the same kitchen. One is a quick line cook who handles simple orders fast; the other is a head chef who tackles the complicated dishes. If you dump twenty ingredients on each cutting board, the line cook gets overwhelmed and starts mixing the wrong ones. The head chef can still find the right ingredients but works slower and bills you for the extra effort. So you prep less for the line cook and more for the head chef. The kitchen and the recipes are the same; the prep is different by station. Small and large language models work the same way: the small one needs a tighter, cleaner counter to perform at its best.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: name the small vs large degradation gap from RULER, give slot by slot starting numbers for each route, defend the asymmetry, explain why per-route eval curves drive the cap, and note that tolerating context is not benefiting from it.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Sizing both budgets from the advertised window limit. The hard cap is what the API accepts; the soft cap is where quality starts dropping, and the two diverge sharply for small models.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.