Logo: Memsaga History

Memsaga History

Communautéit
grimmerk
memsaga-history

Look up the version history of Claude Code's own memory and config — global CLAUDE.md, per-project auto-memory files (MEMORY.md and topic files), and user skills — which memsaga mirrors into a git repo (`memsaga config` shows the path, for example ~/git/memories) on every turn. Use when the user asks what a memory or CLAUDE.md said last week, when a memory was added/changed/deleted and by which session, wants to diff two versions, wants to recover a deleted or overwritten memory file, or mentions memsaga, memories, or the old names memvc / ccmem. The user may ask in any language (for example 記憶の履歴, memory 歷史/版本/還原; examples only).

Iwwersiicht

Editeurgrimmerk
Repositorymemsaga
Skill-Nummmemsaga-history
Stären
21
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    grimmerk huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Memsaga History an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/grimmerk/memsaga/tree/main/skills/memsaga-history
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/grimmerk/memsaga.git /tmp/memsaga
mkdir -p .claude/skills
cp -r /tmp/memsaga/skills/memsaga-history .claude/skills/memsaga-history
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Memsaga History an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Memsaga History automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Memsaga History net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

memsaga history

Live files stay where Claude Code keeps them (~/.claude/..., and one directory per further account, such as ~/.claude-work/...). memsaga copies an allowlist into its data repository (memsaga repo prints its path; ~/git/memories in the examples below) and commits once per turn; the repo is a mirror plus whatever earlier history memsaga init could replay from transcripts. An edit made in the mirror (or on GitHub) is kept and waits until memsaga sync (or the session-start / prompt hooks) brings it to the live file; memsaga status lists what waits. Restoring an older version is an explicit memsaga restore.

Layout of the data repository

claude/CLAUDE.md                                  global CLAUDE.md (the ~/.claude account)
claude/skills/<name>/SKILL.md                     user skills
claude/memory/<name>/{MEMORY.md,*.md}             auto-memory per project; live path is projects/<slug>/memory/
claude-work/...                                   a further account, named after its directory; files it shares through symlinks stay symlinks to claude/
paths.json                                        memory name -> real cwd, e.g. "HOME-git-webapp": "~/git/webapp"
index.md                                          browsable table of every project

A project slug (Claude Code's live directory name) is a path with every non-alphanumeric character replaced by -. For transcripts that path is the cwd; for auto-memory since Claude Code 2.1.275 it is the git common dir, so every worktree and subdirectory of ~/git/webapp shares one directory, and a non-repo directory such as ~/git keeps its own. In the repository a project under home is named without the home: claude/memory/HOME-git-webapp/ (live -Users-me-git-webapp), claude/memory/HOME-git/ for ~/git; a project outside home keeps its slug, and so does every project on a machine where another directory encodes like a path under home (/Users/me-old next to /Users/me), where the home cannot be told apart in the slug. Repositories started before October 2026 used the slugs themselves (claude/memory/-Users-me-git-webapp/); that is a rename, so use --follow. Older slugs such as -Users-me-git-webapp-<worktree>-packages-api are per-cwd leftovers from before that change; their files are still mirrored but no longer loaded.

A commit's subject is [<session title>] <account>:<area>, … (the title cut to 32 characters), or <event>: … when the session had no title. Commit messages carry trailers Event: (PostToolUse / Stop / SessionEnd / backfill / import), Account:, Session: (the Claude session id), Cwd:, Agent:, and Session-Title: (full title, since 2026-10-05).

Recipes (all read-only)

<repo> below is the data repository: read it once with memsaga repo, then write the path itself into each command (a shell variable does not survive from one tool call to the next).

bash
memsaga status                                            # last sweep, pending dirty marker, recent events
git -C <repo> log --since='7 days ago' --date=short --format='%h %ad %s' -- claude/CLAUDE.md
git -C <repo> log -p --follow -- claude/memory/HOME-git-webapp/MEMORY.md
git -C <repo> log --diff-filter=D --since='30 days ago' --name-only --format='%h %ad' -- '*/memory/*'   # deleted memories
git -C <repo> show <sha>^:claude/memory/<name>/<file>.md        # content before a commit (older commits: the slug as name)
git -C <repo> diff <sha1> <sha2> -- claude/CLAUDE.md
git -C <repo> log --format='%h %ad %s%n  %(trailers:key=Session,valueonly)' --date=short -n 20   # which session changed what
git -C <repo> log --grep='^Session-Title: <name>$' --format='%h %ad %s' --date=short   # every commit of one named session (a regex: escape . [ * in the name)

Repositories started before 2026-09-18 stored memory at claude/projects/<slug>/memory/; the commit that moved it is a pure rename, so use --follow (as above) to see history across it, and git show <old sha>:claude/projects/<slug>/memory/<file>.md for content from before it. memsaga restore --at <old sha> handles the old path by itself.

Backfilled history has gaps: an edit made through Bash is invisible to the replay, so a file may jump versions between two backfill: commits. The import: commit that memsaga init made is the first exact snapshot; everything after it is exact.

Restoring

Restoring writes into a live config directory, so: show the user the diff first, get an explicit yes, then run memsaga restore claude/memory/<name>/<file>.md --at <sha>, which shows the diff, asks, writes the file atomically and records a restore event so the next turn commits the restored state. Never git checkout inside ~/.claude; it is not a git repo.

Heefeg gestallte Froen

Wat mécht de KI-Skill Memsaga History?

Look up the version history of Claude Code's own memory and config — global CLAUDE.md, per-project auto-memory files (MEMORY.md and topic files), and user skills — which memsaga mirrors into a git repo (`memsaga config` shows the path, for example ~/git/memories) on every turn. Use when the user asks what a memory or CLAUDE.md said last week, when a memory was added/changed/deleted and by which session, wants to diff two versions, wants to recover a deleted or overwritten memory file, or mentions memsaga, memories, or the old names memvc / ccmem. The user may ask in any language (for exampl...

Firwat Memsaga History op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Memsaga History besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Memsaga History an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/grimmerk/memsaga/tree/main/skills/memsaga-history an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Memsaga History benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Memsaga History benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Memsaga History domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Memsaga History gratis?

Jo. grimmerk huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