DEV Community

Jonathan Berg
Jonathan Berg

Posted on

The most expensive token is the one you spend twice

Everyone building with AI watches token prices. New model comes out, the first thing we check is the cost per million. We negotiate with ourselves over which tier a task deserves. Meanwhile the biggest line item on the bill goes completely unmeasured: the work your agent does again because it forgot it already did it.

Think about what happens in a typical session. The agent re-reads your project. Re-learns your conventions. Rebuilds a component that already exists somewhere in your history, slightly worse this time. It is like a chef who walks into the kitchen and has to forge the knives, build the stove and carve the cutting board before cooking every single meal. The cooking is the part that matters. Most of the compute goes into remaking tools that were already made.

The waste is structural

This is not a model problem, and a better model will not fix it. A smarter agent with no memory still starts every session from zero. It will be brilliantly, expensively ignorant. It will derive the same conventions, rediscover the same edge cases, and rewrite the same code, at a higher price per token than the model you had last year.

We have built an entire industry on top of amnesia and learned to call the repeated reasoning intelligence. When an agent re-explains your own codebase back to you, it feels like understanding. It is actually the meter running.

Memory is a compute optimization

Once you see the waste, memory stops looking like a convenience feature. It is infrastructure. Every time an agent fetches a proven component, a saved method or a known answer instead of regenerating one, that is compute you do not spend. The hard thinking happens once, and the repeats get cheap. Cheap enough, often, that a smaller model can run them, because following saved work takes less than inventing it.

This reframing changed how I think about what I am building with Sirro. I used to describe it as a memory layer with a nice side effect on cost. That is backwards. The cost is the point. Memory just happens to be the mechanism that gets you there. The kitchen where the tools stay on the wall is not a comfort. It is the difference between cooking and reforging.

The honest metric

So here is the number I actually care about now, and it is not on any pricing page. How much of what your agent did this week had already been done before? Every rebuild is a choice you paid for, made quietly by a system that cannot remember.

Tokens spent learning something new are an investment. Tokens spent relearning something old are a leak. If your agent rebuilt work this week that already existed, you did not pay for intelligence. You paid for forgetting.

Top comments (0)