Lune

CHI2024Top-tier venue

Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming

Hussein Mozannar, Gagan Bansal, Adam Fourney, Eric Horvitz

Abstract

Code-recommendation systems, such as Copilot and CodeWhisperer, have the potential to improve programmer productivity by suggesting and auto-completing code. However, to fully realize their potential, we must understand how programmers interact with these systems and identify ways to improve that interaction. To seek insights about human-AI collaboration with code recommendations systems, we studied GitHub Copilot, a code-recommendation system used by millions of programmers daily. We developed CUPS, a taxonomy of common programmer activities when interacting with Copilot. Our study of 21 programmers, who completed coding tasks and retrospectively labeled their sessions with CUPS, showed that CUPS can help us understand how programmers interact with code-recommendation systems, revealing inefficiencies and time costs. Our insights reveal how programmers interact with Copilot and motivate new interface designs and metrics. Thinking/ Verifying Suggestion 22.4% Deferring thought for later 1.39% Looking up Documentation 7.45% Debugging/ Testing Code 11.31% Prompt crafting 11.56% Writing Documentation 0.53% Editing Last Suggestion 11.90% Editing Written Code 4.28% Writing New Functionality 14.05%

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

49 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challenges cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challenges cites Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Language Models are Few-Shot Learners
  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models
  • Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions cites Language Models are Few-Shot Learners
  • Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task Decomposition cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Using an LLM to Help With Code Understanding cites A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challenges
  • Using an LLM to Help With Code Understanding cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models cites Language Models are Few-Shot Learners
  • Spellburst: A Node-based Interface for Exploratory Creative Coding with Natural Language Prompts cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Spellburst: A Node-based Interface for Exploratory Creative Coding with Natural Language Prompts cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers49

  1. Using an LLM to Help With Code UnderstandingDaye Nam, Andrew Macvean, Vincent J. Hellendoorn, Bogdan Vasilescu et al.ICSE 2024 · 264 citations
  2. A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and ChallengesJenny T. Liang, Chenyang Yang, Brad A. MyersICSE 2024 · 126 citations
  3. Spellburst: A Node-based Interface for Exploratory Creative Coding with Natural Language PromptsTyler Angert, Miroslav Ivan Suzara, Jenny Han, Christopher Lawrence Pondoc et al.UIST 2023 · 72 citations
  4. ALGO: Synthesizing Algorithmic Programs with Generated Oracle VerifiersKexun Zhang, Danqing Wang, Jingtao Xia, William Yang Wang et al.NeurIPS 2023 · 68 citations
  5. Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task DecompositionMajeed Kazemitabaar, Jack Williams, Ian Drosos, Tovi Grossman et al.UIST 2024 · 49 citations

Builds on4

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code ContributionsHammond Pearce, Baleegh Ahmad, Benjamin Tan, Brendan Dolan-Gavitt et al.S&P 2022 · 725 citations
  3. Grounded Copilot: How Programmers Interact with Code-Generating ModelsShraddha Barke, Michael B. James, Nadia PolikarpovaOOPSLA 2023 · 408 citations
  4. Discovering the Syntax and Strategies of Natural Language Programming with Generative Language ModelsEllen Jiang, Edwin Toh, Alejandra Molina, Kristen Olson et al.CHI 2022 · 76 citations

Related papers

  1. When to Show a Suggestion? Integrating Human Feedback in AI-Assisted ProgrammingHussein Mozannar, Gagan Bansal, Adam Fourney, Eric HorvitzAAAI 2024 · 39 citations
  2. An Eye for AI: Eye-Tracking the Micro-Interruptions of GenAI Code SuggestionsTarek Alakmeh, Sarah D’Angelo, Thomas FritzICSE 2026 · 1 citation
  3. An Empirical Study of Knowledge Transfer in AI Pair ProgrammingAlisa Welter, Niklas Schneider, Tobias Dick, Kallistos Weis et al.ASE 2025
  4. A User-centered Security Evaluation of CopilotOwura Asare, Meiyappan Nagappan, N. AsokanICSE 2024 · 11 citations
  5. Validating AI-Generated Code with Live ProgrammingKasra Ferdowsi, Ruanqianqian (Lisa) Huang, Michael B. James, Nadia Polikarpova et al.CHI 2024 · 27 citations
Dusk over the sea between two cliffs drawn in fine vertical lines