Skip to content
Back to work

Local-first memory substrate · mmd daemon

Machine Memory

Agents waste cycles rediscovering files, notes, and project context that already exists on disk.

View source

What I built

A filesystem-watching daemon, MCP server, and CLI over a SQLite FTS5 index with OCR extraction (PDF via pdftotext, images via tesseract). The hot path is tuned WAL (64MB cache, 256MB mmap); a load-generating integration test holds p95 ping latency under 50ms while ingesting ~100 file mutations/sec. Retrieval is served over Unix-socket IPC with per-match provenance.

Stack

TypeScriptSQLiteFTS5MCPUnix socket

Status

Daemon + CLI shipped; 143 tests, p95<50ms benchmark verified.