Codebase release 1.0 for spectroxide

We present spectroxide, a code package for computing cosmic microwave background spectral distortions in which all {\sim}12{,}000 ∼ 12, 000 lines of Rust code, Python interface, and over 950 automated tests were written by an AI assistant (Claude Code) under human physicist supervision. The solver evolves the photon Boltzmann equation under Compton scattering, double Compton emission, and Bremsstrahlung from z \sim 5 × 10^6 z ∼ 5 × 10 6 to the present, computing spectral distortions from arbitrary heat and photon injection within this redshift range. No fully open-source code of this kind is publicly available; we validate against analytic limits, published spectra, and publicly available precomputed Green’s function tables. We document the development as a case study in AI-assisted scientific computing, highlighting how domain expertise caught physics bugs (incorrect dimensional prefactors, near-cancellation errors) that evaded the full automated test suite, and document the practices and validation methodology we found effective for human–AI collaborative development of scientific software. We make spectroxide publicly available on GitHub.

Authors

Institutions

Publication Details

Journal
SciPost Physics Codebases
Published
2026-12-02
DOI
https://doi.org/10.21468/scipostphyscodeb.90
Citations
1
Primary Topic
Cosmology and Gravitation Theories
Type
article
Field-Weighted Citation Impact
0.58

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Codebase release 1.0 for spectroxide

Siddharth Mishra-Sharma, Hongwan Liu, Ethan Baker
1 citations
SciPost Physics Codebases
Cosmology and Gravitation Theories
0.58
article

Codebase release 1.0 for spectroxide

Siddharth Mishra-Sharma, Hongwan Liu, Ethan Baker
article en
1 citations

Abstract

We present spectroxide, a code package for computing cosmic microwave background spectral distortions in which all {\sim}12{,}000 ∼ 12, 000 lines of Rust code, Python interface, and over 950 automated tests were written by an AI assistant (Claude Code) under human physicist supervision. The solver evolves the photon Boltzmann equation under Compton scattering, double Compton emission, and Bremsstrahlung from z \sim 5 × 10^6 z ∼ 5 × 10 6 to the present, computing spectral distortions from arbitrary heat and photon injection within this redshift range. No fully open-source code of this kind is publicly available; we validate against analytic limits, published spectra, and publicly available precomputed Green’s function tables. We document the development as a case study in AI-assisted scientific computing, highlighting how domain expertise caught physics bugs (incorrect dimensional prefactors, near-cancellation errors) that evaded the full automated test suite, and document the practices and validation methodology we found effective for human–AI collaborative development of scientific software. We make spectroxide publicly available on GitHub.

SciPost Physics Codebases
Boston University (US)
U.S. Department of Energy
Openalex Percentile: Top 30%
Cosmology and Gravitation Theories
0.58
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon