mlsanityData to 7 Oct 2026

Multi-Agent Code-Orchestrated Generation for Reliable Infrastructure-as-Code

arXiv 2510.03902 ↗First posted 4 Oct 2025cs.SEcited by 5

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

The increasing complexity of cloud-native infrastructure has made Infrastructure-as-Code (IaC) essential for reproducible and scalable deployments. While large language models (LLMs) have shown promise in generating IaC snippets from natural language prompts, their monolithic, single-pass generation approach often results in syntactic errors, policy violations, and unscalable designs. In this paper, we propose MACOG (Multi-Agent Code-Orchestrated Generation), a novel multi-agent LLM-based architecture for IaC generation that decomposes the task into modular subtasks handled by specialized agents: Architect, Provider Harmonizer, Engineer, Reviewer, Security Prover, Cost and Capacity Planner, DevOps, and Memory Curator. The agents interact via a shared-blackboard, finite-state orchestrator layer, and collectively produce Terraform configurations that are not only syntactically valid but also policy-compliant and semantically coherent. To ensure infrastructure correctness and governance, we incorporate Terraform Plan for execution validation and Open Policy Agent (OPA) for customizable policy enforcement. We evaluate MACOG using the IaC-Eval benchmark, where MACOG is the top enhancement across models, e.g., GPT-5 improves from 54.90 (RAG) to 74.02 and Gemini-2.5 Pro from 43.56 to 60.13, with concurrent gains on BLEU, CodeBERTScore, and an LLM-judge metric. Ablations show constrained decoding and deploy feedback are critical: removing them drops IaC-Eval to 64.89 and 56.93, respectively.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 10 of its 25 references that are in the map. First posted on arXiv 4 Oct 2025.

Builds on

10 of 25 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025A Survey on Code Generation with LLM-based Agents31 Jul
  2. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution26 Mar
  3. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar
  4. 2023ChatDev: Communicative Agents for Software Development16 Jul
  5. 2023Self-collaboration Code Generation via ChatGPT15 Apr

Other references · 5

  1. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  2. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  3. 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
  4. 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoffcited by 50
  5. 2018Where Are The Gaps? A Systematic Mapping Study of Infrastructure as Code Researchcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Verifier-First Evaluation of Agentic LLMs for Infrastructure-as-Code Generation
  2. 2026TerraFormer: Automated Infrastructure-as-Code with LLMs Fine-Tuned via Policy-Guided Verifier Feedback
  3. 2025ARPaCCino: An Agentic-RAG for Policy as Code Compliance
  4. 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration
  5. 2026RIVA: Leveraging LLM Agents for Reliable Configuration Drift Detection
  6. 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
  7. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
  8. 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation