[Paper Review] Engineering Pitfalls in AI Coding Tools: An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI
The study analyzes over 3.8K bug reports from Claude Code, Codex, and Gemini CLI to characterize bug types, root causes, symptoms, and bug locations across a six-layer AI coding tool architecture.
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.
Motivation & Objective
- Characterize the defect landscape in AI coding tools by analyzing real-world bugs from Claude Code, Codex, and Gemini CLI.
- Develop a multi-dimensional taxonomy for bugs including type, root cause, symptom, and bug location.
- Quantify the prevalence of bug categories and identify common engineering challenges in AI coding tool development.
- Provide actionable design/testing implications for improving reliability and usability of AI coding tools.
Proposed method
- Collect closed bug reports from GitHub issue trackers for Claude Code, Codex, and Gemini CLI.
- Manually verify, deduplicate, and curate a dataset of bugs (3 tools; 2,343 + 1,192 + 329 studied bugs).
- Apply open-card sorting to develop a four-dimensional taxonomy (Bug Type, Root Cause, Symptom, Bug Location).
- Label the remaining issues using the established taxonomy and refine it iteratively.
- Compute distributions by tool and overall, and analyze inter-rater agreement (Cohen’s kappa = 0.82).

Experimental results
Research questions
- RQ1What bug types occur in AI coding tools?
- RQ2What are the root causes of these bugs?
- RQ3What symptoms do these bugs exhibit?
- RQ4Which architectural layers do bugs predominantly affect?
Key findings
- Functional bugs account for 67% of all bugs across the three tools.
- API/integration and configuration/setup are the top root causes, comprising 21.4% and 15.9% respectively of all bugs.
- The most common symptoms are API errors (18.3%), terminal problems (14%), and command failures (12.7%).
- Bugs predominantly impact tool invocation (37.6%) and command execution (25%).
- Usability/UI bugs make up 17.9% and compatibility bugs 7.6%, with security bugs at 1.7%.
- Inter-rater agreement for labeling was high (Cohen’s kappa = 0.82).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.