v0.16.0: one memory for the whole team, wherever the repo lives

Teach your AI once.Every machine remembers.

Claude Code, Cursor and Codex learn your project as you work. Open your other laptop, your desktop or a server and that knowledge is gone. memgit keeps one memory with history, and memgit cloud has it waiting on every machine, loaded in about a second, end-to-end encrypted.

No card. The 14 days start when your second machine connects.

Or pip, npm, brew, VS Code or Windows. MIT open source, no telemetry.

One memory for

Claude CodeCursorCodex CLIGemini CLIVS CodeWindsurfAny MCP tool

See it happen

Save on one machine. It is already on the other.

Real commands against memgit cloud, trimmed for length; two stores stand in for the laptop and the desktop, and the undo runs on a local store.

The problem

Your AI remembers. On one machine.

Claude Code's own docs say its auto memory is machine-local: not shared across machines or cloud environments (Claude Code docs). Everything it learned stays where it learned it.

Without memgit

Monday, laptop

You teach Claude that migrations go through Alembic. It gets it right all afternoon.

Tuesday, desktop

Same repo, new machine. It writes raw SQL against production again.

Wednesday, the CI agent

Never heard of the rule. You explain it a third time.

With memgit

Monday, laptop

You teach it once. memgit saves the rule as a versioned memory.

Tuesday, desktop

The rule is already there before your first prompt.

Wednesday, the CI agent

Same memory, same rule, and a teammate's agent has it too.

memgit cloud · the paid server

Your memory, on every machine, without thinking about it.

The free CLI keeps memory on one machine. memgit cloud is the hosted server that connects all of them: two commands once, then every machine and every teammate works from the same memory, end-to-end encrypted.

  1. 1memgit cloud signupon your first machine
  2. 2memgit cloud loginon each other machine
  3. 3Keep workingthat is the whole setup
Start 14 days free

No card. $12 a month after, or $8.25 a month yearly.

what one save does
laptopsavedb-migrations-use-alembic
cloudstore2 objects, encrypted on the laptop
desktoppullat session start
desktopreadyClaude sees the rule before your first prompt

An outline of a real sync, not a terminal capture.

It just syncs

Every save goes up in the background and every session starts with the latest. There is no sync command to remember.

About a second

A rule saved on one machine loaded in the next session on another in 0.92 s, measured on 11 November 2026.

Private by design

Your keys come from your passphrase, on your machine. The server stores ciphertext and cannot read a word of it.

Your team's memory

Invite a teammate and the conventions you taught your agent reach theirs. Each member gets their own sealed key.

Undo travels too

Roll back a bad edit on one machine and every machine gets the fix, with the full history kept.

Servers and agents

A headless box or an always-on agent stays current with memgit cloud watch, no person needed.

Free, open source

When an agent gets it wrong, one command puts it back.

Agents that keep memory also rewrite it. memgit stores every memory as a versioned object and every session as a checkpoint, so you can see exactly what changed and undo it. The CLI is MIT licensed, needs no account and runs fully offline.

Recall

Only the memories relevant to the task are loaded.

History

log and diff show every change, by session.

Rollback

A bad edit becomes a new checkpoint that undoes it.

# an agent overwrote a team rule

$ memgit diff --full

~ db-migrations-use-alembic

RULE: Run ALTER TABLE directly on prod

WAS: Schema changes go through Alembic

$ memgit rollback HEAD~1 --yes

Rolled back, new checkpoint 4eecc652

$ memgit show db-migrations-use-alembic

RULE Schema changes go through Alembic, never raw SQL in prod

Pricing

Free on one machine. Pro on all of them.

Try memgit cloud free for 14 days. The clock only starts when your second machine connects, so you get all 14 days of actual syncing.

Free

$0forever

The whole local engine, MIT open source.

Install free
  • Full CLI: init, add, search, log, diff, rollback
  • MCP server for Claude Code, Cursor, Codex, Gemini CLI, Windsurf
  • Session-start digest and per-prompt recall
  • Unlimited memories, checkpoints and projects
  • Offline, no account, no telemetry
14 days free, no card

memgit Pro

$8.25/ month$12

$99 billed once a year, for all your machines.

Start 14 days free Skip the trial and buy now
  • Everything in Free, never gated
  • memgit cloud: every save reaches every machine on its own
  • End-to-end encrypted: the server stores ciphertext only
  • Team memory with a sealed key per member
  • Servers and always-on agents with memgit cloud watch
  • Pay with your account email and Pro turns on by itself

If you stop, uploads stop at once, pulls keep working for 3 days, and every memory stays readable on your machines.

Billed in USD by Polar, merchant of record, taxes included at checkout. See the Terms and Refund Policy.

Questions people ask before they start

Do I need an account to use memgit?+

No. The CLI, the MCP server and every local command are free, MIT licensed and work offline with no account. You only sign up for memgit cloud, the sync server.

Can you read my memories?+

