As always, caches save you money.
As always, caches save you money. Turns out that is also true for AI agents, and by a lot more than I expected.
The last talk at Future Coding Day in Copenhagen was one of the most memorable of the whole conference, and one I keep thinking about: Matthias Lau on “The Hidden Economics of Agentic Software Engineering”.
He opened with Uber. They rolled out agentic coding company-wide and had burned through their annual AI budget by April. Not because anyone was careless. An agent simply reads code, calls tools, checks results, and sends all of that back to the model again on every step. A chat is one request. An agent run is a long chain of them.
The part that surprised me: in his example bill ($90k/month for 3,000 tasks), 97% of the tokens were input. Not the generated code, not the reasoning. Just the same context going in over and over. That was 82% of the cost.
Which is where caching comes in. A cache read on Opus costs a tenth of a normal input token. Matthias showed that how much you actually get from the cache depends heavily on the harness: Claude Code was at 92% in April, some other tools below 50%. His own setup runs at about 95%. His rule: if your score is below 90%, you have work to do. If you don’t know your number, please check.
Raising the cache hit rate from 55% to 90% more than halved the example bill. Switching the default reasoning effort from high to medium took off a bit more. Running the worker agents on a cheaper model and keeping the strong one for planning did the rest. $90k became about $23k.
One detail I liked: a cheaper model per token is not automatically cheaper per task. Sonnet 5 has 60% lower token prices than Opus 4.8, but on Terminal-Bench it cost about 30% more per task, because it talks so much.
And a warning for anyone considering model routing: don’t switch models mid-session. You lose the cache.
First thing I am doing on Monday: checking my own cache hit rate.
Do you know yours?
#AgenticAI #SoftwareEngineering #FutureCodingDay

Kommentieren und diskutieren können Sie direkt unter dem Beitrag auf LinkedIn.