CLAPP: The CLASS LLM Agent for Pair Programming

📅 2025-08-07
📈 Citations: 0
Influential: 0
📄 PDF

career value

179K/year
🤖 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.
💼 Related Jobs
AI Data Engineer--LLMs / Agentic Systems
Pfizer
The annual base salary for this position ranges from $106,000.00 to $176,600.00. In addition, this position is eligible for participation in Pfizer’s Global Performance Plan with a bonus target of 15.0% of the base salary and eligibility to participate in our share based long term incentive program. We offer comprehensive and generous benefits and programs to help our colleagues lead healthy lives and to support each of life’s moments. Benefits offered include a 401(k) plan with Pfizer Matching Contributions and an additional Pfizer Retirement Savings Contribution, paid vacation, holiday and personal days, paid caregiver/parental and medical leave, and health benefits to include medical, prescription drug, dental and vision coverage. Learn more at Pfizer Candidate Site – U.S. Benefits | (uscandidates.mypfizerbenefits.com). Pfizer compensation structures and benefit packages are aligned based on the location of hire. The United States salary range provided does not apply to Tampa, FL or any location outside of the United States. Relocation assistance may be available based on business needs and/or eligibility.
United States - Massachusetts - Cambridge
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