Idea · Aug 9, 2026
Code Carbon Lens
An autograder wrapper that profiles the energy draw and algorithmic efficiency of each student submission, shows a class-wide anonymized sustainability leaderboard, and generates AI coaching on how to reduce a solution's carbon footprint.
What it would do
Code Carbon Lens sits between a Canvas LMS assignment and an existing autograder. After each submission passes functional tests, the system profiles it with CodeCarbon and cProfile, measuring real CPU energy consumption alongside asymptotic complexity. Students see a feedback panel showing their submission's energy draw compared to the class distribution ('Your solution used 3x more energy than the median due to this O(n^2) inner loop') plus an AI-generated optimization suggestion that avoids giving away the answer. A class dashboard lets instructors track energy-efficiency improvement over the semester, rewarding algorithmic thinking alongside correctness. The project directly implements the ITiCSE 2025 call to make sustainability a first-class concern in CS curricula by attaching a real number to the environmental cost of an algorithm choice.
Key features
- Per-submission CPU energy profiling via CodeCarbon integrated into the autograder pipeline
- Anonymous class efficiency leaderboard with historical improvement tracking per student
- Claude API coaching that names the inefficiency and suggests a direction without revealing the solution