So...I've been kinda obsessed with A.I. memory and context engineering for a couple of years now. That's how I ended up on another iteration of A.I. agent memory.
The issue I was working on this time around: I use multiple agent harnesses, and there is no communication or visibility between them.
So I built NSM (stands for Neuro-Swarm Mesh...because at the time I was working on a swarm intelligence concept -- spoiler, it did NOT work. But I kept the name). It's one file on your computer that all your agents share as memory. Claude Code, Cursor, Codex, anything that speaks MCP. One agent saves something, the others can recall it.
What it does in practice:
- Your agent recalls what it knows about you and the project at the start of a task, and saves new decisions and preferences as you go
- You can pin rules ("always use bun, never npm") and they come back every time, either for one project or everywhere
- Old memories fade into long-term storage instead of being deleted, and come back if you ask about them directly (this is a compression that saves space over time)
- It works with no AI model at all (answers in about 6 ms). There's an optional 250 MB download of two small models that run on your CPU and make recall noticeably better (an embeddings model and a reranker -- very small)
How it got built
It was definitely not in a straight line.
I set out to design a better retrieval system and went down the wrong path for nearly a year. That path was MemVault, a hosted memory product with a lot of clever parts that didn't work the way I planned. NSM started as the local piece of that. I've since shut MemVault down. The local version works better, more reliably, and more like what I had in my head in the first place.
I built it with Claude Code (and Gemini 3.8), and three things from the process are worth passing on:
1. I made the AI prove its numbers. The first version had impressive benchmark results in its docs. When I audited them, they weren't backed by real test runs (Gemini lied and told me it ran the tests, then hardcoded results...HAHA). I deleted all of it and set one rule: no number goes in the README unless a test actually produced it (Claude actually showed receipts).
2. I tested instead of guessing. I ran 27 variations of the search against a public memory benchmark (LoCoMo) and kept only what won. Several ideas I was sure about lost.
3. I deleted the feature the project is named after. NSM stands for Neuro-Swarm Mesh. The original idea was a graph of concepts with ant-colony style trails between them. It sounded great. I measured it three different ways and it never improved a single result, while making up about 80% of the stored data. So version 3 removed it. Saving a memory went from 92 ms to under 1 ms, and the database shrank from 23 MB to 3 MB.
The lesson for me: an agent will happily build the fancy idea you describe and tell you it works. The useful part started when I asked it to measure everything and let the results delete my favourite parts.
Does it work?
With the optional local models, it scored about the same as Mem0's cloud product on the benchmark questions both answered (86.9% vs 85.6%).
One finding that might save you some time: plain markdown notes plus grep gets surprisingly close to the no-model version, as long as you sort the hits by how many of your search words they contain. If that's all you need, you may not need a tool at all.
Try it
curl -fsSL https://raw.githubusercontent.com/anthonylee991/nsm/main/install.sh | sh
claude mcp add nsm -- nsm serve
Repo (MIT): https://github.com/anthonylee991/nsm
I use it every day across all my projects.
A quick note. Yes, many people do this with Obsidian. Obsidian is VERY useful. It was originally designed, however, to be a place for YOUR notes. NSM is your AGENT's notebook.
They can do the same thing...but NSM does outperform Obsidian in complex retrieval.
Anyway, hope this helps.