mlsanityData to 24 Nov 2026

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

arXiv 2611.23375 ↗Submitted 17 Nov 2026Announced 19 Nov 2026cs.AI cond-mat.stat-mech cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 4 of its 69 references that are in the map. Submitted 17 Nov 2026, announced 19 Nov 2026.

Builds on

4 of 69 references.

References · 4

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  2. 2019The Curious Case of Neural Text Degenerationcited by 3,022
  3. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 184
  4. 2026Software Entropy: A Statistical Mechanics Framework for Software Testingcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents
  2. 2026Beyond the 'Diff': Addressing Agentic Entropy in Agentic Software Development
  3. 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages
  4. 2026Govern the Repository, Not the Agent: Measuring Ecosystem-Level Risk in AI-Native Software
  5. 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
  6. 2026Tokenomics: Quantifying Where Tokens Are Used in Agentic Software Engineering
  7. 2026When Code Becomes an LLM Call: An Empirical Study of Call-Site Contracts in Agentic Systems
  8. 2026Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scale