MOOSEnger — a Domain - Specific AI Agent for MOOSE Ecosystem
Mengnan Li, Jason Miller, Zachary Prince, Alexander Lindsay, Cody Permann · 2026
Read MOOSEnger — a Domain - Specific AI Agent for MOOSE Ecosystem by Mengnan Li, Jason Miller, Zachary Prince, Alexander Lindsay, Cody Permann (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-04756.txt.
Introduction
Li and colleagues present MOOSEnger, a simulation-aware AI agent framework for MOOSE. One-shot LLM generation often fails on small syntax, schema, or solver errors, while success alone does not prove correctness. MOOSEnger combines a reasoning model with domain knowledge, revised artifacts, validation, and solver feedback. Its generate-check-repair-run workflow binds evidence to each revision and guides bounded repair first. Across 200 prompts spanning eight simulation families, executable success rises from 10 of 200 to 179 of 200 prompts, at 89.5 percent. The harness thus turns failing one-shot generation into executable inputs.
Catalog record
| CREATOR | Mengnan Li, Jason Miller, Zachary Prince, Alexander Lindsay, Cody Permann |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 86048 |
| LICENSE | http://creativecommons.org/licenses/by-sa/4.0/ |
| RIGHTS | CC BY SA |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.04756
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
MOOSEnger — a Domain - Specific AI Agent for MOOSE Ecosystem Mengnan Li, Jason Miller, Zachary Prince, Alexander Lindsay, Cody Permann Abstract MOOSEnger is a tool-enabled, domain-specific AI agent for the Multiphysics Object-Oriented Simulation Environment (MOOSE) ecosystem. MOOSE simulations are authored as “.i” input files in Hierarchical Input Text (HIT) syntax; while powerful, the breadth of available objects and strict formatting rules make first-time setup and debugging time-consuming. MOOSEnger provides a conversational interface that translates natural language intent into runnable MOOSE configurations by combining Retrieval Augment Generation (RAG) over curated documentation/examples with deterministic, MOOSE-aware validation and execution tools. A core-plus-domain architecture separates reusable agent infrastructure (configuration, registries, tool dispatch, retrieval services, persistence, and evaluation) from a MOOSE plugin that adds HIT -based parsing, syntax-preserving ingestion of input files, and domain-specific utilities for input repair and checking. To reduce brittle one-shot generation, MOOSEnger introduces an input-precheck pipeline that sanitizes hidden formatting artifacts, repairs malformed HIT structure using a bounded, grammar-constrained loop, and corrects invalid object type names via context-conditioned similarity search against an application syntax registry. The system then validates and optionally smoke-tests input files by placing the MOOSE runtime “in the loop” through an Model Context Protocol (MCP) -backed execution backend with a local fallback, converting solver diagnostics into iterative “verify-and-correct” updates. We also provide built-in evaluation that measures both RAG quality (faithfulness, answer relevancy, context precision/recall) and end-to-end agent success via actual execution. Across a 175-prompt benchmark spanning diffusion, transient heat conduction, solid mechanics, porous flow, incompressible Navier–Stokes, phase field and plasticity, MOOSEnger achieves a 0.90 execution pass rate versus 0.06 for an Large Language Model (LLM) -only baseline, demonstrating substantial reliability gains for multiphysics case authoring. † † highlights: MOOSEnger turns natural-language simulation requests into runnable MOOSE input files by combining RAG with MOOSE-aware tools for parsing, validation, and execution. A deterministic input-precheck pipeline sanitizes formatting artifacts, repairs malformed HIT structure with bounded grammar-constrained edits, and corrects invalid object/type names using context-conditioned similarity search against the application syntax registry. On a 175-prompt benchmark spanning seven MOOSE physics families, placing the MOOSE runtime “in the loop” for smoke tests and iterative correction raises the execution pass rate to 0.90 versus 0.06 for an LLM-only baseline. 1 Introduction 1.1 MOOSE Ecosystem Multiphysics Object-Oriented Simulation Environment (MOOSE) is a high-performance computational framework for multiphysics simulations developed at Idaho National Laboratory [ 5 ] . It provides a plug-in architecture that lets users specify partial differential equations, boundary conditions, and material models at a high level, without requiring them to directly manage the underlying parallel solvers. By leveraging well-defined interfaces and modular physics components, MOOSE promotes code reuse and enables coupling across multiple physics in a single simulation workflow. The framework is designed for demanding scientific and engineering applications, supporting features such as massive parallelism, adaptive mesh refinement, and multi-scale coupling through sub-applications, making it well suited to complex problems in areas such as reactor physics [ 14 ] , thermal fluids [ 10 ] , and structural mechanics [ 15 ] . In addition to the core framework, MOOSE has grown into a broader MOOSE ecosystem: a shared infrastructure of physics modules [ 7 , 4 , 6 , 13 , 12 ] , documentation/tooling, and a large collection of MOOSE-based applications used across nuclear engineering and other multiphysics domains. A central design choice in MOOSE is the decomposition of weak-form residual equations into discrete, reusable compute kernels. This kernel-based structure allows users and developers to extend or modify physics capabilities with minimal intrusion, enabling new physics to be integrated and composed without recompiling the entire code base for each modeling change. In practice, MOOSE realizes this flexibility through a Domain Specific Language (DSL) expressed as human-readable input files (with a “.i” extension). These input files use a nested, block-structured syntax ( Hierarchical Input Text (HIT) format) to configure simulations. Each input typically contains essential top-level blocks (e.g., [Mesh] , [Variables] , [Kernels] , [BCs] , [Executioner] , [Outputs] , etc.) and nested sub-blocks with parameters, allowing users to define meshes, governing physics, material properties, solver settings, and output controls without modifying the underlying C++ source code. While this input-driven design significantly accelerates model development and iteration, the breadth of options and strict syntax also contribute to a steep learning curve, making correct simulation setup and troubleshooting non-trivial, especially for new users. 1.2 Challenges in Multiphysics Modeling and Simulation Workflow Solving multiphysics problems with MOOSE -based applications is inherently iterative: users repeatedly refine model assumptions, discretization choices, solver settings, and post-processing until the results are both numerically stable and physically credible. In this workflow, small mistakes or suboptimal choices made early can propagate into later stages, increasing the cost of debugging and slowing progress toward a usable baseline model. The first challenge is input authoring , where users must translate physical intent into MOOSE DSL that is syntactically valid and semantically consistent with available objects and solver requirements. Minor formatting or parameter errors can prevent execution entirely, while more subtle mis-configurations may run successfully yet yield incorrect physics or misleading results. Closely tied to authoring is numerical convergence and stability : selecting appropriate meshes, discretizations, and solver/time-integration parameters is rarely straightforward. Inappropriate mesh resolution, poorly scaled formulations, or ill-conditioned discretizations can lead to instability, non-convergence, or excessive computational cost. When runs fail, execution and debugging become the next hurdle; users must interpret console output and logs to identify failure modes (e.g., nonlinear/linear solver divergence, unstable time stepping, poorly scaled residuals). Although MOOSE provides detailed diagnostics, turning those messages into effective corrective actions often requires specific domain expertise. Finally, even when simulations complete, post-processing and interpretation remain non-trivial: extracting actionable insights from large output datasets (e.g., field distributions, derived quantities, and time histories) can be time-consuming and error-prone without a well-defined analysis workflow. Taken together, these challenges create friction precisely where many users need the most support: reaching a first valid run and establishing a trustworthy baseline model. New users may struggle to identify the right configuration patterns and debugging steps, while experienced users still spend significant time on repetitive setup, troubleshooting, and documentation lookup. This motivates intelligent assistance that can (i) connect user intent to correct configuration patterns, (ii) catch and repair common issues early, (iii) guide convergence- and stability-oriented iteration, and (iv) reduce the overhead of navigating fragmented documentation, examples, and prior cases. 1.3 Artificial Intelligence (AI) Agent for Scientific Computing and Motivation for MOOSEnger A growing body of work explores AI / Machine Learning (ML) —and in particular Large Language Model (LLM) -based agents—as workflow assistants for scientific computing software. In computational fluid dynamics, systems such as MetaOpenFOAM [ 2 ] and OpenFOAM-GPT [ 16 ] translate natural-language problem descriptions into runnable OpenFOAM cases, automating parts of case setup and iteration. In radiation transport, AutoFLUKA [ 9 ] applies an agent-based pipeline to streamline Monte Carlo input preparation and execution. A common technical pattern across these efforts is RAG : domain documentation, examples, and prior artifacts are indexed and selectively retrieved to ground responses, improving factuality and reducing hallucinations. In parallel, agentic coding assistants such as Anthropic’s Claude Code [ 1 ] and OpenAI’s Codex [ 11 ] demonstrate a practical interaction model in which an assistant translates intent