project-memory

A memory for Claude Code that stays on your computer.

Claude starts the next conversation knowing where you stopped, and you can ask about anything from earlier.

Paste into Claude Code:

/plugin marketplace add zdraveski/project-memory
/plugin install project-memory@project-memory

Needs Claude Code and Node.js 22 or newer. Works on Windows, macOS and Linux. Full install steps

View on GitHub

What did we decide about the logo in September?

On 12 September we kept the brain with the code mark, and dropped the green version because it was hard to read.

Found in your journal, with the date.

The next morning, a new conversation.

Let's carry on.

Yesterday we finished the pricing table. The checkout copy is next, so I'll start there.

I deleted the note about pricing by mistake. Bring it back.

Restored pricing.md as it was before you deleted it.

Every change to your notes is kept, so an old version can come back. Needs Git.

Forget the password I pasted this morning.

2 journal entries from today mention it. Remove both?

Yes.

Removed from the journal.

  • Free, MIT license
  • No account
  • No servers of its own
  • About 900 tokens at start

project-memory makes no network connections of its own. Keys and passwords it recognizes are replaced with [redacted] before anything is saved.

v1.5.4, 20 Nov 2026, MIT license, tested on Windows, macOS and Linux with every change.

In plain words

How do I make Claude Code remember past sessions?

Claude Code starts every conversation with a fresh context. The project-memory plugin for Claude Code (zdraveski/project-memory) is free and saves a journal of each exchange and a note of where you stopped, on your own computer. The next conversation starts with a short briefing (about 900 tokens) on the last one, and Claude can search the journal when you ask about earlier work. It needs no account or API key, and runs no server.

Here is what each setup remembers when you stop on Monday evening and open a new conversation on Tuesday.

Monday18:40

Let's stop here.

Pricing comes next.

Claude Code alone

OvernightNothing carries over. The new conversation knows only what is written down in its notes.
Tuesday09:15

Let's carry on.

Sure. What were we working on?

With project-memory

Saved after Monday's last replyasked Let's stop here.
did: Pricing comes next.
Tuesday09:15

Let's carry on.

We stopped before pricing. Starting on it now.

How it works

You work. It keeps track.

Nothing to learn, nothing to run. It works on its own after every reply, looks after the notebook Claude Code keeps for each project and adds a journal of everything you did. It helps most when you return to a project over days or weeks.

  1. Claude replies

    You work with Claude Code as you always do.

  2. The journal grows

    The exchange is saved, one file per day.

    journal/2026-11-01.md
  3. Where you stopped

    The last exchanges are kept for next time.

    handoff.md
  4. The next conversation

    Claude starts with a short briefing on where you stopped, about 900 tokens.

A journal you can ask

Every exchange is kept in full, up to a size limit, one file per day. Ask about earlier work and Claude searches the journal and your notes, then tells you when it happened. The journal is not loaded into the conversation. It is searched only when you ask, by words, not meaning. Type /project-memory:memory page to read it as one page in your browser, a week at a time, with a search box. The page is a file on your computer and loads nothing from the internet.

Keeps old versions of notes (needs Git)

Every version of a note is kept on your computer. Ask, and an old one comes back. Each change records which conversation made it, and what you had asked.

The journal page that memory page writes: a week at a time with a count of exchanges per day, a card for each project, and below them the day's exchanges with what you asked, what Claude answered, the files it changed and a mark when it wrote a note. Search is at the top. The entries shown are made up.
Your journal as one page: /project-memory:memory page. The entries shown are made up. Tap to open full size.

Your privacy

Stays on your computer.

project-memory makes no network connections of its own. What it saves stays in Claude Code's own folder, in your home folder. This page loads nothing from anywhere else, either.

  • No servers of its own

    It needs no account or API key.

  • Keep text out

    Put it between <private> and </private>. Claude's reply to it stays out too.

  • Forget on request

    Ask Claude to forget something. It lists the journal entries and removes the ones you confirm.

Anthropic still sees your conversation, as it does with Claude Code's own memory. Claude Code also keeps its own transcripts, which “forget” does not touch. The tags keep text out of project-memory's files only.

Read the privacy policy

Keys and passwords are not saved.