No. Your keys are derived from your passphrase on your machine and every memory is encrypted before it leaves. The server stores ciphertext. That is also why a lost passphrase cannot be recovered.

When do the 14 free days start?+

When your second machine connects or a teammate joins, since that is when sync starts doing something. If neither happens, they start 30 days after signup.

What happens if I stop paying?+

Uploads stop at once and pulls keep working for 3 days, so you can bring your copy onto any machine. After that the server refuses sync for the account until you renew. The memories on your machines stay readable and exportable.

Which tools does it work with?+

Claude Code (plugin or MCP), Cursor, Codex CLI, Gemini CLI, Windsurf, VS Code and any MCP client. memgit init finds the ones you have and connects them to one store.

Does memgit send telemetry?+

No. The only network calls are the install, memgit cloud sync if you sign up, and a licence check if you activate a key. Run grep -rlE 'urlopen|httpx' on the source to see every file that connects.

Get started

Running in 30 seconds.

Pick where you work. One command, and your AI starts remembering. Free, open source, no account.

>/plugin marketplace add code4161/claude-plugins
>/plugin install memgit@memgit

Inside Claude Code. Needs Node.js and Python 3.11 or newer.

  1. 1

    Paste both lines

    Into Claude Code, as two messages.

  2. 2

    Start a new session

    The plugin installs memgit and creates your store on its own.

  3. 3

    Keep working

    Relevant memories arrive with every prompt, and Claude is reminded to save what it learned.

Work on more than one machine?

Run memgit cloud signup here and memgit cloud login on the next one. Your 14 free days start then.

Start free

For AI Agents

Copy for LLM.

One paste and your agent installs memgit end-to-end — picks the right install path for the OS, wires up MCP, and adopts memgit as its version-controlled memory. Every command in the prompt is real.

Operating system

Install method

