@inproceedings{mozannar_chi2024, author = {Mozannar, Hussein and Bansal, Gagan and Fourney, Adam and Horvitz, Eric}, title = {Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programming}, year = {2024}, isbn = {9798400703300}, publisher = {Association for Computing Machinery}, address = {New York, NY, USA}, url = {https://doi.org/10.1145/3613904.3641936}, doi = {10.1145/3613904.3641936}, 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.}, booktitle = {Proceedings of the 2024 CHI Conference on Human Factors in Computing Systems}, articleno = {142}, numpages = {16}, keywords = {AI-assisted Programming, Copilot, User State Model}, location = {Honolulu, HI, USA}, series = {CHI '24} }