2026-11-26 15:39 UTC

Preprint frames coding-agent token waste as “heat”

state: seedheat: mediumuncertainty: mediumrelevance: mediumcoding-agent-costs token-efficiencyAlán Aspuru-GuzikVarinia Bernales

What is this?

Alán Aspuru-Guzik and Varinia Bernales submitted the arXiv preprint “Where the Tokens Go: Heat, Entropy and Error in Agentic Coding” on 17 November 2026. It applies thermodynamic analogies to token costs in coding agents, dividing generated tokens into “work” and “heat.” In repeated coding-and-uncoding experiments, the authors report that about 80% of tokens in successful runs came from calls that left the requested change unchanged. The available evidence is the paper’s arXiv abstract and a Hacker News link; details of the experimental setup and independent validation are not established here.

Why it matters

The paper offers a way to examine a practical bottleneck in agentic coding: models may spend substantial token budgets on calls that do not advance the requested change. If its framing proves useful beyond the reported experiment, it could help researchers measure and reduce wasted inference, lowering costs or making longer coding tasks more affordable. The 80% figure is a result from the authors’ experimental setup, not evidence that coding agents generally waste that share of tokens.

Current assessment

New: the authors propose treating generated tokens as a cost split into “work” and “heat,” using repeated coding/uncoding cycles and test-suite verdicts to analyze agent behavior. The arXiv abstract reports that about 80% of tokens in a successful run were generated in calls that left the requested change where it was; it estimates a change’s free energy at 14–22% of mean successful-run cost and says coding cost 1.1–1.5 times as much as uncoding. These are author-reported results from an analogy-based experimental method, not broad production measurements. The authors also acknowledge that test-suite verdicts can vary with environment and that suites can accept broken changes. The paper proposes the framing as a possible tool for analyzing and optimizing coding agents; practical impact, generality across agents and tasks, and independent confirmation remain unknown. The supplied web results point to other work on agent token consumption, but do not validate this paper’s findings.

Measured heat

now 0 pts/hpeak 7 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 242h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-16 13:00⭐ origin echo-reconstructedThe original artifact is the arXiv paper “Where the Tokens Go: Heat, Entropy and Error in Agentic Coding,” submitted 17 Nov 2026. Its abstra
Alán Aspuru-Guzik and Varinia Bernales on paper (echo) · attributed from hn.story.50567100
—
11-19 22:04first on hacker news · published · +81.1h80% of Coding-Agent Output Tokens Were Spent on Calls That Didn't Change Code
khalidkhair
—
11-19 22:04amplified on hacker news 👑hn.story.50567100
khalidkhair
peak 4 · 0 comments · 99% of case engagement
11-19 22:20our radar first saw it · +81.3hdiscovery anchor: hn.story.50567100—
pace: p29 vs 2096 stories at the 168h mark (now 242h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn80% of Coding-Agent Output Tokens Were Spent on Calls That Didn't Change Code
Retrieved article excerpt

Open article · Retrieved 2026-11-19T22:23:00.474098+00:00

# Computer Science > Artificial Intelligence

**arXiv:2611.23375** (cs)

[Submitted on 17 Nov 2026]

# Title:Where the Tokens Go: Heat, Entropy and Error in Agentic Coding

Authors:[Alán Aspuru-Guzik](https://arxiv.org/search/cs?searchtype=author&query=Aspuru-Guzik,+A), [Varinia Bernales](https://arxiv.org/search/cs?searchtype=author&query=Bernales,+V)

View a PDF of the paper titled Where the Tokens Go: Heat, Entropy and Error in Agentic Coding, by Al\'an Aspuru-Guzik and Varinia Bernales

[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.

|  |
| --- |
| Comments: |
| Subjects: | Artificial Intelligence (cs.AI); Statistical Mechanics (cond-mat.stat-mech); Software Engineering (cs.SE) |
| ACM classes: | D.2.8; I.2.2 |
| Cite as: | [arXiv:2611.23375](https://arxiv.org/abs/2611.23375) [cs.AI] |
|  | (or  [arXiv:2611.23375v1](https://arxiv.org/abs/2611.23375v1) [cs.AI] for this version) |
|  | <https://doi.org/10.48550/arXiv.2611.23375> Focus to learn more  arXiv-issued DOI via DataCite (pending registration) |

## 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)

Full-text links:

## Access Paper:

View a PDF of the paper titled Where the Tokens Go: Heat, Entropy and Error in Agentic Coding, by Al\'an Aspuru-Guzik and Varinia Bernales

- [View PDF](https://arxiv.org/pdf/2611.23375)
- [HTML (experimental)](https://arxiv.org/html/2611.23375v1)
- [TeX Source](https://arxiv.org/src/2611.23375)

[license icon](http://creativecommons.org/licenses/by-nc-nd/4.0/ "Rights to this article")

### Additional Features

- [Audio Summary](https://arxiv.org/audio/2611.23375)

### Current browse context:

cs.AI

[< prev](https://arxiv.org/prevnext?id=2611.23375&function=prev&context=cs.AI "previous in cs.AI (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2611.23375&function=next&context=cs.AI "next in cs.AI (accesskey n)")

[new](https://arxiv.org/list/cs.AI/new)
 | 
[recent](https://arxiv.org/list/cs.AI/recent)
 | [2026-11](https://arxiv.org/list/cs.AI/2026-11)

Change to browse by:

[cond-mat](https://arxiv.org/abs/2611.23375?context=cond-mat)  
[cond-mat.stat-mech](https://arxiv.org/abs/2611.23375?context=cond-mat.stat-mech)  
[cs](https://arxiv.org/abs/2611.23375?context=cs)  
[cs.SE](https://arxiv.org/abs/2611.23375?context=cs.SE)

### References & Citations

- [SciX](https://scixplorer.org/abs/arXiv:2611.23375)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2611.23375)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2611.23375)

export BibTeX citation
Loading...

## BibTeX formatted citation

×

loading...

Data provided by:

### Bookmark

[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2611.23375&description=Where the Tokens Go: Heat, Entropy and Error in Agentic Coding "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2611.23375&title=Where the Tokens Go: Heat, Entropy and Error in Agentic Coding "Bookmark on Reddit")



Bibliographic Tools

# Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*

Connected Papers Toggle

Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*

Litmaps Toggle

Litmaps *([What is Litmaps?](https://www.litmaps.co/))*

scite.ai Toggle

scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*

Code, Data, Media

# Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*

Links to Code Toggle

CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*

DagsHub Toggle

DagsHub *([What is DagsHub?](https://dagshub.com/))*

GotitPub Toggle

Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*

Huggingface Toggle

Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*

ScienceCast Toggle

ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*

Demos

# Demos

Replicate Toggle

Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*

Spaces Toggle

Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*

Spaces Toggle

TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*

Related Papers

# Recommenders and Search Tools

Link to Influence Flower

Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*

Core recommender toggle

CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*

- Author
- Venue
- Institution
- Topic


About arXivLabs

# arXivLabs: experimental projects with community collaborators

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**](https://info.arxiv.org/labs/index.html).

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2611.23375) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
khalidkhair40
🟧 echo.paper ⭐The original artifact is the arXiv paper “Where the Tokens Go: Heat, Entropy and Error in Agentic Coding,” submitted 17 Nov 2026. Its abstraAlán Aspuru-Guzik and Varinia Bernales——

Interpretation history

Decision trace