betaFeedback

WorksComputer Science

GAZEAIDE: Recording Gaze Context for Research on AI-Assisted Development

Abstract

Developers increasingly review code they did not write, much of it generated by AI. Where they look while reading may indicate what is relevant to them, but tools rarely have access to this information. We demonstrate GAZEAIDE, an open-source research prototype for collecting it. Using a webcam, GAZEAIDE estimates which parts of the code a developer looks at and for how long, and records this viewing history together with the text shown on screen. Such context can serve different purposes: providing visual feedback on what has been viewed, guiding code review, and preparing context for a question, which a developer can choose to send to an AI assistant. An IntelliJ plugin records work in the editor; a browser companion records assistant conversations. Attendees can record a short session, replay their viewing history, and try these scenarios.

Motivation: use the context produced during reading

AI-assisted development involves reading and checking code that developers did not fully author. Asking for help requires developers to recognize a need, formulate a question, and convey the relevant material. The motivation for GAZEAIDE, short for Gaze-Augmented Interaction for Developer Environments, is to explore an interaction layer that can use context already produced during reading, potentially reducing the additional effort needed to communicate what is relevant.

Consider a developer investigating why a name containing only spaces is accepted instead of rejected. They read the caller that trims spaces, the validator that accepts an empty value, and a check that expects a default guest label. These passages may help an assistant explain the behavior. Recording which versions were viewed would let a researcher trace why each passage entered the assistant’s context.

GAZEAIDE records visits, reconstructs encountered content, and exports context linked to assistant requests (Figure 1). Because treating every look as a command risks unintended activation [6], viewing supplies context while users control question submission.

Figure 1. GAZEAIDE separates sensing and attribution, local recording, and downstream uses. Recordings preserve attributed visits and displayed text. Assistant requests and remote upload require separate explicit actions.

Positioning among gaze-aware tools

Gaze-aware developer tools. Gaze has served both as an observation channel and as an input to developer tools. iTrace passively maps eye movements to software artifacts within the IDE [9]; iTrace-Atom and gazeI extend capture to source edits and reconstruct gaze-linked file versions [4]. EyeDE uses intentional looks at in-code triggers to open

Authors’ Contact Information: Heidi Albarazi, JetBrains Research, Munich, Germany, [email protected]; Ilya Zakharov, JetBrains Research, Belgrade, Serbia, [email protected]; Ekaterina Koshchenko, JetBrains Research, Amsterdam, Netherlands, [email protected]; Agnia Sergeyuk, JetBrains Research, Belgrade, Serbia, [email protected]. documentation or navigate to method declarations [5]. Cheng et al. share reviewers’ gaze through live line highlighting and visual links between inspected passages [2].

CodeGRITS coordinates gaze, IDE events, and screen recording in JetBrains IDEs, with activity labels, structured export, and a real-time data API [10]. Its mapping from gaze coordinates to code locations and syntax elements is an antecedent for GAZEAIDE’s editor attribution.

Gaze-informed AI assistance. GazeCopilot converts gaze metrics into prompt text for AI-supported code comprehension and readability; a keyboard shortcut initiates assistance [3]. GazeGPT uses gaze to identify the physical object addressed by a spoken query through smart eyewear [8]. EmBARDiment maintains gaze-selected text context across XR windows and combines it with an explicit verbal request [1]. These systems show how gaze can enrich AI input while users initiate requests. They represent different forms of context: gaze metrics over code, objects in a scene, and previously encountered text.

Among the systems compared in Table 1, GAZEAIDE combines gaze-to-code mapping, gaze-driven visual feedback, gaze-informed assistant input, and machine-readable export in one workflow. It links captured text and viewing history to each assistant request it prepares.

SystemMain roleGaze to codeGaze-driven UIGaze in AI inputExport
iTrace / gazel [4, 9]Capture; edited source✓––✓
EyeDE [5]Code navigation✓✓––
Cheng et al. [2]Shared review attention✓✓––
CodeGRITS [10]IDE and gaze collection✓––✓
GazeCopilot [3]Gaze-metric prompting✓–✓✓
GazeGPT [8]Queries about objects––✓–
EmBARDiment [1]XR text-context memory––✓–
GAZEAIDEReplayable gaze context✓✓✓✓

Table 1. Documented roles and capabilities (✓ supported; – not reported or outside scope). Gaze-driven User Interface (UI) covers navigation/highlighting. Export means machine-readable gaze/context records; GazeCopilot uses CodeGRITS. Gaze in AI input does not imply automatic requests. GAZEAIDE’s row spans both editions.

From viewing to reusable context

