@pcircle/memesh 4.1.3 → 4.1.4

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.
Files changed (123) hide show
  1. package/.mcp.json +1 -3
  2. package/README.de.md +12 -1
  3. package/README.es.md +14 -2
  4. package/README.fr.md +14 -2
  5. package/README.ja.md +12 -1
  6. package/README.ko.md +12 -1
  7. package/README.md +16 -4
  8. package/README.pt.md +14 -2
  9. package/README.th.md +14 -2
  10. package/README.vi.md +14 -2
  11. package/README.zh-CN.md +12 -1
  12. package/README.zh-TW.md +12 -1
  13. package/dashboard/dist/index.html +13 -4
  14. package/dist/cli/view-live.d.ts +2 -0
  15. package/dist/cli/view-live.d.ts.map +1 -0
  16. package/dist/cli/view-live.js +2177 -0
  17. package/dist/cli/view-live.js.map +1 -0
  18. package/dist/cli/view.d.ts +0 -1
  19. package/dist/cli/view.d.ts.map +1 -1
  20. package/dist/cli/view.js +0 -2169
  21. package/dist/cli/view.js.map +1 -1
  22. package/dist/core/analytics.d.ts +23 -0
  23. package/dist/core/analytics.d.ts.map +1 -1
  24. package/dist/core/analytics.js +79 -0
  25. package/dist/core/analytics.js.map +1 -1
  26. package/dist/core/config.d.ts +8 -4
  27. package/dist/core/config.d.ts.map +1 -1
  28. package/dist/core/config.js +16 -9
  29. package/dist/core/config.js.map +1 -1
  30. package/dist/core/consolidator.d.ts.map +1 -1
  31. package/dist/core/consolidator.js +1 -0
  32. package/dist/core/consolidator.js.map +1 -1
  33. package/dist/core/demo.d.ts +9 -0
  34. package/dist/core/demo.d.ts.map +1 -0
  35. package/dist/core/demo.js +79 -0
  36. package/dist/core/demo.js.map +1 -0
  37. package/dist/core/doctor.d.ts +2 -1
  38. package/dist/core/doctor.d.ts.map +1 -1
  39. package/dist/core/doctor.js +147 -5
  40. package/dist/core/doctor.js.map +1 -1
  41. package/dist/core/dreamer.d.ts +65 -0
  42. package/dist/core/dreamer.d.ts.map +1 -0
  43. package/dist/core/dreamer.js +477 -0
  44. package/dist/core/dreamer.js.map +1 -0
  45. package/dist/core/embedder.d.ts.map +1 -1
  46. package/dist/core/embedder.js +9 -5
  47. package/dist/core/embedder.js.map +1 -1
  48. package/dist/core/extractor.d.ts.map +1 -1
  49. package/dist/core/extractor.js +44 -22
  50. package/dist/core/extractor.js.map +1 -1
  51. package/dist/core/graph.d.ts +1 -0
  52. package/dist/core/graph.d.ts.map +1 -1
  53. package/dist/core/graph.js +8 -2
  54. package/dist/core/graph.js.map +1 -1
  55. package/dist/core/install-hooks.d.ts +41 -0
  56. package/dist/core/install-hooks.d.ts.map +1 -0
  57. package/dist/core/install-hooks.js +181 -0
  58. package/dist/core/install-hooks.js.map +1 -0
  59. package/dist/core/install-id.d.ts +9 -0
  60. package/dist/core/install-id.d.ts.map +1 -0
  61. package/dist/core/install-id.js +51 -0
  62. package/dist/core/install-id.js.map +1 -0
  63. package/dist/core/lesson-engine.d.ts +1 -5
  64. package/dist/core/lesson-engine.d.ts.map +1 -1
  65. package/dist/core/lesson-engine.js +13 -13
  66. package/dist/core/lesson-engine.js.map +1 -1
  67. package/dist/core/llm-validator.d.ts +16 -0
  68. package/dist/core/llm-validator.d.ts.map +1 -0
  69. package/dist/core/llm-validator.js +182 -0
  70. package/dist/core/llm-validator.js.map +1 -0
  71. package/dist/core/operations.d.ts.map +1 -1
  72. package/dist/core/operations.js +6 -2
  73. package/dist/core/operations.js.map +1 -1
  74. package/dist/core/projects.d.ts +14 -0
  75. package/dist/core/projects.d.ts.map +1 -0
  76. package/dist/core/projects.js +70 -0
  77. package/dist/core/projects.js.map +1 -0
  78. package/dist/core/query-expander.js.map +1 -1
  79. package/dist/core/scoring.d.ts +0 -4
  80. package/dist/core/scoring.d.ts.map +1 -1
  81. package/dist/core/scoring.js +3 -10
  82. package/dist/core/scoring.js.map +1 -1
  83. package/dist/core/serializer.d.ts.map +1 -1
  84. package/dist/core/serializer.js +2 -0
  85. package/dist/core/serializer.js.map +1 -1
  86. package/dist/core/signal-scorer.d.ts +9 -0
  87. package/dist/core/signal-scorer.d.ts.map +1 -0
  88. package/dist/core/signal-scorer.js +70 -0
  89. package/dist/core/signal-scorer.js.map +1 -0
  90. package/dist/core/types.d.ts +2 -30
  91. package/dist/core/types.d.ts.map +1 -1
  92. package/dist/core/version-check.d.ts +0 -1
  93. package/dist/core/version-check.d.ts.map +1 -1
  94. package/dist/core/version-check.js +0 -4
  95. package/dist/core/version-check.js.map +1 -1
  96. package/dist/db.d.ts +7 -0
  97. package/dist/db.d.ts.map +1 -1
  98. package/dist/db.js +91 -0
  99. package/dist/db.js.map +1 -1
  100. package/dist/knowledge-graph.d.ts +7 -3
  101. package/dist/knowledge-graph.d.ts.map +1 -1
  102. package/dist/knowledge-graph.js +43 -18
  103. package/dist/knowledge-graph.js.map +1 -1
  104. package/dist/skills-manifest.json +23 -18
  105. package/dist/storage/conflicts.d.ts +4 -1
  106. package/dist/storage/conflicts.d.ts.map +1 -1
  107. package/dist/storage/conflicts.js +5 -2
  108. package/dist/storage/conflicts.js.map +1 -1
  109. package/dist/transports/cli/cli.js +382 -32
  110. package/dist/transports/cli/cli.js.map +1 -1
  111. package/dist/transports/http/server.d.ts.map +1 -1
  112. package/dist/transports/http/server.js +160 -12
  113. package/dist/transports/http/server.js.map +1 -1
  114. package/hooks/hooks.json +12 -0
  115. package/package.json +16 -6
  116. package/plugin.json +1 -1
  117. package/scripts/hooks/_shared.js +228 -5
  118. package/scripts/hooks/pre-compact.js +19 -9
  119. package/scripts/hooks/session-start.js +7 -309
  120. package/scripts/hooks/session-summary.js +131 -29
  121. package/scripts/hooks/user-prompt-intent.js +159 -0
  122. package/skills/memesh/SKILL.md +9 -5
  123. package/skills/memesh-review/SKILL.md +24 -0
