Lighthouse is an experimental pipeline that generates verified bare-metal firmware for the ESP32 from a natural language prompt. It wraps an LLM in a multi-agent loop:
- Generator — produces C code from the user request and a machine-readable register map.
- Hardware Auditor — checks the generated code against the register map and returns structured errors.
- Deterministic Safety Net — catches common failure modes with hardcoded rules.
The project was built as Project Babbage to demonstrate that low-level expertise is the missing layer that makes AI-generated code safe for physical hardware.
babbage.py— main orchestration scriptREADME.md— this file- Generated output includes
.cfirmware and a Wokwi-compatiblediagram.json
- Python 3.9+
openaiPython package
pip install openai