human-computer interaction

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

arXiv:2607.26375

summary

The study finds that AI coding assistants help students finish a programming task faster but reduce their understanding of the code, making it harder for them to extend it later.

Abstract

Coding agents (e.g., Cursor) improve developer productivity by optimizing task completion, but shifting users from writing code to prompting and reviewing may harm their understanding, impeding oversight, learning, and communication. To probe this, we have 54 students create a website with one of two AI systems: an agent that edits user code; or a chatbot where users write code alone or adapt generic code snippets. We test understanding via comprehension questions and a task where users extend their code without agents, showing: (1) While agents aid initial task completion, they harm users' code comprehension and thus do not prepare users to extend their code; (2) Low-effort agent interaction types, like copy+paste prompts and auto-accepted edits, are linked with lower comprehension; and (3) Despite self-reported weaker understanding, users still prefer coding agents because they are quick and easy to use. While users stay in the loop for coding workflows, understanding should not be forgotten. Towards this goal, we distill our analyses into future research directions for coding agent developers: dissuading low-effort prompting, creating readable code, and promoting active engagement.

In-progress Preprint

Topics & keywords

#coding agents#programmer productivity#code comprehension#human-ai interaction#software engineering educationAI code editorprompt engineeringauto-accepted editsuser comprehensionpair programming
(Im)Paired Programming: Coding Agents Improve Productivity but Harm Understanding · wovepaper