Abstract
Recent In-IDE AI coding assistant tools (ACATs) like GitHub Copilot have significantly impacted developers' coding habits. While some studies have examined their effectiveness, there lacks in-depth investigation into the actual assistance process. To bridge this gap, we simulate real development scenarios encompassing three typical types of software development tasks and recruit 27 computer science students to investigate their behavior with three popular ACATs. Our goal is to comprehensively assess ACATs' effectiveness, explore characteristics of recommended code, identify reasons for modifications, and understand users' challenges and expectations. To facilitate the study, we develop an experimental platform that includes a data collection plugin for VSCode IDE and provides functions for screen recording, code evaluation, and automatic generation of personalized interview and survey questions. Through analysis of the collected data, we find that ACATs generally enhance task completion rates, reduce time, improve code quality, and increase self-perceived productivity. However, the improvement is influenced by both the nature of coding tasks and users' experience level. Notably, for experienced participants, the use of ACATs may even increase completion time. We observe that "edited line completion" is the most frequently recommended way, while "comments completion" and "string completion" have the lowest acceptance rates. The primary reasons for modifying recommended code are disparities between output formats and requirements, flawed logic, and inconsistent code styles. In terms of challenges and expectations, optimization of service access and help documentation is also concerned by participants except for functionality and performance. Our study provides valuable insights into the effectiveness and usability of ACATs, informing further improvements in their design and implementation.
Introduction
While AI assistants have become ubiquitous in modern Integrated Development Environments (IDEs), most evaluations rely on static benchmarks like "Pass@k," which measure an AI's ability to solve standalone puzzles. This approach often ignores the complex reality of human-AI collaboration. This research addresses the "assistance process" gap: understanding why developers reject specific suggestions, how task types influence tool effectiveness, and whether AI truly enhances productivity or merely introduces distractions. By analyzing real-time interactions, screen recordings, and personalized post-task interviews, this study provides a comprehensive look at the current state of AI-assisted programming.
Methodology
The researchers conducted a controlled human study with 27 computer science students using a custom experimental platform. Central to this platform is a specialized VSCode plugin that tracked accepted, rejected, and modified code snippets while recording user screens. A unique feature of this setup was the automatic generation of personalized interview questions based on specific developer actions during the session, allowing for deep qualitative insights.
The study employed a within-subjects design across three Python coding task types:
- Algorithms and Data Structures (ADS): Core logic problems sourced from Codeforces.
- Management System Development (MSD): Object-oriented tasks involving boilerplate-heavy code.
- Research Tool Development (RTD): Data analysis tasks involving JSON processing and statistics.
Participants were evaluated using three popular ACATs: GitHub Copilot, Tabnine, and CodeGeeX.
Analysis of Human-AI Interaction
The study revealed several critical insights into how developers interact with AI:
- The Expert Paradox: While ACATs generally speed up work, they can hinder highly experienced developers. Experts often spend more time "babysitting" the AI—reviewing and correcting slightly flawed suggestions—than they would have spent writing the code from scratch.
- Boilerplate Efficiency: The MSD tasks saw the most dramatic improvement, with completion rates jumping from 11% to 55%. These repetitive, structural tasks are where AI pattern matching excels.
- The "Why" of Rejection: Code is rarely rejected simply for being "wrong." Common reasons for modification include mismatched output formats, inconsistent coding styles, and the AI's inability to grasp multi-step logic.
Results
Across the board, ACATs increased task completion rates and improved code quality. GitHub Copilot, for instance, increased average code quality scores by 126% and reduced completion time by approximately 14%.
However, acceptance rates varied significantly by the type of code suggested. While "edited line completion" was the most frequent recommendation type, it suffered from a low acceptance rate. In contrast, developers were highly receptive to conditional statement completions and API recommendations.
Psychologically, the impact is profound: a majority of participants agreed that programming without AI assistance now feels "strenuous," indicating a growing reliance on these tools despite their current limitations.
Conclusion and Future Work
The study highlights that while ACATs are powerful, they are not yet a perfect substitute for human logic, especially for senior developers. Future improvements should focus on "project-level" awareness, better debugging accuracy, and natural language capabilities to explain the intent behind suggestions. As AI models continue to evolve, moving beyond simple code completion to true collaborative problem-solving remains the next frontier.
Summary updated