KGMACG: Knowledge-Guided Multi-Agent Orchestration for Scalable Application-Level Code Generation

Automated code generation driven by Large Language Models (LLMs) has enhanced development efficiency, yet generating complex application-level software code remains challenging. Multi-agent frameworks show potential, but existing methods perform inadequately in large-scale application-level software code generation: they fail to maintain a semantically reasonable project structure and generate fragmented outputs that lack traceable requirement-to-code mappings, making them difficult to extend or scale. To address these limitations, this paper proposes KGMACG , a K nowledge- G uided M ulti- A gent framework for scalable C ode G eneration. KGMACG orchestrates three specialized agents in a closed-loop: the Code Organization & Planning Agent (COPA) transforms software requirements specification (SRS) and architectural design document (ADD) into a modular build plan and project skeleton; the Coding Agent (CA) synthesizes repository-level code guided by a five-pillar knowledge base; and the Testing Agent (TA) continuously generates unit tests and feeds failure traces back for rectification. The loop terminates only when the project compiles and achieves \\(\\geq\\) 95% requirement coverage, guaranteeing both syntactic correctness and functional completeness. We evaluate KGMACG on three industrial-scale case studies (E-Commerce, Campus Security, Stock Trading) against six state-of-the-art multi-agent baselines: MetaGPT, AutoGen, CAMEL, CrewAI, ChatDev and CodeAgent. With the same backbone LLMs (DeepSeek R1 and gpt-5-codex-medium), The results indicate that KGMACG advances the automation of application-level software development.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-09-15
DOI
https://doi.org/10.1145/3842390
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

KGMACG: Knowledge-Guided Multi-Agent Orchestration for Scalable Application-Level Code Generation

G. Ma, Weisong Sun, Zhi Jin, Bo Yang et al.
ACM Transactions on Software Engineering and Methodology
Software Engineering Research
article

KGMACG: Knowledge-Guided Multi-Agent Orchestration for Scalable Application-Level Code Generation

G. Ma, Weisong Sun, Zhi Jin, Bo Yang, Yang Liu, Xiaowei Yang, Tianlin Li, Yiran Zhang, Xiao Zhang, Qian Xiong, Han Liu
article en

Abstract

Automated code generation driven by Large Language Models (LLMs) has enhanced development efficiency, yet generating complex application-level software code remains challenging. Multi-agent frameworks show potential, but existing methods perform inadequately in large-scale application-level software code generation: they fail to maintain a semantically reasonable project structure and generate fragmented outputs that lack traceable requirement-to-code mappings, making them difficult to extend or scale. To address these limitations, this paper proposes KGMACG , a K nowledge- G uided M ulti- A gent framework for scalable C ode G eneration. KGMACG orchestrates three specialized agents in a closed-loop: the Code Organization & Planning Agent (COPA) transforms software requirements specification (SRS) and architectural design document (ADD) into a modular build plan and project skeleton; the Coding Agent (CA) synthesizes repository-level code guided by a five-pillar knowledge base; and the Testing Agent (TA) continuously generates unit tests and feeds failure traces back for rectification. The loop terminates only when the project compiles and achieves \(\geq\) 95% requirement coverage, guaranteeing both syntactic correctness and functional completeness. We evaluate KGMACG on three industrial-scale case studies (E-Commerce, Campus Security, Stock Trading) against six state-of-the-art multi-agent baselines: MetaGPT, AutoGen, CAMEL, CrewAI, ChatDev and CodeAgent. With the same backbone LLMs (DeepSeek R1 and gpt-5-codex-medium), The results indicate that KGMACG advances the automation of application-level software development.

ACM Transactions on Software Engineering and Methodology
Nanyang Technological University (SG), Beijing Forestry University (CN), Wuhan University (CN)
Industry, innovation and infrastructure
Openalex Percentile: Top 4%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.