Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases

Yongjian Tang, Ezgi Sarikayak, Doruk Tuncel, Jie M. Zhang, Thomas Runkler
7/1/2026
cs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tang2026agentcs,
  title  = {Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases},
  author = {Yongjian Tang and Ezgi Sarikayak and Doruk Tuncel and Jie M. Zhang and Thomas Runkler},
  year   = {2026},
  eprint = {2607.01425},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.01425v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.01425.svg)](https://codeofpaper.com/paper/2607.01425)

Discussion