Inboxsmith

AI news videos

Ollama Explains Why Coding Agent Sessions Get Expensive

Ollama and Together AI have published a joint engineering post on why long coding agent sessions get slow and expensive, and on the one rule that decides it: the prefix cache.

Watch on YouTube

Transcript

Coding agents resend the whole conversation on every step. One character change near the top makes it expensive again.

The input grows every turn while the answer stays a short tool call. Without prefix caching, repeated work rises with the square of session length.

The cache matches from the start until the first token differs. Adding to the end is free. Changing the top rebuilds the rest.

A changing timestamp in the system prompt breaks the cache. Pick one reasoning effort and keep it.

Ollama sells harness integrations, Together AI sells inference. The post has no benchmarks, calls its arithmetic idealized, and the fifty thousand dollars a year for one GPU is its own.

Inboxsmith builds AI phone and email agents for small business. Please like and subscribe for more news.

Sources

Every claim in this video comes from the top ranking coverage of this topic. The claims and where each one came from:

We make Inboxsmith.

An AI receptionist that never misses a business call.

See how it works