Two editions for a broader interaction setting. GAZEAIDE began as an IntelliJ plugin connecting gaze estimates to editor lines and code regions. The research scope then expanded to assistant explanations, generated code, and earlier conversation turns, which also shape subsequent questions but fall outside editor capture. We therefore added a standalone browser companion. Its viewer displays source files, text, and locally available Codex history, preserving conversation provenance and historical diffs. It also imports plugin recordings for inspection.

Record and reconstruct what was encountered. Recording starts with an input mode, scenario, and optional participant/task/condition codes. Webcam estimation uses UnitEye [11] and EyeMU [7], with local processing in a browser or the Java Chromium Embedded Framework (JCEF) processing and calibration. Nine calibration targets fit a user-specific correction, followed by five held-out targets that report spatial error and jitter, including vertical error relative to editor line height. Smoothing and stable-target holds govern attribution, while region-based assistant context remains inspectable before submission. These features support setup assessment and exploratory context collection; line-level attribution during natural reading remains to be evaluated. Mouse proxy and simulation retain distinct input labels.

The system automatically records line visits: intervals attributed to a displayed line, with timing, text, input source, and available region snapshots and document versions. Pauses and invalid input interrupt attribution. Visits estimate exposure, not fixations or understanding. Task recordings contain neither camera video nor a continuous raw gaze stream.

Researchers can replay saved text after files change, inspect passages, and add notes or explicit review marks. Figure 2 links visits to a validator, caller, and test: captured regions retain their whitespace-handling code, while successive exports reconstruct the context available at each window’s end. Exports include structured JSON, CSV for analysis, and self-contained HTML replay outside the Integrated Development Environment (IDE).

Figure 2. A synthetic MOUSE_PROXY companion recording links (A) chronological visits to (B) saved code and (C) three successive context windows. Derived from actual recording/export data; null questions and responses indicate viewing only. No participant results or accuracy measurement.

Inspect assistant context and export research records. GAZEAIDE prepares a bounded context packet from the selected target, visible content, and recently visited regions. The selected target and visible viewport take priority; other regions require at least 200 ms of accumulated exposure and are ordered by their most recent visit within a ten-minute window, considering at most 5,000 visits. The packet retains at most eight regions, with excerpts capped at 1,800 characters and a 12,000-character budget for the serialized context. It preserves excerpts, source/version and line identifiers, input provenance, recency, and exposure, and reports truncation. Visible-but-unvisited text is marked separately. Selection uses no future visits and remains an unvalidated model of relevance.

Users do not attach each passage manually: context accompanies an editable question. In the plugin, Copy prompt & open AI Chat copies the complete prompt for the user to paste and send in native chat; delivery and replies are unobserved. The companion’s send action attaches fresh context when enabled and observes replies through its own Codex conversation. Sustained viewing, or dwell, can prepare an optional local question without calling a model. A read-only Model Context Protocol (MCP) interface lets configured clients retrieve context.

Research records link the question, exact prepared request, context, attachment state, outcome, and optional feedback. Unobserved replies remain missing; pasted answers are labelled as user transcriptions. JSONL export also supports viewing-only context windows with null question/answer fields. These records support future comparisons of question-only, conventional, and viewing-based context.

Scenarios as examples and experimental conditions

Ten scenarios illustrate the workflow. Record viewing only provides a baseline with visual effects and AI preparation off. Four visual-feedback examples make accumulated input visible: Follow my reading keeps the viewed block clear while dimming its surroundings; Highlight viewed lines tints lines after exposure; Fade previously viewed code fades visited blocks and restores them on return; and Highlight matching names emphasizes matching identifier text.

Two review scenarios connect history to explicit work. Gaze-assisted review prepares explain, compare, or review questions from captured regions. Gaze-guided review walkthrough turns captured regions into inspectable steps with notes and explicit review marks. The remaining three scenarios support configuration and analysis. Personalization fits a smoothing/response preset through a short guided task. Personal baseline & blink activity optionally records webcam closure events and sampling quality across sessions; these observations do not establish fatigue. Finally, Custom features combines effects and delays. These scenarios illustrate possible applications and study conditions, rather than demonstrated improvements in reading or review performance.

Interactive demonstration and current status

Visitors use the IntelliJ plugin to record the validation example, replay captured text, and inspect how the caller and validator enter a prepared question. They then export the recording and examine its research fields. A brief companion demonstration extends capture to assistant explanations and conversation history.

The setup uses a webcam-equipped laptop, IntelliJ/JCEF, and a local Node.js/browser companion. Recording, replay, and export require no AI account; sending requires provider access. Labelled pointer input and saved recordings provide fallbacks. The video uses mouse-proxy input and synthetic content. The demonstrated source snapshot includes setup instructions.2 Recordings are local by default and may contain sensitive code, conversations, and behavioral data. Sending attached context discloses it to the provider; configured MCP clients can retrieve published context. Remote study collection defaults off.