package/.mcp.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "memesh": {
4
- "command": "node",
5
- "args": ["${CLAUDE_PLUGIN_ROOT}/dist/mcp/server.js"],
6
- "env": { "NODE_ENV": "production" }
4
+ "command": "memesh-mcp"
7
5
  }
8
6
  }
9
7
  }
package/README.de.md CHANGED
@@ -37,6 +37,17 @@ Dieses Paket ist die lokale Speicherschicht der MeMesh-Produktfamilie. Es ist be
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### Schritt 1.5: MeMesh in Claude Code einbinden (empfohlen, einmalig)
41
+
42
+ `npm install -g` legt die CLI in den PATH und registriert den MCP-Server, aber MeMeshs Claude-Code-Session-Hooks werden **nicht** automatisch verdrahtet. Ohne diese Hooks können Sie `memesh remember` / `recall` manuell verwenden, aber die **Auto-Capture-Schleife** (Session → Lektionen → proaktive Erinnerung in der nächsten Session) bleibt stumm.
43
+
44
+ ```bash
45
+ memesh install-hooks # fügt memesh-Hooks zu ~/.claude/settings.json hinzu
46
+ memesh doctor # bestätigt, dass „Hooks wired into Claude Code" PASST
47
+ ```
48
+
49
+ Die Hooks existieren neben Ihren bestehenden Custom-Hooks unter `~/.claude/hooks/` — `install-hooks` schreibt additiv und überschreibt nie Ihre Einträge. Zum Entfernen: `memesh uninstall-hooks`.
50
+
40
51
  ### Schritt 2: Entscheidung speichern
41
52
 
42
53
  ```bash
@@ -271,7 +282,7 @@ Der Kern ist Framework-agnostisch. Dieselbe Logik läuft vom Terminal, HTTP oder
271
282
  ```bash
272
283
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
284
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
285
+ npm test # 630 tests
275
286
  npm run test:e2e-dashboard
