Neonmem
Project memory for coding agents
Neonmem keeps a project's decisions, standing rules, dead ends and plans as a typed memory graph, and answers an agent's question from it before the agent acts.
Three ways to run it
All three read and write the same .neonmem memory file, so a memory moves between them as a file.
Self-hosted server
Neonmem Server
One server for a team: many brains, roles per brain, agent tokens, and an MCP endpoint for any agent. Managed from a browser console, a command line and an HTTP API.
Neonmem Server →Desktop IDE
Neonmem Workspace
An editor with language models built in and a memory slot for a project's cartridge. Generation, recall and planning run on the local machine.
Neonmem Workspace →Package
Neonmem SDK
A single memory file served to one agent, with a command line to build it: import documents, record decisions, ask questions.
Neonmem SDK →The memory model
A typed graph of what the project has learned
Each memory records one piece of the project's experience and has a type. The type decides how it is used when a question comes in.
Rule
A constraint that applies on every turn. Offered with every answer it bears on.
Decision
A choice the project made, linked to the question it settled and the reason given.
Dead end
An approach that was tried and failed, kept with its cause so it is recognised before it is repeated.
Plan
A forward commitment, kept until it is completed or replaced.
The cartridge
A .neonmem cartridge is one file: fixed-size node records, typed edges (led-to, supports, contradicts, blocked-by, part-of), one int8-quantised 384-dimensional vector per node, an LZ4-compressed string table, and a footer with per-section CRC32 checksums. Text is embedded with IBM Granite Embedding 30M; the same model is used at write and at read time.
Recall
A question is ranked against the memories by meaning (centred cosine) and by words (BM25), fused by reciprocal rank, with one place each for the best match of either. A question about a time window ("two weeks ago", "since last month") is ranked among that window's memories.
PRISM
PRISM reads the graph around the answer with a Hopfield/Ising energy model. The neighbourhood of the best matches becomes a network of units: supporting edges couple them, contradicting and blocking edges repel, and each memory's type sets a field bias. The units relax by
to a low-energy state, read out as the memories that answer, the dead ends to avoid, and the rules that apply.
Releases
- Neonmem Workspace 1.4.0 — the agent and the project memory run on Neonmem Server, which the Workspace ships and starts.Release notes
- Neonmem Server 1.1.0 — the coding agent on the server, local models in its process, a model picker.Release notes
- Neonmem Server 1.0.0 — the first release of the server.Release notes
- Neonmem SDK 0.1.0 — the memory file served over MCP, with its command line.Release notes
- Neonmem Workspace 1.2.9 — a cartridge's own search model is used for its search.Release notes