Abstract
LLM-based chatbots enable students to get immediate, interactive help on homework assignments, but even a thoughtfully-designed bot may not serve all pedagogical goals. We report here on the development and deployment of a GPT-4-based interactive homework assistant ("61A Bot") for students in a large CS1 course; over 2000 students made over 100,000 requests of our Bot across two semesters. Our assistant offers one-shot, contextual feedback within the command-line "autograder" students use to test their code. Our Bot wraps student code in a custom prompt that supports our pedagogical goals and avoids providing solutions directly. Analyzing student feedback, questions, and autograder data, we find reductions in homework-related question rates in our course forum, as well as reductions in homework completion time when our Bot is available. For students in the 50th-80th percentile, reductions can exceed 30 minutes per assignment, up to 50% less time than students at the same percentile rank in prior semesters. Finally, we discuss these observations, potential impacts on student learning, and other potential costs and benefits of AI assistance in CS1.
Introduction
Introductory computer science courses (CS1) at large institutions often face a "scaling crisis." At UC Berkeley, CS 61A serves over 1,000 students per semester, leading to TA help queues that can stretch for hours. While students have increasingly turned to generic Large Language Models (LLMs) like ChatGPT for assistance, these tools often provide direct code solutions. This "path of least resistance" can bypass the "productive struggle" essential for deep learning.
To address this, we developed the 61A Bot, a GPT-4-powered assistant designed to provide immediate, pedagogically-aligned support. Our goal was to determine if an AI assistant could maintain pedagogical integrity while significantly reducing the burden on human staff and the time students spend "stuck" on assignments.
System Design and Implementation
The 61A Bot was designed with several key constraints to ensure it served as a tutor rather than a solution generator:
- Low-Friction Integration: The bot is embedded directly into the
okautograder, the command-line tool students already use to verify their code. This places help exactly where students encounter failure. - One-Shot Interaction: To avoid unmonitored chat sessions and "hallucination rabbit holes," the bot provides a single, high-quality response per request.
- Pedagogical Guardrails: Using GPT-4, the system wraps the student's code, the problem description, and the error message in a custom prompt. This prompt explicitly instructs the AI to identify conceptual gaps and provide debugging hints without providing code.
- Context Awareness: The bot maintains limited continuity by including up to three prior "student code/advice" pairs in its context.
Methodology and Datasets
Our study utilized a massive longitudinal dataset comparing the "Bot" semester (Spring 2024) against historical baselines from Spring 2021–2023. The data includes over 1.6 million code attempts from 6,034 students and over 100,000 bot requests. We also analyzed forum question counts and end-of-semester surveys with response rates as high as 89%.
Key Findings
Significant Reductions in Completion Time
The most striking result was the reduction in homework completion time. Students in the Spring 2024 semester completed assignments 25% to 50% faster than their predecessors. Interestingly, the most dramatic savings were observed for students in the 50th–80th percentile—those who typically spend the most time struggling with debugging.
To validate these findings, we examined "Lab" assignments where the bot was intentionally disabled. In these cases, completion times remained consistent with historical averages, suggesting a strong causal link between bot availability and increased efficiency.
Impact on Teaching Staff
The deployment of the 61A Bot led to a 75% reduction in homework-related forum questions. In Spring 2023, there were 344 questions per 1,000 students; in Spring 2024, this dropped to just 88. This suggests that the bot successfully handled the bulk of routine debugging queries, allowing human TAs to focus on more complex conceptual support.
Student Sentiment
Student feedback was overwhelmingly positive, with 70% of hints rated as "helpful." Students particularly valued the 24/7 accessibility, noting that the bot provided a crucial safety net when human help was unavailable, preventing them from "banging their head against the wall."
Discussion: The "Now What?" Question
The ability to save students 30–60 minutes per assignment presents a new pedagogical challenge. Educators must decide whether to use this reclaimed time to introduce more advanced content or to simply reduce the overall workload, potentially improving student well-being.
However, several questions remain. While students are finishing faster, it is not yet clear if they are learning more effectively. There is a risk that reliance on natural language hints might degrade a student's ability to interpret raw error traces. Future work will focus on tracking long-term learning outcomes and integrating more direct links to course materials within the bot's responses.
Conclusion
The 61A Bot demonstrates that a thoughtfully integrated, pedagogically-aligned AI assistant can significantly improve the student experience in large-scale CS1 courses. By providing immediate, conceptual feedback, we can reduce student frustration and staff workload, paving the way for more scalable and supportive educational environments.
Summary updated