Agents for astronomical software and astronomical software for agents: Bidirectional enhancement in development and scientific reliability
Haiwen Xie, Lei Wang, Yewen Yin, Jian Ge, Jianwu Rui
Minnan Normal University · Chinese Academy of Sciences
Key points
From the paper's conclusion- These findings reveal notable shortcomings in the engineering quality of astronomical software.
Abstract
Astronomical software forms an essential foundation of modern astronomical research, yet limitations remain in its engineering quality and compatibility with Agents. This paper examines the bidirectional relationship between Agents and astronomical software and proposes a structured methodology for improving software quality and scientific reliability. We analysed 478 papers published in Astronomy and Computing between January 2021 and July 2026, of which 123 provided publicly accessible source code. Among these open-source codebases, only 22.0% were both well tested and well documented, while 38.6% were released as scripts only. These findings reveal notable shortcomings in the engineering quality of astronomical software. To address these shortcomings , we propose four Agent-assisted software engineering workflows covering the refactoring of data processing scripts into reusable packages, the generation of tests informed by physical constraints, computational performance optimisation, and graphical user interface development. In the reciprocal direction, we discuss how validated astronomical software can be made reliably accessible to Agents through clear documentation, cross-platform compatibility, and programmatic interfaces including Python bindings, command-line interfaces (CLI), Web APIs, and the Model Context Protocol (MCP). Delegating scientific computations to validated deterministic tools rather than having Agents generate scientific logic provides a potential route to reducing the risk of scientifically invalid results. As Agents take on more routine software engineering tasks, astronomers may increasingly focus on scientific direction and validation while retaining final responsibility for physical correctness. The Agent definitions presented in this paper are publicly available on GitHub, providing concrete, reusable starting points for Agent-assisted astronomical software development.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A semi-autonomous multi-agent pipeline for high-energy astrophysics research with enforced provenance and verifiable self-extensionarXiv · 2026
- MAASAI: A Tool-Augmented Multi-Agent System for Astronomical Data AnalysisarXiv · 2026
- Extending the EVA Platform with LLM+RAG Capabilities to Infer Astronomical Object Types from Scientific PublicationsProceedings of the International Astronomical Union · 2026
- Designing Collaborative AI-Driven Workflows for Scientific Software EngineeringarXiv · 2026
- Reconstructing Implicit Scientific Knowledge: Evaluating LLM Agents through End-to-End Reproduction of AstronomyarXiv · 2026
- AI Agents as a Research Team: A Human-Supervised Case Study in Stellar SpectroscopyarXiv · 2026