Skip to main content

ETHNOS_APP

Home • Search • Journals • List 0

Understanding user mental models in AI-driven code completion tools

Insights from an elicitation study

Bibliographic Data

ID21642928
AuthorsGiuseppe Desolda (0000-0001-9894-2116, University of Bari Aldo Moro, corresponding author), Andrea Esposito (0000-0001-5534-2620, University of Bari Aldo Moro), Francesco Greco (0000-0003-2730-7697, University of Bari Aldo Moro), Cesare Tucci (0000-0001-5181-7115, University of Salerno), Paolo Buono (0000-0002-1421-3686, University of Bari Aldo Moro), Antonio Piccinno (0000-0003-1561-7073, University of Bari Aldo Moro)
Year2025
Volume205
Pages103648
Publication date2025-11-01
Open AccessYes
TypeARTICLE
VenueInternational Journal of Human-Computer Studies (JOURNAL)
Journal identifiersISSN: 1071-5819 • E-ISSN: 1095-9300
PublisherElsevier BV (PUBLISHER)
DOI10.1016/j.ijhcs.2025.103648
OpenAlexW4407185809
LanguageEN
References cited19

Integrated Development Environments increasingly implement AI-powered code completion tools (CCTs), which promise to enhance developer efficiency, accuracy, and productivity. However, interaction challenges with CCTs persist, mainly due to mismatches between developers’ mental models and the unpredictable behavior of AI-generated suggestions, which is an aspect underexplored in the literature. We conducted an elicitation study with 56 developers using co-design workshops to elicit their mental models when interacting with CCTs. Different important findings that might drive the interaction design with CCTs emerged. For example, developers expressed diverse preferences on when and how code suggestions should be triggered (proactive, manual, hybrid), where and how they are displayed (inline, sidebar, popup, chatbot), as well as the level of detail. It also emerged that developers need to be supported by customization of activation timing, display modality, suggestion granularity, and explanation content, to better fit the CCT to their preferences. To demonstrate the feasibility of these and the other guidelines that emerged during the study, we developed ATHENA, a proof-of-concept CCT that dynamically adapts to developers’ coding preferences and environments, ensuring seamless integration into diverse workflows. • Users want flexible triggers: balance control with smart automation • Inline works for short code; sidebar/chatbot for longer suggestions • Start minimal, let users expand from single lines to full files • Keep explanations short, contextual, opened by click or shortcut • Let users tune timing, style, detail level, and coding format

Cognitive science · Data science · Mental model · Programming language · Computer Science · Online Learning and Analytics · Psychology

  • Explanation in artificial intelligence

    Open Access•Tim Miller•Artificial Intelligence•2019

  • Toward human-centered AI

    Open Access•Wei Xu•interactions•2019

  • Using thematic analysis in psychology

    Open Access•Braun, Virginia Braun et al.•Qualitative Research in Psychology•2006

Highly citedNo
Open DOIOpen Access
Ethnos_APP • Open Source Project • MIT License • Frontend v2.0.0 • Privacy and Cookies • API Documentation: api.ethnos.app/docs • API Source Code: GitHub • DOI: 10.5281/zenodo.17049435 • Frontend Source Code: GitHub • DOI: 10.5281/zenodo.17050053 • cruz.rio.br • Expectantes Misericordiae