Blueprint2Code: a multi-agent pipeline for reliable code generation via blueprint planning and repair

Automated programming has become a powerful tool for solving real-world problems. Code generation, in particular, plays a key role in improving developer productivity and reducing the entry barrier to software development. Recent advances in large language models (LLMs) have significantly improved program synthesis, enabling high-quality code generation from natural language. However, LLMs still struggle with complex tasks, especially in understanding problem intent, conducting multi-step reasoning, and producing code that passes all test cases. As task difficulty increases, existing models often fail to devise complete and reliable generation strategies, leading to reduced accuracy and robustness. To address these limitations, we propose Blueprint2Code, an innovative multi-agent framework for code generation. It emulates the human programming workflow through the coordinated interaction of four agents-Previewing, Blueprint, Coding, and Debugging-forming a closed-loop system from task comprehension to planning, implementation, and iterative refinement. Compared to existing methods, Blueprint2Code shows superior performance on complex programming tasks. Extensive experiments on benchmark datasets-HumanEval, MBPP, their extended versions (HumanEval-ET, MBPP-ET), and the APPS competition dataset-demonstrated its effectiveness, achieving strong pass@1 results: HumanEval 96.3%, MBPP 88.4%, HumanEval-ET 86.5%, MBPP-ET 59.4%, and APPS 24.6%. The related code is available at https://github.com/MKH99918/Blueprint2Code.

Authors

Institutions

Publication Details

Journal
Frontiers in Artificial Intelligence
Published
2025-10-17
DOI
https://doi.org/10.3389/frai.2025.1660912
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Blueprint2Code: a multi-agent pipeline for reliable code generation via blueprint planning and repair

Kai-Yun Mao, Zhengyu Zhang, Ruiyuan Lin, Zewen Li et al.
Frontiers in Artificial Intelligence
Software Testing and Debugging Techniques
article

Blueprint2Code: a multi-agent pipeline for reliable code generation via blueprint planning and repair

Kai-Yun Mao, Zhengyu Zhang, Ruiyuan Lin, Zewen Li, Guanyu Lu, Baokun Hu
article en

Abstract

Automated programming has become a powerful tool for solving real-world problems. Code generation, in particular, plays a key role in improving developer productivity and reducing the entry barrier to software development. Recent advances in large language models (LLMs) have significantly improved program synthesis, enabling high-quality code generation from natural language. However, LLMs still struggle with complex tasks, especially in understanding problem intent, conducting multi-step reasoning, and producing code that passes all test cases. As task difficulty increases, existing models often fail to devise complete and reliable generation strategies, leading to reduced accuracy and robustness. To address these limitations, we propose Blueprint2Code, an innovative multi-agent framework for code generation. It emulates the human programming workflow through the coordinated interaction of four agents-Previewing, Blueprint, Coding, and Debugging-forming a closed-loop system from task comprehension to planning, implementation, and iterative refinement. Compared to existing methods, Blueprint2Code shows superior performance on complex programming tasks. Extensive experiments on benchmark datasets-HumanEval, MBPP, their extended versions (HumanEval-ET, MBPP-ET), and the APPS competition dataset-demonstrated its effectiveness, achieving strong pass@1 results: HumanEval 96.3%, MBPP 88.4%, HumanEval-ET 86.5%, MBPP-ET 59.4%, and APPS 24.6%. The related code is available at https://github.com/MKH99918/Blueprint2Code.

Frontiers in Artificial IntelligenceVol. 8
Hangzhou Normal University (CN)
Hangzhou Normal University
Openalex Percentile: Top 69%
Software Testing and Debugging Techniques
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.