@pcircle/memesh 3.0.1 → 3.1.1

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 (65) hide show
  1. package/README.de.md +234 -0
  2. package/README.es.md +234 -0
  3. package/README.fr.md +234 -0
  4. package/README.ja.md +234 -0
  5. package/README.ko.md +234 -0
  6. package/README.md +141 -94
  7. package/README.pt.md +234 -0
  8. package/README.th.md +234 -0
  9. package/README.vi.md +234 -0
  10. package/README.zh-CN.md +234 -0
  11. package/README.zh-TW.md +234 -0
  12. package/dashboard/dist/index.html +16 -0
  13. package/dist/core/config.d.ts.map +1 -1
  14. package/dist/core/config.js +5 -1
  15. package/dist/core/config.js.map +1 -1
  16. package/dist/core/consolidator.d.ts +3 -0
  17. package/dist/core/consolidator.d.ts.map +1 -0
  18. package/dist/core/consolidator.js +147 -0
  19. package/dist/core/consolidator.js.map +1 -0
  20. package/dist/core/failure-analyzer.d.ts +13 -0
  21. package/dist/core/failure-analyzer.d.ts.map +1 -0
  22. package/dist/core/failure-analyzer.js +98 -0
  23. package/dist/core/failure-analyzer.js.map +1 -0
  24. package/dist/core/lesson-engine.d.ts +21 -0
  25. package/dist/core/lesson-engine.d.ts.map +1 -0
  26. package/dist/core/lesson-engine.js +76 -0
  27. package/dist/core/lesson-engine.js.map +1 -0
  28. package/dist/core/operations.d.ts +4 -4
  29. package/dist/core/operations.d.ts.map +1 -1
  30. package/dist/core/operations.js +13 -212
  31. package/dist/core/operations.js.map +1 -1
  32. package/dist/core/query-expander.d.ts.map +1 -1
  33. package/dist/core/query-expander.js.map +1 -1
  34. package/dist/core/schema-export.d.ts.map +1 -1
  35. package/dist/core/schema-export.js +18 -0
  36. package/dist/core/schema-export.js.map +1 -1
  37. package/dist/core/serializer.d.ts +4 -0
  38. package/dist/core/serializer.d.ts.map +1 -0
  39. package/dist/core/serializer.js +75 -0
  40. package/dist/core/serializer.js.map +1 -0
  41. package/dist/core/types.d.ts +75 -0
  42. package/dist/core/types.d.ts.map +1 -1
  43. package/dist/db.d.ts.map +1 -1
  44. package/dist/db.js.map +1 -1
  45. package/dist/knowledge-graph.d.ts +1 -0
  46. package/dist/knowledge-graph.d.ts.map +1 -1
  47. package/dist/knowledge-graph.js +83 -17
  48. package/dist/knowledge-graph.js.map +1 -1
  49. package/dist/transports/cli/cli.js +35 -3
  50. package/dist/transports/cli/cli.js.map +1 -1
  51. package/dist/transports/http/server.d.ts.map +1 -1
  52. package/dist/transports/http/server.js +51 -52
  53. package/dist/transports/http/server.js.map +1 -1
  54. package/dist/transports/mcp/handlers.d.ts +31 -0
  55. package/dist/transports/mcp/handlers.d.ts.map +1 -1
  56. package/dist/transports/mcp/handlers.js +28 -51
  57. package/dist/transports/mcp/handlers.js.map +1 -1
  58. package/dist/transports/schemas.d.ts +94 -0
  59. package/dist/transports/schemas.d.ts.map +1 -0
  60. package/dist/transports/schemas.js +60 -0
  61. package/dist/transports/schemas.js.map +1 -0
  62. package/package.json +1 -1
  63. package/plugin.json +1 -1
  64. package/scripts/hooks/session-start.js +38 -1
  65. package/scripts/hooks/session-summary.js +34 -2
