Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases
Understanding large, complex codebases remains challenging. Agent4cs is a multi-agent framework that summarizes codebases bottom-up using three agents: summarization, keyword extraction, and quality assurance. Evaluated on 7 models, it improves semantic consistency by 8% and keyword coverage by up to 38%.
-->
[Submitted on 1 Jul 2026]
Title:Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases
View a PDF of the paper titled Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases, by Yongjian Tang and 4 other authors
View PDF HTML (experimental)
Abstract:Understanding large, complex codebases, especially those with obfuscated structures and incomplete documentation, remains a significant challenge. Existing code summarization solutions often rely on a single language model or coding assistant like Claude Code, and treat source code as flat text, underutilizing the rich interdependencies and hierarchical information within a repository. To address these shortcomings, we propose Agent4cs - a multi-agent framework that summarizes large codebases in a bottom-up fashion, where a summarization agent focuses on producing robust summaries; a keyword-extraction agent proactively identifies critical information from subfolders; and a quality-assurance agent iteratively refines the outputs for readability, coherence, and completeness. Evaluated on 7 frontier models, Agent4cs improves semantic consistency across all folder levels by average 8% compared to two structured prompting baselines with code segments. Furthermore, extensive evaluation on real-world datasets demonstrates up to 38% gains in normalized keyword coverage rate over the same baselines.
Comments: Accepted to the main track of the 23rd European Conference on Multi-Agent Systems (EUMAS 2026)
Subjects:
Artificial Intelligence (cs.AI)
Cite as: arXiv:2607.01425 [cs.AI]
(or arXiv:2607.01425v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2607.01425
arXiv-issued DOI via DataCite (pending registration)
Submission history
From: Yongjian Tang [view email] [v1] Wed, 1 Jul 2026 19:41:38 UTC (1,880 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases, by Yongjian Tang and 4 other authors
View PDF
HTML (experimental)
TeX Source
view license
Current browse context:
cs.AI
new | recent | 2026-07
Change to browse by:
cs
References & Citations
NASA ADS
Google Scholar
Semantic Scholar
Loading...
Data provided by:
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)