One Step at a Time: Combining LLMs and Static Analysis to Generate Next-Step Hints for Programming Tasks
Anastasiia Birillo, Elizaveta Artser, Anna Potriasaeva, Ilya Vlasov, Katsiaryna Dzialets, Yaroslav Golubev, Igor Gerasimov, Hieke Keuning, and Timofey Bryksin
November, 2024. Published in the proceedings of Koli Calling.
Abstract. Students often struggle with solving programming problems when learning to code, especially when they have to do it online, with one of the most common disadvantages of working online being the lack of personalized help. This help can be provided as next-step hint generation, i.e., showing a student what specific small step they need to do next to get to the correct solution. There are many ways to generate such hints, with large language models (LLMs) being among the most actively studied right now.
While LLMs constitute a promising technology for providing personalized help, combining them with other techniques, such as static analysis, can significantly improve the output quality. In this work, we utilize this idea and propose a novel system to provide both textual and code hints for programming tasks. The pipeline of the proposed approach uses a chain-of-thought prompting technique and consists of three distinct steps: (1) generating subgoals - a list of actions to proceed with the task from the current student's solution, (2) generating the code to achieve the next subgoal, and (3) generating the text to describe this needed action. During the second step, we apply static analysis to the generated code to control its size and quality. The tool is implemented as a modification to the open-source JetBrains Academy plugin, supporting students in their in-IDE courses.
To evaluate our approach, we propose a list of criteria for all steps in our pipeline and conduct two rounds of expert validation. Finally, we evaluate the next-step hints in a classroom with 14 students from two universities. Our results show that both forms of the hints - textual and code - were helpful for the students, and the proposed system helped them to proceed with the coding tasks.
Paper Pre-print DataCiting publications
- Simulating Programming Traces and State Spaces for Hint Generation
J Dannath, B Paaßen · 2026 - Student-Facing LLM Tools in Computing Education: A Systematic Literature Review of Roles, Designs, Evaluations, and Impacts
B Tabarsi, T Yasir, H Reichert, X Tian · This is a revised and … · 2026 - Enhancing Online Programming Education: Leveraging Professional Tools for
A Birillo · 2026 - Inteligencia artificial generativa para la enseñanza de matemáticas y programación en educación superior: Revisión sistemática.
VA Erazo-Arteaga, SM Vacas Palacios · Revista de Ciencias … · 2026 - A Psychometric Framework for Context-Conditional Evaluation of LLM Tutoring in Programming Education
J Shin, Z Li, P Aguinalde, LMC Castro · 2026 - Why Constrained Interfaces are the Right Default for LLMs in Programming Education
A De Masi · 2026 IEEE Symposium on Visual Languages and … · 2026 - Content Hidden Behind Execution: Analyzing Public Scratch Projects at Runtime
Y Si, Y Lin, D Li, H Shi, Y Shi, J Zhang · arXiv preprint arXiv:2607.03700 · 2026 - Understanding Student Interaction with AI-Powered Next-Step Hints: Strategies and Challenges
A Birillo, A Rostovskii, Y Golubev · Proceedings of the 57th … · 2026 - Exploring the Design Space of LLM-Based Programming Support in CS Education: A Scoping Review through the Lens of Assistance Governance
M Kim, SMA Monisha, Z Wu · 2026 IEEE Symposium … · 2026 - RPT+: An LLM-Powered Tutoring System to Support the Learning of Code Refactoring
E Carneiro Oliveira, M Vazquez Bassat · Proceedings of the 26th … · 2026 - Share your Screen and Talk to Gemini: How Young Learners Interact with Multimodal GenAI While Solving Scratch Tasks
S Jacobs, L Berning, N Kiesler · arXiv preprint arXiv:2611.21306 · 2026 - LLM-Enabled Educational Artefacts in Computer Science Education: A Systematic Mapping Study
FL Sanchez, C Alario-Hoyos, DS Guamán, JC Caiza · Applied Sciences · 2026 - GenAI-Powered Postsecondary Computer Science Education Tools: A Systematic Literature Review
O Sizemore, S Bernstein, A Ostrom, T Rexin · Proceedings of the 26th … · 2026 - Enhancing Debugging Skills With AI-Powered Assistance: A Real-Time Tool for Debugging Support
E Artser, D Karol, A Potriasaeva, A Rostovskii · Proceedings of the … · 2026 - The Reasons for Studying Generative AI: A Review of Narratives and Stances in the Computing Education Research Community
T Kohn, T Antensteiner, C Hahnel, BMJ Kern · Proceedings of the 26th … · 2026 - Sakshm ai: Advancing ai-assisted coding education for engineering students in India through Socratic tutoring and comprehensive feedback
H Goyal, R Gupta, S Sharma, K Mittal, A Mehra · ACM Journal on … · 2026 - Foundation models in software engineering: A taxonomy, systematic review, and in-depth analysis of testing support
S Banitaan, M Daoud, H Alquran, M Akour · Information · 2026 - LLM-pohjainen palaute ohjelmoinnin oppimisen tukena: Palautetyypit ja laadunhallinta
A Koivukangas · 2025 - Integrating Contextual Metrics in LLM-Based Hint Generation for Programming Exercises
S Tweel · 2025 - Using LLMs to Generate Automatic Feedback on Object-Oriented Programs with Multiple Classes
A Hattem · 2025 - Geração de dicas de próximo passo utilizando large language models (llms)
LG Araujo, K Araujo, E Reis, MO da Silva · Simpósio Brasileiro de … · 2025 - A Generative Model for Next-Step Code Prediction toward Proactive Support.
D Matsumoto, A Shimada, Y Taniguchi · International Association for … · 2025 - Leveraging KOALA for Programming Data Collection: A Half-Day Tutorial for Research Application.
D Karol, I Vlasov, K Dzialets, A Potriasaeva · EDM · 2025 - Simulated interactive debugging
Y Noller, E Chandra, S Chandrashekar · 2025 40th IEEE/ACM … · 2025 - Personalising LLM-Generated Worked Examples based on Skill Level in Introductory Programming
Y Smit · 2025 - Developing a Proactive Programming Assistant Leveraging an LLM for Personalized Real-time Feedback
J Impiö · 2025 - In-IDE Programming Courses: Learning Software Development in a Real-World Setting
A Birillo, I Vlasov, K Dzialets · 2025 IEEE/ACM … · 2025 - What is a step? A user study on how to sub-divide the solution process of introductory python tasks
J Dannath, A Deriyeva · Proceedings of the … · 2025 - Generating change: AI as an opportunity to address long-standing OER challenges
I Anastasopoulos, ZA Pardos · European Conference on Technology … · 2025 - SCRIPT: Implementing an intelligent tutoring system for programming in a german university context
A Deriyeva, J Dannath, B Paassen · International Conference on Artificial … · 2025 - Investigating llm-based tools to support usability, accessibility, user experience in hci activities: A systematic literature mapping
S de Oliveira Santos, R de Moraes Alves · … on Multimedia and the … · 2025 - Everything You Need to Know About CS Education: Open Results from a Survey of More Than 18,000 Participants
K Dzialets, A Makeeva, I Vlasov, A Potriasaeva · Proceedings of the … · 2025 - Investigating the Impact of Automated Code Quality Feedback in an Embedded Systems Course
R Corsi Ferrao, I Dos Santos Montagner · Proceedings of the 25th … · 2025 - LLM-based multi-artifact consistency verification for programming exercise quality assurance
FTJ Dietrich, Y Zhou, T Wasner, S Krusche · Proceedings of the 25th … · 2025 - KOALA: a Configurable Tool for Collecting IDE Data When Solving Programming Tasks
D Karol, E Artser, I Vlasov, Y Golubev · Proceedings of the … · 2025 - Code Quality Defects in Introductory Programming
A Řechtáčková, R Pelánek, T Effenberger · ACM Transactions on … · 2025 - Student Engagement with GenAI's Tutoring Feedback: A Mixed Methods Study
S Jacobs, J Haas, N Kiesler · Proceedings of the 25th Koli Calling … · 2025 - Howzat? Appealing to expert judgement for evaluating human and AI next-step hints for novice programmers
NCC Brown, P Weill-Tessier, J Leinonen · ACM Transactions on … · 2025 - Partnering with AI: a pedagogical feedback system for LLM integration into programming education
N Scholz, MH Nguyen, A Singla · European Conference on … · 2025 - Large language models (LLMs) in programming learning: The current research state and agenda
Q Fu, Y Zhao, Z Jia, Y Zheng · IEEE Transactions on Learning … · 2025 - Boyun Zhang
S Tan - GUARDIAN: A Comparative Study On Programming Education Using Chatbots
LDFA Spataru, CA Chirtes - Evaluating Large Language Models (LLMs) for Static Code Analysis
HAM Salih, QI Sarhan
