Skip to content
Research · Dec 3, 2026

Paper proposes 'software thermodynamics' to quantify token costs in coding agents

Theory divides agentic coding costs into 'work' and 'heat,' estimating free energy and inefficiencies in agentic workflows.

Trust79
HypeLow hype

1 source · cross-referenced

ShareXLinkedInEmail
TL;DR
  • Introduces a theory of 'software thermodynamics' to model token costs in coding agents as work and heat.
  • Finds about 80% of tokens in successful runs are 'heat'—model calls that do not change the repository state.
  • Estimates free energy of a code change at 14–22% of the mean cost of a successful run.
  • Shows coding costs 1.1 to 1.5 times more than uncoding in controlled cycle experiments.

A new paper introduces a theory of 'software thermodynamics' to quantify the costs of coding agents, framing token usage as analogous to energy in classical thermodynamics. The authors define token costs as composed of 'work'—productive changes to a codebase—and 'heat'—token expenditure that does not alter the repository state. The theory is tested using a cycle of 'coding' and 'uncoding' changes to a repository, where the spread of token costs over repeated cycles defines a 'software temperature' that correlates with the model's sampling temperature.

The study estimates that about 80% of tokens in a successful run are 'heat,' i.e., generated by model calls that leave the requested change unchanged. The free energy of a code change, estimated by analogy with Jarzynski's equality, is reported as 14 to 22% of the mean cost of a successful coding run. Additionally, the paper finds that coding costs 1.1 to 1.5 times as much as uncoding in controlled experiments.

The authors describe the test suite as a 'software Maxwell's daemon' that judges each coding change, noting that the daemon's verdict can vary with its environment. A flawed test suite that accepts a broken change incurs token costs, highlighting the sensitivity of agentic workflows to evaluation quality.

The practical implication of the theory is the potential for new tools to analyze and optimize coding agents through a thermodynamic lens, offering a quantitative basis for improving efficiency in agentic software engineering.

Sources
  1. 01arXiv cs.AI — Where the Tokens Go: Heat, Entropy and Error in Agentic Coding
Also on Research

Stories may contain errors. Dispatch is assembled with AI assistance and curated by human editors; despite the trust-score filter, mistakes happen. We correct publicly — every article links to its revision history. Nothing here is financial, legal, or medical advice. Verify before relying on any claim.

© 2026 Dispatch. No ads. No sponsorships. No paid placement. Reader-supported via Ko-fi.

Built by a person who cares about honest AI news.