CLAPP: The CLASS LLM Agent for Pair Programming

📅 2025-08-07
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
To address the high barrier to entry and low debugging efficiency that cosmologists face when using the CLASS Boltzmann solver, this paper introduces an interactive AI programming assistant tailored for numerical cosmology. Methodologically, it employs a multi-agent large language model (LLM) architecture integrating CLASS-specific knowledge retrieval via vector search, real-time Python code execution, and a Streamlit-based web interface—enabling natural-language querying, code generation, error diagnosis, and visualization. Its key contribution lies in being the first to deeply integrate semantically enhanced LLM reasoning with a domain-specific scientific computing environment, thereby delivering verifiable, conversational CLASS programming support. The system is open-sourced and publicly deployed; empirical evaluation demonstrates substantial reductions in user learning time and task completion latency, advancing the adoption of AI-augmented human–computer collaboration in computational cosmology.

Technology Category

Application Category

📝 Abstract
We introduce CLAPP (CLASS LLM Agent for Pair Programming), an interactive AI assistant designed to support researchers working with the Einstein-Boltzmann solver CLASS. CLAPP leverages large language models (LLMs) and domain-specific retrieval to provide conversational coding support for CLASS-answering questions, generating code, debugging errors, and producing plots. Its architecture combines multi-agent LLM orchestration, semantic search across CLASS documentation, and a live Python execution environment. Deployed as a user-friendly web application, CLAPP lowers the entry barrier for scientists unfamiliar with AI tools and enables more productive human-AI collaboration in computational and numerical cosmology. The app is available at https://classclapp.streamlit.app
Problem

Research questions and friction points this paper is trying to address.

Provides conversational coding support for CLASS
Generates code and debugs errors in CLASS
Lowers entry barrier for scientists using AI tools
Innovation

Methods, ideas, or system contributions that make the work stand out.

Leverages LLMs and domain-specific retrieval
Combines multi-agent LLM orchestration
Deploys as user-friendly web application
🔎 Similar Papers
No similar papers found.
S
Santiago Casas
Institute for Theoretical Particle Physics and Cosmology (TTK), RWTH Aachen University, D-52056 Aachen, Germany
C
Christian Fidler
Institute for Theoretical Particle Physics and Cosmology (TTK), RWTH Aachen University, D-52056 Aachen, Germany
B
Boris Bolliet
Kavli Institute for Cosmology, University of Cambridge, Madingley Road, Cambridge CB3 0HA, UK; Department of Physics, University of Cambridge, 19 JJ Thomson Avenue, Cambridge, CB3 0US, UK
F
Francisco Villaescusa-Navarro
Center for Computational Astrophysics, Flatiron Institute, 162 5th Ave., New York, NY 10010, USA; Department of Astrophysical Sciences, Princeton University, Peyton Hall, Princeton, NJ 08544, USA
Julien Lesgourgues
Julien Lesgourgues
Professor, RWTH Aachen University
Cosmology