276
287
  ```
277
288
 
package/README.es.md CHANGED
@@ -37,6 +37,17 @@ Este paquete es la capa de memoria local de la familia de productos MeMesh. Es i
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### Paso 1.5: Conecta MeMesh a Claude Code (recomendado, una sola vez)
41
+
42
+ `npm install -g` pone la CLI en el PATH y registra el servidor MCP, pero **no** conecta automáticamente los hooks de sesión de MeMesh a Claude Code. Sin estos hooks, puedes usar `memesh remember` / `recall` manualmente, pero el **bucle de captura automática** (sesión → lecciones → recall proactivo en la siguiente sesión) queda en silencio.
43
+
44
+ ```bash
45
+ memesh install-hooks # añade los hooks de memesh a ~/.claude/settings.json
46
+ memesh doctor # confirma que "Hooks wired into Claude Code" pasa
47
+ ```
48
+
49
+ Estos hooks coexisten con tus hooks personalizados en `~/.claude/hooks/` — `install-hooks` escribe de forma aditiva y nunca sobrescribe los tuyos. Para eliminarlos: `memesh uninstall-hooks`.
50
+
40
51
  ### Paso 2: Guarda una decisión
41
52
 
42
53
  ```bash
@@ -146,13 +157,14 @@ Pega las herramientas en cualquier llamada API
146
157
 
147
158
  ## Qué Sucede Automáticamente en Claude Code
148
159
 
149
- No necesitas recordar todo manualmente. MeMesh tiene **6 hooks** que capturan e inyectan conocimiento mientras trabajas:
160
+ No necesitas recordar todo manualmente. MeMesh tiene **7 hooks** que capturan e inyectan conocimiento mientras trabajas:
150
161
 
151
162
  | Cuándo | Qué hace MeMesh |
152
163
  |---|---|
153
164
  | **Al inicio de cada sesión** | Carga tus memorias más relevantes + advertencias proactivas de lecciones pasadas + banner de orquestación agentica |
154
165
  | **Antes de editar archivos** | Recupera memorias vinculadas al archivo o proyecto antes de que Claude escriba código |
155
166
  | **Antes de comandos bash** | Nudge a Claude para que envíe comandos de alta verificabilidad (test, build, lint, migrate, deploy, benchmark) como agentes de fondo |
167
+ | **Cuando pides recordar** | Detecta intención de "remember this" / "記下來" y recuerda a Claude que escriba dual (memesh + MEMORY.md) |
156
168
  | **Después de cada `git commit`** | Registra qué cambiaste, con estadísticas de diff |
157
169
  | **Cuando Claude se detiene** | Captura archivos editados, errores corregidos y genera automáticamente lecciones estructuradas a partir de fallos |
158
170
  | **Antes de compresión de contexto** | Guarda conocimiento antes de que se pierda en límites de contexto |
@@ -271,7 +283,7 @@ El core es agnóstico de framework. La misma lógica se ejecuta desde terminal,
271
283
  ```bash
272
284
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
285
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
286
+ npm test # 630 tests
275
287
  npm run test:e2e-dashboard
276
288
  ```
277
289
 
package/README.fr.md CHANGED
@@ -37,6 +37,17 @@ Ce package constitue la couche de mémoire locale de la famille de produits MeMe
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### Étape 1,5 : Connecter MeMesh à Claude Code (recommandé, une seule fois)
41
+
42
+ `npm install -g` place la CLI dans le PATH et enregistre le serveur MCP, mais **ne connecte pas** automatiquement les hooks de session MeMesh à Claude Code. Sans ces hooks, vous pouvez utiliser `memesh remember` / `recall` manuellement, mais la **boucle d'auto-capture** (session → leçons → rappel proactif à la session suivante) reste silencieuse.
43
+
44
+ ```bash
45
+ memesh install-hooks # ajoute les hooks memesh à ~/.claude/settings.json
46
+ memesh doctor # vérifie que « Hooks wired into Claude Code » passe
47
+ ```
48
+
49
+ Ces hooks coexistent avec vos hooks personnalisés dans `~/.claude/hooks/` — `install-hooks` écrit de manière additive et n'écrase jamais les vôtres. Pour supprimer : `memesh uninstall-hooks`.
50
+
40
51
  ### Étape 2 : Mémoriser une décision
41
52
 
