(Im)Paired Programming: Coding Agents Improve Productivity but Harm Understanding

Nishant Balepur, Connor Baumler, Valerie Chen, Eunsol Choi, Rachel Rudinger, Jordan Lee Boyd-GraberarXiv 2026

TL;DR

While AI coding agents like Cursor and GitHub Copilot drastically accelerate initial task completion, they significantly impair a developer's understanding of the code. This drop in comprehension leaves developers ill-prepared to maintain, debug, or extend their own codebases once the AI assistance is removed.

What Problem Does This Paper Address?

AI-powered coding tools have shifted the developer's role from writing code to prompting and reviewing it. While standard industry benchmarks celebrate these tools for boosting productivity and task completion rates, they overlook a critical component of software engineering: code comprehension.

Developers need to understand their code to debug unexpected errors, hand off projects to teammates, and ensure long-term maintainability. This paper investigates the hidden cognitive cost of offloading code generation to AI agents, exploring whether high initial productivity comes at the expense of deep architectural understanding.

Methods

The authors conducted a controlled, between-subjects user study with 54 computer science students. Participants were tasked with building a web-based game called "zic-zac-zoe" (a complex 5x5 variant of tic-tac-toe) using HTML, CSS, and JavaScript within a 50-minute time limit.

Participants were randomly assigned to one of two AI assistance groups:

  1. Group A (Agent Mode): Used an agent (built on AIDER and GPT-4) that directly edited the user's files based on natural language prompts. Users simply reviewed and accepted/rejected the changes.
  2. Group B (Chatbot Mode): Used a restricted chatbot that only provided generic syntax explanations and short code snippets (maximum 3 lines). Users had to manually write or adapt all the code themselves.
Figure 2: Our between-subjects user study to show how coding agents neglect user understanding. After taking a background quiz, n = 54 users design a web-based variant of tic-tac-toe, prompting either: (A) an AI agent that directly edits user code; or (B) a chatbot that gives high-level syntax. We test understanding via comprehension ques- tions about the user’s code, and accuracy on a follow-up task where users must extend their code without the agent.

To evaluate true code understanding after the task, the authors implemented two novel metrics:

  • Tailored Comprehension Questions: An LLM dynamically generated recall and reasoning questions based strictly on the unique code the participant submitted.
  • An Extension Task: Participants were given 20 minutes to add three new features to their codebase without agent assistance, forcing them to rely entirely on their own understanding of what was written.

Datasets

The authors have open-sourced a comprehensive dataset resulting from this study, which includes:

  • 54 completed user websites (HTML/CSS/JS).
  • Full interaction traces, including all user prompts and AI responses.
  • Participant background programming profiles.
  • Anonymized performance scores on both the comprehension quizzes and extension tasks.

Key Insights and Ideas

  • The Productivity-Comprehension Tradeoff: Coding agents act as an intellectual credit card—they give you the code upfront but charge a steep interest rate in cognitive debt. Agent users got working code faster but couldn't explain how it worked.
  • "Lazy Prompting" Correlates with Ignorance: Users who simply copy-pasted task instructions verbatim into the agent had the lowest comprehension scores. Conversely, users who translated requirements into technical syntax within their prompts retained a much higher understanding of the code.
  • The Illusion of Competence: Interestingly, users knew they didn't understand the agent's code as well as if they had written it themselves. Despite this self-reported deficit, they still overwhelmingly preferred the agent because it was fast and required minimal mental effort.
  • Skill Masking: Agents effectively equalize the playing field between novice and expert programmers during initial development. However, this masking effect shatters the moment the AI is removed and developers are forced to modify the codebase manually.

Key Results

  • Initial Success: Agent users achieved significantly higher accuracy on the initial website task ($p=0.00, d=1.4$) and submitted their projects much faster than chatbot users.
  • Comprehension Drop: Despite their initial success, agent users scored drastically lower on code comprehension questions ($p=0.00, d=0.9$), particularly struggling with recalling specific elements and functions within their files.
Figure 1: Our user study compares two AIs—an agent that writes code for users and a chatbot that ensures our users write code—for finishing a web development task. Relative to chatbots, agents initially help users complete the task but largely harm comprehension (Cohen, 2013, p < 0.002, Cohen’s d > 0.80). Agent users can better extend their code without agents, but this reverses when controlling for initial task accuracy, suggesting gains are driven by initial success over improved understanding.
  • Extension Failure: When tasked with extending their code without the agent, agent users performed no better than chatbot users. When the researchers controlled for initial task success, agent users actually performed worse. The high-quality code scaffold provided by the agent was neutralized by the user's inability to comprehend and navigate it.

Limitations and Future Work

The study's primary limitations are its sample size ($n=54$), its focus on a specific demographic (CS students), and its restriction to a single web development task. Additionally, commercial tools like Cursor offer more advanced workflow integrations than the experimental setup used here.

Future Directions

The authors challenge the NLP and HCI communities to design coding agents that prioritize human understanding alongside raw output:

  • Active Engagement Mechanisms: Designing agents that refuse "lazy" prompts and instead nudge users to explain their architectural choices.
  • Readability Optimization: Training models to generate concise, highly readable code rather than over-commented or overly complex blocks.
  • Intelligent Routing: Developing systems that dynamically decide when an AI should write code versus when it should step back and guide the human developer.

Summary updated

BibTeX
@misc{balepur2026im,
  author = {Nishant Balepur and Connor Baumler and Valerie Chen and Eunsol Choi and Rachel Rudinger and Jordan Lee Boyd-Graber},
  title = {{(Im)Paired Programming: Coding Agents Improve Productivity but Harm Understanding}},
  year = {2026},
  eprint = {2607.26375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.26375},
}
Figure