arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.14563cs.SEcs.CL
收藏

记住你的踪迹:一种基于记忆的长周期代理框架,用于一致且分层的仓库级代码文档

Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation

Sungkyunkwan University(成均馆大学);University of Oslo(奥斯陆大学)

Suyoung Bae, Jaehoon Lee, Changkyu Choi, YunSeok Choi, Jee-Hyong Lee

AI总结:

MemDocAgent通过依赖感知遍历引导和记忆引导代理交互,生成统一上下文的仓库级代码文档,实现高效且一致的文档生成。

摘要:

自动化代码文档对于现代软件开发至关重要,为人类开发者和编码代理提供导航大型代码库的上下文基础。现有仓库级方法独立处理组件,导致文档中冗余检索和冲突描述,且生成的输出缺乏层次结构。因此,我们提出MemDocAgent,一种长周期代理框架,能够在单一集成上下文中生成整个仓库的文档。它结合了两个组件:(i) 依赖感知遍历引导,预确定尊重依赖性和粒度层次的遍历顺序;(ii) 记忆引导的代理交互,其中代理与RepoMemory交互,RepoMemory通过读、写和验证操作积累先前工作轨迹。通过深入的多标准评估,MemDocAgent在开源和闭源基线中表现最佳,并在真实软件开发工作流中展示了实用适用性。

英文摘要:

Automated code documentation is essential for modern software development, providing the contextual grounding that both human developers and coding agents rely on to navigate large codebases. Existing repository-level approaches process components independently, causing redundant retrieval and conflicting descriptions across documents while producing outputs that lack hierarchical structure. Therefore, we propose MemDocAgent, a long-horizon agentic framework that generates documentation within a single, integrated context spanning the entire repository. It combines two components: (i) Dependency-Aware Traversal Guiding that predetermines a traversal order respecting dependency and granularity hierarchies; (ii) Memory-Guided Agentic Interaction, in which the agent interacts with RepoMemory, a shared memory accumulating prior work traces through read, write, and verify operations. Through an in-depth multi-criteria evaluation, MemDocAgent achieves the best performance over both open- and closed-source baselines and demonstrates practical applicability in real software development workflows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