LeumaStudio · AI Engineering demo

Self-Healing Agent

Watch an agent debug its own code: it reads the failing tests, reasons about the bug, patches the function, and re-runs — looping until green. Each fix is distilled into a lesson stored in memory, so it gets faster on the next bug.

Demonstrates Agent loops · sandboxed execution · self-correction · learned memory

solution(a, b) returns the sum of all integers from a to b, inclusive.

function solution(a, b) {
  let total = 0;
  for (let i = a; i < b; i++) total += i; // bug: excludes b
  return total;
}