---
id: 18453
lang: en
title: "Agent Context Grows 50x Over 50 Steps, Billed Reading Grows 1,275x"
published_at: "2026-11-27 14:36:30"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/diasoft_company/articles/1112858/?utm_campaign=1112858&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18453"
categories: ["business", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Agent Context Grows 50x Over 50 Steps, Billed Reading Grows 1,275x

> **Краткая суть (BLUF):** A cheaper model saves little. The real spending hides in re-reading. A server treats every request as new, so the agent resends the whole history at every step. If each turn adds 2,000 tokens, context grows 50x by the 50th step (to 100,000 tokens), and the model reads 2.55 million tokens in total, 1,275 times more than on the first step. So cut excess context first, and keep the frontier model for tasks where a mistake is expensive.  • Coding agents spend 96–99% of their tokens on reading the cache (estimate by Max Wolff) • For GPT-6.1 Terra and Sol, any request longer than 272K input tokens costs twice as much on input • The price per million tokens fell 56.7% from April to August 2026 (Vercel)

The most obvious way to save on AI is to switch to a cheaper model. Denis Timoshchuk, who is responsible for the AI-driven Digital Q ecosystem at Diasoft, considers such savings weak: a cheap model makes mistakes more often, and endless rework eats the gains over the long run. Staying on the frontier (the most capable models) is also getting more expensive. Previously, a $200-a-month subscription gave tokens worth $12,000–14,000 at API prices, but in the fall OpenAI cut limits on the popular Pro plans in half. That is a signal that the era of big discounts is ending. Let's look at where the money actually goes and where you cannot afford to cut costs.

## Why the bill grows faster than the context

Imagine a colleague who, before every reply, has to retell the entire previous conversation: system instructions, tool descriptions, pieces of code, results of past runs. That is how we work with a model through the API: for the server, every request is like the first one, and at every step we again send everything that has accumulated over the session.

Let's do the math. Suppose each turn adds 2,000 tokens to the history. By the 50th step, the context grows to 100,000 tokens, that is, 50 times. But over all 50 steps, the model reads 2.55 million tokens in total, because at every iteration it re-reads the dialogue from the very first line. That is 1,275 times more than on the first step, where it read only 2,000. The history grows linearly, but the bill grows quadratically (in algorithms this is called O(n²)). You pay for the second one.

Prompt caching lowers the cost of re-reading but does not remove the problem. According to estimates by Max Wolff, coding agents spend 96–99% of all token costs on reading the cache. The agent is mostly a reader, and it writes with the remaining one or two percent.

Tool output is a separate pain. The agent ran a build and got a wall of logs with warnings about outdated dependencies. Now that junk travels with every following request until the end of the session. Trimming the output with grep or tail before it enters the context is usually cheaper than looking for a cheaper model.

Long context also carries a surcharge. For GPT-6.1 Terra and Sol, any request longer than 272,000 input tokens costs twice as much on input and one and a half times as much on output. At the same time, as the Chroma Context Rot study showed, models perform worse as the prompt bloats, and similar but irrelevant information confuses them even more. So you pay the double rate for the worst answer.

## The token gets cheaper, the bills grow

According to Vercel AI Gateway data, the average price per million tokens fell 56.7% from April to August 2026. Mikhail Savchenko from INITE even considers talk of subsidies a scare story: neural processors are getting cheaper, each token takes less electricity, and open models have nearly caught up with the frontier. DeepSeek V4.1 Flash on OpenRouter is offered by 29 providers, and they push prices almost down to cost. True, in Russia the hardware for local models costs two to three times more.

Still, the bills keep growing. This is the Jevons paradox: steam engines got more efficient at burning coal, yet burned more of it. Since the model is cheap, you can keep the session open, launch a couple more subagents, and redo something "just in case." Timoshchuk does not expect a sharp rise in token prices: the habit of wasting them is growing.

A large company will most likely not be ruined by this, since its financial controls quickly notice an extra million. The risk falls on small teams that sell AI features on subscription without accounting for consumption, or that run multi-agent schemes with no limits. In the author's view, bankruptcy is usually not the outcome, but a cash gap is quite possible.

## Where you need the frontier and where a small model is enough

Running every request through the smartest model is like having a senior developer rename variables. Timoshchuk asks three questions about a task. Can it be understood in different ways? How expensive is a mistake? Can the answer be checked automatically?

Extracting a contract number and an amount from an email: the task is clear, a simple reconciliation catches errors, and the cost of a miss is low. The frontier is not needed. Proposing the architecture of a new component: it can be understood in ten ways, only an experienced person can verify it, and the mistake surfaces six months later. Here the author hands the task to a strong model and does not spare the cost.

In the Digital Q pipeline, complex development is done by a strong model through an external API, while routine work (turning a meeting recording into a task statement, sorting email) is handled by local models. The cost of the hardware is included in the calculation, and it still comes out cheaper than the API. Yuri Prozorov adds that small open models can be deployed in-house or rented from cloud providers for pennies, and if a provider raises prices, the model can be moved onto your own servers.

But economizing on every task is also a mistake. A weak model on a hard task goes into a second round, then a third, and each time re-reads the entire context, so quadratic growth catches up again. A cheap model that succeeds on the fifth attempt costs more than an expensive one that solves it at once. This is easy to check: take 100 real requests of one type, run them through both models, and compare the cost of one correct answer.

## Calculate the process first

Before choosing a model, you need to know the cost of the process. Tatyana Matvienko from KLARITUS Consulting gave an example: approving a contract may bring three rubles of value and cost 40, and an LLM will not fix that. In another of her cases, a pilot at a large enterprise showed 95% on quality and efficiency, but in production the process economics dropped to 30–40%: there were more requests and rework, and the tokens rose accordingly.

So it is worth estimating in advance what happens when the load grows three to five times. It often turns out that a neural network is not needed: a script, classic RPA, or a decision to drop the unnecessary approval step is enough.

A caveat: this is one vendor's view of its own pipeline, some decisions are tied to Diasoft products (Digital Q.BPM, Digital Q.Agents), and real bills depend on the provider. The 2.55 million token estimate was made without accounting for prompt caching.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/diasoft_company/articles/1112858/?utm_campaign=1112858&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18453
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
