[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-687641-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-687641-en":130,"doc-similar-687641":154},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","engineering-pitfalls-in-ai-coding-tools-an-empirical-study-of-bugs-in-claude-code-codex-and-gemini-cli","Engineering Pitfalls in AI Coding Tools - An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI","","The rapid adoption of Large Language Models (LLMs) in software development has enabled AI-assisted coding tools such as Claude Code, Codex, and Gemini CLI. Despite promising productivity improvements, engineering these tool stacks—combining software engineering, AI system design, and human-computer interaction—introduces unique pitfalls that remain insufficiently studied. This paper empirically analyzes 3.8K+ GitHub-reported bugs via systematic manual open-coding to classify type, location, root cause, and symptoms, revealing dominant functional failures and recurring API/integration/configuration issues.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/engineering-pitfalls-in-ai-coding-tools-an-empirical-study-of-bugs-in-claude-code-codex-and-gemini-cli/687641/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/engineering-pitfalls-in-ai-coding-tools-an-empirical-study-of-bugs-in-claude-code-codex-and-gemini-cli/687641.png","ImageObject",300,407,{"name":42,"@type":43},"dawugda","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-17","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the main goal of the paper?","Question",{"text":62,"@type":63},"To provide the first empirical study of engineering pitfalls when building AI coding tools, by analyzing how bugs arise in real-world repositories.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How are bugs collected and analyzed in the study?",{"text":67,"@type":63},"The authors manually analyze over 3.8K publicly reported bugs from open-source GitHub repositories for Claude Code, Codex, and Gemini CLI, using an open-coding methodology on issue text and developer responses.",{"name":69,"@type":60,"acceptedAnswer":70},"What bug categories and insights do the results focus on?",{"text":71,"@type":63},"The study categorizes bugs by type, location, root cause, and observed symptoms, showing that functionality-related issues dominate and that many root causes relate to API, integration, or configuration errors.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},687641,1794084382,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":26,"preview_urls":145},3985747870947,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","arXiv :2603 .20847v1 [ cs . SE] 21 Mar 2026  \nEngineering Pitfalls in AI Coding Tools: An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI  \nRuixin Zhang∗  \nYork University Toronto, Canada [jason666@my.yorku.ca](jason666@my.yorku.ca)  \nGias Uddin York University Toronto, Canada [guddin@yorku.ca](guddin@yorku.ca)  \nWuyang Dai∗  \nYork University Toronto, Canada [ddai2002@my.yorku.ca](ddai2002@my.yorku.ca)  \nJinqiu Yang  \nConcordia University Montreal, Canada [jinqiu.yang@concordia.ca](jinqiu.yang@concordia.ca)  \nHung Viet Pham  \nYork University Toronto, Canada [hvpham@yorku.ca](hvpham@yorku.ca)  \nSong Wang  \nYork University Toronto, Canada [wangsong@yorku.ca](wangsong@yorku.ca)  \nABSTRACT  \nThe rapid integration of Large Language Models (LLMs) into software development workflows has given rise to a new class of AIassisted 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.  \nThis 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 coding tools (i.e., Claude-Code, Codex, and Gemini CLI) 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 in 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.  \nOur results show that more than 67% of the bugs in these tools are related to functionality. In terms of root causes, 37.3% 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.6%) and command execution (25%) 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 tools.  \n∗ Both authors contributed equally to this research.  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission [and/or a fee. Request permissions from permissions@acm.org](and/or a fee. Request permissions from permissions@acm.org).  \nConference’17, July 2017, Washington, DC, USA © 2026 Association for Computing Machinery.  \nACM ISBN 978-1-4503-XXXX-X/18/06…$15.00  \n[https://doi.org/XXXXXXX.XXXXXXX](https://doi.org/XXXXXXX.XXXXXXX)  \nKEYWORDS  \nAI Coding, Engineering Pitfalls, Bug Characteristics  \nACM Reference Format:  \nRuixin Zhang, Wuyang Dai, Hung Viet Pham, Gias Uddin, Jinqiu Yang, and Song Wang. 2026. Engineering Pitfalls in AI Coding Tools: An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI. In ACM International Conference on the Foundations of Software Engineering (FSE’26), June 5–9, 2026, Montreal, Canada. ACM, New York, NY, USA, 11 pages.  \n[https://doi.org/XXXXXXX.XXXXXXX](https://doi.org/XXXXXXX.XXXXXXX)  \n1 INTRODUCTION  \nThe advent of powerful Large Language Models (LLMs) has fundamentally altered the software develo","cbCaieDiOXQzzs7i","https://ap.wps.com/l/cbCaieDiOXQzzs7i","pdf",1254492,11,"English","# Introduction\n## Motivation and gap in existing research\n# Empirical study design\n## Data collection and open-coding\n## Bug categorization dimensions\n# Results\n## Bug type distribution\n## Root causes and observed symptoms\n## Affected workflow stages\n# Conclusion and implications","[{\"question\":\"What is the main goal of the paper?\",\"answer\":\"To provide the first empirical study of engineering pitfalls when building AI coding tools, by analyzing how bugs arise in real-world repositories.\"},{\"question\":\"How are bugs collected and analyzed in the study?\",\"answer\":\"The authors manually analyze over 3.8K publicly reported bugs from open-source GitHub repositories for Claude Code, Codex, and Gemini CLI, using an open-coding methodology on issue text and developer responses.\"},{\"question\":\"What bug categories and insights do the results focus on?\",\"answer\":\"The study categorizes bugs by type, location, root cause, and observed symptoms, showing that functionality-related issues dominate and that many root causes relate to API, integration, or configuration errors.\"}]","Engineering Pitfalls in AI Coding Tools - An Empirical Study of Bugs in Claude Code, Codex, and Gemini CLI | PDF",28,[146,150],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1254e0a76b0e5a7ef3550f2cc09e085d.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c28318a2b406cd9bb73c5bc6051a4082.webp",982,1270,{"list":155,"token":11},[156,162,168,175,181,188,195,202,209,215],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":30,"category_name":29,"create_tm":161},732995,"A Dataset of Agentic AI Coding Tool Configurations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781926/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=VMmk2BcH87%2Bqn8qPLN%2FErmNcTg8%3D","a-dataset-of-agentic-ai-coding-tool-configurations",1795383212,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":33,"category_name":29,"create_tm":167},732964,"The Coding Agent Economy - A 12-Month Observation of Coding Agent Economics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031414697/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=XkOh%2BaRzI%2BtgUKW2zGn4MvO6CXQ%3D","the-coding-agent-economy-a-12-month-observation-of-coding-agent-economics",1795383111,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":29,"create_tm":174},82572,"Quantifying the Affective Gap A Zero-Shot Evaluation of LLMs on Fine-Grained Emotion Taxonomies","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808764963/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=CcISsGZJaZ3R6uzFg25jYGZFZ74%3D","quantifying-the-affective-gap-a-zero-shot-evaluation-of-llms-on-fine-grained-emotion-taxonomies",33,1784181588,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":101,"category_name":29,"create_tm":180},682049,"On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents - Research paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998417238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=iAMSfFL%2BjnIxzoiWEGT%2BoTsrgv8%3D","on-the-impact-of-agentsmd-files-on-the-efficiency-of-ai-coding-agents-research-paper",1793958924,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":29,"create_tm":187},81735,"Comparing Large Language Models on Scrum Certification-Style Questions: Accuracy, Stability, and Error Patterns","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808641460/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=cnDuNIWZZqs4mmxicYz80SDbWGs%3D","comparing-large-language-models-on-scrum-certification-style-questions-accuracy-stability-and-error-patterns",32,1784175736,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":29,"create_tm":194},496430,"A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929836739/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=pjV7PpsW9NpXxIxJCZJ4yg%2FZU8o%3D","ase-a-repository-level-benchmark-for-evaluating-security-in-ai-generated-code-496430",12,1790931903,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},327769,"Don’t Blame the Large Language Model - How Scaffolding Evolution Shapes Coding Agent Quality","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909345442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=oU56s1gBXsjIGBnDCKGIcqoi%2Fr0%3D","dont-blame-the-large-language-model-how-scaffolding-evolution-shapes-coding-agent-quality",16,1789978000,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":29,"create_tm":208},82347,"How Do Software Professionals Evaluate AI-Generated Code (Registered Report)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808734105/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=JlGq5vutvDIWyR15NmbpRdM3hr4%3D","how-do-software-professionals-evaluate-ai-generated-code-registered-report",38,1784179797,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":200,"category_name":29,"create_tm":214},496053,"A.S.E - A Repository-Level Benchmark for Evaluating Security in AI-Generated Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929395369/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=6lSPEwJFeUsefIwYGyZkJ9%2FKeCo%3D","ase-a-repository-level-benchmark-for-evaluating-security-in-ai-generated-code",1790926903,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":33,"category_name":29,"create_tm":220},682637,"TRIZ and Generative AI - Example of Prompt - Version 3.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999672013/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=y%2BFWZNje98mL4Qv8XvGUzirry58%3D","triz-and-generative-ai-example-of-prompt-version-30",1793977105]