klar labs Products Open Source Writing Products Open Source Writing Writing · June 20, 2026 · 8 min read

Meet Mnemos

AI agents forget everything the moment a session ends, and most “memory” products just bolt fuzzy search onto a pile of text. Mnemos is different: an open-source memory layer that stores facts with evidence, surfaces contradictions instead of silently overwriting, and forgets what stopped mattering — a brain for your agents, running on your own machine. Here is what it does, and how people use it.

AIMemoryAgentsOpen Source

Every AI agent has the same amnesia. Close the session and it forgets your codebase, your decisions, your preferences — everything it just learned. The usual fix is to stuff a vector database with snippets of text and hope semantic search pulls the right one back. That helps a little, but it is still fuzzy retrieval over a pile of strings. It has no idea what is true, what changed, or what contradicts what.

Mnemos is a different kind of memory. It is open source, runs as a single binary on your own machine, and instead of storing raw text it stores claims — small, checkable statements — each one traceable to the source it came from. When two claims disagree, it says so out loud rather than letting the newer one quietly win. And it does not just sit there between reads and writes: it consolidates, ages, and forgets, the way a memory is supposed to. In short, it behaves less like a database and more like a brain.

A store holds. A memory works. A store holds. A memory works. The same write and read — the difference is everything in between. STORE write bytes on disk read MEMORY write encode · consolidate · forget · retrieve · reflect continuous background processes — deterministic, no LLM read what it recalls tomorrow depends on the work it did overnight

A store holds bytes between a write and a read. A memory does work in between — and what it hands back depends on that work.

What it actually remembers

Give Mnemos a line from a meeting note — “we decided to drop the legacy API by Q3, and the new one averages 45ms” — and it does not save the sentence. It extracts two claims: a decision (drop the legacy API by Q3) and a fact (new API ≈ 45ms), each tagged with a type, a confidence, and a link back to the exact note it came from. Ask it later what you decided about the API and you get the decision back with its evidence attached — not a paragraph it hopes is relevant.

Now suppose a week later someone writes “the legacy API stays until Q4.” A vector store would happily keep both and hand your agent whichever one ranks higher. Mnemos notices the two decisions collide and flags them as contested — so instead of confidently asserting the wrong quarter, it surfaces the conflict and lets a human settle it. Raising contradictions instead of burying them is the entire point of an evidence layer.

Most memory for AI answers “what text looks similar to my question?” Mnemos answers a harder one: “what do we actually know, what is it based on, and where does it disagree with itself?”

It behaves like a brain

Storing facts well is only half of it. A real memory does work in the background, and Mnemos runs the same handful of processes a brain does: it encodes new input into claims, consolidates them on a cycle, forgets what has gone weak or stale, retrieves with evidence when asked, and — unusually — reflects, taking the vital signs of its own memory the way you would check a patient.

One brain, five organs One brain, five organs The processes a memory needs — run continuously, deterministically, and now on a sleep cycle. 1 Encode capture → claims, salience-gated 2 Consolidate dedupe · reinforce · replay 3 Forget low-trust & stale beliefs decay 4 Retrieve hybrid recall + self-correction 5 Reflect health vitals — the brain, self-measured

The five processes a memory needs. Mnemos runs each one continuously — and the fifth, reflect, is the memory measuring its own health.

That self-measuring habit is rare in a memory system, and it is where a lot of the interesting engineering lives — enough that we wrote a separate, more technical piece on how a brain takes its own vitals and what running one in production taught us about counting the right thing.

How people use it

There are two ways in, depending on whether you are wiring up an agent or building an app. Both are local-first, and both leave your data on your side.

Give your coding agent a memory

If you use an AI coding assistant like Claude Code, this is one command. Mnemos detects your setup and wires itself in through the assistant’s own hooks: it recalls relevant past knowledge before each task, briefs itself at the start of a session, and captures what was learned at the end — automatically, with nothing to call. It even consolidates on a nightly sleep cycle, so the memory stays healthy on its own.

# wire Mnemos into your AI coding assistant
mnemos init
One command wires in recall, brief, and capture plus a nightly consolidation. Nothing to call — your agent just starts remembering.

From then on your agent remembers your architecture decisions, the bug you fixed last month, and why you chose Postgres over the alternative — across sessions, across projects, even across machines, because the brain is yours and lives where you put it.

Build it into your app

If you are building your own AI product, Mnemos is an HTTP API — no SDK, any language. Putting knowledge in and recalling it with evidence months later is a couple of calls:

# put knowledge in — Mnemos extracts claims and finds contradictions
curl -X POST localhost:7777/v1/process \
  -d '{"text": "We chose Postgres over DynamoDB for cost predictability."}'

# recall it later, with evidence — months on, same brain
curl "localhost:7777/v1/search?q=which+database+did+we+choose"
No SDK. Any language with an HTTP client. Put text in; get evidence-backed answers out.

Under the hood it runs a small pipeline — ingest, extract, relate, query — but you only ever touch the two ends: you put text in, and you ask questions and get evidence-backed answers out. It runs on SQLite by default, so there is nothing to provision, and scales to Postgres, MySQL, or libSQL when you need it. There is also an MCP server, so agents can read and write the brain as a native tool.

Own your memory

The reason Mnemos exists is ownership. Hosted memory services put your users’ data in someone else’s cloud and bill you per call; Mnemos is a binary you run, with your data in your own storage. That is the difference between a nice-to-have and something you can put in a regulated, on-prem, or air-gapped stack. It is MIT-licensed and local-first — no account to create, and no telemetry leaves your machine unless you turn it on.

1 binary pure Go, no vendor cloud, no per-call billing
evidence every claim traces back to the source it came from
MIT open source, local-first, your data stays yours

Memory is the piece most AI stacks bolt on last and trust least. Mnemos treats it as the foundation: structured, evidence-backed, contradiction-aware, and yours. Give your agents that, and they stop starting from zero every morning.

Give your agents a memory they own

Mnemos is MIT-licensed, a single Go binary, and local-first. Install it, run `mnemos init`, and your agent starts remembering — with evidence.

Get started on GitHub
← All writing