Skip to content

Repository files navigation

Lighthouse

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.

Files

  • babbage.py — main orchestration script
  • README.md — this file
  • Generated output includes .c firmware and a Wokwi-compatible diagram.json

Requirements

  • Python 3.9+
  • openai Python package
pip install openai

About

A low-level verifier which makes vibe-coded firmware safe.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages