Introduction
Creating high-quality instructional materials for introductory programming (CS1) is a significant undertaking for educators. Beyond drafting problem statements, instructors must develop correct solutions, anticipate common student errors (buggy solutions), and craft adaptive feedback. While Large Language Models (LLMs) like ChatGPT offer impressive generative capabilities, their "out-of-the-box" outputs often lack pedagogical nuance—frequently producing generic problems or providing feedback that reveals the answer too directly. This research explores a collaborative "human-AI" workflow designed to bridge the gap between an instructor's pedagogical expertise and an LLM's speed.
The INSIGHT Classroom Assistant
To facilitate this collaboration, researchers developed the INSIGHT Classroom Assistant. The system consists of two primary components: a web-based instructor authoring tool and a student-facing VS Code extension. The authoring tool allows instructors to prompt LLMs for content, which they then refine and tag with specific misconceptions. The VS Code extension delivers these vetted problems to students, providing real-time, instructor-approved feedback as they code.
Methodology: Guided vs. Unguided Prompting
The study evaluated how instructors interact with LLMs through a two-round procedure involving three experienced CS1 instructors:
- Unguided Round: Instructors used ChatGPT freely, employing their own natural prompting strategies.
- Guided Round: Instructors were provided with "scaffolded" prompt templates. These templates required specific inputs such as learning outcomes, difficulty levels, target audience, and constraints (e.g., "provide hints, not solutions").
Key Insights
Qualitative analysis of the study revealed several critical themes regarding the instructor-LLM partnership:
Overcoming the "Blank Page"
Instructors found LLMs most valuable as brainstorming partners. The AI-generated content served as a "useful foundation for refinement," helping educators overcome the initial hurdle of starting a new problem from scratch.
The Efficiency-Creativity Trade-off
The guided approach proved significantly more efficient and better aligned with specific learning objectives. However, this structure came with a cost: some instructors felt it slightly stifled "creativity," noting that the unguided approach occasionally yielded more novel, albeit less polished, ideas.
Managing the "Spoiler" Problem
A recurring challenge is the LLM's tendency to be overly detailed in its feedback, often giving away the solution. Instructors emphasized the necessity of a "middle layer" where they can filter and edit AI responses to ensure students receive strategic hints rather than full code.
Human-in-the-Loop
A central finding was the absolute necessity of human verification. None of the participants felt comfortable allowing an LLM to interact directly with students without an instructor-in-the-loop to ensure the correctness and pedagogical appropriateness of the material.
Results and Future Directions
The guided prompting approach led to better alignment with learning goals and broader coverage of student misconceptions. While the study's small sample size (three instructors) is a limitation, the results strongly suggest that structured AI collaboration can significantly reduce the burden of material creation.
Future research will focus on scaling these findings across diverse institutions and finding the "sweet spot" between rigid templates and open-ended prompting. Additionally, the team plans to explore "LLM-based problem validation," using AI to unit-test instructor-authored problems before they are deployed in the classroom.
Summary updated