CodeDistiller: Automatically Generating Code Libraries for Scientific Coding Agents
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Automated Scientific Discovery (ASD) systems can help automatically generate and run code-based experiments, but their capabilities are limited by the code they can reliably generate from parametric knowledge alone. As a result, current systems either mutate a small number of manually-crafted experiment examples, or operate solely from parametric knowledge, limiting quality and reach. We introduce CodeDistiller, a system that automatically distills large collections of scientific Github repositories into a vetted library of working domain-specific code examples, allowing ASD agents to expand their capabilities without manual effort. Using a combination of automatic and domain-expert evaluation on 250 materials science repositories, we find the best model is capable of producing functional examples for 74% of repositories, while our downstream evaluation shows an ASD agent augmented with a CodeDistiller generated library produces more accurate, complete, and scientifically sound experiments than an agent with only general materials-science code examples. We also evaluate LLM-as-a-judge ratings against domain-expert ratings in an A/B testing paradigm, finding moderate agreement and suggesting that inexpensive proxy metrics may be feasible for evaluating scientific discovery systems at scale.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 14 of its 25 references that are in the map. First posted on arXiv 30 Nov 2025.
Builds on
14 of 25 references.
Closest ancestors · 3
Same direction, newest first
- 2025RExBench: Can coding agents autonomously implement AI research extensions?27 Jun
- 2025Agent Laboratory: Using LLM Agents as Research Assistants8 Jan
- 2024SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositories11 Sep
Other references · 11
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Large Language Models are not Fair Evaluatorscited by 1,050
- 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023Large Language Models for Automated Open-domain Scientific Hypotheses Discoverycited by 100
- 2025DeepScientist: Advancing Frontier-Pushing Scientific Findings Progressivelycited by 56
- 2025CodeScientist: End-to-End Semi-Automated Scientific Discovery with Code-based Experimentationcited by 54
- 2025ResearchCodeBench: Benchmarking LLMs on Implementing Novel Machine Learning Research Codecited by 34
- 2024Data-driven Discovery with Large Generative Modelscited by 33
- 2025Gistify! Codebase-Level Understanding via Runtime Executioncited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026On Accelerating Grounded Code Development for Research
- 2026SciNav: A General Agent Framework for Scientific Coding Tasks
- 2026Can Coding Agents Reproduce Findings in Computational Materials Science?
- 2026ToolRosella: Translating Code Repositories into Standardized Tools for Scientific Agents
- 2025AInsteinBench: Benchmarking Coding Agents on Scientific Repositories
- 2025From Reproduction to Replication: Evaluating Research Agents with Progressive Code Masking
- 2026SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSc