Skip to main content
QUICK REVIEW

[论文解读] Engineering Pitfalls in AI Coding Tools: An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI

Ruixin Zhang, Wuyang Dai|arXiv (Cornell University)|Mar 21, 2026
Software Engineering ResearchComputer Science被引用 0
一句话总结

该研究分析了 Claude Code、Codex 和 Gemini CLI 的超过 3.8K 条 bug 报告,以在六层 AI 编码工具架构中表征 bug 类型、根本原因、症状和 bug 位置。

ABSTRACT

The rapid integration of Large Language Models (LLMs) into software development workflows has given rise to a new class of AI-assisted coding tools, such as Claude-Code, Codex, and Gemini CLIs. While promising significant productivity gains, the engineering process of building these tools, which sit at the complex intersection of traditional software engineering, AI system design, and human-computer interaction, is fraught with unique and poorly understood challenges. This paper presents the first empirical study of engineering pitfalls in building such tools, on a systematic, manual analysis of over 3.8K publicly reported bugs in the open-source repositories of three AI-assisted coding tools (i.e., Claude-Code, Codex, and Gemini CLIs) on GitHub. Specifically, we employ an open-coding methodology to manually examine the issue description, associated user discussions, and developer responses. Through this process, we categorize each bug along multiple dimensions, including bug type, bug location, root cause, and observed symptoms. This fine-grained annotation enables us to characterize common failure patterns and identify recurring engineering challenges. Our results show that more than 67% of the bugs in these tools are related to functionality. In terms of root causes, 36.9% of the bugs stem from API, integration, or configuration errors. Consequently, the most commonly observed symptoms reported by users are API errors (18.3%), terminal problems (14%), and command failures (12.7%). These bugs predominantly affect the tool invocation (37.2%) and command execution (24.7%) stages of the system workflow. Collectively, our findings provide a critical roadmap for developers seeking to design the next generation of reliable and robust AI coding assistants.

研究动机与目标

  • 通过分析来自 Claude Code、Codex 和 Gemini CLI 的真实世界 bug,刻画 AI 编码工具的缺陷全景。
  • 开发一个包含类型、根本原因、症状和 bug 位置等四维分类法的多维分类体系。
  • 量化 bug 类别的盛行度,并识别 AI 编码工具开发中的常见工程挑战。
  • 为提升 AI 编码工具的可靠性与可用性,提供可操作的设计/测试含义。

提出的方法

  • 从 GitHub 问题跟踪器收集 Claude Code、Codex 和 Gemini CLI 的已关闭 bug 报告。
  • 人工验证、去重并整理一个 bugs 数据集(研究对象为 3 工具;两千三百四十三 + 一千一百九十二 + 三百二十九 条 bug)。
  • 应用开放卡片排序方法,形成四维分类法(Bug Type、Root Cause、Symptom、Bug Location)。
  • 使用已建立的分类法对其余问题进行标注并迭代 refined。
  • 按工具和总体计算分布,并分析评审者之间的一致性(Cohen’s kappa = 0.82)。
Figure 1 . An Overview of AI Coding Tool
Figure 1 . An Overview of AI Coding Tool

实验结果

研究问题

  • RQ1AI 编码工具中会出现哪些 bug 类型?
  • RQ2这些 bug 的根本原因是什么?
  • RQ3这些 bug 表现出哪些症状?
  • RQ4哪些架构层次的 bug 影响最大?

主要发现

  • 功能性 bug 占三工具总数的 67%。
  • API/集成与配置/设置是主要根本原因,分别占所有 bug 的 21.4% 和 15.9%。
  • 最常见的症状是 API 错误(18.3%)、终端问题(14%)和命令失败(12.7%)。
  • Bugs 主要影响工具调用(37.6%)和命令执行(25%)。
  • 可用性/UI 缺陷占 17.9%,兼容性缺陷 7.6%,安全性缺陷 1.7%。
  • 标注的一致性评估较高(Cohen’s kappa = 0.82)。
Figure 2 . Mapping of bug types, root causes, and bug locations
Figure 2 . Mapping of bug types, root causes, and bug locations

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。