一句话:首次系统实证多模态模型理解代码仓库:可视化结构上下文可降 token 并保持或提升问题解决准确率。
现代 LLM 编码智能体几乎只依赖文本,而人类开发者会利用文件夹层级、依赖关系等视觉线索理解仓库。本文首次系统实证研究仓库级任务中的多模态基础模型,在四个现代多模态模型上比较纯视觉上下文与“文本+可视化结构上下文图”等表示。实验发现:纯视觉表示会降低性能并增加 token 成本;将可视化上下文图作为补充模态,可最多减少 26% 输入 token,同时保持或提升 issue 解决准确率。进一步分析表明,视觉工具在故障定位阶段、且智能体自主决定探索深度时最有效,为下一代编码智能体的混合模态设计提供了依据。
Coding agents powered by large language models (LLMs) have demonstrated remarkable proficiency in software engineering tasks. Yet modern coding agents rely almost entirely on text, leaving a major gap between how human developers and agents comprehend software repositories. Human developers leverage visual repository cues such as folder hierarchies and dependencies, raising the question of whether multimodal models can similarly improve repository understanding. In this paper, we conduct the first systematic empirical study on multimodal foundation models for repository-level tasks. Our experiments across four modern multimodal models reveal that while a vision-only context representation degrades performance and inflates token costs, integrating visualized context graphs as a supplementary modality can help agents grasp the repository more efficiently. Specifically, providing agents with visual structural context alongside standard text interfaces reduces input token consumption by up to 26% while maintaining or improving issue-resolution accuracy. Furthermore, we demonstrate that visual tools are most effective when utilized during the fault localization stage and when agents autonomously dictate their exploration depth. Our findings highlight a promising hybrid-modality pathway for the design of next-generation coding agents.