Components

  • CLI and code runner. A Go executable. lighthouse code runs one bounded Starlark script and prints JSON.

  • Store. SQLite through the CGo-free modernc.org/sqlite driver, with FTS5 full-text search and an optional bundled vector extension.

  • Dashboard. A standard-library HTTP server with html/template. Loopback only.

  • Change feed. Every write also appends a row to a changes table in the same transaction. Each record carries a revision, a global seq, updated_at, actor and an optional batch_id. Clients read the feed with lighthouse changes --follow or the API stream.

  • Local API. The dashboard listener serves /api/v1/* with bearer tokens. See Local API and Dock.

Code calls

An agent runs lighthouse code with a short Starlark script. Lighthouse interprets the script inside the CLI, performs the permitted database operations, and returns JSON. No separate script runtime or running dashboard is needed for these calls. See the Code API for the available operations.

Keyword search works locally with no configuration. Semantic search needs embeddings that you supply. Lighthouse never sends data to an embedding provider on its own. Vector query behavior is still being validated.

Context lifecycle

load_memory builds a snapshot for a scope and stores it with a revision. Writes advance the revision and return a patch. The conversation text is the live cache. Lighthouse stores rows and snapshots but does not change provider-side prompt state.