package/README.ko.md ADDED
@@ -0,0 +1,234 @@
1
+ 🌐 [English](README.md) | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Português](README.pt.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [Tiếng Việt](README.vi.md) | [Español](README.es.md) | [ภาษาไทย](README.th.md)
2
+
3
+ <p align="center">
4
+ <h1 align="center">MeMesh LLM Memory</h1>
5
+ <p align="center">
6
+ <strong>가장 가벼운 범용 AI 메모리 레이어.</strong><br />
7
+ SQLite 파일 하나. 어떤 LLM이든. 클라우드 없이.
8
+ </p>
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/package/@pcircle/memesh"><img src="https://img.shields.io/npm/v/@pcircle/memesh?style=flat-square&color=3b82f6&label=npm" alt="npm" /></a>
11
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e?style=flat-square" alt="MIT" /></a>
12
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D20-22c55e?style=flat-square" alt="Node" /></a>
13
+ <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-a855f7?style=flat-square" alt="MCP" /></a>
14
+ <a href="https://pypi.org/project/memesh/"><img src="https://img.shields.io/badge/pip-memesh-3b82f6?style=flat-square" alt="PyPI" /></a>
15
+ </p>
16
+ </p>
17
+
18
+ ---
19
+
20
+ ## 문제의 본질
21
+
22
+ AI는 세션이 끝날 때마다 모든 것을 잊어버립니다. 모든 결정, 모든 버그 수정, 모든 교훈——사라집니다. 같은 맥락을 반복해서 설명하고, Claude는 같은 패턴을 다시 발견하며, 팀의 AI 지식은 매번 제로로 초기화됩니다.
23
+
24
+ **MeMesh는 모든 AI에게 지속적이고, 검색 가능하며, 진화하는 메모리를 제공합니다.**
25
+
26
+ ---
27
+
28
+ ## 60초 만에 시작하기
29
+
30
+ ### 1단계: 설치
31
+
32
+ ```bash
33
+ npm install -g @pcircle/memesh
34
+ ```
35
+
36
+ ### 2단계: AI가 기억하기
37
+
38
+ ```bash
39
+ memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
40
+ ```
41
+
42
+ ### 3단계: AI가 떠올리기
43
+
44
+ ```bash
45
+ memesh recall "login security"
46
+ # → 다른 단어로 검색해도 "OAuth 2.0 with PKCE"를 찾아냅니다
47
+ ```
48
+
49
+ **끝입니다.** MeMesh가 세션을 넘나들며 기억하고 떠올리기 시작했습니다.
50
+
51
+ 대시보드를 열어 메모리를 탐색해보세요:
52
+
53
+ ```bash
54
+ memesh
55
+ ```
56
+
57
+ <p align="center">
58
+ <img src="docs/images/dashboard-search.png" alt="MeMesh Search — 어떤 메모리도 즉시 검색" width="100%" />
59
+ </p>
60
+
61
+ <p align="center">
62
+ <img src="docs/images/dashboard-analytics.png" alt="MeMesh Analytics — AI의 지식을 한눈에 파악" width="100%" />
63
+ </p>
64
+
65
+ ---
66
+
67
+ ## 누구를 위한 도구인가?
68
+
69
+ | 당신이…라면 | MeMesh가 이렇게 도와줍니다 |
70
+ |---------------|---------------------|
71
+ | **Claude Code를 사용하는 개발자** | 결정, 패턴, 교훈을 세션을 넘나들며 자동으로 기억 |
72
+ | **LLM으로 제품을 만드는 팀** | 내보내기/가져오기로 팀 지식을 공유하고 모두의 AI 맥락을 정렬 |
73
+ | **AI 에이전트 개발자** | MCP, HTTP API, Python SDK를 통해 에이전트에 지속 메모리 부여 |
74
+ | **여러 AI 도구를 쓰는 파워 유저** | Claude, GPT, LLaMA, Ollama 또는 모든 MCP 클라이언트와 작동하는 단일 메모리 레이어 |
75
+
76
+ ---
77
+
78
+ ## 모든 것과 연동
79
+
80
+ <table>
81
+ <tr>
82
+ <td width="33%" align="center">
83
+
84
+ **Claude Code / Desktop**
85
+ ```bash
86
+ memesh-mcp
87
+ ```
88
+ MCP 프로토콜 (자동 설정)
89
+
90
+ </td>
91
+ <td width="33%" align="center">
92
+
93
+ **Python / LangChain**
94
+ ```python
95
+ from memesh import MeMesh
96
+ m = MeMesh()
97
+ m.recall("auth")
98
+ ```
99
+ `pip install memesh`
100
+
101
+ </td>
102
+ <td width="33%" align="center">
103
+
104
+ **모든 LLM (OpenAI 형식)**
105
+ ```bash
106
+ memesh export-schema \
107
+ --format openai
108
+ ```
109
+ 어떤 API 호출에도 붙여넣기
110
+
111
+ </td>
112
+ </tr>
113
+ </table>
114
+
115
+ ---
116
+
117
+ ## 왜 Mem0 / Zep가 아닌가?
118
+
119
+ | | **MeMesh** | Mem0 | Zep |
120
+ |---|---|---|---|
121
+ | **설치 시간** | 5초 | 30~60분 | 30분 이상 |
122
+ | **설정 방법** | `npm i -g` — 완료 | Neo4j + VectorDB + API 키 | Neo4j + 설정 |
123
+ | **저장소** | SQLite 파일 하나 | Neo4j + Qdrant | Neo4j |
124
+ | **오프라인 사용** | 항상 가능 | 불가 | 불가 |
125
+ | **대시보드** | 내장 (5개 탭) | 없음 | 없음 |
126
+ | **의존성** | 6개 | 20개 이상 | 10개 이상 |
127
+ | **가격** | 영구 무료 | 무료 티어 / 유료 | 무료 티어 / 유료 |
128
+
129
+ **MeMesh의 트레이드오프:** 엔터프라이즈급 멀티테넌트 기능을 포기하는 대신 **즉시 설치, 제로 인프라, 100% 프라이버시**를 얻습니다.
130
+
131
+ ---
132
+
133
+ ## 자동으로 일어나는 일들
134
+
135
+ 모든 것을 직접 기억할 필요가 없습니다. MeMesh에는 **4개의 훅**이 있어 아무것도 하지 않아도 지식을 자동으로 포착합니다:
136
+
137
+ | 언제 | MeMesh가 하는 일 |
138
+ |------|------------------|
139
+ | **모든 세션 시작 시** | 스코어링 알고리즘으로 가장 관련성 높은 메모리를 로드 |
140
+ | **모든 `git commit` 후** | 변경 내용과 diff 통계를 기록 |
141
+ | **Claude 종료 시** | 편집한 파일, 수정한 오류, 내린 결정을 포착 |
142
+ | **컨텍스트 압축 전** | 컨텍스트 한계로 사라지기 전에 지식을 저장 |
143
+
144
+ > **언제든 비활성화:** `export MEMESH_AUTO_CAPTURE=false`
145
+
146
+ ---
147
+
148
+ ## 스마트 기능
149
+
150
+ **🧠 스마트 검색** — "login security"를 검색하면 "OAuth PKCE"에 관한 메모리를 찾아냅니다. 설정한 LLM을 이용해 쿼리를 관련 용어로 확장합니다.
151
+
152
+ **📊 점수 기반 순위** — 결과는 관련성(35%) + 최근 사용 시각(25%) + 사용 빈도(20%) + 신뢰도(15%) + 정보 유효성(5%)으로 순위를 매깁니다.
153
+
154
+ **🔄 지식 진화** — 결정은 바뀝니다. `forget`은 오래된 메모리를 아카이브합니다(절대 삭제하지 않습니다). `supersedes` 관계가 이전 것과 새 것을 연결합니다. AI는 항상 최신 버전을 참조합니다.
155
+
156
+ **⚠️ 충돌 감지** — 두 메모리가 서로 모순될 경우 MeMesh가 경고를 보냅니다.
157
+
158
+ **📦 팀 공유** — `memesh export > team-knowledge.json` → 팀과 공유 → `memesh import team-knowledge.json`
159
+
160
+ ---
161
+
162
+ ## 스마트 모드 활성화 (선택 사항)
163
+
164
+ MeMesh는 기본적으로 완전히 오프라인으로 동작합니다. LLM API 키를 추가하면 더 스마트한 검색을 사용할 수 있습니다:
165
+
166
+ ```bash
167
+ memesh config set llm.provider anthropic
168
+ memesh config set llm.api-key sk-ant-...
169
+ ```
170
+
171
+ 또는 대시보드 설정 탭에서 시각적으로 설정:
172
+
173
+ ```bash
174
+ memesh # 대시보드 열기 → 설정 탭
175
+ ```
176
+
177
+ | | 레벨 0 (기본값) | 레벨 1 (스마트 모드) |
178
+ |---|---|---|
179
+ | **검색** | FTS5 키워드 매칭 | + LLM 쿼리 확장 (~97% 재현율) |
180
+ | **자동 포착** | 규칙 기반 패턴 | + LLM이 결정 & 교훈 추출 |
181
+ | **압축** | 사용 불가 | `consolidate`로 장황한 메모리 압축 |
182
+ | **비용** | 무료, API 키 불필요 | 검색당 ~$0.0001 (Haiku) |
183
+
184
+ ---
185
+
186
+ ## 전체 6가지 메모리 도구
187
+
188
+ | 도구 | 기능 |
189
+ |------|-------------|
190
+ | `remember` | 관찰 기록, 관계, 태그와 함께 지식 저장 |
191
+ | `recall` | 다중 요소 스코어링과 LLM 쿼리 확장을 활용한 스마트 검색 |
192
+ | `forget` | 소프트 아카이브(절대 삭제 없음) 또는 특정 관찰 기록 제거 |
193
+ | `consolidate` | LLM 기반 장황한 메모리 압축 |
194
+ | `export` | 메모리를 JSON으로 프로젝트 또는 팀원과 공유 |
195
+ | `import` | 병합 전략(건너뛰기 / 덮어쓰기 / 추가)을 선택해 메모리 가져오기 |
196
+
197
+ ---
198
+
199
+ ## 아키텍처
200
+
201
+ ```
202
+ ┌─────────────────┐
203
+ │ Core Engine │
204
+ │ (6 operations) │
205
+ └────────┬────────┘
206
+ ┌─────────────────┼─────────────────┐
207
+ │ │ │
208
+ CLI (memesh) HTTP API (serve) MCP (memesh-mcp)
209
+ │ │ │
210
+ └─────────────────┼─────────────────┘
211
+
212
+ SQLite + FTS5 + sqlite-vec
213
+ (~/.memesh/knowledge-graph.db)
214
+ ```
215
+
216
+ 코어는 프레임워크 독립적. 터미널, HTTP, MCP 어디서 호출해도 동일한 로직이 실행됩니다.
217
+
218
+ ---
219
+
220
+ ## 기여하기
221
+
222
+ ```bash
223
+ git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
224
+ cd memesh-llm-memory && npm install && npm run build
225
+ npm test -- --run # 289 tests
226
+ ```
227
+
228
+ 대시보드: `cd dashboard && npm install && npm run dev`
229
+
230
+ ---
231
+
232
+ <p align="center">
233
+ <strong>MIT</strong> — <a href="https://pcircle.ai">PCIRCLE AI</a> 제작
234
+ </p>
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ 🌐 [English](README.md) | [繁體中文](README.zh-TW.md) | [简体中文](README.zh-CN.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Português](README.pt.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [Tiếng Việt](README.vi.md) | [Español](README.es.md) | [ภาษาไทย](README.th.md)
2
+
1
3
  <p align="center">
2
4
  <h1 align="center">MeMesh LLM Memory</h1>
3
5
  <p align="center">
@@ -15,127 +17,182 @@
15
17
 
16
18
  ---
17
19
 
18
- Your AI forgets everything between sessions. **MeMesh fixes that.**
20
+ ## The Problem
21
+
22
+ Your AI forgets everything between sessions. Every decision, every bug fix, every lesson learned — gone. You re-explain the same context, Claude re-discovers the same patterns, and your team's AI knowledge resets to zero.
23
+
24
+ **MeMesh gives every AI persistent, searchable, evolving memory.**
25
+
26
+ ---
27
+
28
+ ## Get Started in 60 Seconds
19
29
 
20
- Install once, configure in 30 seconds, and every AI tool you use — Claude, GPT, LLaMA, or any MCP client — gets persistent, searchable, evolving memory. No cloud. No Neo4j. No vector database. Just one SQLite file.
30
+ ### Step 1: Install
21
31
 
22
32
  ```bash
23
33
  npm install -g @pcircle/memesh
24
34
  ```
25
35
 
26
- ---
36
+ ### Step 2: Your AI remembers
37
+
38
+ ```bash
39
+ memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
40
+ ```
27
41
 
28
- ## Dashboard
42
+ ### Step 3: Your AI recalls
29
43
 
30
- <p align="center">
31
- <img src="docs/images/dashboard-search.png" alt="MeMesh Search" width="100%" />
32
- </p>
44
+ ```bash
45
+ memesh recall "login security"
46
+ # → Finds "OAuth 2.0 with PKCE" even though you searched different words
47
+ ```
48
+
49
+ **That's it.** MeMesh is now remembering and recalling across sessions.
50
+
51
+ Open the dashboard to explore your memory:
52
+
53
+ ```bash
54
+ memesh
55
+ ```
33
56
 
34
57
  <p align="center">
35
- <img src="docs/images/dashboard-analytics.png" alt="MeMesh Analytics" width="100%" />
58
+ <img src="docs/images/dashboard-search.png" alt="MeMesh Search — find any memory instantly" width="100%" />
36
59
  </p>
37
60
 
38
61
  <p align="center">
39
- <img src="docs/images/dashboard-browse.png" alt="MeMesh Browse" width="100%" />
62
+ <img src="docs/images/dashboard-analytics.png" alt="MeMesh Analytics — understand your AI's knowledge" width="100%" />
40
63
  </p>
41
64
 
42
- Run `memesh` to open the interactive dashboard with Search, Browse, Analytics, Manage, and Settings.
43
-
44
65
  ---
45
66
 
46
- ## Quick Start
67
+ ## Who Is This For?
47
68
 
48
- ```bash
49
- # Store a memory
50
- memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
69
+ | If you are... | MeMesh helps you... |
70
+ |---------------|---------------------|
71
+ | **A developer using Claude Code** | Remember decisions, patterns, and lessons across sessions automatically |
72
+ | **A team building with LLMs** | Share team knowledge via export/import, keep everyone's AI context aligned |
73
+ | **An AI agent developer** | Give your agents persistent memory via MCP, HTTP API, or Python SDK |
74
+ | **A power user with multiple AI tools** | One memory layer that works with Claude, GPT, LLaMA, Ollama, or any MCP client |
51
75
 
52
- # Search memories (finds "OAuth" even if you search "login security" with Smart Mode)
53
- memesh recall "login security"
76
+ ---
54
77
 
55
- # Archive outdated memories (soft-delete, never lost)
56
- memesh forget --name "old-auth-design"
78
+ ## Works With Everything
57
79
 
58
- # Open the dashboard
59
- memesh
80
+ <table>
81
+ <tr>
82
+ <td width="33%" align="center">
60
83
 
61
- # Start HTTP API (for Python SDK, integrations)
62
- memesh serve
84
+ **Claude Code / Desktop**
85
+ ```bash
86
+ memesh-mcp
63
87
  ```
88
+ MCP protocol (auto-configured)
64
89
 
65
- ### Python
90
+ </td>
91
+ <td width="33%" align="center">
66
92
 
93
+ **Python / LangChain**
67
94
  ```python
68
95
  from memesh import MeMesh
69
-
70
- m = MeMesh() # connects to localhost:3737
71
- m.remember("auth", "decision", observations=["Use OAuth 2.0 with PKCE"])
72
- results = m.recall("auth")
96
+ m = MeMesh()
97
+ m.recall("auth")
73
98
  ```
99
+ `pip install memesh`
74
100
 
75
- ### Any LLM (OpenAI function calling format)
101
+ </td>
102
+ <td width="33%" align="center">
76
103
 
104
+ **Any LLM (OpenAI format)**
77
105
  ```bash
78
- memesh export-schema --format openai
79
- # → JSON array of tools, paste into your OpenAI/Claude/Gemini API call
106
+ memesh export-schema \
107
+ --format openai
80
108
  ```
109
+ Paste tools into any API call
110
+
111
+ </td>
112
+ </tr>
113
+ </table>
81
114
 
82
115
  ---
83
116
 
84
- ## Why MeMesh?
117
+ ## Why Not Just Use Mem0 / Zep?
85
118
 
86
- Most AI memory solutions need Neo4j, vector databases, API keys, and 30+ minutes of setup. MeMesh needs **one command**.
119
+ | | **MeMesh** | Mem0 | Zep |
120
+ |---|---|---|---|
121
+ | **Install time** | 5 seconds | 30-60 minutes | 30+ minutes |
122
+ | **Setup** | `npm i -g` — done | Neo4j + VectorDB + API keys | Neo4j + config |
123
+ | **Storage** | Single SQLite file | Neo4j + Qdrant | Neo4j |
124
+ | **Works offline** | Yes, always | No | No |
125
+ | **Dashboard** | Built-in (5 tabs) | None | None |
126
+ | **Dependencies** | 6 | 20+ | 10+ |
127
+ | **Price** | Free forever | Free tier / Paid | Free tier / Paid |
87
128
 
88
- | | **MeMesh** | Mem0 | Zep | Anthropic Memory |
89
- |---|---|---|---|---|
90
- | **Install** | `npm i -g` (5 sec) | pip + Neo4j + VectorDB | pip + Neo4j | Built-in (cloud) |
91
- | **Storage** | Single SQLite file | Neo4j + Qdrant | Neo4j | Cloud |
92
- | **Search** | FTS5 + scoring + LLM expansion | Semantic + BM25 | Temporal graph | Key lookup |
93
- | **Privacy** | 100% local, always | Cloud option | Self-host | Cloud |
94
- | **Dependencies** | 6 | 20+ | 10+ | 0 (but cloud-locked) |
95
- | **Offline** | Yes | No | No | No |
96
- | **Dashboard** | Built-in (5 tabs) | None | None | None |
97
- | **Price** | Free | Free/Paid | Free/Paid | Included w/ API |
129
+ **MeMesh trades:** enterprise-scale multi-tenant features for **instant setup, zero infrastructure, and 100% privacy**.
98
130
 
99
131
  ---
100
132
 
101
- ## Features
133
+ ## What Happens Automatically
102
134
 
103
- ### 6 Memory Tools
135
+ You don't need to manually remember everything. MeMesh has **4 hooks** that capture knowledge without you doing anything:
136
+
137
+ | When | What MeMesh does |
138
+ |------|------------------|
139
+ | **Every session start** | Loads your most relevant memories (ranked by scoring algorithm) |
140
+ | **After every `git commit`** | Records what you changed, with diff stats |
141
+ | **When Claude stops** | Captures files edited, errors fixed, and decisions made |
142
+ | **Before context compaction** | Saves knowledge before it's lost to context limits |
143
+
144
+ > **Opt out anytime:** `export MEMESH_AUTO_CAPTURE=false`
145
+
146
+ ---
147
+
148
+ ## Smart Features
149
+
150
+ **🧠 Smart Search** — Search "login security" and find memories about "OAuth PKCE". MeMesh expands queries with related terms using your configured LLM.
151
+
152
+ **📊 Scored Ranking** — Results ranked by relevance (35%) + how recently you used it (25%) + how often (20%) + confidence (15%) + whether the info is still current (5%).
153
+
154
+ **🔄 Knowledge Evolution** — Decisions change. `forget` archives old memories (never deletes). `supersedes` relations link old → new. Your AI always sees the latest version.
155
+
156
+ **⚠️ Conflict Detection** — If you have two memories that contradict each other, MeMesh warns you.
157
+
158
+ **📦 Team Sharing** — `memesh export > team-knowledge.json` → share with your team → `memesh import team-knowledge.json`
159
+
160
+ ---
161
+
162
+ ## Unlock Smart Mode (Optional)
163
+
164
+ MeMesh works fully offline out of the box. Add an LLM API key to unlock smarter search:
165
+
166
+ ```bash
167
+ memesh config set llm.provider anthropic
168
+ memesh config set llm.api-key sk-ant-...
169
+ ```
170
+
171
+ Or use the dashboard Settings tab (visual setup):
172
+
173
+ ```bash
174
+ memesh # opens dashboard → Settings tab
175
+ ```
176
+
177
+ | | Level 0 (default) | Level 1 (Smart Mode) |
178
+ |---|---|---|
179
+ | **Search** | FTS5 keyword matching | + LLM query expansion (~97% recall) |
180
+ | **Auto-capture** | Rule-based patterns | + LLM extracts decisions & lessons |
181
+ | **Compression** | Not available | `consolidate` compresses verbose memories |
182
+ | **Cost** | Free, no API key | ~$0.0001 per search (Haiku) |
183
+
184
+ ---
185
+
186
+ ## All 6 Memory Tools
104
187
 
105
188
  | Tool | What it does |
106
189
  |------|-------------|
107
- | **remember** | Store knowledge with observations, relations, and tags |
108
- | **recall** | Smart search with multi-factor scoring and LLM query expansion |
109
- | **forget** | Soft-archive (never deletes) or remove specific observations |
110
- | **consolidate** | LLM-powered compression of verbose memories |
111
- | **export** | Share memories as JSON between projects or team members |
112
- | **import** | Import memories with merge strategies (skip / overwrite / append) |
113
-
114
- ### 3 Access Methods
115
-
116
- | Method | Command | Best for |
117
- |--------|---------|----------|
118
- | **CLI** | `memesh` | Terminal, scripting, CI/CD |
119
- | **HTTP API** | `memesh serve` | Python SDK, dashboard, integrations |
120
- | **MCP** | `memesh-mcp` | Claude Code, Claude Desktop, any MCP client |
121
-
122
- ### 4 Auto-Capture Hooks
123
-
124
- | Hook | Trigger | What it captures |
125
- |------|---------|-----------------|
126
- | **Session Start** | Every session | Loads your top memories by relevance |
127
- | **Post Commit** | After `git commit` | Records commit with diff stats |
128
- | **Session Summary** | When Claude stops | Files edited, errors fixed, decisions made |
129
- | **Pre-Compact** | Before compaction | Saves knowledge before context is lost |
130
-
131
- ### Smart Features
132
-
133
- - **Knowledge Evolution** — `forget` archives, not deletes. `supersedes` relations replace old decisions with new ones. History is preserved.
134
- - **Smart Recall** — LLM expands your search query into related terms. "login security" finds "OAuth PKCE".
135
- - **Multi-Factor Scoring** — Results ranked by relevance (35%) + recency (25%) + frequency (20%) + confidence (15%) + temporal validity (5%).
136
- - **Conflict Detection** — Warns when memories contradict each other.
137
- - **Auto-Decay** — Stale memories (30+ days unused) gradually fade in ranking. Never deleted.
138
- - **Namespaces** — `personal`, `team`, `global` scopes for organizing and sharing.
190
+ | `remember` | Store knowledge with observations, relations, and tags |
191
+ | `recall` | Smart search with multi-factor scoring and LLM query expansion |
192
+ | `forget` | Soft-archive (never deletes) or remove specific observations |
193
+ | `consolidate` | LLM-powered compression of verbose memories |
194
+ | `export` | Share memories as JSON between projects or team members |
195
+ | `import` | Import memories with merge strategies (skip / overwrite / append) |
139
196
 
140
197
  ---
141
198
 
@@ -156,32 +213,22 @@ Most AI memory solutions need Neo4j, vector databases, API keys, and 30+ minutes
156
213
  (~/.memesh/knowledge-graph.db)
157
214
  ```
158
215
 
159
- **Core** is framework-agnostic the same `remember`/`recall`/`forget` logic runs identically whether invoked from terminal, HTTP, or MCP.
160
-
161
- **Dependencies**: `better-sqlite3`, `sqlite-vec`, `@modelcontextprotocol/sdk`, `zod`, `express`, `commander`
216
+ Core is framework-agnostic. Same logic runs from terminal, HTTP, or MCP.
162
217
 
163
218
  ---
164
219
 
165
- ## Development
220
+ ## Contributing
166
221
 
167
222
  ```bash
168
223
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
169
- cd memesh-llm-memory
170
- npm install
171
- npm run build
224
+ cd memesh-llm-memory && npm install && npm run build
172
225
  npm test -- --run # 289 tests
173
226
  ```
174
227
 
175
- Dashboard development:
176
- ```bash
177
- cd dashboard
178
- npm install
179
- npm run dev # Vite dev server with hot reload
180
- npm run build # Build to single HTML file
181
- ```
228
+ Dashboard: `cd dashboard && npm install && npm run dev`
182
229
 
183
230
  ---
184
231
 
185
- ## License
186
-
187
- MIT — [PCIRCLE AI](https://pcircle.ai)
232
+ <p align="center">
233
+ <strong>MIT</strong> — Made by <a href="https://pcircle.ai">PCIRCLE AI</a>
234
+ </p>