Sooner or later you paste a key or type a password in chat. Before anything goes into the journal, the handoff or the note kept for after a summary, project-memory replaces the keys and passwords it recognizes with [redacted].

What it removes, and what it misses
  • A key in a command

    export API_KEY=ghp_8fK…

    export API_KEY=[redacted]

  • A password typed in chat

    the password is plum-42…

    the password is [redacted]

  • A cookie

    Cookie: sessionid=a1b2c3…

    Cookie: [redacted]

  • Keys from many services
  • Passwords typed in chat, in many languages
  • Database and command-line passwords
  • Cookies and session ids
  • Look-alike spellings
  • A note that holds a secret stays out of the snapshots, and the startup briefing names it. Promoting it to the notebook all your projects share is refused.

  • On Linux and macOS, the files it writes can be read only by you.

  • No tool catches every secret. A look-alike Cyrillic or Greek letter gets through, for one. Put the rest in <private>.

A secret saved before project-memory learned to recognize it (in notes, journal, handoff or snapshots) can be found with /project-memory:memory rescan. It counts first and changes nothing unless you add --apply --yes. With those it also makes a backup, and that backup still holds the old text.

The full list, in the privacy policy.

Tested before every release

About 2,500 checks run on Windows, macOS and Linux with every change, all passing. The code is scanned for problems every week, and each release gets one review. Every step has a time limit of 5 to 120 seconds, so a stuck step can't hold Claude up.

The test runs and the time limits are on GitHub.

Compared

Claude Code, with and without it.

Claude Code's own memory keeps improving. project-memory adds what is still missing.

NeedClaude Code aloneWith project-memory
Picking up Doesn't know where the last conversation stopped. Starts knowing where you stopped.
Finding past work Older work is hard to find without a journal. A journal of every exchange, found with the date.
Undoing mistakes A deleted or overwritten note is gone. Old versions of notes come back. Needs Git.
Long tasks Shortened to a summary. Notes and recent files come back; the task in progress can get lost. Notes saved first; afterwards Claude is told where it was.
Many projects A CLAUDE.md in your home folder reaches every project, but you keep it by hand. Lessons that apply everywhere reach every project: ask Claude to remember one for all your projects.
Two windows Two windows on one project can overwrite each other. Writes take turns; each conversation keeps its own record.

What it doesn't do

  • It searches by words, not by meaning.
  • It works in Claude Code only.
  • It doesn't sync between computers or teammates.

See how it compares with claude-mem, Mem0, Supermemory and other tools.

Install

Ready in a minute.

Not sure what you have? Ask Claude: “Do I have Node.js 22 or newer, and Git?”

  1. In Claude Code, type these 2 lines. When the second opens a menu, pick the option that installs it for you in every project (it may say user scope).

    /plugin marketplace add zdraveski/project-memory
    /plugin install project-memory@project-memory
  2. Close Claude Code and open it again.

  3. Start a conversation tomorrow. Claude begins with a short note on where you stopped, something like this:

To remove it, type /plugin uninstall project-memory@project-memory. Your notes stay.

Check it works, and update later
  1. To check it's working, run this. No line should start with PROBLEM. A line that starts with note is fine, such as when Git isn't installed.

    /project-memory:memory doctor

    Until Claude finishes its first reply, one line says it's waiting for that reply. That's normal.

  2. To update later, run these 2 lines in a terminal, then restart Claude Code. A marketplace you add yourself does not update on its own. To turn that on, type /plugin, open Marketplaces, choose project-memory and select Enable auto-update.

    claude plugin marketplace update project-memory
    claude plugin update project-memory@project-memory

What you need

  • Claude Code with its built-in memory on. It is, unless you turned it off.
  • Node.js 22 or newer. Choose the LTS version.
  • Git, optional. Without it, everything works except bringing back old versions of notes.
  • Windows, macOS or Linux. Tested on all three with every change.
Experimental

Checked lessons

A note can carry a rule for git commands. project-memory then watches your git commands and logs which note matched. It only watches and logs: it blocks nothing and prints nothing. Few lessons fit this form, and some commands it does not see. It is a 30-day trial, with a keep-or-cut decision on 2026-12-18.

Syntax, limits and how to try a rule on past conversations

enforce:
  on: git add
  has: [-A, --all, .]
  unless: [mktemp, init]