42
53
  ```bash
@@ -146,13 +157,14 @@ Collez les outils dans n'importe quel appel API
146
157
 
147
158
  ## Ce Qui Se Passe Automatiquement Dans Claude Code
148
159
 
149
- Vous n'avez pas besoin de tout mémoriser manuellement. MeMesh possède **6 hooks** qui capturent et injectent les connaissances au fur et à mesure que vous travaillez :
160
+ Vous n'avez pas besoin de tout mémoriser manuellement. MeMesh possède **7 hooks** qui capturent et injectent les connaissances au fur et à mesure que vous travaillez :
150
161
 
151
162
  | Quand | Ce que MeMesh fait |
152
163
  |---|---|
153
164
  | **Au début de chaque session** | Charge vos mémoires les plus pertinentes + avertissements proactifs des leçons passées + banneau d'orchestration agentique |
154
165
  | **Avant d'éditer des fichiers** | Rappelle les mémoires liées au fichier ou au projet avant que Claude ne rédige du code |
155
166
  | **Avant les commandes bash** | Encourage Claude à dispatcher les commandes très vérifiables (test, build, lint, migrate, deploy, benchmark) en tant qu'agents de fond |
167
+ | **Lorsque vous demandez de mémoriser** | Détecte l'intention "remember this" / "記下來" et rappelle à Claude d'écrire en double (memesh + MEMORY.md) |
156
168
  | **Après chaque `git commit`** | Enregistre ce que vous avez modifié, avec les statistiques de diff |
157
169
  | **Quand Claude s'arrête** | Capture les fichiers édités, les erreurs corrigées et génère automatiquement des leçons structurées à partir des défaillances |
158
170
  | **Avant la compaction de contexte** | Sauvegarde les connaissances avant qu'elles ne soient perdues aux limites de contexte |
@@ -271,7 +283,7 @@ Le cœur est agnostique du framework. La même logique s'exécute depuis le term
271
283
  ```bash
272
284
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
285
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
286
+ npm test # 630 tests
275
287
  npm run test:e2e-dashboard
276
288
  ```
277
289
 
package/README.ja.md CHANGED
@@ -37,6 +37,17 @@
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### ステップ 1.5: MeMesh を Claude Code に接続(推奨、一度きり)
41
+
42
+ `npm install -g` は CLI を PATH に配置し MCP サーバーを登録しますが、MeMesh の Claude Code セッションフックは自動的にはワイヤリング**されません**。フックがないと `memesh remember` / `recall` は手動で使えますが、**自動キャプチャループ**(セッション → レッスン → 次のセッションで自発的にリコール)はサイレントになります。
43
+
44
+ ```bash
45
+ memesh install-hooks # ~/.claude/settings.json に memesh フックを追加
46
+ memesh doctor # "Hooks wired into Claude Code" が PASS になることを確認
47
+ ```
48
+
49
+ これらのフックは既存の `~/.claude/hooks/` カスタムフックと共存します — `install-hooks` は追加方式で書き込み、既存のものを上書きしません。削除する場合: `memesh uninstall-hooks`。
50
+
40
51
  ### ステップ 2: 決定を記録
41
52
 
42
53
  ```bash
@@ -271,7 +282,7 @@ memesh # ダッシュボード → Settings タブを開く
271
282
  ```bash
272
283
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
284
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
285
+ npm test # 630 tests
275
286
  npm run test:e2e-dashboard
276
287
  ```
277
288
 
package/README.ko.md CHANGED
@@ -37,6 +37,17 @@
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### 1.5단계: MeMesh를 Claude Code에 연결(권장, 일회성)
41
+
42
+ `npm install -g`는 CLI를 PATH에 추가하고 MCP 서버를 등록하지만, MeMesh의 Claude Code 세션 훅을 자동으로 연결하지는 **않습니다**. 훅이 없으면 `memesh remember` / `recall`을 수동으로 사용할 수 있지만, **자동 캡처 루프**(세션 → 교훈 → 다음 세션에서 능동적 회상)는 작동하지 않습니다.
43
+
44
+ ```bash
45
+ memesh install-hooks # ~/.claude/settings.json에 memesh 훅 추가
46
+ memesh doctor # "Hooks wired into Claude Code" PASS 확인
47
+ ```
48
+
49
+ 이 훅들은 기존 `~/.claude/hooks/` 사용자 훅과 공존합니다 — `install-hooks`는 추가 방식으로 작성하며 기존 항목을 덮어쓰지 않습니다. 제거하려면: `memesh uninstall-hooks`.
50
+
40
51
  ### 2단계: 의사결정 저장
41
52
 
42
53
  ```bash
@@ -271,7 +282,7 @@ memesh # 대시보드 열기 → Settings 탭
271
282
  ```bash
272
283
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
284
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
285
+ npm test # 630 tests
275
286
  npm run test:e2e-dashboard
276
287
  ```
277
288
 
package/README.md CHANGED
@@ -54,6 +54,17 @@ npm install -g @pcircle/memesh
54
54
  > - **Native modules** — `better-sqlite3` and `sqlite-vec` install via prebuilt binaries on macOS (arm64/x64), Linux (x64/arm64), and Windows x64. On uncommon platforms or when prebuilds fail, you'll need a working C/C++ toolchain.
55
55
  > - **Embedding model** — the first call that triggers a local embedding (e.g. `recall` with semantic mode) downloads `Xenova/all-MiniLM-L6-v2` (~80 MB) into `~/.memesh/models/`. Subsequent calls are instant. The default retrieval path (FTS5) does not require this download.
56
56
 
57
+ ### Step 1.5: Wire MeMesh into Claude Code (recommended, one-time)
58
+
59
+ `npm install -g` puts the CLI on your PATH and registers the MCP server, but does **not** auto-wire MeMesh's Claude Code session hooks. Without these hooks, you can use `memesh remember` / `recall` manually but the **auto-capture loop** (sessions → lessons → recall on next session) is silent.
60
+
61
+ ```bash
62
+ memesh install-hooks # adds memesh's hooks to ~/.claude/settings.json
63
+ memesh doctor # verifies "Hooks wired into Claude Code" passes
64
+ ```
65
+
66
+ The hooks coexist with any custom hooks you already have under `~/.claude/hooks/` — `install-hooks` writes additive entries and never overwrites yours. To remove later: `memesh uninstall-hooks`.
67
+
57
68
  ### Step 2: Store a decision
58
69
 
59
70
  ```bash
@@ -169,13 +180,14 @@ Paste tools into any API call
169
180
 
170
181
  ## What Happens Automatically In Claude Code
171
182
 
172
- You don't need to manually remember everything. MeMesh has **6 hooks** that capture and inject knowledge while you work:
183
+ You don't need to manually remember everything. MeMesh has **7 hooks** that capture and inject knowledge while you work:
173
184
 
174
185
  | When | What MeMesh does |
175
186
  |------|------------------|
176
187
  | **Every session start** | Loads your most relevant memories + proactive warnings from past lessons |
177
188
  | **Before editing files** | Recalls memories tied to the file or project before Claude writes code |
178
189
  | **Before bash commands** | (Opt-in) Nudges Claude to dispatch high-verifiability commands (test, build, lint, migrate, deploy, benchmark) as background agents |
190
+ | **When you ask to remember** | Detects "remember this" / "guardar en memesh" / "sauvegarder dans memesh" / "記下來" intent (5 languages) and reminds Claude to use memesh |
179
191
  | **After every `git commit`** | Records what you changed, with diff stats |
180
192
  | **When Claude stops** | Captures files edited, errors fixed, and auto-generates structured lessons from failures |
181
193
  | **Before context compaction** | Saves knowledge before it's lost to context limits |
@@ -194,13 +206,13 @@ All configuration is via environment variables. Defaults are local-only and zero
194
206
  | `MEMESH_AUTO_CAPTURE` | `true` | Disable the auto-capture hooks (`Stop`, `PreCompact`) entirely. |
195
207
  | `MEMESH_AUTO_DETECT_LLM` | unset | Set to `1` to let memesh auto-detect a provider from your shell env (`OPENAI_API_KEY` etc.) and switch to BYOK embeddings. **Default fresh-install is local ONNX (384-dim) only** — opt in if you want cloud embeddings. Without this flag set, an `OPENAI_API_KEY` lying around in your shell is ignored. |
196
208
  | `MEMESH_ENABLE_AGENTIC_ORCHESTRATION` | unset | Set to `1` to enable an experimental working-model protocol (CTO / Orchestrator / Agents framing). Adds a session-start banner, a Bash command nudge, and `verify_agent_work` telemetry. The protocol's effectiveness is being instrumented, not yet proven — opt in if you want to participate. **Default is OFF**: the core memory features work without this flag. |
197
- | `MEMESH_AUTO_UPDATE` | `off` | Auto-update policy applied at session-start. `off` (default) never auto-updates; `patch` allows `X.Y.Z → X.Y.Z+N`; `minor` adds `X.Y.Z → X.Y+1.0`; `major` allows any bump. The actual `npm install -g` runs detached so it never blocks the session — outcomes land in `~/.memesh/auto-update.log`. Also settable as `autoUpdate` in `~/.memesh/config.json` (env wins). When the installed version is deprecated by maintainers (security advisory), `patch` is force-allowed even on `off` — minor / major bumps still stay manual to avoid silent behaviour drift. |
209
+ | `MEMESH_AUTO_UPDATE` | `off` | Auto-update policy. `off` (default) never auto-updates; `patch` allows `X.Y.Z → X.Y.Z+N`; `minor` adds `X.Y.Z → X.Y+1.0`; `major` allows any bump. When permitted, a detached `npm install -g` fires at session end (Stop hook) so it never blocks your work — outcomes land in `~/.memesh/auto-update.log`. Also settable as `autoUpdate` in `~/.memesh/config.json` (env wins). When the installed version is deprecated by maintainers (security advisory), `patch` is force-allowed even on `off` — minor / major bumps still stay manual to avoid silent behaviour drift. |
198
210
  | `OPENAI_API_KEY` | unset | Your OpenAI key. Only used when `MEMESH_AUTO_DETECT_LLM=1` or you explicitly configure the provider. |
199
211
  | `OLLAMA_HOST` | `http://localhost:11434` | Override the Ollama endpoint when using a local Ollama provider. |
200
212
 
201
213
  `memesh doctor` prints the resolved configuration so you can see what's active.
202
214
 
203
- When npm flags an installed version as deprecated (typically a security advisory), the next session-start prepends a strong `⚠️ MeMesh <ver> is DEPRECATED` banner and `memesh update-status` surfaces the same line until you upgrade. The check is cached at `~/.memesh/update-check.json` so a transient network failure can't dim the warning.
215
+ When npm flags an installed version as deprecated (typically a security advisory), the next session-start prepends a strong `⚠️ MeMesh <ver> is DEPRECATED` banner and `memesh update-status` surfaces the same line until you upgrade. The check is cached at `~/.memesh/update-check.<version>.json` so a transient network failure can't dim the warning.
204
216
 
205
217
  ---
206
218
 
@@ -314,7 +326,7 @@ Core is framework-agnostic. Same logic runs from terminal, HTTP, or MCP.
314
326
  ```bash
315
327
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
316
328
  cd memesh-llm-memory && npm install && npm run build
317
- npm test # 489 tests
329
+ npm test # 630 tests
318
330
  npm run test:e2e-dashboard
319
331
  ```
320
332
 
package/README.pt.md CHANGED
@@ -37,6 +37,17 @@ Este pacote é a camada de memória local da família de produtos MeMesh. É pro
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### Passo 1.5: Conecte o MeMesh ao Claude Code (recomendado, uma só vez)
41
+
42
+ `npm install -g` coloca a CLI no PATH e registra o servidor MCP, mas **não** conecta automaticamente os hooks de sessão do MeMesh ao Claude Code. Sem esses hooks você pode usar `memesh remember` / `recall` manualmente, mas o **loop de auto-captura** (sessão → lições → recall proativo na próxima sessão) fica silencioso.
43
+
44
+ ```bash
45
+ memesh install-hooks # adiciona os hooks do memesh em ~/.claude/settings.json
46
+ memesh doctor # confirma que "Hooks wired into Claude Code" passou
47
+ ```
48
+
49
+ Os hooks coexistem com qualquer hook customizado em `~/.claude/hooks/` — `install-hooks` escreve de forma aditiva e nunca sobrescreve. Para remover: `memesh uninstall-hooks`.
50
+
40
51
  ### Passo 2: Armazene uma decisão
41
52
 
42
53
  ```bash
@@ -146,13 +157,14 @@ Cole as ferramentas em qualquer chamada de API
146
157
 
147
158
  ## O Que Acontece Automaticamente no Claude Code
148
159
 
149
- Você não precisa lembrar tudo manualmente. MeMesh tem **6 hooks** que capturam e injetam conhecimento enquanto você trabalha:
160
+ Você não precisa lembrar tudo manualmente. MeMesh tem **7 hooks** que capturam e injetam conhecimento enquanto você trabalha:
150
161
 
151
162
  | Quando | O que MeMesh faz |
152
163
  |------|------------------|
153
164
  | **Início de cada sessão** | Carrega suas memórias mais relevantes + alertas proativos de lições passadas + banner de orquestração de agentes |
154
165
  | **Antes de editar arquivos** | Recupera memórias vinculadas ao arquivo ou projeto antes de Claude escrever código |
155
166
  | **Antes de comandos bash** | Incentiva Claude a despachar comandos de alta verificabilidade (test, build, lint, migrate, deploy, benchmark) como agentes de background |
167
+ | **Quando você pede para lembrar** | Detecta intenção "remember this" / "記下來" e lembra Claude de escrever dual (memesh + MEMORY.md) |
156
168
  | **Depois de cada `git commit`** | Registra o que você mudou, com estatísticas de diff |
157
169
  | **Quando Claude para** | Captura arquivos editados, erros corrigidos e gera automaticamente lições estruturadas de falhas |
158
170
  | **Antes da compactação de contexto** | Salva conhecimento antes de ser perdido nos limites de contexto |
@@ -271,7 +283,7 @@ Core é agnóstico a framework. A mesma lógica roda de terminal, HTTP ou MCP.
271
283
  ```bash
272
284
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
285
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
286
+ npm test # 630 tests
275
287
  npm run test:e2e-dashboard
276
288
  ```
277
289
 
package/README.th.md CHANGED
@@ -37,6 +37,17 @@
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### ขั้นตอนที่ 1.5: เชื่อม MeMesh เข้ากับ Claude Code (แนะนำ, ครั้งเดียว)
41
+
42
+ `npm install -g` ติดตั้ง CLI ลงใน PATH และลงทะเบียน MCP server แต่**ไม่ได้**เชื่อม session hooks ของ MeMesh เข้ากับ Claude Code โดยอัตโนมัติ ถ้าไม่มี hooks เหล่านี้ คุณยังใช้ `memesh remember` / `recall` แบบ manual ได้ แต่**วงรอบจับข้อมูลอัตโนมัติ** (session → บทเรียน → เรียกคืนเชิงรุกใน session ถัดไป) จะเงียบ
43
+
44
+ ```bash
45
+ memesh install-hooks # เพิ่ม hooks ของ memesh ลงใน ~/.claude/settings.json
46
+ memesh doctor # ยืนยันว่า "Hooks wired into Claude Code" PASS
47
+ ```
48
+
49
+ Hooks เหล่านี้อยู่ร่วมกับ custom hooks ที่คุณมีใน `~/.claude/hooks/` — `install-hooks` เขียนแบบเพิ่ม ไม่เขียนทับของคุณ หากต้องการลบ: `memesh uninstall-hooks`
50
+
40
51
  ### ขั้นตอนที่ 2: เก็บการตัดสินใจ
41
52
 
42
53
  ```bash
@@ -146,13 +157,14 @@ memesh export-schema \
146
157
 
147
158
  ## สิ่งที่เกิดขึ้นโดยอัตโนมัติใน Claude Code
148
159
 
149
- ไม่ต้องจำข้อมูลทุกอย่างด้วยตนเอง MeMesh มี **6 hook** ที่บันทึกและแทรกความรู้ขณะทำงาน:
160
+ ไม่ต้องจำข้อมูลทุกอย่างด้วยตนเอง MeMesh มี **7 hook** ที่บันทึกและแทรกความรู้ขณะทำงาน:
150
161
 
151
162
  | เมื่อ | MeMesh ทำอะไร |
152
163
  |---|---|
153
164
  | **เริ่มเซสชันทุกครั้ง** | โหลดหน่วยความจำที่เกี่ยวข้องมากที่สุด + คำเตือนจากบทเรียนที่ผ่านมา + แบนเนอร์การ orchestrate เอเจนต์ |
154
165
  | **ก่อนแก้ไขไฟล์** | เรียกคืนหน่วยความจำที่เชื่อมโยงกับไฟล์หรือโครงการก่อนที่ Claude เขียนโค้ด |
155
166
  | **ก่อนคำสั่ง bash** | แนะนำให้ Claude สั่งคำสั่งที่ยืนยันได้สูง (test build lint migrate deploy benchmark) เป็นเอเจนต์พื้นหลัง |
167
+ | **เมื่อคุณขอให้จำ** | ตรวจจับความตั้งใจ "remember this" / "記下來" และเตือน Claude ให้เขียนแบบสองทาง (memesh + MEMORY.md) |
156
168
  | **หลังทุก `git commit`** | บันทึกสิ่งที่เปลี่ยนแปลง พร้อมสถิติ diff |
157
169
  | **เมื่อ Claude หยุด** | บันทึกไฟล์ที่แก้ไข บั๊กที่แก้ไข และสร้างบทเรียนโครงสร้างจากความล้มเหลวโดยอัตโนมัติ |
158
170
  | **ก่อนการบีบอัด context** | บันทึกความรู้ก่อนที่จะหายไปจากขีดจำกัด context |
@@ -271,7 +283,7 @@ Core เป็นอิสระจากเฟรมเวิร์ก ตร
271
283
  ```bash
272
284
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
285
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
286
+ npm test # 630 tests
275
287
  npm run test:e2e-dashboard
276
288
  ```
277
289
 
package/README.vi.md CHANGED
@@ -37,6 +37,17 @@ Package này là tầng bộ nhớ cục bộ của dòng sản phẩm MeMesh. N
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### Bước 1.5: Kết nối MeMesh vào Claude Code (khuyến nghị, một lần)
41
+
42
+ `npm install -g` đặt CLI vào PATH và đăng ký MCP server, nhưng **không** tự động kết nối các session hooks của MeMesh vào Claude Code. Không có hooks, bạn vẫn dùng được `memesh remember` / `recall` thủ công, nhưng **vòng tự động ghi nhận** (session → bài học → gọi lại chủ động ở session sau) sẽ im lặng.
43
+
44
+ ```bash
45
+ memesh install-hooks # thêm hooks memesh vào ~/.claude/settings.json
46
+ memesh doctor # xác nhận "Hooks wired into Claude Code" PASS
47
+ ```
48
+
49
+ Các hooks này cùng tồn tại với bất kỳ hook tùy chỉnh nào trong `~/.claude/hooks/` — `install-hooks` ghi theo kiểu thêm, không bao giờ ghi đè của bạn. Để gỡ: `memesh uninstall-hooks`.
50
+
40
51
  ### Bước 2: Lưu một quyết định
41
52
 
