ArchAgent: Scalable Legacy Software Architecture Recovery with LLMs

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Pan, Rusheng, Mao, Bingcheng, Ma, Tianyi, Ling, Zhenhua
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917210153287680
author Pan, Rusheng
Mao, Bingcheng
Ma, Tianyi
Ling, Zhenhua
author_facet Pan, Rusheng
Mao, Bingcheng
Ma, Tianyi
Ling, Zhenhua
contents Recovering 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 production-level repositories, and a real-world case study demonstrates effective recovery of critical business logics from legacy projects. The dataset is available at https://github.com/panrusheng/arch-eval-benchmark.
format Preprint
id arxiv_https___arxiv_org_abs_2601_13007
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle ArchAgent: Scalable Legacy Software Architecture Recovery with LLMs
Pan, Rusheng
Mao, Bingcheng
Ma, Tianyi
Ling, Zhenhua
Software Engineering
Artificial Intelligence
Recovering 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 production-level repositories, and a real-world case study demonstrates effective recovery of critical business logics from legacy projects. The dataset is available at https://github.com/panrusheng/arch-eval-benchmark.
title ArchAgent: Scalable Legacy Software Architecture Recovery with LLMs
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2601.13007