spectroxide: AI-written Rust code computes CMB spectral distortions
Physicists report an open-source package for modelling cosmic microwave background spectral distortions whose roughly 12,000 lines of Rust and Python, plus 950+ tests, were written by an AI assistant under human supervision.
In plain words
The cosmic microwave background is relic radiation from the early universe, and spectral distortions are tiny changes to its colour caused by energy released long ago. The authors had an AI coding assistant write a program that simulates how such distortions develop, while human physicists checked the physics. They say no comparable open-source tool existed before.
What was announced
The team behind spectroxide, writing in an arXiv abstract, describe a solver that evolves the photon Boltzmann equation under Compton scattering, double Compton emission and Bremsstrahlung from a redshift of about 5 million to the present day. It computes distortions from arbitrary heat or photon injection within that range. According to the authors, all of the roughly 12,000 lines of Rust code, the Python interface and more than 950 automated tests were produced by the Claude Code assistant, with physicists supervising. They state that no fully open-source code of this kind is publicly available, and they validate results against analytic limits, published spectra and precomputed Green's function tables.
The abstract also frames the project as a case study in AI-assisted scientific computing. The authors report that domain expertise caught physics bugs, including incorrect dimensional prefactors and near-cancellation errors, which evaded the full automated test suite. They document the practices and validation methods they found effective for human-AI collaborative development, and say spectroxide is publicly available on GitHub.
What it does not show
- The evidence is an arXiv abstract only; the full paper, code quality and validation claims have not been independently verified.
For security and IT teams
- Scope
- The source is the paper's abstract, describing the code and development methodology rather than presenting detailed results.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.