Use of generative AI. OpenAI Codex assisted with implementation, software checks, manuscript revision, figure code, and video assembly; narration is synthetic. The authors take responsibility for the system and submission.

Manuscript submitted to ACM

References

References

  1. [1]Riccardo Bovo, Steven Abreu, Karan Ahuja, Eric J. Gonzalez, Li-Te Cheng, and Mar Gonzalez-Franco. 2025. EmBARDiment: an Embodied AI Agent for Productivity in XR. In 2025 IEEE Conference on Virtual Reality and 3D User Interfaces (VR). IEEE, 708–717. doi:10.1109/VR59515.2025.00093DOI
  2. [2]Shiwei Cheng, Jialiang Wang, Xiaoquan Shen, Yijian Chen, and Ninind Dey. 2022. Collaborative Eye Tracking Based Code Review through Real-time Shared Gaze Visualization. Frontiers of Computer Science 16, 3, Article 163704 (2022). doi:10.1007/s11704-020-0422-1DOI
  3. [3]Yasmine Elfares, Gül Çalikli, and Mohamed Khamis. 2025. GazeCopilot: Evaluating Novel Gaze-Informed Prompting for AI-Supported Code Comprehension and Readability. arXiv preprint arXiv:2511.08177. doi:10.48550/arXiv.2511.08177DOI
  4. [4]Sarah Fakhoury, Devjeet Roy, Harry Pines, Tyler Cleveland, Cole S. Peterson, Verena Arnaoudova, Bonita Sharif, and Jonathan I. Maletic. 2021. gazeL: Supporting Source Code Edits in Eye-Tracking Studies. In 2021 IEEE/ACM 43rd International Conference on Software Engineering: Companion Proceedings (ICSE-Companion). IEEE, 4 pages. doi:10.1109/ICSE-Companion52605.2021.00038DOI
  5. [5]Hartmut Glü̈cker, Felix Raab, Florian Echtler, and Christian Wolff. 2014. EyeDE: Gaze-enhanced Software Development Environments. In CHI ’14 Extended Abstracts on Human Factors in Computing Systems. Association for Computing Machinery, New York, NY, USA, 1555–1560. doi:10.1145/2559206.2581217DOI
  6. [6]Robert J. K. Jacob. 1991. The Use of Eye Movements in Human-Computer Interaction Techniques: What You Look At Is What You Get. ACM Transactions on Information Systems 9, 2 (1991), 152–169. doi:10.1145/123078.128728DOI
  7. [7]Andy Kong, Karan Ahuja, Mayank Goel, and Chris Harrison. 2021. Eye Movements: Gaze + IMU Gestures on Mobile Devices. In Proceedings of the 2021 International Conference on Multimodal Interaction. Association for Computing Machinery, New York, NY, USA, 577–585. doi:10.1145/3462244.3479938DOI
  8. [8]Robert Konrad, Nitish Padmanaban, J. Gabriel Buckmaster, Kevin C. Boyle, and Gordon Wetzstein. 2024. GazeGPT: Augmenting Human Capabilities using Gaze-contingent Contextual AI for Smart Eyewear. arXiv preprint arXiv:2401.17217. doi:10.48550/arXiv.2401.17217DOI
  9. [9]Timothy R. Shaffer, Jenna L. Wise, Braden M. Walters, Sebastian C. Müller, Michael Falcone, and Bonita Sharif. 2015. iTrace: Enabling Eye Tracking on Software Artifacts within the IDE to Support Software Engineering Tasks. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering. Association for Computing Machinery, New York, NY, USA, 954–957. doi:10.1145/2786805.2803188DOI
  10. [10]Ningzhi Tang, Junwen An, Meng Chen, Aakash Bansal, Yu Huang, Collin McMillan, and Toby Jia-Jun Li. 2024. CodeGRITS: A Research Toolkit for Developer Behavior and Eye Tracking in IDE. In Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings. Association for Computing Machinery, New York, NY, USA, 5 pages. doi:10.1145/3639478.3640037DOI
  11. [11]Tobias Wagner, Mark Colley, Daniel Breckel, Michael Kösel, and Enrico Rukzio. 2024. UniteEye: Introducing a User-Friendly Plugin to Democratize Eye Tracking Technology in Unity Environments. In Proceedings of Mensch und Computer 2024. Association for Computing Machinery, New York, NY, USA, 17 pages. doi:10.1145/3670653.3670655DOI

Paper details

vlnc:W_32b335j7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents