Researchers propose software thermodynamics to measure coding agent efficiency
A new paper on arXiv introduces a theory of software thermodynamics to explain how coding agents spend tokens. The authors compare token usage to classical and stochastic thermodynamics, breaking costs into work (useful edits) and heat (failed or redundant calls). They tested the theory by simulating an agent making and undoing changes in a repository, measuring token usage per cycle.
Key points
- 80% of tokens in coding agent runs are wasted on failed or redundant model calls, labeled 'heat'
- Uncoding (reverting edits) costs 1.1–1.5 times less than coding, per the proposed thermodynamics model
- Test suites introduce variability in verdicts, impacting token efficiency and agent optimization
About 80% of tokens in successful runs were wasted on calls that reverted changes, labeled as 'heat.' The free energy of a change—estimated via Jarzynski’s equality—accounted for 14–22% of the mean cost. Uncoding (reverting edits) cost 1.1–1.5 times less than coding. The study also notes that test suites, acting as 'Maxwell’s daemons,' introduce variability in verdicts, affecting token efficiency. The authors suggest this framework could lead to new tools for optimizing agent performance in software development.
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Research
All →- Google DeepMind cuts quantum circuit costs with Gemini 4 agents · 1 src
- Hi-TPH dataset improves T cell receptor binding predictions · 1 src
- OpenAI releases 'yardstick for intelligence': Let's pause here · 1 src
- Hugging Face outlines steps for building and maintaining agentic evaluations · 1 src
- Apple launches 200,000-person study on health AI trust with OpenEvidence · 1 src
Comments
via GitHub Discussions