Inspiration

We optimize code for speed and correctness, but ignore a harder question: what is the long term cost of this decision?

Every inefficient loop, unnecessary computation, or poor design choice quietly increases energy usage and technical debt. At scale, that is not just a performance issue, it is an environmental one.

So we asked a controversial question: If inefficient code increases energy consumption, should developers be responsible for its environmental impact?

What it does

Sustainable Code Forecaster is an AI agent that evaluates code before it is merged and predicts its future impact.

  • Estimates future energy and compute usage
  • Predicts accumulation of technical debt
  • Projects performance under scale
  • Evaluates architectural efficiency
  • Assigns a Sustainability Score to each commit
  • Recommends more efficient alternatives

It shifts code review from “does it work?” to “should this exist in its current form?”

How we built it

We built a system that combines fast analysis with intelligent predictions.

  • Static analysis to detect inefficiencies and complexity
  • Predictive models to estimate future cost and performance impact
  • LLM layer to explain results and suggest improvements
  • GitLab CI integration to run on every merge request
  • A scoring system that converts multiple signals into one metric

Challenges we ran into

  • Predicting long term impact from small code changes
  • Limited data linking code patterns to energy consumption
  • Keeping the system fast enough for CI pipelines
  • Making insights simple without oversimplifying

Accomplishments that we're proud of

  • Built a working prototype during the hackathon
  • Embedded sustainability directly into the development workflow
  • Created a simple but powerful Sustainability Score
  • Delivered actionable recommendations developers can use immediately
  • Sparked discussion around responsibility in software engineering

What we learned

  • Simplicity drives adoption more than perfect accuracy
  • Small inefficiencies compound significantly over time
  • Sustainability becomes real when tied to cost and performance
  • The biggest barrier is not technology, but mindset

What's next for Sustainable Code Forecaster

  • Improve prediction accuracy with real world data
  • Add long term tracking dashboards
  • Integrate with cloud providers for real energy estimates
  • Expand support across languages and frameworks
  • Build IDE plugins for real time feedback
  • Introduce team level scoring and benchmarks

And a bigger question we want to explore next: If two solutions both work, why are we not choosing the one that costs less energy and scales better?

Share this project:

Updates