arXiv:2607.09224cs.SEcs.AI2026-07

用AI助手帮你安全执行复杂Git操作,出错率更低。

Git-Assistant: Planning-Based Support for Updating Git Repositories

  • 结合大模型与自动规划,理解指令并生成正确命令序列
  • 在模拟环境中测试,混合方案错误率比纯大模型低40%
  • 适合需要准确管理代码库的开发团队和新手开发者

版本控制系统对协作开发至关重要,但git工具对许多开发者仍具挑战性。尽管大型语言模型(LLMs)具备解读开发意图的潜力,但在仓库管理任务中受限于缺乏形式化推理能力。本文提出Git-Assistant,一个基于AI的助手,将LLMs与自动化规划结合,支持开发者执行非平凡的git操作。该助手分析仓库上下文,将自然语言请求转化为可执行的命令序列,并引入规划技术确保操作的正确性和安全性。我们采用合成与随机化git环境,系统评估了仅用LLM与增强规划的变体在多个指标上的表现。实验结果表明,将形式化推理与LLMs结合能显著提升可靠性,降低错误率,凸显混合AI方法在智能开发辅助中的潜力。

原文摘要 · Abstract (English)

Version control systems are essential for collaborative software development, yet tools like git remain challenging for many practitioners. Recent advances in Large Language Models (LLMs) offer promising capabilities for interpreting developer intent, but their effectiveness in repository management tasks is limited by the need for formal reasoning. This work introduces Git-Assistant, an AI-based assistant that combines LLMs with automated planning to support developers in executing non-trivial git operations. The assistant analyzes repository context, translates natural language requests into actionable command sequences, and incorporates planning techniques to ensure correctness and safety. We present a systematic evaluation methodology using synthetic and randomized git environments, comparing the performance of LLM-only and planning-augmented variants across multiple metrics. Experimental results demonstrate that integrating formal reasoning with LLMs improves reliability and reduces errors in repository management, highlighting the potential of hybrid AI approaches for intelligent developer assistance.

AI助手Git工具大模型应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。