arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10773cs.SEcs.AI
收藏

LogicLens: 通过语义代码图探索多仓库大型系统

LogicLens: Leveraging Semantic Code Graph to explore Multi Repository large systems

Sourcesense

Niko Usai, Dario Montagnini, Kristian Ilianov Iliev, Raffaele Camanzo

AI总结:

LogicLens通过构建语义多仓库图,帮助开发者探索复杂软件系统,支持自然语言交互和动态检索子图,实现领域逻辑和运行时行为的分析。

摘要:

理解大型软件系统是一项具有挑战性的任务,尤其是在代码分布在多个仓库和微服务的情况下。开发者往往需要不仅考虑代码的结构,还要考虑其领域逻辑和运行时行为,这些通常是隐含且分散的。我们介绍了LogicLens,一个反应式对话代理,通过语义多仓库图帮助开发者探索复杂的软件系统。该图在预处理步骤中通过结合语法代码分析(通过AST解析和仓库遍历)与语义增强(使用大型语言模型LLMs)构建。生成的图捕捉了结构元素,如文件、类和函数,以及功能抽象,如领域实体、操作和工作流。一旦图构建完成,LogicLens允许开发者通过自然语言与之交互,动态检索相关子图并回答技术或功能查询。我们展示了系统的架构,讨论了涌现行为,并在真实世界的多仓库场景中评估了其有效性。我们展示了从语义图结构中自然产生的涌现能力,包括影响分析和基于症状的调试。

英文摘要:

Understanding large software systems is a challenging task, especially when code is distributed across multiple repositories and microservices. Developers often need to reason not only about the structure of the code, but also about its domain logic and runtime behaviors, which are typically implicit and scattered. We introduce LogicLens, a reactive conversational agent that assists developers in exploring complex software systems through a semantic multi-repository graph. This graph is built in a preprocessing step by combining syntactic code analysis, via AST parsing and repository traversal, with semantic enrichment using Large Language Models (LLMs). The resulting graph captures both structural elements, such as files, classes, and functions, as well as functional abstractions like domain entities, operations, and workflows. Once the graph is constructed, LogicLens enables developers to interact with it via natural language, dynamically retrieving relevant subgraphs and answering technical or functional queries. We present the architecture of the system, discuss emergent behaviors, and evaluate its effectiveness on real-world multi-repository scenarios. We demonstrate emergent capabilities including impact analysis and symptom-based debugging that arise naturally from the semantic graph structure.

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

↑