TRANSMISSION // 2604.24838v2
An AI-built tool for calculating cosmic light distortions
Source published
Spectroxide calculates cosmic microwave background spectral distortions. Its authors describe how human expertise caught physics errors that more than 950 automated tests missed.

A software package called spectroxide calculates changes to the cosmic microwave background spectrum under different heat and photon injection histories. Its authors also use the project as a case study in AI-assisted scientific programming—and in why expert checking remains important.
The cosmic microwave background (CMB) is the focus of a computational tool called spectroxide. In their paper, Ethan Baker, Hongwan Liu and Siddharth Mishra-Sharma describe software for calculating spectral distortions: changes in the CMB’s spectrum when heat or photons are injected into the universe.
The work also documents how the package was developed with an AI coding assistant under human physicist supervision. The authors report that expert knowledge caught physics bugs that the project’s large automated test suite did not.
What the software calculates
Spectroxide evolves the photon Boltzmann equation, which describes changes in the distribution of photons. The calculation includes Compton scattering, double Compton emission and Bremsstrahlung. It covers cosmic history from a redshift of about five million to the present and is designed to calculate distortions from arbitrary heat and photon injection within that range.
This is a software contribution, not a report of a new observation. The abstract does not claim that the package detects a distortion or confirms a particular explanation for one. Instead, it presents a tool for researchers studying such calculations.
The authors report that the package contains about 12,000 lines of Rust code and has a Python interface. Claude Code wrote the code and more than 950 automated tests, with human physicist supervision. The team checked the solver against analytic limits, published spectra and publicly available precomputed Green’s function tables. These comparisons assess whether the program reproduces results in cases where reference results are available.
Why tests were not enough
The authors say domain expertise identified bugs involving incorrect dimensional prefactors and near-cancellation errors. These had escaped the automated test suite. Their account illustrates a distinction between running many tests and establishing that the science represented in a program is sound: tests can only check the cases and expectations they encode.
The paper describes practices and validation methods the authors found useful for human–AI collaborative development. But this is a case study of one project, not a general evaluation of AI coding assistants across science or programming.
What the evidence can—and cannot—show
The authors say spectroxide is publicly available on GitHub. They also state that, when they wrote the paper, no fully open-source code of this kind was publicly available. Those statements do not, on their own, establish that spectroxide itself is open-source.
This article is based on the paper’s abstract rather than a full examination of its methods, figures or software repository. The abstract does not give detailed benchmark results, test-coverage statistics, performance comparisons or a full account of limitations. Its validation comparisons are useful checks, but they do not establish correctness for every possible calculation. The source is an arXiv preprint; readers should consult its page for publication and review status. On the available evidence, spectroxide is a publicly available computational tool and a documented example of AI-assisted development in which physicist oversight helped catch errors automated tests missed.
- cosmic microwave background
- spectral distortions
- scientific software
- AI-assisted coding
- cosmology
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A new toolkit puts cosmology forecasts to the test
Source published
Shared keywords: scientific software
Could primordial black holes explain Webb’s Little Red Dots?
Source published
Shared keywords: cosmic microwave background, spectral distortions
A clearer, faster way to map cosmic voids
Source published
Shared keywords: scientific software
Cosmic strings face limits as a source of ultralight dark matter
Source published
Shared keywords: cosmic microwave background
Inflation models face a small-scale test—and a black-hole problem
Source published
Shared keywords: cosmic microwave background