# Researchers propose software thermodynamics to measure coding agent efficiency

Digest AI · Research · published 2026-11-19T05:00:00Z

Canonical: https://digestai.news/story/researchers-propose-software-thermodynamics-to-measure-coding-agent-ef

## Summary

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.

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.

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

## Why it matters

This work could redefine how developers and toolmakers measure and reduce inefficiency in AI-driven coding agents, potentially slashing costs for enterprises using them.

## Sources

1. [Where the Tokens Go: Heat, Entropy and Error in Agentic Coding](https://arxiv.org/abs/2611.23375) (arXiv cs.AI, 2026-11-19, primary source)

## Cite

Digest AI, "Researchers propose software thermodynamics to measure coding agent efficiency", 19 November 2026, https://digestai.news/story/researchers-propose-software-thermodynamics-to-measure-coding-agent-ef

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/researchers-propose-software-thermodynamics-to-measure-coding-agent-ef.json
