[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-83789-en":3,"doc-seo-83789-105":28,"detail-sidebar-cat-0-en-105":89},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":11,"language":21,"language_code":22,"site_id":23,"html_lang":22,"table_of_contents":24,"faqs":25,"seo_title":13,"seo_description":14,"update_tm":26,"read_time":27},83789,4398048950312,"Violet","https://ap-avatar.wpscdn.com/avatar/400002538284de19e3c?_k=1778320343897328908",8,"Research & Report","An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems","Role-based multi-agent code generation improves LLM effectiveness for repository-scale software engineering beyond small programming exercises. The evaluation covers 12 real-world Java repositories, showing higher similarity between generated and developer-written code than single-LLM baselines. The study also identifies a persistent performance gap versus human implementations. A sequential and reflexive multi-agent pipeline decomposes IEEE-style SRS requirements into tasks, generates Java code, and assembles buildable, compilable projects for assessment.","Theme Article: Special Issue on Engineering Agentic Systems  \nAn Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems  \nBenedetta Donato, University of Milano-Bicocca, Milano, Italy  \nNoah Hagar-Dent, The University of Auckland, Auckland, New Zealand Aaron Worsnop, The University of Auckland, Auckland, New Zealand Leonardo Mariani, University of Milano-Bicocca, Milano, Italy  \nValerio Terragni, The University of Auckland, Auckland, New Zealand  \narXiv :2607 .042 12v 1 [ cs . SE] 5 Jul 2026  \nAbstract—Role-based multiagent code generation aims to make LLMs more  \neffective on repository-scale problems, moving beyond small programming tasks. We evaluate this approach on 12 Java repositories, finding greater similarity to developer  \ncode than single LLMs, but a persistent gap from human implementations.  \nL  \narge Language Models (LLMs) now support a wide range of software engineering activities, from requirements interpretation to code genera-  \ntion and maintenance [3] . Yet generating entire software systems remains difficult: real-world repositories involve architectural structure, cross-file dependencies, build management, and non-functional constraints that amplify well-known LLM limitations: constrained context, hallucinations, brittle cross-file integration, and toolchain friction [2], [3] . LLMs also lack the high-level reasoning needed for complex requirements and large-scale architectural design [6], typically prioritising immediate functional specifications at the expense of more elaborate overarching requirements [1], constraining the complexity of systems achievable without substantial human guidance [6] .  \nA promising direction is agentic code generation: distributing work across specialised LLM agents that mirror software team roles (e.g. , requirements analyst, architect, developer, tester) [4], [5] .  \nA few recent frameworks have started exploring this direction: MetaGPT [12], AgileCoder [13], and RTADev [14] explore multi-agent collaboration for code generation through structured workflows, Agile role assignments, and intention alignment, respectively. However, these frameworks have been evaluated on function-level benchmarks (e.g., HumanEval, MBPP [15]) or small self-contained applications typically comprising fewer than 10 files and a few hundred lines of code. Successfully coordinating agents at repository  \nXXXX-XXX © 2026 IEEE  \nDigital Object Identifier 10.1109/XXX.0000.0000000  \nscale remains an active research challenge, and thereis still limited empirical understanding of when (and by how much) agentic approaches outperform standalone LLMs in realistic, repository-scale settings.  \nThis paper investigates this tradeoff, comparing standalone LLMs to multi-agent architectures for largescale code generation. To this end, we implemented a sequential and iterative multi-agent pipeline that decomposes requirements into implementable tasks, produces Java code, and integrates outputs into abuildable, compilable project. We then compared this agent team against an individual LLM on 12 real-world Java projects of varying sizes and complexities. The evaluation yielded insights into the current capabilities and limitations of LLM agents for large-scale code generation tasks.  \nMulti-Agent Code Generation  \nFigure 1 illustrates the Agentic code generation process that we implemented. Similarly to other agentic code generation processes [9], [10], it consists of four main phases: Planning, which produces the plan that has tobe completed to implement the application described in the input Software Requirements Specification (SRS); Coding, which runs LLM agents according to the plan to obtain the implementation; Assessment, which assesses the generated code, also against the input SRS; and Setup, which generates the files necessary to build and run the generated code. We consider two variants of our flow, one Sequential, where the assessment is skipped, and another Reflexive, where the ","cbCaipDPaYScvqnG","https://ap.wps.com/l/cbCaipDPaYScvqnG","pdf",11883958,1,"English","en",105,"# Multi-Agent Code Generation\n## Planning\n## Coding\n## Assessment\n## Setup","[{\"question\":\"What problem does role-based multi-agent code generation target compared with standalone LLMs?\",\"answer\":\"It targets the limitations of generating code for repository-scale projects, where real repositories include architecture, cross-file dependencies, build management, and non-functional constraints that are harder than small tasks.\"},{\"question\":\"How is the evaluated multi-agent approach implemented in the study?\",\"answer\":\"The approach uses a sequential and iterative multi-agent pipeline that decomposes IEEE-style SRS requirements into implementable tasks, generates Java code for those tasks, and integrates outputs into a buildable, compilable project.\"},{\"question\":\"What were the main evaluation findings across the 12 Java repositories?\",\"answer\":\"The multi-agent architecture produced code that was more similar to developer implementations than single-LLM generation, yet it still showed a persistent gap from human-written code.\"}]",1784190409,20,{"code":4,"msg":29,"data":30},"ok",{"site_id":23,"language":22,"slug":31,"title":13,"keywords":32,"description":14,"schema_data":33,"social_meta":84,"head_meta":86,"extra_data":88,"updated_unix":26},"an-evaluation-of-role-based-multi-agent-code-generation-on-repository-scale-problems","",{"@graph":34,"@context":83},[35,52,66],{"@type":36,"itemListElement":37},"BreadcrumbList",[38,42,46,49],{"item":39,"name":40,"@type":41,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":43,"name":44,"@type":41,"position":45},"https://docshare.wps.com/document/","Document",2,{"item":47,"name":12,"@type":41,"position":48},"https://docshare.wps.com/document/research-report/",3,{"item":50,"name":13,"@type":41,"position":51},"https://docshare.wps.com/document/an-evaluation-of-role-based-multi-agent-code-generation-on-repository-scale-problems/83789/",4,{"url":50,"name":13,"@type":53,"author":54,"headline":13,"publisher":56,"fileFormat":59,"inLanguage":22,"description":14,"dateModified":60,"datePublished":60,"encodingFormat":59,"isAccessibleForFree":61,"interactionStatistic":62},"DigitalDocument",{"name":9,"@type":55},"Person",{"url":39,"name":57,"@type":58},"DocShare","Organization","application/pdf","2026-07-16",true,{"@type":63,"interactionType":64,"userInteractionCount":4},"InteractionCounter",{"@type":65},"ViewAction",{"@type":67,"mainEntity":68},"FAQPage",[69,75,79],{"name":70,"@type":71,"acceptedAnswer":72},"What problem does role-based multi-agent code generation target compared with standalone LLMs?","Question",{"text":73,"@type":74},"It targets the limitations of generating code for repository-scale projects, where real repositories include architecture, cross-file dependencies, build management, and non-functional constraints that are harder than small tasks.","Answer",{"name":76,"@type":71,"acceptedAnswer":77},"How is the evaluated multi-agent approach implemented in the study?",{"text":78,"@type":74},"The approach uses a sequential and iterative multi-agent pipeline that decomposes IEEE-style SRS requirements into implementable tasks, generates Java code for those tasks, and integrates outputs into a buildable, compilable project.",{"name":80,"@type":71,"acceptedAnswer":81},"What were the main evaluation findings across the 12 Java repositories?",{"text":82,"@type":74},"The multi-agent architecture produced code that was more similar to developer implementations than single-LLM generation, yet it still showed a persistent gap from human-written code.","https://schema.org",{"og:url":50,"og:type":85,"og:title":13,"og:site_name":57,"og:description":14},"article",{"robots":87,"canonical":50},"index,follow",{"doc_id":7,"site_id":23},{"code":4,"msg":5,"data":90},[91,95,99,103,108,113,118,121,125,128,132],{"id":20,"doc_module":4,"doc_module_name":44,"category_name":92,"show_sort_weight":93,"slug":94},"Story & Novel",90,"story-novel",{"id":45,"doc_module":4,"doc_module_name":44,"category_name":96,"show_sort_weight":97,"slug":98},"Literature",80,"literature",{"id":51,"doc_module":4,"doc_module_name":44,"category_name":100,"show_sort_weight":101,"slug":102},"Exam",70,"exam",{"id":104,"doc_module":4,"doc_module_name":44,"category_name":105,"show_sort_weight":106,"slug":107},5,"Comic",60,"comic",{"id":109,"doc_module":4,"doc_module_name":44,"category_name":110,"show_sort_weight":111,"slug":112},6,"Technology",50,"technology",{"id":114,"doc_module":4,"doc_module_name":44,"category_name":115,"show_sort_weight":116,"slug":117},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":44,"category_name":12,"show_sort_weight":119,"slug":120},30,"research-report",{"id":122,"doc_module":4,"doc_module_name":44,"category_name":123,"show_sort_weight":27,"slug":124},9,"Religion & Spirituality","religion-spirituality",{"id":27,"doc_module":4,"doc_module_name":44,"category_name":126,"show_sort_weight":27,"slug":127},"World Cup","world-cup",{"id":129,"doc_module":4,"doc_module_name":44,"category_name":130,"show_sort_weight":129,"slug":131},10,"Lifestyle","lifestyle",{"id":133,"doc_module":4,"doc_module_name":44,"category_name":134,"show_sort_weight":104,"slug":135},19,"General","general"]