Beyond Giving Answers: Scaffolding Critical Thinking with Stage-Structured Generative AI Feedback in Introductory Programming
Generative artificial intelligence can support programming learning, but complete solutions may reduce opportunities to practice critical thinking. This study examined a pedagogical agent guided by the Trigger-Process-Respond framework, which organized questioning, comparison, evidence requests, and reflection across debugging, code review, and post-task reflection. In a six-week quasi-experiment, 60 first-year computer science students in two intact classes at a Chinese university completed three sequential programming tasks. One class used the agent, and the other received conventional instructor feedback. Critical thinking was assessed with the Chinese version of the California Critical Thinking Skills Test, and dialogue records documented students’ reasoning responses. In these two classes, the agent-supported class had higher posttest scores after adjustment for pretest scores. Within the fixed feedback sequences, questioning was followed by more analytical responses, comparison by more evaluative responses, and evidence requests by more argumentative responses. Exploratory analyses linked reflection feedback with reasoning in the next task, particularly between the first two tasks. These findings suggest that stage-structured generative AI feedback can engage students in reasoning during supported programming dialogue.
Authors
- Kai Liang (ORCID: https://orcid.org/0000-0003-4571-187X)
- Lei Qian (ORCID: https://orcid.org/0009-0005-3543-0531)
- Chuanfeng Li
- Liangping Zhao
Institutions
- Luoyang Institute of Science and Technology (CN)
Publication Details
- Journal
- Journal of Intelligence
- Published
- 2026-11-24
- DOI
- https://doi.org/10.3390/jintelligence14120313
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00