Idea · Sep 1, 2026
Refactor Rungs
A web tool that takes a working-but-messy student code submission and generates a step-by-step guided refactoring ladder. Students climb one rung at a time with AI hints when stuck and a structural autograder that confirms each improvement without revealing the final answer.
What it would do
Instructors paste a canonical 'smelly but correct' solution (or pull one from student submissions) and configure which refactoring skills to target: naming, function extraction, duplication removal, early returns, or type annotations. Refactor Rungs generates a personalized ladder of three to six rungs tailored to that specific code's issues, presenting each rung as a focused challenge ('This function does three things. Extract the part that validates the input into its own function.'). Students submit each rung's code and a lightweight structural analyzer checks whether the targeted improvement was actually applied (function count changed, variable names improved, duplication reduced) without caring about stylistic choices. If a student is stuck, they can request a Socratic hint that asks a guiding question rather than giving the answer. An instructor dashboard shows class-wide rung completion heatmaps to identify which refactoring concepts students find hardest.
Key features
- Instructor-configurable refactoring skill targets (naming, extraction, duplication, early returns, type annotations) applied to any pasted code submission
- LLM-generated three to six rung ladder with per-rung challenge descriptions specific to the actual code flaws present
- Structural autograder that checks whether the targeted improvement was applied using AST-level analysis rather than style matching
- Socratic hint system that asks guiding questions rather than revealing the solution, with instructor dashboard showing class-wide rung completion heatmaps