Logo di Memsaga History

Memsaga History

Community
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).

Panoramica

Pubblicato dagrimmerk
Repositorymemsaga
Nome della skillmemsaga-history
Stelle
21
Fork
0
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da grimmerk su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Memsaga History in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/grimmerk/memsaga/tree/main/skills/memsaga-history
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Memsaga History in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Memsaga History non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Memsaga History non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Memsaga History su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Memsaga History è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Memsaga History in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/grimmerk/memsaga/tree/main/skills/memsaga-history. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Memsaga History?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Memsaga History?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Memsaga History: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Memsaga History è gratuita?

Sì. È pubblicata su GitHub da grimmerk con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