Video Demo Link: https://www.youtube.com/watch?v=M4ktjFTTZIw
Local stateful debug loop with memory for coding agents. Shorten debug cycles, persist context across iterations, and generate optimized prompts for VS Code/Cursor.
- Node.js 18+
- Python 3.11+
- Backboard API key
-
Install dependencies
npm install cd electron && npm install cd ../backend && pip install -e .
-
Configure environment
cp .env.example .env # Edit .env with your Backboard API key -
Run development mode
npm run dev
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Electron App (UI) β
β βββββββββββββββ βββββββββββββββββββ β
β β Main ProcessββββIPCβββΊβ React Renderer β β
β ββββββββ¬βββββββ βββββββββββββββββββ β
β β β
β β HTTP :8811 β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββ β
β β FastAPI Local Service β β
β β βββββββββββββββββββββββββββββββββββββ β β
β β β Backboard Memory Layer β β β
β β β (failures, successes, context) β β β
β β βββββββββββββββββββββββββββββββββββββ β β
β βββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
- Floating overlay - Always-on-top lightning button with global hotkey
- Command drawer - Modes: Fix error, Make tests pass, Refactor, Explain
- Loop console - Iteration timeline with token metrics
- Thinking graph - Visual node graph of loop state
- Memory persistence - Avoid repeated failed fixes via Backboard
- One-click paste - Export optimized prompts to VS Code/Cursor
lightning-loop/
βββ electron/ # Electron main + preload
βββ renderer/ # React UI (embedded in electron)
βββ backend/ # FastAPI service
β βββ lightning_loop/
β βββ main.py # API endpoints
β βββ backboard/ # Memory layer
β βββ loop/ # Loop engine
βββ shared/ # Shared types