agent-adoption prompt · any OS · auto install~1964 tokens
MEMGIT — INSTALL & ADOPT AS YOUR MEMORY SYSTEM (https://memgit.dev)

You are an AI agent on a machine where memgit should be installed and adopted
as your persistent, version-controlled memory. memgit is git for AI memory:
a local store (a real git repo of human-readable .toon files) that gives you
BM25 relevance search (load only what matters instead of everything),
checkpoints, history, diffs between any two memory states, safe rollback
(nothing is ever deleted), threads (branches), and native MCP tools.
Treat it exactly like git for code: atomic memories, meaningful checkpoints,
reviewed diffs, and rollback when memory gets polluted.

Every command below is real — do not invent flags. Complete all three phases,
then report back.

━━ PHASE 1 · INSTALL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Detect the OS and available package managers, then take the FIRST path that matches:
1. Python 3.11+ with pip (any OS):
   pip install memgit
   (or "pipx install memgit" for an isolated install)
2. Homebrew (macOS / Linux):
   brew tap code4161/tap && brew install memgit
3. Windows without Python:
   install Python 3.11+ from https://python.org (check "Add python.exe to PATH"),
   then: pip install memgit
4. No Python available, Node.js present (MCP-only mode):
   skip the CLI install — run the MCP server directly with: npx -y memgit-mcp
   (CLI commands below then map to the MCP tools instead)
Optional — VS Code: additionally install the "memgit" extension
   (publisher: code416-memgit) for the visual memory timeline — it complements,
   not replaces, the CLI/MCP install.

Verify: memgit --version

━━ PHASE 2 · INITIALIZE & WIRE INTO YOUR HOST TOOL ━━━━━━━━━━━━━━━━━━━━━━━
1. memgit init
   Auto-picks the store location: ~/.claude/memgit-store (Claude Code),
   ~/.cursor/memgit-store (Cursor), ~/.windsurf/memgit-store (Windsurf),
   else ~/.memgit-store. Pass a directory to override. Safe to re-run.
   init also auto-finds existing Claude Code memories and offers to import
   them on the spot (auto-imports when non-interactive).
2. If you skipped that import, run it anytime (no path needed — it auto-finds
   ~/.claude/projects/*/memory):
   memgit sync
3. Register the MCP server with whichever tool you run inside (safe to re-run):
   memgit setup claude-code | claude-desktop | cursor | windsurf | cline | continue | gemini-cli
   or: memgit setup all              (auto-registers every detected tool)
   or: memgit setup print-config     (prints MCP JSON for any other client;
                                      the server command is: npx -y memgit-mcp)
4. If the host tool is Claude Code, also run:  memgit setup hooks
   This wires memory in so it happens automatically, not on your judgment:
   SessionStart injects the "memgit resume" digest; UserPromptSubmit injects
   the memories relevant to each prompt (BM25, silent when nothing is relevant);
   Stop nudges you to save anything durable you learned and syncs markdown
   memories. (--no-recall / --no-guard opt out of the per-prompt / capture hooks.)
5. Restart the host tool so the MCP tools load. You will then have:
   resume_session · search_memories · get_memory · list_memories · save_memory · get_checkpoint_log
6. Health check: memgit status && memgit log

━━ PHASE 3 · ADOPT THE DOCTRINE (this is the point) ━━━━━━━━━━━━━━━━━━━━━━
From now on, memgit is your system of record for what you learn:

RESUME BEFORE ASSUMING — when a request presupposes shared history ("continue",
  "the pending tasks", "that bug from before", a fresh session after a break),
  run:  memgit resume   (or MCP resume_session). It is the authoritative record
  of the last actions taken; an open file only shows what the user is looking at.

RECALL FIRST — before answering anything about past work, decisions, or
  preferences, search:  memgit search "query" --toon   (or MCP search_memories).
  Never claim you don't remember without searching.

SAVE QUALITY, NOT VOLUME — one atomic, durable fact per memory:
  memgit add <kebab-slug> "<the fact>" -t <type> -w "<why>" -W "<when to apply>" --tags a,b -p <1|2|3>
  Types: fb=feedback · us=user · pj=project · rf=reference · cn=convention ·
  lx=lesson · co=core (per-project operating guide) · tr=tracker (LIVE status
  of one entity, slug <entity>-status — update by re-saving the same slug;
  memgit is the authority for this status, files are downstream).
  Priority: 3=critical (always loaded) · 2=default · 1=low
  Long-form detail goes in --body "<full multi-line detail>" (or --body - to
  read stdin) — the one-line fact stays searchable, the body stays lossless.
  Scope to a workspace with --project <label>; MCP save_memory does this
  automatically from the cwd. Search and recall are FILTERED to the current
  project's family plus explicitly-global memories (v0.7.0) — widen with
  --all-projects / all_projects: true when you really mean the whole store.
  A save with no determinable project is quarantined as _unknown, never
  silently global; mark true globals explicitly with --global / project: "".
  Save: user corrections (fb), durable preferences (us), project decisions and
  status (pj), hard-won lessons (lx), team conventions (cn), key links (rf),
  live entity state (tr).
  Skip: session chatter, secrets, anything derivable from the code itself.

CORRECT BY SUPERSEDING — when a saved memory turns out wrong or outdated,
  save the correction with supersedes=[old-slug] (MCP) or
  --supersedes old-slug (CLI) instead of a "CORRECTED:" prefix or a duplicate.
  Superseded memories stop surfacing in search/recall/resume automatically;
  history is preserved and "memgit list" still shows them marked.

BOOTSTRAP A BLANK PROJECT — adopting memgit on an existing codebase mid-project
  leaves the store empty for that project. Run:  memgit onboard
  It prints the seeding brief: read README/docs/manifests + recent git log,
  extract 10-20 durable facts, save each as a typed memory, then checkpoint
  with:  memgit commit -m "onboard: <project>". Do this once per project.

CHECKPOINT AT MILESTONES — after meaningful work (task done, decision made,
  session handoff):  memgit commit -m "what changed and why"
  Checkpoints are your cross-session history; write messages a future agent
  can act on.

REVIEW & REPAIR LIKE GIT —
  memgit log                          history of checkpoints
  memgit diff                         what changed between memory states
  memgit rollback HEAD~1 --dry-run    preview an undo
  memgit rollback HEAD~1 -y           undo memory pollution (history preserved)

KEEP THE STORE HEALTHY — the store tells you when it needs care: resume/status/
  stats print a maintenance hint (with the exact command) past 500 checkpoints
  or 50 MB. Act on it when you see it.
  memgit stats    token-savings proof + store health (--json for terse output)
  memgit lint     memory quality issues
  memgit fsck     integrity check
  memgit gc       reclaim space (--dry-run first; --squash-keep N to compact too)
  memgit squash   compact old history (collapsed checkpoints are archived, not lost)

MULTIPLE AGENTS, ONE STORE — writes are lock-serialized and concurrent commits
  auto-merge, so parallel agents are safe. For isolated workstreams:
  memgit thread create <agent-name>, work, then memgit merge <agent-name>.
  Set MEMGIT_AUTHOR=<agent-name> so checkpoints record who did what.

SYNC & SHARE (optional) — stores are plain git repos; use "memgit git ..."
  to push/pull memories across machines and teammates.

━━ REPORT BACK ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Tell the user: the install path used, memgit --version output, where the
store lives, which tools were registered, and the output of memgit status.
Then save your first memory: a 'cn' mnemonic recording that memgit is now
the memory system of record on this machine.

Works with Claude Code, Cursor, Windsurf, Cline, Continue, Claude Desktop — or any MCP client via memgit setup print-config.

Your AI learned a lot this week. Keep all of it.

Two commands on your first machine, one on the next. Then every session, on every machine, starts with everything it already knows.

No card. Cancel any time. MIT open source CLI.

Setup tips by email: four short emails over ten days, unsubscribe in one click.

memgit cloud

14 days free, no card

Start free