Back to Projects

Case Study

Lighthouse - Local-First Memory for Coding Agents

An open-source Go CLI and portable SQLite store that gives coding agents compact, current project context through a constrained Starlark API, with an optional local dashboard for review.

GoSQLiteStarlarkFTS5CLIGo templates
Data modelOne portable SQLite database
Agent interfaceOne constrained Starlark call
PrivacyLocal-first; no cloud data path
ReviewLoopback dashboard with CSRF protection and audit trail
PortabilityJSON, Markdown, YAML, TOML, PDF and SQLite transfer

Project overview

Lighthouse is a local-first memory and results store for coding agents. It is built to carry useful project context between conversations without requiring the data to pass through a hosted memory service.

The problem

Decisions, investigations, and implementation notes often stay in the conversation where they were created. A later session can repeat work or miss the reasoning behind an earlier choice. Saving context has to be useful without making private project details leave the developer's machine by default.

How the workflow works

The CLI exposes a constrained Starlark API through one lighthouse code call. At the start of substantive work, an agent can load a compact project context pack. If it needs more detail, it can batch searches and reads into a single script. After saving a result or durable memory, the CLI returns the committed record, database revision, and a context patch for the active conversation.

The API includes context loading, full-text search, record retrieval and description, audit review, result writes and updates, and durable memory operations. Records carry provenance and can use JSON custom fields without changing the SQLite schema.

Architecture and boundaries

The CLI and optional dashboard are Go programs. SQLite is the portable source of truth, with FTS5 for local keyword search. Starlark runs inside the Go process and exposes typed operations rather than a general-purpose shell. Agent scripts do not receive shell, filesystem, environment-variable, raw SQL, or network access.

The dashboard is optional and binds to loopback. It supports browsing results and memory, reviewing activity and audit events, editing records, and importing or exporting data. Writes use same-origin form checks and CSRF protection, and mutations are audited. The data path remains local; Lighthouse does not silently generate or upload embeddings for semantic search.

Portability and distribution

The CLI can be installed without cloning the source repository. The dashboard runs from the same executable and database. Lighthouse supports JSON, Markdown, YAML, TOML, PDF, and SQLite snapshot transfer. The public repository documents the Go package as another way for applications to use Lighthouse's storage API directly.

Status and links

Lighthouse is open source under the MIT license. The public repository showed release v0.8.1 in November 2026. Read the product documentation or browse the source repository.

Role

I created and maintain Lighthouse, including the Go CLI, SQLite-backed API, agent integration guidance, optional local dashboard, and public documentation.

Project link

Visit the live projectlighthouse.ovenplatform.com

Interested in similar solutions?

Let's discuss how I can help architect and build scalable systems for your organization.