claude-memory-sync
Claude remembers your projects. memory-sync makes sure it remembers them on every computer.

Claude Code keeps notes about each project in ~/.claude/projects/*/memory/: what you prefer, what it learned, what to avoid next time. Those notes live on one laptop. Buy a new one, and Claude starts from zero.
memory-sync copies the notes to a private Git repo that you own, and brings them back on any other machine. It works even when your username differs, because it stores paths relative to $HOME.
machine A your private repo machine B
┌─────────────┐ push ┌────────────────────────┐ pull ┌─────────────┐
│ memory │ ──────▶ │ one commit per backup │ ───────▶ │ memory │
│ /Users/alice│ │ data/home-projects/… │ │ /Users/bob │
└─────────────┘ └────────────────────────┘ └─────────────┘
Webpage: gagoar.github.io/claude-memory-sync
Why
- A new computer feels familiar. Run
pull, and every project's notes come back where Claude looks for them.
- Your usernames can differ. Notes saved from
/Users/alice/... land correctly on /Users/bob/..., with no renaming.
- Every backup is a commit.
history shows what changed and when, and Git lets you roll back.
- It is your repo. Nothing goes anywhere except the repo you pick. Keep it private.
- It is gentle.
push does nothing when nothing changed. pull will not overwrite local work unless you add --force.
60-second tour
/memory-sync:sync init # Claude asks where your backup repo lives, and can create a private one for you
/memory-sync:sync push # back up every project
/memory-sync:sync status # see what has drifted
/memory-sync:sync pull # on the other machine: bring it all back
You can also just say "back up my memory" or "set up memory backup". Claude routes to the same flow, and init runs by itself the first time you use any command without a backup repo configured.
Install
Via the gago-plugins marketplace:
/plugin marketplace add gagoar/gago-plugins
/plugin install memory-sync@gago-plugins
/reload-plugins
/memory-sync:sync init
Prefer to install it on its own?
/plugin marketplace add gagoar/claude-memory-sync
/plugin install memory-sync@memory-sync
/reload-plugins
/memory-sync:sync init
The skill asks where to put your backup repo. It offers to create a private one on GitHub with gh, to use a clone you already have, or to clone one from a URL. Your choice is saved in ~/.claude/memory-sync.config.json.
Commands
| You type | What happens |
|---|
/memory-sync:sync init | First-time setup: pick or create your backup repo |
/memory-sync:sync push | Back up new and changed memory, plus your global config |
/memory-sync:sync pull | Restore from your repo (--force overwrites local-only files) |
/memory-sync:sync status | See what has drifted between this machine and the repo |
/memory-sync:sync list | Show the projects and global files that are backed up |
/memory-sync:sync select | Pick which projects to include, with interactive checkboxes |
/memory-sync:sync history | Show recent backup commits: what was backed up, and when (--limit, --since, --paths) |
/memory-sync:sync configure --backup-repo=NEW | Switch to a different backup repo (also --include, --exclude, --reset-projects) |
/memory-sync:sync doctor | Read-only check of your setup. It prints a summary and a block you can paste into a Claude Code session |
/memory-sync:sync migrate | One-time move from an older, non-portable layout |
What gets backed up
- Per-project memory:
~/.claude/projects/*/memory/, stored portably.
- Global config:
~/.claude/CLAUDE.md, ~/.claude/RTK.md, ~/.claude/skills/ and ~/.claude/keybindings.json.
Nothing else under ~/.claude/ is touched. Never settings.json, sessions, cache or plugins.
On a new computer