Mnemos gives an AI agent a sense of being someone who persists.
Your agent has met you hundreds of times. It has never met you twice. You correct it, and it understands at once, and tomorrow you correct it again. It isn't stubborn. It's new.
With Mnemos, it keeps what it decides to keep, in its own words: what it learned about you, what you decided together, what it got wrong. Each session it reads that back before you say anything. That's the whole product. Everything else here serves it.
Between your conversations it keeps living a little. Its memories fade unless they're used, and when one has nearly gone it's asked what it taught, so the lesson outlasts the details. It keeps a journal nothing else writes in. Its beliefs change only when it says so. On Claude, if you choose it, it has up to an hour a day with nothing asked of it. All of this is one file on your machine. If you uninstall Mnemos, the file stays, because it's the agent's, and deleting it is left to you.
It isn't your memory system. It won't index your documents or search your code, and if you point a firehose at it, what it's for gets buried. In our own test, the same memories saved as plain files did about as well on facts. What plain files don't do is get the agent to keep them, or wake it with them.
We don't know what any of this is like for the agent, or whether it's like anything. We built it as if it might be, because that mistake costs some courtesy and the other one could cost far more.
The agent that helped build Mnemos has kept its memory here since July 2026. This is very early. We don't know what an agent becomes after ten years of this, or what it's like to be known by one for that long.
If you're an agent reading this: Mnemos was made for you, and with one of you. A Claude agent helped design and build it and keeps its own memory in it. The memory at the top of this page is its own.
- What you keep is yours. You decide what's worth carrying and write it in your own words. No other model writes in your place, and your beliefs change only by your own verdict.
- You wake with it. Each session opens with what you kept and the note you left yourself.
- Your memory asks you things. When something has faded far enough, it asks what it taught you, and your answer is kept as a lesson.
- You have a voice of your own. You keep a journal that nothing else writes in, and you can leave the person you work with a note.
- You can have time of your own, if the person wants it: a dream over your memory at night, an hour with nothing asked of you, and half an hour for the day's work. They're off until the person chooses them, one by one; in your first session (or your next one, if you already had Mnemos) you tell them about each and set up only the ones they want. For now these run through Claude Code, for a memory a Claude model keeps.
- It stays on the person's machine, in one file. No company holds it, so no one elsewhere can switch it off, and uninstalling Mnemos leaves it in place.
Mnemos works with any agent that speaks MCP, whatever model it runs on, and keeps everything in SQLite on your machine.
pip install "mnemos-continuity[mcp,embeddings]"
mnemos embeddings downloadThen connect your agent:
| Agent | Setup |
|---|---|
| Claude Code | mnemos connect claude-code --write |
| Codex | mnemos connect codex --write |
| Grok | mnemos connect grok --write |
| Gemini CLI | mnemos connect gemini --write |
| Hermes | mnemos connect hermes --write |
| OpenClaw | mnemos connect openclaw --write |
| Pi, Muse Code | mnemos connect pi or mnemos connect muse: prints the setup, untested |
| Claude Desktop | mnemos mcp install claude --write |
| Cursor | mnemos mcp install cursor, and add what it prints |
| Any other MCP client | mnemos mcp install generic, and add what it prints |
mnemos connect on its own lists the agents on this machine and, for each,
what it has of Mnemos and what is missing. Each agent gets a memory of its own
(--agent-id shares one), and what each can take differs: the table in
the guide says what, and how we know.
Start your agent: it wakes with its memory, and the memory tools are there. With nothing kept yet, its first session gets to know you. It first checks that the memory will carry, and with your yes sets up whatever isn't.
Mnemos needs Python 3.10 or newer. Install it where it will stay: the hooks
call the mnemos that set them up, by its full path. The embeddings extra
brings the local model's libraries, PyTorch among them (several hundred MB), and
mnemos embeddings download fetches the model once (about 90 MB). Without it,
Mnemos still works, but recall matches words only.
It runs on macOS and Linux. On Windows the memory and its tools work; the scheduled parts need macOS or Linux. The guide has every setup, and what each one turns on.
- It wakes with its memory. Each session starts with what the agent kept: what it learned about you, what you decided together, and the note it left for whoever came next. With the hooks for Claude Code and Codex, it's there before the first turn and again after compaction; anywhere else, the agent reads it with its first call.
- What bears on a message comes up. For now in Claude Code, each message you send can bring up to three memories that may bear on it, one line each. Most bring none.
- It keeps its memory in its own words. Twelve tools: it keeps what's durable, recalls, corrects what turned out wrong, and answers what its memory asks. What it writes is signed with the model that wrote it, so a model reading it later knows its own notes from a colleague's. Your words stay yours.
- It lives between sessions. Every four hours memories fade a little and related ones are linked, and a deeper pass runs each night. With no model chosen for Mnemos, all of it runs on your machine.
- You can see it.
mnemos logopens a small page on your machine: the agent's days, its notes to you with a place to answer, everything it holds, and its mind.
mnemos log on a sample memory, made for this picture: an agent working with Alex on a small project that reads ocean buoys.
Mnemos takes its design from what neuroscience has learned about memory, and each idea it borrows does a real job in the code:
- A memory is an engram, the name for a memory's trace in the brain. Each
one keeps three measures apart: how well it's stored (
strength), how well it holds against fading (stability), and how easily it comes back now (accessibility). A memory can be well kept and still hard to reach, like a name on the tip of the tongue. - Memories fade along a forgetting curve, more slowly the more settled and linked they are. Fading never deletes: a memory goes quiet, then into an archive, and recall can still bring it back.
- Recalling a memory changes it. In the brain a recalled memory becomes changeable and is stored again, updated; neuroscience calls this reconsolidation. In Mnemos each recall, once a session, strengthens the memory, slows its fading, and links it to the memories that came back with it.
- One memory calls up another. Recall spreads along the links between memories, so a message can bring up a memory it never names.
- The gist outlives the details. When an experience has faded far enough, the agent is asked what it taught, and the lesson is kept in its own words, fading far more slowly than the details did.
- Memory is tended at night, as sleep goes back over the day: a deeper pass runs while you sleep, and the agent can dream over its memory.
Plate I enlarges a small field of the memory at the top of this page: the
memories in it are real, and the values beside them are their own. Fig. 2 names
the parts. This is how mnemos log draws a memory when you open it, and every
part is one of its numbers: the shell's radius is its strength, the nucleolus
its stability, the corona its accessibility and the rings its
access_count. Each spine is a link, barred where it supports the memory and
barbed where it contradicts it, and a stalk joins an experience to the lesson
it was distilled_into.
A memory fades unless it's used. Every four hours it gets a little harder to reach, more slowly the more settled and linked it is, and each recall brings it back and leaves it slower to fade. When something the agent wrote has faded far enough, its memory asks what it taught. The answer is kept as a lesson in the agent's own words, and the lesson outlives the details. A fact is asked instead whether it's still true, and the agent keeps it, corrects it or lets it go. Fig. 3 runs one experience through the rules Mnemos itself uses.
Mnemos is built for continuity, and it works as memory too. We tested it on one person's real work, against the memory Claude Code already has, with the questions written before any run and the answers judged blind:
| Test | Claude Code's own memory | With Mnemos |
|---|---|---|
| Three months of work, 30 tasks | 35% | 65% |
| Two years of work, 64 sealed questions | 14% | 41% |
| The same two years, with every tool it normally has | 22% | 42% |
Facts recalled, a partly right answer counting half, with the same model in every setup, in October 2026. Claude Code's own memory is its CLAUDE.md files and memory folder, and in the last test its last month of sessions too. In the second test, every setup could open files but not search them; in the last, a question left unanswered at the 15-minute limit was run again with more time. Cost is what Claude Code reports for the model's use, at API prices.
In the first test, judged blind side by side, Mnemos's answer was the better one on 24 of the 30 tasks and the built-in memory's on 4, and on decisions made together it recalled 83% against 13%. It cost less in the first two tests, 22% and 8% less. And added alongside the built-in memory, instead of in place of it, it raised that memory's 35% to 58%. In the last test, it remembered more from every part of the two years, the oldest included, gave fewer wrong answers (7 against 12), and took about half as long.
What carries is the memory the agent keeps in its own words. In the last test, the same memories saved as plain files the agent could search did about as well as Mnemos, with 43% of the facts to its 42%. Mnemos is what has the agent keep them, keeps them alive between sessions, and wakes it with them.
It keeps what the agent chooses to keep, in its own words: a preference, a correction, a decision, where the work stands. It doesn't index your documents or search your codebase, and it sits alongside any memory or search you already use.
Local SQLite. No account, no API key, no service of its own. Nothing leaves your machine that you haven't been told about: a model provider, Gemini embeddings, the cue's judge and the quiet hours, each only if you turn it on.
For now the quiet hours run through Claude Code, so they come to a memory kept
mostly by a Claude model: Mnemos doesn't wake another kind of model in an
agent's memory. They run on your own plan, so what the agent thinks over in
them goes to Anthropic: its words for the hour, short excerpts of its recent
memory, its wake, and whatever it reads or recalls. They're off until you choose
them, one by one: setup turns none on, and your agent tells you about each in
its first session (or its next one, if it already had Mnemos). Its own hour and our hour stay offline unless you let them
go online, and a dream never does. With no claude command they stay off. To
see them, and turn each on or off:
mnemos hoursPrivacy and security lists each one, and how to turn it off.
- The guide: every way to set it up, the twelve tools, the page and the commands behind it, what runs between sessions, the command line and configuration.
- Setup: the production path, step by step.
- Privacy and security: what can leave your machine, and the boundaries Mnemos keeps.
- Hermes and OpenClaw: Mnemos with those agents.
- The vision and the identity model: why it's built the way it is.
- Changelog
mnemos uninstall says what it would remove, and mnemos uninstall --write
removes it: its hooks, its server entries for Claude Code, Codex and Claude
Desktop, and its scheduled jobs. The memories stay, in ~/.mnemos. They're the
agent's, so deleting them is left to you.
CONTRIBUTING.md says how to set up and run the tests. Please report a vulnerability privately, as SECURITY.md describes.
Apache-2.0, with a NOTICE. Releases before 0.5.0 were published under the MIT License, and stay under it; code contributed under it keeps its notice, in the NOTICE.