GazeCopilot: Evaluating Novel Gaze-Informed Prompting for AI-Supported Code Comprehension and Readability
Yasmine Elfares, G\"ul \c{C}alikli, Mohamed Khamis

TL;DR
This paper introduces Real-time GazeCopilot, a gaze-informed prompting system that uses real-time eye-tracking data to enhance AI code suggestions, significantly improving developer comprehension and readability.
Contribution
It presents a novel method integrating real-time gaze data into prompts for AI coding assistants, outperforming baseline approaches in code comprehension tasks.
Findings
Gaze-informed prompts improve comprehension accuracy
They reduce time needed to understand code
They enhance perceived code readability
Abstract
AI-powered coding assistants, like GitHub Copilot, are increasingly used to boost developers' productivity. However, their output quality hinges on the contextual richness of the prompts. Meanwhile, gaze behaviour carries rich cognitive information, providing insights into how developers process code. We leverage this in Real-time GazeCopilot, a novel approach that refines prompts using real-time gaze data to improve code comprehension and readability by integrating gaze metrics, like fixation patterns and pupil dilation, into prompts to adapt suggestions to developers' cognitive states. In a controlled lab study with 25 developers, we evaluated Real-time GazeCopilot against two baselines: Standard Copilot, which relies on text prompts provided by developers, and Pre-set GazeCopilot, which uses a hard-coded prompt that assumes developers' gaze metrics indicate they are struggling with…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Teaching and Learning Programming · Software Engineering Techniques and Practices
