LUMEN is an open protocol and runtime for AI agents. An agent is a row in a hierarchical database — adding one is a SET, auditing it is reading a row. The engine is a single 1.3 MB WebAssembly binary that runs in a browser, in Docker, or on ARM.
Frameworks give you a loop to call models. LUMEN gives you the loop, the state, the persistence and the devices — as one engine you can embed anywhere.
Agents, sessions and work live in the PDB — a hierarchical store with MUMPS heritage. Restart the process and nothing is lost.
HTTP, SQL, LLM, files, hardware, MCP — 54 operations across 16 families, declared by the engine itself.
Work can be in WAITING or HIBERNATE without burning CPU, and move to another node picking up from the same instruction.
Choosing which agent answers is a database lookup, not a model call. Deterministic, free, and the same every time.
No class, no subclass, no config file. You write rows into the database and the engine picks them up.
Selection is deterministic: the text is normalised, each agent's keyword row is checked, and the first three matches answer. If nothing matches, a base agent answers.
Everything below ships in the same binary. Nothing here calls out to a hosted service.
| Component | What it does | Status |
|---|---|---|
| M-Light | MUMPS-style VM with compiler. 60k lines of routines run on it. | stable |
| PDB | Hierarchical persistent store. SQLite, LMDB and in-memory backends. | stable |
| Devices | 54 operations: http, sql, llm, sys, hw, audio, img, cam, rag, mcp, ddp. | stable |
| Fibers | Cooperative concurrency with await, for parallel model calls. | stable |
| DDP | Edge ↔ local replication of namespaces. | stable |
| MCP | Model Context Protocol server and client. | stable |
Deep-dives live in the repository. These are the ones worth reading first.