AI agent economics: half of the tokens go to housekeeping

Мониторы с графиками активности агентов и счётчиками затрат, банка монет у сервера

What does it really cost to keep a fleet of AI agents running? The author of a post on Habr counted output tokens over half a year of agents working on six computers: 27794 working sessions after deduplication, about half of the tokens went to “housekeeping” — rules for the agents themselves, routines and machine synchronization — while the “money and startup” goal received about 4%. A second publication of the week, according to MTS, adds the other side of the equation: more tokens does not mean more value — low-quality agent code can end up with up to 90% thrown away.

27794 sessions: where the output tokens go

The unit of measurement is the output tokens of the agents after removing duplicates; files smaller than 200 tokens were dropped. Dedup is needed because branching sessions duplicate messages: sessions are sorted by start and end time, the number of messages and the message.id identifier in the JSONL of the Claude Code terminal agent; a message is credited to the first session, a copy receives only the new “tail”, and a copy without a tail drops out. In the worst duplication case, 385 copies of one session’s files produced 37.9 million output tokens against 3.7 million real ones. Across the whole history the copies added about 61 million tokens to roughly 555 million real ones — about 10% on top. The work ran in 29 directions, which the author calls “rays”; the slices cover three windows — the whole history, 30 days, 7 days.

The sorting was done without a neural network, by keywords: the sorter reads the session title — 5 points for a match — and the first message, 1 point per key, at most 4; short Latin keys of up to 4 letters count only as a whole word. Accuracy was checked by three independent checker agents on a sample of 1117 sessions: there were 12.5% errors, and 7.4% after the key fixes. The breakdown of output token shares by ray:

DirectionWhole history30 days7 days
Housekeeping (feeds no goal)53.5%57.7%51.7%
Goal: money and startup4.2%2.9%3.8%
Goal 215.4%15.0%15.2%
Goal 312.0%10.6%10.6%
Digital twin14.9%13.8%18.7%

The longest rays over the whole history — research, rules for AI, the robot postman and GitHub, about 10% each. Housekeeping is the author’s label, not a law of nature: part of it really does hold everything else up, but in all three slices it took more than half, while the money goal consistently received 3–4%. There is no month-by-month history, so the author cannot claim anything about the spikes. The picture does not change behavior, but it removes an excuse: the number now exists, and the star of the distribution will be published — if the “money” line does not grow, readers will see it. The limits of the method: output tokens are not hours and not results; overnight tasks where robots work with robots are mixed with the author’s sessions; one session belongs to one ray; and the distribution star built this very week is housekeeping too — the “whole history” column is more honest.

MTS: more tokens does not mean more value

The second news item — according to MTS, the company’s blog on Habr, the material “Where is it more profitable to invest money — in leather bags or AI agents?”. The naive logic: the more a developer spends on tokens, the more code the agent generates and the faster the project moves. In practice the code can turn out so low-quality that up to 90% of it is thrown away at the fixing stage — sometimes it is easier to write it anew. Hiring a developer without AI, meanwhile, is no assurance of savings and quality either: they work slowly, make mistakes, and their work needs to be checked.

Naive economics fails at the level of a single task too. An example from the material: if a feature used to take 20 hours and the agent generated the code in 2 hours, the savings will not be 10x — the developer still spends time on architecture, on formulating the task and on checking the result. AI takes over the generation but adds new work: writing prompts, filtering out tasks an agent cannot handle, checking the generated code. Separate mention goes to the price of a missed error: a bug that reaches the release and production can cost more than all the savings.

MTS refers to a model by Steffen Herbold of the University of Passau, the paper “What Should a Software Team Spend on Agents?”: what is compared is not the saved time but the final cost of delivering a working feature to the user; teams are modeled as a stochastic process in discrete time. More than 400 scenarios were studied — 432 schemes in total, with variation of agent cost and capabilities, developer productivity, the flow of new tasks and the pace of technical debt accumulation. Agent work is split into 8 roles: implementing new features, architecture and design proposals, fixing errors, refactoring, code review, security audits, writing tests and documentation. Communications, supervision of agents, review of architectural proposals and the business price of errors are factored in; in each scheme the search was on for the configuration with minimal cost at a given volume of work.

Conclusions without embellishment. AI agents are needed: in most scenarios mixed teams with effective agents are cheaper than purely human ones, and teams made only of agents were not even compared. A cheap bad agent burns the budget: agent capabilities matter more than price — 61% of the AI budget goes to finding errors, plus paying for the consequences of bugs in production; no stable advantage of cheap agents over human teams was found. People still get more money: in optimal teams more is spent on developers than on agents, and in the scenarios with the most capable agents developers spent 88–90% of their time fixing errors — the new features go to the AI. There is no one-size-fits-all formula: the budget split depends on agent capabilities, their cost, human productivity, the pace of tasks, technical debt and the price of errors.

What it means for the reader

Both publications converge on one point: count not the tokens spent but the result per token spent. If you run a fleet of agents, start with accounting: export the sessions, deduplicate them by message identifiers, break them down by direction and look at the share of “housekeeping” — most likely it will turn out noticeable, and part of it will shrink through reuse of rules and shared routines. When choosing a model for a task, prices are convenient to compare in the OpenRouter catalog with model prices: the principle “a cheap agent gets expensive on verification” from Herbold’s model works for cloud tokens too. A route through typical tasks for agents and ready-made scenarios is collected in our AI Tasks hub.

Agent economics cheat sheet

The key numbers of the week’s two publications. Token accounting: 27794 working sessions over half a year on six computers, dedup by message.id removed about 61 million duplicate tokens out of roughly 555 million real ones — about 10% on top. Output token shares for the whole history: housekeeping 53.5%, the “money and startup” goal 4.2%, the digital twin 14.9%. The method without a neural network: keyword sorting with 5 points for a title and up to 4 points for a message, annotation accuracy — 7.4% errors after the fixes. The economics per Herbold’s model: 432 schemes, 8 agent roles, 61% of the AI budget goes to finding errors, developers in optimal teams cost more than agents, and up to 88–90% of their time goes to fixing errors. The practical meaning: measure the result per token, not the tokens themselves.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: