toon-memory 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +7 -5
- package/README.es.md +7 -5
- package/README.fr.md +7 -5
- package/README.ja.md +7 -5
- package/README.ko.md +7 -5
- package/README.md +140 -9
- package/README.pt-br.md +7 -5
- package/README.zh.md +7 -5
- package/dist/cli/setup.js +1356 -28
- package/mcp/server.js +173 -2
- package/package.json +6 -2
- package/src/cli/agents.ts +10 -9
- package/src/cli/commands.ts +1 -1
- package/src/cli/config-writer.ts +90 -3
- package/src/cli/hooks.ts +2 -2
- package/src/cli/opencode-plugin.ts +58 -11
- package/src/cli/setup.ts +16 -7
- package/src/cli/types.ts +4 -2
- package/src/lib/checkpoint.ts +132 -0
- package/src/lib/graph.ts +16 -0
- package/src/lib/quality.ts +18 -1
- package/src/mcp/config.ts +5 -0
- package/src/mcp/prompts.ts +55 -0
- package/src/mcp/session-store.ts +276 -0
- package/src/mcp/tools.ts +177 -1
- package/src/viewer/data.ts +49 -0
- package/src/viewer/html.ts +880 -0
- package/src/viewer/index.ts +76 -0
- package/src/viewer/server.ts +1 -0
- package/src/viewer/types.ts +29 -0
package/README.de.md
CHANGED
|
@@ -63,7 +63,7 @@ Lies [So macht toon-memory deinen KI-Agenten klüger](https://luiggival08.github
|
|
|
63
63
|
|
|
64
64
|
## Funktionen
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29 MCP-Werkzeuge** — Vollständige Speicherverwaltung über das Model Context Protocol, inklusive `memory_smart_recall` (einheitlicher Recall), `memory_sessions` zur Mehrzellen-Koordination und `context_*`-Werkzeuge zur Kontextgenerierung mit einem Aufruf (Briefing, Diff, Focus, Gesundheitsprüfung, Export)
|
|
67
67
|
- **MCP-Ressourcen** — Lese Speicher als Kontext ohne Werkzeugaufrufe, inklusive eines System-Primers (automatisch generierte Wissenskarte)
|
|
68
68
|
- **15 unterstützte Agenten** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
69
|
- **Interaktiver Installer** — Wähle aus einem Menü, welche Agenten konfiguriert werden sollen
|
|
@@ -142,7 +142,7 @@ memory_remember # Speichere wichtige Entscheidungen
|
|
|
142
142
|
|-------|-------------------|--------|-------|------------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | Plugin | SessionStart (Plugin, kein übergeordnetes `hooks`) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # Speichere wichtige Entscheidungen
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (kein SessionStart-Event) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 Anleitung |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # Speichere wichtige Entscheidungen
|
|
|
185
185
|
| `memory_merge_sessions` | Fusioniert Beobachtungen aus parallelen Sitzungen für eine Datei. Dedupliziert und befördert automatisch |
|
|
186
186
|
| `memory_export_gist` | Exportiert Einträge zu einem GitHub Gist (öffentlich oder privat). Verwendet GITHUB_TOKEN oder gh CLI |
|
|
187
187
|
| `memory_import_gist` | Importiert Einträge von einem GitHub Gist. Fusioniert mit bestehenden Einträgen (Tag-Vereinigung, max. Vertrauen) |
|
|
188
|
+
| `memory_merge_similar` | Finde Einträge mit >50% Wortähnlichkeit (Jaccard) und merge sie deterministisch |
|
|
189
|
+
| `memory_graph_path` | Kürzester BFS-Pfad zwischen zwei Einträgen im Wissensgraph |
|
|
188
190
|
| `context_brief` | **Kontext-Briefing mit einem Aufruf**: Speicher + Sitzungen + Gesundheit als kompaktes Markdown. Ersetzt 5–6 separate `memory_*`-Aufrufe. Kein LLM, rein deterministische Aggregation |
|
|
189
191
|
| `context_generate` | **Vollständiges Projekt-Briefing**: Kombiniert Projektstruktur, Git-Zustand, Speichereinträge und aktive Sitzungen in einem Aufruf. Ersetzt 5–6 manuelle Werkzeugaufrufe |
|
|
190
192
|
| `context_diff` | **Inkrementelles Briefing**: Git-Commits + geänderte Dateien + neue/aktualisierte Speichereinträge + aktive Sitzungen seit der letzten Sitzung |
|
|
@@ -833,7 +835,7 @@ Füge zu `.opencode/opencode.json` oder `~/.config/opencode/opencode.json` hinzu
|
|
|
833
835
|
|
|
834
836
|
### Claude Code
|
|
835
837
|
|
|
836
|
-
Füge zu `.
|
|
838
|
+
Füge zu `.mcp.json` (Projektroot) hinzu:
|
|
837
839
|
|
|
838
840
|
```json
|
|
839
841
|
{
|
|
@@ -1162,7 +1164,7 @@ toon-memory/
|
|
|
1162
1164
|
│ │ ├── setup.ts # CLI-Befehle
|
|
1163
1165
|
│ │ └── toon-memory.ts # CLI-Läufer
|
|
1164
1166
|
│ ├── mcp/
|
|
1165
|
-
│ │ └── server.ts # MCP-Server (
|
|
1167
|
+
│ │ └── server.ts # MCP-Server (29 Werkzeuge + 3 Ressourcen)
|
|
1166
1168
|
│ ├── lib/
|
|
1167
1169
|
│ │ ├── lock.ts # Beratender Dateilock + atomares Schreiben
|
|
1168
1170
|
│ │ ├── sessions.ts # Mehrzellen-Koordination
|
package/README.es.md
CHANGED
|
@@ -63,7 +63,7 @@ Lee [Cómo toon-memory Hace tu Agente de IA más Inteligente](https://luiggival0
|
|
|
63
63
|
|
|
64
64
|
## Características
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29 herramientas MCP** — Gestión completa de memoria vía Model Context Protocol, incluyendo `memory_smart_recall` (recall unificado), `memory_sessions` para coordinación multi-sesión, herramientas `context_*` para generación de contexto en una sola llamada, `memory_compress` (compresión con LLM), `memory_compress_all` (compresión por lotes), `memory_primer` (contexto auto-inyectado), `memory_merge_sessions` (fusión multi-sesión), y `memory_export_gist`/`memory_import_gist` (sincronización con GitHub Gist)
|
|
67
67
|
- **Recursos MCP** — Lee memoria como contexto sin invocaciones de herramientas, incluyendo un System Primer (mapa de conocimiento auto-generado)
|
|
68
68
|
- **15 agentes soportados** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
69
|
- **Instalador interactivo** — Selecciona qué agentes configurar desde un menú
|
|
@@ -147,7 +147,7 @@ memory_remember # Guarda decisiones importantes
|
|
|
147
147
|
|--------|---------------------|---------|-------|------------|
|
|
148
148
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | Plugin | SessionStart (plugin, sin `hooks` de nivel superior) | ✅ |
|
|
149
149
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
150
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
150
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
151
151
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
152
152
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
153
153
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -155,7 +155,7 @@ memory_remember # Guarda decisiones importantes
|
|
|
155
155
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
156
156
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
157
157
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
158
|
-
| **Antigravity** | `.
|
|
158
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (sin evento SessionStart) | ✅ |
|
|
159
159
|
| **Aider** | — | — | — | 📝 Instrucciones |
|
|
160
160
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
161
161
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -190,6 +190,8 @@ memory_remember # Guarda decisiones importantes
|
|
|
190
190
|
| `memory_merge_sessions` | Fusiona observaciones entre sesiones paralelas para un archivo. Deduplica y opcionalmente auto-promueve a memoria |
|
|
191
191
|
| `memory_export_gist` | Exporta entradas de memoria a un GitHub Gist (público o privado). Usa `GITHUB_TOKEN` o `gh` CLI para autenticación |
|
|
192
192
|
| `memory_import_gist` | Importa entradas desde un GitHub Gist. Fusiona con entradas existentes (unión de tags, máxima confianza) |
|
|
193
|
+
| `memory_merge_similar` | Encontrar entries con >50% similitud de palabras (Jaccard) y mergearlas determinísticamente |
|
|
194
|
+
| `memory_graph_path` | Camino BFS más corto entre dos entries en el knowledge graph |
|
|
193
195
|
| `context_brief` | **Briefing de contexto en una llamada**: memoria + sesiones + salud en markdown compacto. Usa en lugar de 5-6 llamadas manuales de memory_*. Cero LLM, agregación puramente determinística |
|
|
194
196
|
| `context_generate` | **Briefing completo del proyecto**: combina estructura del proyecto, estado de git, entradas de memoria y sesiones activas en una llamada. Reemplaza 5-6 llamadas manuales de herramientas |
|
|
195
197
|
| `context_diff` | **Briefing incremental**: commits de git + archivos modificados + memoria nueva/actualizada + sesiones activas desde la última sesión |
|
|
@@ -838,7 +840,7 @@ Agrega a `.opencode/opencode.json` o `~/.config/opencode/opencode.json`:
|
|
|
838
840
|
|
|
839
841
|
### Claude Code
|
|
840
842
|
|
|
841
|
-
Agrega a `.
|
|
843
|
+
Agrega a `.mcp.json` (raíz del proyecto):
|
|
842
844
|
|
|
843
845
|
```json
|
|
844
846
|
{
|
|
@@ -1167,7 +1169,7 @@ toon-memory/
|
|
|
1167
1169
|
│ │ ├── setup.ts # Comandos CLI
|
|
1168
1170
|
│ │ └── toon-memory.ts # Ejecutor CLI
|
|
1169
1171
|
│ ├── mcp/
|
|
1170
|
-
│ │ └── server.ts # Servidor MCP (
|
|
1172
|
+
│ │ └── server.ts # Servidor MCP (29 herramientas + 3 recursos)
|
|
1171
1173
|
│ ├── lib/
|
|
1172
1174
|
│ │ ├── lock.ts # Lock de archivo Advisory + escritura atómica
|
|
1173
1175
|
│ │ ├── sessions.ts # Coordinación multi-sesión
|
package/README.fr.md
CHANGED
|
@@ -63,7 +63,7 @@ Lisez [Comment toon-memory rend votre agent IA plus intelligent](https://luiggiv
|
|
|
63
63
|
|
|
64
64
|
## Fonctionnalités
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29 outils MCP** — Gestion complète de la mémoire via le Model Context Protocol, incluant `memory_smart_recall` (rappel unifié), `memory_sessions` pour la coordination multi-session, et les outils `context_*` pour la génération de contexte en un seul appel (briefing, diff, focus, audit de santé, export)
|
|
67
67
|
- **Ressources MCP** — Lire la mémoire comme contexte sans invoquer d'outils, incluant un System Primer (carte de connaissances auto-générée)
|
|
68
68
|
- **15 agents supportés** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
69
|
- **Installateur interactif** — Sélectionnez les agents à configurer depuis un menu
|
|
@@ -142,7 +142,7 @@ memory_remember # Sauvegarder les décisions importantes
|
|
|
142
142
|
|-------|-----------------|--------|-------|------------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | Plugin | SessionStart (plugin, pas de `hooks` au niveau racine) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # Sauvegarder les décisions importantes
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (pas d'événement SessionStart) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 Instructions |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # Sauvegarder les décisions importantes
|
|
|
185
185
|
| `memory_merge_sessions` | Fusionne les observations entre sessions parallèles pour un fichier. Déduplique et promeut automatiquement |
|
|
186
186
|
| `memory_export_gist` | Exporte les entrées vers un GitHub Gist (public ou privé). Utilise GITHUB_TOKEN ou gh CLI |
|
|
187
187
|
| `memory_import_gist` | Importe les entrées depuis un GitHub Gist. Fusionne avec les entrées existantes (union de tags, confiance max) |
|
|
188
|
+
| `memory_merge_similar` | Trouver les entrées avec >50% de similarité de mots (Jaccard) et les fusionner de manière déterministe |
|
|
189
|
+
| `memory_graph_path` | Plus court chemin BFS entre deux entrées dans le graphe de connaissances |
|
|
188
190
|
| `context_brief` | **Briefing de contexte en un appel** : mémoire + sessions + santé en markdown compact. Remplace 5-6 appels mémoire_* séparés. Zéro LLM, pure agrégation déterministe |
|
|
189
191
|
| `context_generate` | **Briefing projet complet** : combine la structure du projet, l'état git, les entrées mémoire et les sessions actives en un seul appel. Remplace 5-6 appels d'outils manuels |
|
|
190
192
|
| `context_diff` | **Briefing incrémental** : commits git + fichiers modifiés + mémoire nouvelle/mise à jour + sessions actives depuis la dernière session |
|
|
@@ -833,7 +835,7 @@ Ajoutez à `.opencode/opencode.json` ou `~/.config/opencode/opencode.json` :
|
|
|
833
835
|
|
|
834
836
|
### Claude Code
|
|
835
837
|
|
|
836
|
-
Ajoutez à `.
|
|
838
|
+
Ajoutez à `.mcp.json` (racine du projet) :
|
|
837
839
|
|
|
838
840
|
```json
|
|
839
841
|
{
|
|
@@ -1162,7 +1164,7 @@ toon-memory/
|
|
|
1162
1164
|
│ │ ├── setup.ts # Commandes CLI
|
|
1163
1165
|
│ │ └── toon-memory.ts # Exécuteur CLI
|
|
1164
1166
|
│ ├── mcp/
|
|
1165
|
-
│ │ └── server.ts # Serveur MCP (
|
|
1167
|
+
│ │ └── server.ts # Serveur MCP (29 outils + 3 ressources)
|
|
1166
1168
|
│ ├── lib/
|
|
1167
1169
|
│ │ ├── lock.ts # Verrou de fichier consultatif + écriture atomique
|
|
1168
1170
|
│ │ ├── sessions.ts # Coordination multi-session
|
package/README.ja.md
CHANGED
|
@@ -63,7 +63,7 @@ AIエージェントが昨日のセッションの内容を全て忘れてしま
|
|
|
63
63
|
|
|
64
64
|
## 主な機能
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29個のMCPツール** — Model Context Protocolによる完全なメモリ管理。`memory_smart_recall`(統一リコール)、マルチセッション連携用の`memory_sessions`、ワンコールでコンテキストを生成する`context_*`ツール(ブリーフィング、差分、フォーカス、ヘルス監査、エクスポート)を含みます
|
|
67
67
|
- **MCPリソース** — ツール呼び出しせずにメモリをコンテキストとして読み取れます。システムプライマー(自動生成されたナレッジマップ)を含みます
|
|
68
68
|
- **15のエージェントに対応** — OpenCode、VS Code、Claude Code、Cursor、Windsurf、Cline、Continue、Codex CLI、Gemini CLI、Zed、Antigravity、Aider、KiloCode、OpenClaw、Kiro
|
|
69
69
|
- **インタラクティブインストーラー** — メニューから設定するエージェントを選択できます
|
|
@@ -142,7 +142,7 @@ memory_remember # 重要な意思決定を保存
|
|
|
142
142
|
|-------|-----------------|--------|-------|------------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | プラグイン | SessionStart(プラグイン方式、トップレベル`hooks`なし) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # 重要な意思決定を保存
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop(`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop(`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop(SessionStartイベントなし) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 手動設定 |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # 重要な意思決定を保存
|
|
|
185
185
|
| `memory_merge_sessions` | ファイルの並列セッション間でオブザベーションをマージ。重複排除し、自動昇格 |
|
|
186
186
|
| `memory_export_gist` | エントリを GitHub Gist(公開/非公開)にエクスポート。GITHUB_TOKEN または gh CLI を使用 |
|
|
187
187
|
| `memory_import_gist` | GitHub Gist からエントリをインポート。既存エントリとマージ(タグ联合、最大信頼度) |
|
|
188
|
+
| `memory_merge_similar` | 語彙類似度>50%(Jaccard)のエントリを見つけて決定論的にマージ |
|
|
189
|
+
| `memory_graph_path` | ナレッジグラフ内の2つのエントリ間のBFS最短経路 |
|
|
188
190
|
| `context_brief` | **ワンコールコンテキストブリーフィング**:メモリ+セッション+ヘルスをコンパクトマークダウンで提供。5〜6回の個別`memory_*`呼び出しの代替。LLM不使用、純粋な決定論的集約 |
|
|
189
191
|
| `context_generate` | **完全プロジェクトブリーフィング**:プロジェクト構造、git状態、メモリエントリ、アクティブセッションを1回の呼び出しで統合。5〜6回の手動ツール呼び出しの代替 |
|
|
190
192
|
| `context_diff` | **インクリメンタルブリーフィング**:gitコミット+変更ファイル+新規/更新メモリ+前回セッション以降のアクティブセッション |
|
|
@@ -833,7 +835,7 @@ npx toon-memory
|
|
|
833
835
|
|
|
834
836
|
### Claude Code
|
|
835
837
|
|
|
836
|
-
`.
|
|
838
|
+
`.mcp.json`(プロジェクトルート)に追加:
|
|
837
839
|
|
|
838
840
|
```json
|
|
839
841
|
{
|
|
@@ -1162,7 +1164,7 @@ toon-memory/
|
|
|
1162
1164
|
│ │ ├── setup.ts # CLIコマンド
|
|
1163
1165
|
│ │ └── toon-memory.ts # CLIランナー
|
|
1164
1166
|
│ ├── mcp/
|
|
1165
|
-
│ │ └── server.ts # MCPサーバー(
|
|
1167
|
+
│ │ └── server.ts # MCPサーバー(29ツール+3リソース)
|
|
1166
1168
|
│ ├── lib/
|
|
1167
1169
|
│ │ ├── lock.ts # アドバイザリファイルロック+アトミックライト
|
|
1168
1170
|
│ │ ├── sessions.ts # マルチセッション連携
|
package/README.ko.md
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
## 기능
|
|
65
65
|
|
|
66
|
-
- **MCP 도구
|
|
66
|
+
- **MCP 도구 29개** — Model Context Protocol을 통한 전체 메모리 관리. `memory_smart_recall` (통합 리콜), `memory_sessions` 다세션 협업, `context_*` 도구를 통한 원 호출 컨텍스트 생성(브리핑, 차이점, 집중, 건강 감사, 내보내기) 포함
|
|
67
67
|
- **MCP 리소스** — 도구 호출 없이 컨텍스트로 메모리 읽기. 시스템 프라이머(자동 생성 지식 맵) 포함
|
|
68
68
|
- **에이전트 15개 지원** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
69
|
- **인터랙티브 설치기** — 메뉴에서 설정할 에이전트 선택
|
|
@@ -142,7 +142,7 @@ memory_remember # 중요한 결정 저장
|
|
|
142
142
|
|-------|-----------------|--------|-------|------------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | 플러그인 | SessionStart (플러그인, 최상위 `hooks` 없음) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # 중요한 결정 저장
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (SessionStart 이벤트 없음) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 설명서 |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # 중요한 결정 저장
|
|
|
185
185
|
| `memory_merge_sessions` | 파일의 병렬 세션 간 관찰 병합. 중복 제거 및 자동 승격 |
|
|
186
186
|
| `memory_export_gist` | 항목을 GitHub Gist(공개/비공개)로 내보내기. GITHUB_TOKEN 또는 gh CLI 사용 |
|
|
187
187
|
| `memory_import_gist` | GitHub Gist에서 항목 가져오기. 기존 항목과 병합(태그 합집합, 최대 신뢰도) |
|
|
188
|
+
| `memory_merge_similar` | 어휘 유사도 >50% (Jaccard)인 항목을 찾아 결정론적으로 병합 |
|
|
189
|
+
| `memory_graph_path` | 지식 그래프에서 두 항목 간의 BFS 최단 경로 |
|
|
188
190
|
| `context_brief` | **원 호출 컨텍스트 브리핑**: 컴팩트 마크다운에 메모리 + 세션 + 건강 상태. 별도의 5-6개 memory_* 호출 대신 사용. LLM 불필요, 순수 결정론적 집계 |
|
|
189
191
|
| `context_generate` | **전체 프로젝트 브리핑**: 프로젝트 구조, git 상태, 메모리 항목, 활성 세션을 하나의 호출로 결합. 5-6개의 수동 도구 호출 대체 |
|
|
190
192
|
| `context_diff` | **증분 브리핑**: git 커밋 + 수정된 파일 + 신규/업데이트된 메모리 + 이전 세션 이후 활성 세션 |
|
|
@@ -833,7 +835,7 @@ npx toon-memory
|
|
|
833
835
|
|
|
834
836
|
### Claude Code
|
|
835
837
|
|
|
836
|
-
`.
|
|
838
|
+
`.mcp.json`(프로젝트 루트)에 추가:
|
|
837
839
|
|
|
838
840
|
```json
|
|
839
841
|
{
|
|
@@ -1162,7 +1164,7 @@ toon-memory/
|
|
|
1162
1164
|
│ │ ├── setup.ts # CLI 명령어
|
|
1163
1165
|
│ │ └── toon-memory.ts # CLI 러너
|
|
1164
1166
|
│ ├── mcp/
|
|
1165
|
-
│ │ └── server.ts # MCP 서버 (
|
|
1167
|
+
│ │ └── server.ts # MCP 서버 (29개 도구 + 3개 리소스)
|
|
1166
1168
|
│ ├── lib/
|
|
1167
1169
|
│ │ ├── lock.ts # 조언 파일 잠금 + 원자적 쓰기
|
|
1168
1170
|
│ │ ├── sessions.ts # 다세션 협업
|
package/README.md
CHANGED
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
9
|
[](https://github.com/LuiggiVal08/toon-memory/actions/workflows/ci.yml)
|
|
10
10
|
[](https://luiggival08.github.io/toon-memory/)
|
|
11
|
+
[](https://lobehub.com/mcp/luiggival08-toon-memory)
|
|
11
12
|
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
## Table of Contents
|
|
15
16
|
|
|
16
|
-
- [
|
|
17
|
+
- [Overview](#overview)
|
|
17
18
|
- [Blog Post](#blog-post)
|
|
18
19
|
- [Features](#features)
|
|
19
|
-
- [
|
|
20
|
+
- [Installation](#installation)
|
|
20
21
|
- [Supported Agents](#supported-agents)
|
|
21
22
|
- [MCP Tools](#mcp-tools)
|
|
22
23
|
- [Coordinación multi-sesión](#coordinación-multi-sesión)
|
|
@@ -30,11 +31,12 @@
|
|
|
30
31
|
- [FAQ](#faq)
|
|
31
32
|
- [Development](#development)
|
|
32
33
|
- [Contributing](#contributing)
|
|
34
|
+
- [Security & Privacy](#security--privacy)
|
|
33
35
|
- [License](#license)
|
|
34
36
|
|
|
35
37
|
---
|
|
36
38
|
|
|
37
|
-
##
|
|
39
|
+
## Overview
|
|
38
40
|
|
|
39
41
|
Ever had that feeling where your AI agent forgets everything from yesterday's session? You explain the same architecture decision for the third time, and it still suggests the approach you already rejected?
|
|
40
42
|
|
|
@@ -63,7 +65,7 @@ Read [How toon-memory Makes Your AI Agent Smarter](https://luiggival08.github.io
|
|
|
63
65
|
|
|
64
66
|
## Features
|
|
65
67
|
|
|
66
|
-
- **
|
|
68
|
+
- **29 MCP tools** — Full memory management via Model Context Protocol, including `memory_smart_recall` (unified recall), `memory_sessions` for multi-session coordination, `context_*` tools for one-call context generation (briefing, diff, focus, health audit, export), `memory_compress` (LLM-powered compression), `memory_compress_all` (batch compression), `memory_primer` (auto-injected context), `memory_merge_sessions` (cross-session merge), and `memory_export_gist`/`memory_import_gist` (GitHub Gist sync)
|
|
67
69
|
- **MCP Resources** — Read memory as context without tool invocations, including a System Primer (auto-generated knowledge map)
|
|
68
70
|
- **15 agents supported** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
71
|
- **Interactive installer** — Select which agents to configure from a menu
|
|
@@ -98,7 +100,7 @@ Read [How toon-memory Makes Your AI Agent Smarter](https://luiggival08.github.io
|
|
|
98
100
|
|
|
99
101
|
---
|
|
100
102
|
|
|
101
|
-
##
|
|
103
|
+
## Installation
|
|
102
104
|
|
|
103
105
|
### 1. Install
|
|
104
106
|
|
|
@@ -139,6 +141,53 @@ memory_remember # Save important decisions
|
|
|
139
141
|
|
|
140
142
|
> **Tip:** Always run `memory_recall` at the start of a session. Your agent will have context from previous sessions instantly.
|
|
141
143
|
|
|
144
|
+
### MCP Client Quick Setup
|
|
145
|
+
|
|
146
|
+
#### Cursor
|
|
147
|
+
|
|
148
|
+
Add to `.cursor/mcp.json`:
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"mcpServers": {
|
|
153
|
+
"toon-memory": {
|
|
154
|
+
"command": "npx",
|
|
155
|
+
"args": ["-y", "toon-memory", "mcp"]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### Claude Desktop
|
|
162
|
+
|
|
163
|
+
Add to `claude_desktop_config.json`:
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"mcpServers": {
|
|
168
|
+
"toon-memory": {
|
|
169
|
+
"command": "npx",
|
|
170
|
+
"args": ["-y", "toon-memory", "mcp"]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### Windsurf
|
|
177
|
+
|
|
178
|
+
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
179
|
+
|
|
180
|
+
```json
|
|
181
|
+
{
|
|
182
|
+
"mcpServers": {
|
|
183
|
+
"toon-memory": {
|
|
184
|
+
"command": "npx",
|
|
185
|
+
"args": ["-y", "toon-memory", "mcp"]
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
142
191
|
---
|
|
143
192
|
|
|
144
193
|
## Supported Agents
|
|
@@ -147,7 +196,7 @@ memory_remember # Save important decisions
|
|
|
147
196
|
|-------|-----------------|--------|-------|------------|
|
|
148
197
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | Plugin | SessionStart (plugin, no top-level `hooks`) | ✅ |
|
|
149
198
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
150
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
199
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
151
200
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
152
201
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
153
202
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -155,7 +204,7 @@ memory_remember # Save important decisions
|
|
|
155
204
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
156
205
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
157
206
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
158
|
-
| **Antigravity** | `.
|
|
207
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (no SessionStart event) | ✅ |
|
|
159
208
|
| **Aider** | — | — | — | 📝 Instructions |
|
|
160
209
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
161
210
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -190,6 +239,8 @@ memory_remember # Save important decisions
|
|
|
190
239
|
| `memory_merge_sessions` | Merge observations across parallel sessions for a file. Deduplicates and optionally auto-promotes to memory |
|
|
191
240
|
| `memory_export_gist` | Export memory entries to a GitHub Gist (public or private). Uses `GITHUB_TOKEN` or `gh` CLI |
|
|
192
241
|
| `memory_import_gist` | Import entries from a GitHub Gist. Merges with existing entries (union of tags, max confidence) |
|
|
242
|
+
| `memory_merge_similar` | Find entries with >50% word similarity (Jaccard) and merge them deterministically. No LLM needed |
|
|
243
|
+
| `memory_graph_path` | BFS shortest path between two entries in the knowledge graph. Shows how concepts are connected |
|
|
193
244
|
| `context_brief` | **One-call context briefing**: memory + sessions + health in compact markdown. Use instead of 5-6 separate memory_* calls. Zero LLM, pure deterministic aggregation |
|
|
194
245
|
| `context_generate` | **Full project briefing**: combines project structure, git state, memory entries, and active sessions in one call. Replaces 5-6 manual tool calls |
|
|
195
246
|
| `context_diff` | **Incremental briefing**: git commits + modified files + new/updated memory + active sessions since last session |
|
|
@@ -204,9 +255,16 @@ Memory is also exposed as MCP resources for direct context reading:
|
|
|
204
255
|
| Resource | URI | Description |
|
|
205
256
|
|----------|-----|-------------|
|
|
206
257
|
| Memory Entries | `toon://memory/entries` | Full memory dump |
|
|
258
|
+
| Current Memory | `toon://memory/current` | Current memory state with recent entries |
|
|
207
259
|
| Memory Stats | `toon://memory/stats` | Category counts and TTL info |
|
|
208
260
|
| System Primer | `toon://memory/summaries` | Auto-generated knowledge map (top entries, categories, patterns) |
|
|
209
261
|
|
|
262
|
+
### MCP Prompts
|
|
263
|
+
|
|
264
|
+
| Prompt | Description |
|
|
265
|
+
|--------|-------------|
|
|
266
|
+
| `summarize_project_context` | Analyze current TOON memory and generate a compact project summary. Optional `intent` parameter to focus on a specific area |
|
|
267
|
+
|
|
210
268
|
### Examples
|
|
211
269
|
|
|
212
270
|
#### Remember a decision
|
|
@@ -644,6 +702,51 @@ On `toon-memory init`, the CLI scans your dependency manifests and writes a `voc
|
|
|
644
702
|
|
|
645
703
|
---
|
|
646
704
|
|
|
705
|
+
## Memory Graph Viewer
|
|
706
|
+
|
|
707
|
+
Visualize your memory as an interactive force-directed graph. See entries, their connections, categories, and access patterns at a glance.
|
|
708
|
+
|
|
709
|
+
```bash
|
|
710
|
+
npx toon-memory viewer # Start HTTP server + open browser
|
|
711
|
+
npx toon-memory viewer --port 3001 # Custom port
|
|
712
|
+
npx toon-memory viewer --export # Save as static HTML
|
|
713
|
+
```
|
|
714
|
+
|
|
715
|
+
Once open, press `r` in the terminal to reload from disk, or `r` / ↻ in the browser to refresh the page.
|
|
716
|
+
|
|
717
|
+
### Features
|
|
718
|
+
|
|
719
|
+
| Interaction | Description |
|
|
720
|
+
|---|---|
|
|
721
|
+
| **Hover** a node | See tooltip with content preview, quality, access count |
|
|
722
|
+
| **Click** a node | Select + center + highlight neighbors |
|
|
723
|
+
| **Double-click** a node | Open the Detail panel |
|
|
724
|
+
| **Drag** a node | Reposition manually (right-click to unfix) |
|
|
725
|
+
| **Search** | Filter entries; matching nodes pulse with glow |
|
|
726
|
+
| **⇿ Path finder** | Click two nodes to find and highlight the shortest path |
|
|
727
|
+
| **Zoom/pan** | Mouse wheel or +/− buttons |
|
|
728
|
+
| **⚙ Physics** | Adjust charge, link distance, center gravity |
|
|
729
|
+
| **Theme toggle** | Dark/light mode (persisted) |
|
|
730
|
+
| **Export** | Save graph as PNG or SVG |
|
|
731
|
+
|
|
732
|
+
### Screenshots
|
|
733
|
+
|
|
734
|
+
| Graph view | Search highlights | Path finder | Detail panel |
|
|
735
|
+
|---|---|---|---|
|
|
736
|
+
|  |  |  |  |
|
|
737
|
+
|
|
738
|
+

|
|
739
|
+
|
|
740
|
+
### Capturing your own screenshots
|
|
741
|
+
|
|
742
|
+
```bash
|
|
743
|
+
npm run capture:viewer
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
Requires [Playwright](https://playwright.dev) (`npx playwright install chromium`) and `ffmpeg`.
|
|
747
|
+
|
|
748
|
+
---
|
|
749
|
+
|
|
647
750
|
## Tips & Best Practices
|
|
648
751
|
|
|
649
752
|
Here are some patterns that work well with toon-memory:
|
|
@@ -716,6 +819,9 @@ npx toon-memory status # Check installation status
|
|
|
716
819
|
npx toon-memory stats # View memory statistics
|
|
717
820
|
npx toon-memory export # Export memory to JSON
|
|
718
821
|
npx toon-memory import <file> # Import memory from JSON
|
|
822
|
+
npx toon-memory viewer # Open the memory graph viewer (http server)
|
|
823
|
+
npx toon-memory viewer --export # Save viewer as static HTML
|
|
824
|
+
npx toon-memory viewer --port 3001 # Custom port
|
|
719
825
|
npx toon-memory watch [options] # Auto-backup with options
|
|
720
826
|
npx toon-memory upgrade # Update to latest version
|
|
721
827
|
npx toon-memory uninstall # Remove from all agents
|
|
@@ -841,7 +947,7 @@ Add to `.opencode/opencode.json` or `~/.config/opencode/opencode.json`:
|
|
|
841
947
|
|
|
842
948
|
### Claude Code
|
|
843
949
|
|
|
844
|
-
Add to `.
|
|
950
|
+
Add to `.mcp.json` (project root):
|
|
845
951
|
|
|
846
952
|
```json
|
|
847
953
|
{
|
|
@@ -1170,7 +1276,18 @@ toon-memory/
|
|
|
1170
1276
|
│ │ ├── setup.ts # CLI commands
|
|
1171
1277
|
│ │ └── toon-memory.ts # CLI runner
|
|
1172
1278
|
│ ├── mcp/
|
|
1173
|
-
│ │
|
|
1279
|
+
│ │ ├── server.ts # MCP server (29 tools + 4 resources + 1 prompt)
|
|
1280
|
+
│ │ ├── tools.ts # Tool registration (29 tools)
|
|
1281
|
+
│ │ ├── resources.ts # Resource registration (4 resources)
|
|
1282
|
+
│ │ ├── prompts.ts # Prompt registration (1 prompt)
|
|
1283
|
+
│ │ ├── session-store.ts # Session layer (auto-promote, cleanup)
|
|
1284
|
+
│ │ ├── memory-io.ts # Memory file read/write
|
|
1285
|
+
│ │ ├── entries.ts # Entry parsing & utilities
|
|
1286
|
+
│ │ ├── scoring.ts # Entry scoring & access tracking
|
|
1287
|
+
│ │ ├── archive.ts # Archive management
|
|
1288
|
+
│ │ ├── consolidation.ts # Duplicate consolidation
|
|
1289
|
+
│ │ ├── config.ts # Config loading & saving
|
|
1290
|
+
│ │ └── crypto.ts # AES-256-GCM encryption
|
|
1174
1291
|
│ ├── lib/
|
|
1175
1292
|
│ │ ├── lock.ts # Advisory file lock + atomic write
|
|
1176
1293
|
│ │ ├── sessions.ts # Multi-session coordination
|
|
@@ -1206,6 +1323,20 @@ Contributions are welcome! Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
|
1206
1323
|
|
|
1207
1324
|
---
|
|
1208
1325
|
|
|
1326
|
+
## Security & Privacy
|
|
1327
|
+
|
|
1328
|
+
toon-memory is designed with security and privacy as a core principle.
|
|
1329
|
+
|
|
1330
|
+
- **100% local storage** — All memory is stored locally on your machine in `.toon-memory/memory/`. No data is ever sent to external servers, cloud services, or third parties.
|
|
1331
|
+
- **No telemetry** — The project has zero telemetry, analytics, or tracking of any kind. No usage data is collected.
|
|
1332
|
+
- **No remote code execution** — toon-memory runs as a standard MCP server over stdio. It does not download, execute, or evaluate remote code.
|
|
1333
|
+
- **Encryption at rest** — Optional AES-256-GCM encryption for the entire memory file. Enable with `memory_encrypt` (requires `TOON_MEMORY_KEY` environment variable).
|
|
1334
|
+
- **Encryption key is never stored** — The encryption key must be provided via environment variable and is never persisted by toon-memory. If lost, data cannot be recovered.
|
|
1335
|
+
- **Per-project isolation** — Each project has its own isolated memory file. Memory does not leak between projects.
|
|
1336
|
+
- **Automatic `.gitignore`** — The installer adds `.toon-memory/memory/` to `.gitignore` to prevent accidental commits of memory data.
|
|
1337
|
+
|
|
1338
|
+
---
|
|
1339
|
+
|
|
1209
1340
|
## License
|
|
1210
1341
|
|
|
1211
1342
|
MIT
|
package/README.pt-br.md
CHANGED
|
@@ -63,7 +63,7 @@ Leia [Como o toon-memory Torna Seu Agente de IA Mais Inteligente](https://luiggi
|
|
|
63
63
|
|
|
64
64
|
## Funcionalidades
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29 ferramentas MCP** — Gerenciamento completo de memória via Model Context Protocol, incluindo `memory_smart_recall` (recall unificado), `memory_sessions` para coordenação multi-sessão, e ferramentas `context_*` para geração de contexto em uma única chamada (briefing, diff, foco, auditoria de saúde, exportação)
|
|
67
67
|
- **Recursos MCP** — Leia memória como contexto sem invocações de ferramentas, incluindo um System Primer (mapa de conhecimento auto-gerado)
|
|
68
68
|
- **15 agentes suportados** — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro
|
|
69
69
|
- **Instalador interativo** — Selecione quais agentes configurar a partir de um menu
|
|
@@ -142,7 +142,7 @@ memory_remember # Salve decisões importantes
|
|
|
142
142
|
|--------|----------------------|---------|-------|------------------------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | Plugin | SessionStart (plugin, sem `hooks` de nível superior) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # Salve decisões importantes
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop (`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop (`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop (sem evento SessionStart) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 Instruções |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # Salve decisões importantes
|
|
|
185
185
|
| `memory_merge_sessions` | Mescla observações entre sessões paralelas para um arquivo. Deduplica e promove automaticamente |
|
|
186
186
|
| `memory_export_gist` | Exporta entradas para um GitHub Gist (público ou privado). Usa GITHUB_TOKEN ou gh CLI |
|
|
187
187
|
| `memory_import_gist` | Importa entradas de um GitHub Gist. Mescla com entradas existentes (união de tags, confiança máxima) |
|
|
188
|
+
| `memory_merge_similar` | Encontrar entradas com >50% de similaridade de palavras (Jaccard) e mesclá-las deterministamente |
|
|
189
|
+
| `memory_graph_path` | Caminho BFS mais curto entre duas entradas no grafo de conhecimento |
|
|
188
190
|
| `context_brief` | **Briefing de contexto em uma chamada**: memória + sessões + saúde em markdown compacto. Use no lugar de 5-6 chamadas separadas de memory_*. Zero LLM, pura agregação determinística |
|
|
189
191
|
| `context_generate` | **Briefing completo do projeto**: combina estrutura do projeto, estado do git, entradas de memória e sessões ativas em uma chamada. Substitui 5-6 chamadas manuais de ferramentas |
|
|
190
192
|
| `context_diff` | **Briefing incremental**: commits git + arquivos modificados + memória nova/atualizada + sessões ativas desde a última sessão |
|
|
@@ -835,7 +837,7 @@ Adicione ao `.opencode/opencode.json` ou `~/.config/opencode/opencode.json`:
|
|
|
835
837
|
|
|
836
838
|
### Claude Code
|
|
837
839
|
|
|
838
|
-
Adicione ao `.
|
|
840
|
+
Adicione ao `.mcp.json` (raiz do projeto):
|
|
839
841
|
|
|
840
842
|
```json
|
|
841
843
|
{
|
|
@@ -1164,7 +1166,7 @@ toon-memory/
|
|
|
1164
1166
|
│ │ ├── setup.ts # Comandos CLI
|
|
1165
1167
|
│ │ └── toon-memory.ts # Runner do CLI
|
|
1166
1168
|
│ ├── mcp/
|
|
1167
|
-
│ │ └── server.ts # Servidor MCP (
|
|
1169
|
+
│ │ └── server.ts # Servidor MCP (29 ferramentas + 3 recursos)
|
|
1168
1170
|
│ ├── lib/
|
|
1169
1171
|
│ │ ├── lock.ts # Lock de arquivo advisory + escrita atômica
|
|
1170
1172
|
│ │ ├── sessions.ts # Coordenação multi-sessão
|
package/README.zh.md
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
## 功能特性
|
|
65
65
|
|
|
66
|
-
- **
|
|
66
|
+
- **29 个 MCP 工具** — 通过 Model Context Protocol 实现完整的记忆管理,包括 `memory_smart_recall`(统一召回)、`memory_sessions`(多会话协调)以及 `context_*` 系列工具(一键生成上下文:简报、差异、聚焦、健康审计、导出)
|
|
67
67
|
- **MCP 资源** — 无需工具调用即可将记忆作为上下文读取,包括系统知识图谱(自动生成的知识地图)
|
|
68
68
|
- **支持 15 种 Agent** — OpenCode、VS Code、Claude Code、Cursor、Windsurf、Cline、Continue、Codex CLI、Gemini CLI、Zed、Antigravity、Aider、KiloCode、OpenClaw、Kiro
|
|
69
69
|
- **交互式安装器** — 从菜单中选择要配置的 Agent
|
|
@@ -142,7 +142,7 @@ memory_remember # 保存重要决策
|
|
|
142
142
|
|-------|---------|------|------|---------|
|
|
143
143
|
| **OpenCode** | `.opencode/opencode.json` + `.opencode/plugins/toon-memory.ts` | 插件 | SessionStart(插件方式,非顶层 `hooks`) | ✅ |
|
|
144
144
|
| **VS Code / Copilot** | `.vscode/mcp.json` | JSON | — | ✅ |
|
|
145
|
-
| **Claude Code** | `.claude/settings.json` | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
145
|
+
| **Claude Code** | `.mcp.json` (MCP) + `.claude/settings.json` (hooks) | JSON | SessionStart + PostToolUse + Stop | ✅ |
|
|
146
146
|
| **Cursor** | `.cursor/mcp.json` | JSON | — | ✅ |
|
|
147
147
|
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | JSON | — | ✅ |
|
|
148
148
|
| **Cline** | `.cline/mcp.json` | JSON | — | ✅ |
|
|
@@ -150,7 +150,7 @@ memory_remember # 保存重要决策
|
|
|
150
150
|
| **Codex CLI** | `.codex/config.toml` | TOML | SessionStart + PostToolUse + Stop(`[[hooks]] event=`) | ✅ |
|
|
151
151
|
| **Gemini CLI** | `.gemini/settings.json` | JSON | SessionStart + PostToolUse + Stop(`hooks.*`) | ✅ |
|
|
152
152
|
| **Zed** | `~/.config/zed/settings.json` | JSONC | — | ✅ |
|
|
153
|
-
| **Antigravity** | `.
|
|
153
|
+
| **Antigravity** | `.agents/mcp_config.json` + `.agents/hooks.json` | hooks.json | PreInvocation + PostToolUse + Stop(无 SessionStart 事件) | ✅ |
|
|
154
154
|
| **Aider** | — | — | — | 📝 说明文档 |
|
|
155
155
|
| **KiloCode** | `~/.kilocode/mcp_settings.json` | JSON | — | ✅ |
|
|
156
156
|
| **OpenClaw** | `.openclaw.json` | JSON | — | ✅ |
|
|
@@ -185,6 +185,8 @@ memory_remember # 保存重要决策
|
|
|
185
185
|
| `memory_merge_sessions` | 合并文件的并行会话中的观察。去重并自动提升 |
|
|
186
186
|
| `memory_export_gist` | 将条目导出到 GitHub Gist(公开或私有)。使用 GITHUB_TOKEN 或 gh CLI |
|
|
187
187
|
| `memory_import_gist` | 从 GitHub Gist 导入条目。与现有条目合并(标签联合,最大置信度) |
|
|
188
|
+
| `memory_merge_similar` | 查找词汇相似度>50%(Jaccard)的条目并确定性合并 |
|
|
189
|
+
| `memory_graph_path` | 知识图谱中两个条目之间的BFS最短路径 |
|
|
188
190
|
| `context_brief` | **一键上下文简报**:紧凑 markdown 格式的记忆 + 会话 + 健康状态。替代 5-6 次独立 memory_* 调用。零 LLM 开销,纯确定性聚合 |
|
|
189
191
|
| `context_generate` | **完整项目简报**:一次调用整合项目结构、git 状态、记忆条目和活跃会话。替代 5-6 次手动调用 |
|
|
190
192
|
| `context_diff` | **增量简报**:自上次会话以来的 git 提交 + 修改文件 + 新增/更新记忆 + 活跃会话 |
|
|
@@ -833,7 +835,7 @@ npx toon-memory
|
|
|
833
835
|
|
|
834
836
|
### Claude Code
|
|
835
837
|
|
|
836
|
-
添加到 `.
|
|
838
|
+
添加到 `.mcp.json`(项目根目录):
|
|
837
839
|
|
|
838
840
|
```json
|
|
839
841
|
{
|
|
@@ -1162,7 +1164,7 @@ toon-memory/
|
|
|
1162
1164
|
│ │ ├── setup.ts # CLI 命令
|
|
1163
1165
|
│ │ └── toon-memory.ts # CLI 运行器
|
|
1164
1166
|
│ ├── mcp/
|
|
1165
|
-
│ │ └── server.ts # MCP 服务器(
|
|
1167
|
+
│ │ └── server.ts # MCP 服务器(29 个工具 + 3 个资源)
|
|
1166
1168
|
│ ├── lib/
|
|
1167
1169
|
│ │ ├── lock.ts # 建议性文件锁 + 原子写入
|
|
1168
1170
|
│ │ ├── sessions.ts # 多会话协调
|