Claude Code memory that remembers what you decided and puts away what you changed.
Example · What you get · How it works · Results · Install · Questions
Muninn is persistent memory for Claude Code that keeps up when you change your mind. The same plugin works as Codex CLI persistent memory. Each new session of Claude Code or Codex starts from zero, so you explain your project again. Muninn remembers what you decided, and when a decision changes it puts the old one away, so the assistant only sees what is true now. It runs on your computer. You don't need to program, and there is no account, cloud service or API key.
On Monday you tell the assistant to compress files with gzip. On Thursday you change your mind and pick zstd. Two weeks later, in a new session, you ask it to write up how the project compresses files. A typical memory tool hands it both messages, and it may pick the old one. Muninn has retired Monday's decision and hands it only Thursday's, so it writes zstd. The gzip decision is still in your history if you ever want to look.
- It knows the plan before you ask. A new session starts with a short list of the decisions, rules and corrections on record.
- It does not repeat a mistake. What failed last time comes back before it is tried again.
- Your written rules hold.
CLAUDE.mdis the file of instructions you write for Claude Code. When Claude Code ignores CLAUDE.md, a rule you turned into a setting withmuninn compile && muninn applystill blocks the action, and you approve every setting first. - Rules survive a long chat. When the conversation is shortened to fit, rules come back from Muninn, not from the summary: 100 of 100 times in our test.
You never call Muninn. It rides along on the hooks Claude Code and Codex already run:
- A session starts. The assistant gets the list of what is on record.
- You write a message. Muninn looks for your words among the decisions that still stand and hands back the matches, at most 700 tokens, each with its date. No AI model runs here, so the same question gets the same answer.
- The session ends. Muninn reads the conversation and keeps the decisions, rules, corrections and dead ends, in your words.
- A commit changes a value. The decision that named the old value is retired on its own.
The design, every measurement and how to build it from source are in docs/technical-overview.md. What we claim and what we don't is in docs/claims.md, what Muninn leaves out on purpose in docs/scope.md, and the changes between versions in the changelog.
We gave Muninn, claude-mem and agentmemory the same conversations, then asked the assistant for work that depended on a decision that had later changed. A fixed check graded the answers, not an AI judge.
| What was measured | Muninn | claude-mem | agentmemory |
|---|---|---|---|
| Used the current decision after a change in conversation | 252 / 270 (93%) | 208 / 268 (78%) | not in this run |
| …when the change also reached the code | 54 / 54 | 25 / 54 | 1 / 54 |
| Wrote a replaced value into its work anyway | 0 / 54 | 10 / 54 | not measured |
If you are looking for a claude-mem alternative, that is the difference: what happens after you change your mind. The full comparison, the tools not tested yet and the raw results are in docs/why-muninn.md.
Type these two lines in Claude Code, one at a time, then restart it:
/plugin marketplace add illien-dev/muninn
/plugin install muninn@muninn
Then turn memory on in each project where you want it, by typing /muninn:init there. The
status line, /muninn:status, should end in GREEN. It works on Windows, macOS and Linux.
Install in Codex
Run these in a terminal, then open Codex, type /hooks and approve Muninn's hooks:
codex plugin marketplace add illien-dev/muninn
codex plugin add muninn@muninnCodex has no /muninn:init command, so you ask Codex to run muninn init in the project. The
exact message to paste is in docs/install.md.
Updating, removing it from a project and turning CLAUDE.md rules into settings are in
docs/install.md.
Does Claude Code have memory between sessions?
Only what is in CLAUDE.md and Claude Code auto memory, the notes it writes for itself. Neither
puts a changed decision away. Muninn adds long term memory for Claude Code: it keeps the decisions, rules, corrections and dead ends from
earlier sessions and hands the ones that matter back when you write a message.
How do I make Claude Code remember what I decided?
Here is how to make Claude Code remember it: install Muninn and run /muninn:init in the
project. From then on you just talk as usual. To see what it knows, run
muninn why "why did we pick zstd" in a terminal in the project, or ask the assistant to run it.
Why does Claude ignore CLAUDE.md?
CLAUDE.md is read as context, not as a setting, so a rule can be dropped when the conversation
is shortened or skipped during a long task. A rule you turn into a setting with
muninn compile && muninn apply blocks the action whether or not the assistant remembers it.
Does it work as Codex CLI persistent memory too?
Yes. Codex uses the same memory and the same hooks. If you use both assistants on one project,
one init covers both.
Is it a memory MCP server for Claude Code?
No. Muninn is not an MCP server: it works through the hooks Claude Code and Codex already run, so the assistant does not have to remember to call it.
Does it send my conversations anywhere?
No. The memory is a folder called .muninn/ inside your project, and init adds it to
.gitignore so it never reaches a commit. The plugin downloads Muninn once and checks it against
its checksum before it runs.
Will it slow my assistant down, or cost anything?
No. It adds a few thousandths of a second to each message, needs no API key and calls no paid model. The measured times are in docs/install.md.
Does it clash with Claude Code auto memory?
init turns Claude Code's built-in memory off for that project. To keep both, run
muninn init --keep-native.
- It takes more room in the assistant's attention. Its reminders take about 2.4 to 2.6 times the room claude-mem's do. You can switch the per-message reminders off.
- It catches a change best in a sentence. "Let's switch to zstd" is easier to catch than a reply that is just "zstd".
- It cannot always tell which statement is newer. When it cannot, it keeps both, marks them as in conflict, and the assistant is told to ask you. The cases it still misses are listed in the changelog under "Not fixed".
- Languages don't mix well. Ask in English about something decided in Spanish, and it may not find it.
- It is a personal memory. On a team each person has their own, and a
git pushdoes not share it. - It works with Claude Code and Codex only.
In Norse myth, Odin keeps two ravens that fly out over the world every morning and come back at night to tell him what they saw. Huginn is thought; Muninn is memory. Odin says he worries that Huginn may not come back, and worries more for Muninn. Your assistant is Huginn: fast, and every morning it starts from nothing. Muninn is the one that comes back carrying what you decided.
Muninn is © 2026 illien, under the GNU Affero General Public License, version 3 only,
with the extra terms in NOTICE. Anyone may use, change, host and sell it. A changed
version that is shared or offered over a network must publish its source, and every copy keeps
the notice "Based on Muninn by illien". To contribute, read CONTRIBUTING.md.