Editrail: Understanding AI Usage by Visualizing Student-AI Interaction in Code
Ashley Ge Zhang, Yan-Ru Jhou, Yinuo Yang, Shamita Rao, Maryam Arab, Yan Chen, Steve Oney
TL;DR
This work tackles the visibility gap in how students use generative AI during programming by introducing Editrail, a timeline-based visualization that integrates AI usage with students' code-edit histories. Through a formative needs-finding study and two Python programming tasks, Editrail is shown to enable instructors to identify AI-enabled patterns more accurately and efficiently than a baseline that relies on code and chat logs alone. A within-subject evaluation with 12 instructors demonstrates improved accuracy (0.79 vs 0.31) and actionable insights for timely interventions, while revealing perceptual gaps in reliance on baseline data. The work also discusses design implications for learning with AI, ethical/privacy considerations, and directions for future work, including aggregated classroom views and broader task coverage. Overall, Editrail provides a concrete pathway for instructors to monitor, assess, and guide AI-assisted programming in a way that aligns with pedagogical goals and policy needs, potentially transforming classroom practice in AI-enabled CS education.
Abstract
Programming instructors have diverse philosophies about integrating generative AI into their classes. Some encourage students to use AI, while others restrict or forbid it. Regardless of their approach, all instructors benefit from understanding how their students actually use AI while writing code. Such insight helps instructors assess whether AI use aligns with their pedagogical goals, enables timely intervention when they find unproductive usage patterns, and establishes effective policies for AI use. However, our survey with programming instructors found that many instructors lack visibility into how students use AI in their code-writing processes. To address this challenge, we introduce Editrail, an interactive system that enables instructors to track students' AI usage, create personalized assessments, and provide timely interventions, all within the workflow of monitoring coding histories. We found that Editrail enables instructors to detect AI use that conflicts with pedagogical goals accurately and to determine when and which students require intervention.
