TL;DR
This paper presents the first grounded theory analysis of how programmers actually interact with GitHub Copilot. The researchers discovered that these interactions are fundamentally bimodal: programmers alternate between a fast-paced "acceleration mode" (using AI as an advanced autocomplete) and a slow, deliberate "exploration mode" (using AI to plan and learn).
What Problem Does This Paper Address?
Large Language Models (LLMs) like OpenAI’s Codex have moved rapidly from research labs into production tools like GitHub Copilot. While we know these models can solve complex coding problems in isolation, we have very little empirical data on how they change the day-to-day workflow of human programmers.
The authors argue that to design better AI assistants, we must first understand the human side of the equation: How do developers communicate intent? How do they verify AI-generated code? When does the AI help, and when does it get in the way?
Methods
The researchers employed Grounded Theory (GT), a qualitative methodology designed to build an understanding of a phenomenon from the ground up through iterative data collection and analysis.
- Participants: 20 developers (15 from academia, 5 from industry) with varying experience levels.
- Protocol: Participants performed programming tasks over one hour while "thinking aloud." The sessions were recorded, transcribed, and qualitatively "coded" to identify patterns.
- Tasks: Four distinct tasks (Chat Server, Chat Client, Benford’s Law, and Advent of Code) across four languages (Python, Rust, Haskell, and Java) were used to avoid language bias and elicit different interaction styles.
- Triangulation: To validate their findings, the authors also analyzed five public livestreams of developers using Copilot on YouTube and Twitch.
Datasets
As a qualitative study, the primary "dataset" consists of the observations from the 20 participants and the 5 livestreamers. The specific tasks used to evaluate these participants are detailed in the paper:
The participant demographics, including their prior experience with Copilot and their professional roles, are summarized here:
Key Insights and Ideas
The central finding is the bimodal nature of interaction, which mirrors the "System 1" (fast/intuitive) and "System 2" (slow/analytical) cognitive processes:
- Acceleration Mode (System 1): The programmer knows exactly what to do and uses Copilot to get there faster. They treat the tool as "intelligent autocomplete."
- Aha Moment: In this mode, long, multi-line suggestions are actually a hindrance. They break the programmer's "flow" because the mental cost of reading a large block of code is higher than just typing the next line.
- Exploration Mode (System 2): The programmer is unsure how to proceed (e.g., using an unfamiliar API like
matplotlib). They let Copilot "drive" to explore options. - Aha Moment: Developers change their behavior specifically for the AI, writing "comment prompts" that they intend to delete later—effectively using natural language as a new type of programming interface.
- Validation Strategies: In acceleration, developers use "pattern matching" (looking for familiar keywords) to quickly accept code. In exploration, they shift to "code review" mode, performing line-by-line examination or running the code to see if it works.
- The "User-Synthesizer Gap": Novice users often suffer from over-optimism, expecting the tool to do more than it can, which can lead to significant time lost debugging subtly incorrect AI suggestions.
Key Results
- Time Distribution: Participants spent more than twice as much time in exploration mode (248.6 minutes total) than in acceleration mode (104.7 minutes).
- Expertise Matters: Professional developers with high language expertise spent significantly more time in acceleration mode compared to occasional users.
- Prompting Behavior: In acceleration mode, 71.4% of prompts were "unintentional" (the user was just typing code). In exploration mode, "intentional" prompting via comments jumped to 57.2%.
- Validation: Execution (running the code) was surprisingly more prevalent during acceleration as a quick "sanity check," whereas documentation lookup was a staple of exploration.
Limitations and Future Work
- Sample Size: While 20 participants is standard for Grounded Theory, it is not a representative sample of all global programmers.
- Task Constraints: Participants worked on tasks designed by the researchers rather than their own long-term projects, which might influence how much they care about code quality or documentation.
- Future Directions: The authors suggest that future IDEs should be "mode-aware." For example, if the IDE detects a user is in "acceleration," it should only show short, high-confidence completions. If in "exploration," it should provide better tools to compare multiple suggestions or offer "suggestions with holes" (skeletons) for the user to fill in.
Summary updated