cd /news/ai-agents/80-of-coding-agent-output-tokens-wer… · home › topics › ai-agents › article
[ARTICLE · art-172881] src=arxiv.org ↗ pub= topic=ai-agents verified=true sentiment=· neutral

80% of Coding-Agent Output Tokens Were Spent on Calls That Didn't Change Code

A paper submitted to arXiv on 17 November 2026 by Alán Aspuru-Guzik and co-authors reports that about 80 per cent of the tokens in a successful coding-agent run are generated in model calls that leave the requested code change unchanged, which the authors call "heat." The paper, "Where the Tokens Go: Heat, Entropy and Error in Agentic Coding," estimates a change's free energy at 14 to 22 per cent of the mean cost of a successful run and finds coding costs 1.1 to 1.5 times as much as undoing the same change. The authors propose a "software thermodynamics" framework that splits token cost into work and heat, with the test suite acting as a Maxwell's daemon judging each change, and suggest it could yield new tools for analysing and optimising coding agents.

recommendation

Measure tokens spent on calls that leave code unchanged ("heat") separately from productive edits, since they were about 80% of a successful run's cost, and target that overhead to cut coding-agent spend.

more in playbook: Controlling LLM cost
read3 min views1 publishedNov 19, 2026
80% of Coding-Agent Output Tokens Were Spent on Calls That Didn't Change Code
Image: source
  [Submitted on 17 Nov 2026]


[View PDF](https://arxiv.org/pdf/2611.23375)

[HTML (experimental)](https://arxiv.org/html/2611.23375v1)

Abstract:Coding agents are billed by the token, yet software engineering says nothing about what a token actually buys. Here we introduce a theory of software thermodynamics. The theory draws analogues from classical and stochastic thermodynamics, extends them, and applies them to modern agentic coding. We count the tokens an agent generates as its cost and divide that cost into work and heat. The test suite acts as a software Maxwell's daemon that judges every coding change. We test the theory with an analogue of the experiments in which a single molecule is pulled open and let fold again: an agent makes a change to a repository (coding) and then undoes it (uncoding), many times over, and we count the tokens of every model call. The cycle returns the requested edits to where they began, with each direction started from a stored reference tree, and the spread of its cost over repeated cycles defines a software temperature, which rose with the sampling temperature of the model. About 80 per cent of the tokens of a successful run are generated in model calls that leave the requested change where it was, and we call these tokens heat. The free energy of a change, which we estimate by analogy with the equality of Jarzynski, is 14 to 22 per cent of the mean cost of a successful coding run. Coding costs 1.1 to 1.5 times as much as uncoding. The daemon is imperfect: the verdict of a test suite varies with its environment, and a suite that accepts a broken change has a cost in tokens. The practical implication of the proposed theory could be new tools for analysing and optimising coding agents through the lens of thermodynamics.

Submission history #

From: Alán Aspuru-Guzik [
[view email](https://arxiv.org/show-email/cce0f9f8/2611.23375)]

**[v1]** Tue, 17 Nov 2026 19:00:02 UTC (2,298 KB)

Additional Features

Current browse context:

cs.AI

Change to browse by:

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-agents 4 stories · sorted by recency
── more on @alán aspuru-guzik 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/80-of-coding-agent-o…] indexed:0 read:3min 2026-11-19 · —