At the top level of a note's front matter (not under metadata:). It logs a hit when a git add command holds -A, --all or a bare dot.

Questions

Questions about project-memory.

All questions and answers. Something missing? Ask in Discussions.

Does it cost anything, or need an API key, account or database?

No. It is free and open source under the MIT license. It keeps plain files on your computer. It needs no account, API key or server, and no AI model writes the memories.

Claude Code can already resume a conversation. Why add this?

/resume reopens one earlier conversation with its whole history, as long as it was when it ended. project-memory starts a fresh conversation with a short briefing on where you stopped, and its journal covers every conversation you don't keep private, not only the one you reopen. Claude Code also deletes its own conversation files after 30 days unless you change that; the journal keeps each exchange until you delete it.

Does it slow Claude down or fill the conversation?

Each conversation starts with a short briefing: about 900 tokens (3,500 characters) on your last conversation, and never more than about 2,400 tokens in all. The note after a summary is larger, usually near that limit. /project-memory:memory doctor shows how long its steps take on your machine.

What if it breaks?

Every step has a time limit of 5 to 120 seconds. Run /project-memory:memory doctor to see what is wrong. To pause it, run claude plugin disable project-memory@project-memory in a terminal and restart Claude Code. To remove it, type /plugin uninstall project-memory@project-memory in Claude Code. Your notes and the journal stay either way; the privacy policy says what to delete by hand.

How much disk space does it use?

Half of the journal entries are under about 5 KB. A very busy project adds up to about 110 MB a year.

Can I use it on two computers?

Each computer keeps its own notes and journal; they don't sync. Don't sync the memory folder yourself (Dropbox, OneDrive): each computer would undo the other's “forget”.

My model holds 200,000 tokens. Do I need to change anything?

Yes, for long conversations. It assumes a window of 1,000,000 tokens, so the reminder to save notes never comes. Ask Claude: “Is my context window 200,000 tokens?” If it is, ask: “Add CLAUDE_CODE_AUTO_COMPACT_WINDOW set to 200k under env in my Claude Code settings,” then restart Claude Code.

On a bigger model, setting it lower than the model's window (such as 800k on a 1,000,000-token model) also asks Claude Code to let a step finish before it shortens the conversation, and even then it doesn't always wait. The note Claude gets after a summary needs no setting. The details.

How do I stop it saving something?

4 ways, from narrow to wide.

  1. One conversation: /project-memory:incognito stops saving this conversation and removes what it already saved. Snapshots of earlier days keep their copy. Typing <private-session> does the same. If it says NOT applied, it did not work.
  2. One project: /project-memory:memory-off saves nothing for this project. Search still finds what was saved before. Resume with memory-on.
  3. All projects on this computer: set the environment variable CLAUDE_CODE_DISABLE_AUTO_MEMORY=1, or disable the plugin.
  4. Claude Code itself: Claude Code's own settings. project-memory does not read or change them, so Claude Code's own memory switch does not stop it.

None of these reaches Claude Code's own files. It keeps its own transcript of every conversation, for 30 days unless you change that. Turning it off, in detail.

Does Claude Code already have memory?

Yes: CLAUDE.md files you write and auto memory notes Claude writes. Neither keeps a journal of every exchange, a note of where you stopped, or old versions of notes; project-memory adds those.

Why does Claude Code forget after compaction?

Claude can only see so much at once: your messages, its replies and the files it reads. When that fills up, Claude Code replaces the conversation with a summary, and details of a task in progress can get lost. project-memory acts at three moments.

  1. Before it gets full: Claude saves its notes.
  2. When it is nearly full: Claude Code is asked to let the step finish. With no room to wait, the step is written down.
  3. After the summary: Claude is told what you asked, what it last said, tasks still running and files it edited.
Does it search by meaning?

No, by words. Ask with words that were used.

Does it work with Cursor or Codex?

No, only with Claude Code.

Stop re-explaining your project to Claude Code.

Free, no account, and saved only on your computer. 2 lines in Claude Code, and it works in every project.

/plugin marketplace add zdraveski/project-memory
/plugin install project-memory@project-memory

Needs Claude Code and Node.js 22 or newer.

If it's useful, a star on GitHub helps others find it.