42
53
  ```bash
@@ -146,13 +157,14 @@ Dán tools vào bất kỳ API call nào
146
157
 
147
158
  ## Điều gì xảy ra tự động trong Claude Code
148
159
 
149
- Bạn không cần phải manually nhớ mọi thứ. MeMesh có **6 hooks** để capture và inject kiến thức khi bạn làm việc:
160
+ Bạn không cần phải manually nhớ mọi thứ. MeMesh có **7 hooks** để capture và inject kiến thức khi bạn làm việc:
150
161
 
151
162
  | Khi nào | MeMesh làm gì |
152
163
  |------|------------------|
153
164
  | **Mỗi lần session bắt đầu** | Load những memories liên quan nhất + cảnh báo chủ động từ bài học trong quá khứ + agentic-orchestration banner |
154
165
  | **Trước khi chỉnh sửa file** | Gọi lại memories liên quan đến file hoặc dự án trước khi Claude viết code |
155
166
  | **Trước bash commands** | Hướng dẫn Claude dispatch những commands có độ xác minh cao (test, build, lint, migrate, deploy, benchmark) dưới dạng background agents |
167
+ | **Khi bạn yêu cầu ghi nhớ** | Phát hiện ý định "remember this" / "記下來" và nhắc nhở (use memesh|ghi memesh) |
156
168
  | **Sau mỗi `git commit`** | Ghi lại những gì bạn thay đổi, với diff stats |
157
169
  | **Khi Claude dừng** | Capture những file đã chỉnh sửa, lỗi đã sửa, và auto-generate structured lessons từ failures |
158
170
  | **Trước khi context compact** | Lưu kiến thức trước khi nó bị mất do context limits |
@@ -271,7 +283,7 @@ Core là framework-agnostic. Logic tương tự chạy từ terminal, HTTP, ho
271
283
  ```bash
272
284
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
285
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 tests
286
+ npm test # 630 tests
275
287
  npm run test:e2e-dashboard
276
288
  ```
277
289
 
package/README.zh-CN.md CHANGED
@@ -37,6 +37,17 @@
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### 第一步半:把 MeMesh 接入 Claude Code(推荐,一次性)
41
+
42
+ `npm install -g` 把 CLI 放进 PATH 并注册 MCP server,但**不会**自动接上 MeMesh 的 Claude Code session hooks。没有这些 hooks,你还是可以手动用 `memesh remember` / `recall`,但**自动捕捉循环**(session → 教训 → 下次 session 主动回想)就会静默不动。
43
+
44
+ ```bash
45
+ memesh install-hooks # 把 memesh hooks 加到 ~/.claude/settings.json
46
+ memesh doctor # 确认「Hooks wired into Claude Code」通过
47
+ ```
48
+
49
+ 这些 hooks 会和你已有的 `~/.claude/hooks/` 自定义 hooks 并存 — `install-hooks` 用追加方式写,从不覆盖你的东西。要移除:`memesh uninstall-hooks`。
50
+
40
51
  ### 第二步:记录一个决策
41
52
 
42
53
  ```bash
@@ -271,7 +282,7 @@ memesh # 打开仪表板 → 设置标签页
271
282
  ```bash
272
283
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
284
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 个测试
285
+ npm test # 630 个测试
275
286
  npm run test:e2e-dashboard
276
287
  ```
277
288
 
package/README.zh-TW.md CHANGED
@@ -37,6 +37,17 @@
37
37
  npm install -g @pcircle/memesh
38
38
  ```
39
39
 
40
+ ### 第一步半:把 MeMesh 接進 Claude Code(建議,一次性)
41
+
42
+ `npm install -g` 把 CLI 放上 PATH 並註冊 MCP server,但**不會**自動接上 MeMesh 的 Claude Code session hooks。沒有這些 hooks,你還是可以手動用 `memesh remember` / `recall`,但**自動捕捉迴路**(session → 教訓 → 下次 session 主動回憶)就會靜默不動。
43
+
44
+ ```bash
45
+ memesh install-hooks # 把 memesh hooks 加進 ~/.claude/settings.json
46
+ memesh doctor # 確認「Hooks wired into Claude Code」過了
47
+ ```
48
+
49
+ 這些 hooks 會跟你既有的 `~/.claude/hooks/` 自訂 hooks 共存 — `install-hooks` 用追加方式寫,從不覆寫你的東西。要移除:`memesh uninstall-hooks`。
50
+
40
51
  ### 第二步:保存一個決策
41
52
 
42
53
  ```bash
@@ -271,7 +282,7 @@ memesh # 開啟儀表板 → 設定標籤
271
282
  ```bash
272
283
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
273
284
  cd memesh-llm-memory && npm install && npm run build
274
- npm test # 489 項測試
285
+ npm test # 630 項測試
275
286
  npm run test:e2e-dashboard
276
287
  ```
277
288