AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebases
Not on the map. Why?
Abstract (arXiv)
We present AstraAI, a command-line interface (CLI) coding framework for high-performance computing (HPC) software development. AstraAI operates directly within a Linux terminal and integrates large language models (LLMs) with Retrieval-Augmented Generation (RAG) and Abstract Syntax Tree (AST)-based structural analysis to enable context-aware code generation for complex scientific codebases. The central idea is to construct a high-fidelity prompt that is passed to the LLM for inference. This prompt augments the user request with relevant code snippets retrieved from the underlying framework codebase via RAG and structural context extracted from AST analysis, providing the model with precise information about relevant functions, data structures, and overall code organization. The framework is designed to perform scoped modifications to source code while preserving structural consistency with the surrounding code. AstraAI supports both locally hosted models from Hugging Face and API-based frontier models accessible via the American Science Cloud, enabling flexible deployment across HPC environments. The system generates code that aligns with existing project structures and programming patterns. We demonstrate AstraAI on representative HPC code generation tasks within AMReX, a DOE-supported HPC software infrastructure for exascale applications.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 13 of its 22 references that are in the map. First posted on arXiv 28 Mar 2026.
Builds on
13 of 22 references.
References · 13
- 2023Comparing Llama-2 and GPT-3 LLMs for HPC kernels generationcited by 30
- 2023Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generationcited by 22
- 2023HPC-GPT: Integrating Large Language Model for High-Performance Computingcited by 22
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2023LM4HPC: Towards Effective Language Model Application in High-Performance Computingcited by 18
- 2023Scope is all you need: Transforming LLMs for HPC Codecited by 12
- 2023Creating a Dataset for High-Performance Computing Code Translation using LLMs: A Bridge Between OpenMP Fortran and C++cited by 11
- 2025HiPerRAG: High-Performance Retrieval Augmented Generation for Scientific Insightscited by 11
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Taskscited by 8
- 2020AMReX: Block-Structured Adaptive Mesh Refinement for Multiphysics Applicationscited by 5
- 2024LLM as HPC Expert: Extending RAG Architecture for HPC Datacited by 5
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directionscited by 2
1 more
- 2025LLMs as Packagers of HPC Softwarecited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025CelloAI: Leveraging Large Language Models for HPC Software Development in High Energy Physics
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
- 2026Retrieval-Augmented Generation for Scientific Code Understanding
- 2026Exploring the Role of LLMs in HPC Programming: A Survey
- 2026HPC-LLM: Practical Domain Adaptation and Retrieval-Augmented Generation for HPC Support
- 2024De-Hallucinator: Mitigating LLM Hallucinations in Code Generation Tasks via Iterative Grounding
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML
- 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond