Idea · Jul 17, 2026
Erroneous Code Example Forge
A teacher-facing tool that uses Claude API to generate banks of subtly buggy code examples targeting specific CS1 misconceptions, ready to deploy as interactive 'spot the bug' exercises.
What it would do
Creating high-quality erroneous examples is one of the most time-consuming parts of CS course prep: each one must be subtly wrong in a pedagogically meaningful way, accompanied by plausible distractor explanations. Erroneous Code Example Forge lets instructors describe a target misconception in plain language (for example, 'students think Python lists are copied on assignment'), then generates 6-8 buggy code variants, each paired with three wrong explanations and one correct diagnosis. The resulting exercise bank is stored in Supabase and can be exported to Canvas quiz XML, a printable PDF, or an embeddable interactive widget. Instructors rate each generated example for quality and can see at a glance which misconceptions have enough exercise coverage. Supports Python, Java, and C++ out of the box.
Key features
- Natural language misconception description drives structured buggy code generation
- Configurable programming language, difficulty level, and error subtlety
- Canvas LMS quiz XML export and embeddable interactive widget
- Instructor quality-rating loop with per-misconception coverage dashboard