[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-694776-105":59,"doc-detail-694776-en":130,"doc-similar-694776":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","archagent-scalable-legacy-software-architecture-recovery-with-llms","ARCHAGENT - SCALABLE LEGACY SOFTWARE ARCHITECTURE RECOVERY WITH LLMs","","Recovering accurate architecture from large-scale legacy software is hindered by architectural drift, missing relations, and limited context available to Large Language Models. ArchAgent introduces a scalable agent-based framework that combines static analysis, adaptive code segmentation, and LLM-powered synthesis to reconstruct multiview, business-aligned architectures from cross-repository codebases. It supports scalable diagram generation with contextual pruning, integrates cross-repository data to identify business-critical modules, and improves performance on large-scale GitHub benchmarks.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/archagent-scalable-legacy-software-architecture-recovery-with-llms/694776/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/archagent-scalable-legacy-software-architecture-recovery-with-llms/694776.png","ImageObject",300,407,{"name":92,"@type":93},"Mabel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-11-10",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does ArchAgent address in legacy software architecture recovery?","Question",{"text":112,"@type":113},"It addresses architectural drift, missing relations, and the limited context available to LLMs, which together make it difficult to recover accurate and interpretable architectures from large legacy codebases.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does ArchAgent reconstruct architecture from cross-repository code?",{"text":117,"@type":113},"ArchAgent combines static analysis with adaptive code segmentation and LLM-powered semantic synthesis. It performs scalable diagram generation with contextual pruning and integrates cross-repository information to identify business-critical modules.",{"name":119,"@type":110,"acceptedAnswer":120},"How is the approach evaluated, and what do results show?",{"text":121,"@type":113},"Evaluations on typical large-scale GitHub projects show significant improvements over existing benchmarks. An ablation study further confirms that dependency context improves architecture-generation accuracy, and a real-world case study demonstrates effective recovery of critical business logic.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},694776,1794347740,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},7971474920318,"https://ap-avatar.wpscdn.com/avatar/74000ee537e6b0ca360?x-image-process=image/resize,m_fixed,w_180,h_180&k=1788430171632181674","ARCHAGENT: SCALABLE LEGACY SOFTWARE ARCHITECTURE RECOVERY WITH  \nLLMS  \nRusheng Pan★† Bingcheng Mao★ Tianyi Ma★ Zhenhua Ling†  \n★ HiThink Research, Hanzhou, China †University of Science and Technology of China, Hefei, China  \narXiv :2601 . 13007v 1 [ cs . SE] 19 Jan 2026  \nABSTRACT  \nRecovering accurate architecture from large-scale legacy software is hindered by architectural drift, missing relations, and the limited context of Large Language Models (LLMs) . We present ArchAgent, a scalable agent-based framework that combines static analysis, adaptive code segmentation, and LLM-powered synthesis to reconstruct multiview, business-aligned architectures from cross-repository codebases. ArchAgent introduces scalable diagram generation with contextual pruning and integrates cross-repository data to identify business-critical modules. Evaluations of typical large-scale GitHub projects show significant improvements over existing benchmarks. An ablation study confirms that dependency context improves the accuracy of generated architectures of productionlevel repositories, and a real-world case study demonstrates effective recovery of critical business logics from legacy projects. The dataset is available at [https:](https:)//[github.com/panrusheng/arch-eval-benchmark](github.com/panrusheng/arch-eval-benchmark).  \nIndex Terms— Software architecture recovery, code repository, cross-repository context, large language models  \n1. INTRODUCTION  \nSoftware architecture provides foundational abstractions for designing and maintaining complex systems by defining high-level structures, component interrelationships, and key quality attributes such as scalability and maintainability [1] . However, in large-scale industrial systems, architectural drift often occurs due to requirement changes and ad hoc modifications, leading to poorly documented and diﬀicult-to-recover implementations [2] .  \nRecent advances in Large Language Models (LLMs) have enabled automation in code-related tasks like generation and vulnerability detection [3], motivating their use in architectural recovery from source code [4, 5] . Yet, LLM-based approaches remain limited for repositorylevel architecture reconstruction due to constrained context windows, sensitivity to code complexity, and  \nlack of integrated multiview perspectives [6, 7] . These limitations are particularly evident in two key areas. 1. Context limitations. Industrial codebases often exceed millions of tokens, far exceeding the context window of modern LLMs (∼200k tokens) [8] . Although retrieval techniques and tools (e.g. Retrieval Augmented Generation and Model Context Protocal) help with localized understanding [9], they do not support coherent systemlevel architectural synthesis. 2. Missing business semantics. Legacy systems typically lack comprehensive documentation, making it diﬀicult for LLMs to distinguish the core business logic from the auxiliary code [10, 11] . This impedes the generation of functionally meaningful abstractions.  \nTo address these challenges, we present ArchAgent, a hybrid agent framework that integrates static analysis, graph-based reasoning, and LLM-powered semantic synthesis. ArchAgent reconstructs accurate and interpretable architectural views from vast, cross-repository codebases. Two corresponding key innovations are introduced. 1. Scalable architecture understanding. By combining LLM-based summarization with adaptive grouping, ArchAgent produces semantically enriched code architecture diagrams. File clustering and contextual pruning support scalable input while preserving architectural fidelity. 2. Business-aligned architecture diagrams. Atthe project level, ArchAgent integrates cross-repository information and DevOps-inspired heuristics to identify business-critical modules and generate system-level view architecture diagrams highlights key modules and execution flows aligned with the behavior of real-world systems.  \n2. RELATED WORK  \nStatic and Dynamic Architecture Re","cbCaisJN1XSYvQ4Y","https://ap.wps.com/l/cbCaisJN1XSYvQ4Y","pdf",1103498,"English","# ABSTRACT\n# INTRODUCTION\n# RELATED WORK\n# APPROACH","[{\"question\":\"What problem does ArchAgent address in legacy software architecture recovery?\",\"answer\":\"It addresses architectural drift, missing relations, and the limited context available to LLMs, which together make it difficult to recover accurate and interpretable architectures from large legacy codebases.\"},{\"question\":\"How does ArchAgent reconstruct architecture from cross-repository code?\",\"answer\":\"ArchAgent combines static analysis with adaptive code segmentation and LLM-powered semantic synthesis. It performs scalable diagram generation with contextual pruning and integrates cross-repository information to identify business-critical modules.\"},{\"question\":\"How is the approach evaluated, and what do results show?\",\"answer\":\"Evaluations on typical large-scale GitHub projects show significant improvements over existing benchmarks. An ablation study further confirms that dependency context improves architecture-generation accuracy, and a real-world case study demonstrates effective recovery of critical business logic.\"}]","ARCHAGENT - SCALABLE LEGACY SOFTWARE ARCHITECTURE RECOVERY WITH LLMs | PDF",15,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7ca3b7b8446ebe4c8eb81bed46bcd53c.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/bb39a0c619b74067ee649ce99eb34019.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7199510571f0a16315f818e3898b9e6c.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a6e2f596b20b03d2ce82ec0d9bb2ca13.webp",980,1268,{"list":162,"token":66},[163,169,175,182,188,195,201,208,215,221],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":143,"category_name":40,"create_tm":168},122569,"DOTTORATO DI RICERCA IN COMPUTER SCIENCE AND ENGINEERING - MACHINE LEARNING FOR SOFTWARE ENGINEERING - Thesis overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836778689/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=0kO3gVtah6NC22wIarXTKqbWQ84%3D","phd-in-computer-science-and-engineering-machine-learning-for-software-engineering-thesis-overview",1785811362,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":41,"category_name":40,"create_tm":174},84921,"Industry Classification of GitHub Repositories Using the North American Industry Classification System (NAICS)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809220198/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=CspWt02tnJ1d34oDKZGMu2GrTa0%3D","industry-classification-of-github-repositories-using-the-north-american-industry-classification-system-naics",1784199362,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":40,"create_tm":181},206239,"Data Architecture and Modeling Domain Introduction - Data Architecture and Modeling Guidelines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229883465814/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=ucNKx19m8e4fVEG%2FLwzy1IqRpN0%3D","data-architecture-and-modeling-domain-introduction-data-architecture-and-modeling-guidelines",16,1788590775,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":81,"category_name":40,"create_tm":187},727353,"Architectures and Implementations of Data Lakehouses - Case Studies from Industrial Practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230029369972/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=KAqchcGkqu2Q8I6hj6L4T%2F7T3%2Fk%3D","architectures-and-implementations-of-data-lakehouses-case-studies-from-industrial-practice",1795238257,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":40,"create_tm":194},458132,"A large language model for clinical outcome adjudication from telephone follow-up interviews - a secondary analysis of a multicenter randomized clinical trial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925648152/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=Hf5U%2FBZNL1setF5f5oaPaaZ4qfg%3D","a-large-language-model-for-clinical-outcome-adjudication-from-telephone-follow-up-interviews-a-secondary-analysis-of-a-multicenter-randomized-clinical-trial",14,1790751734,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":34,"category_name":40,"create_tm":200},489415,"GitHub Template Repositories - Served Domains, Maintenance, and Practitioner Guidelines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927000377/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=4mGG1mlW0ziD4AsNY3ur7BZTAN8%3D","github-template-repositories-served-domains-maintenance-and-practitioner-guidelines",1790822870,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":40,"create_tm":207},289611,"Dual adaptive training of photonic neural networks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903006190/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=%2BWuHNJdqGRgq0E7tbO7jSFllS%2BQ%3D","dual-adaptive-training-of-photonic-neural-networks",11,1789635934,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":40,"create_tm":214},81811,"Agent4cs A Multi-agent System for Code Summarization in Large Hierarchical Codebases","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808646534/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=plZiEfP%2BmOk79rFYcMIChlzGEmc%3D","agent4cs-a-multi-agent-system-for-code-summarization-in-large-hierarchical-codebases",23,1784176302,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":143,"category_name":40,"create_tm":220},418657,"Integrating Flow Field Geometries within Porous Electrode Architectures for Enhanced Flow Battery Performance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922530526/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=Ej9wAgRbgxXlh74OR0oTx3oZ%2F2o%3D","integrating-flow-field-geometries-within-porous-electrode-architectures-for-enhanced-flow-battery-performance",1790613842,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":46,"category_name":40,"create_tm":226},85389,"Federated Topic Model and Model Pruning Based on Variational Autoencoder","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809264143/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=pTvvDMvNE4RmUeLI4TWh%2FH%2BrlHI%3D","federated-topic-model-and-model-pruning-based-on-variational-autoencoder",1784203075]