@pcircle/memesh 3.0.0 โ 3.1.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 +234 -0
- package/README.es.md +234 -0
- package/README.fr.md +234 -0
- package/README.ja.md +234 -0
- package/README.ko.md +234 -0
- package/README.md +141 -94
- package/README.pt.md +234 -0
- package/README.th.md +234 -0
- package/README.vi.md +234 -0
- package/README.zh-CN.md +234 -0
- package/README.zh-TW.md +234 -0
- package/dashboard/dist/index.html +16 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +5 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/failure-analyzer.d.ts +13 -0
- package/dist/core/failure-analyzer.d.ts.map +1 -0
- package/dist/core/failure-analyzer.js +98 -0
- package/dist/core/failure-analyzer.js.map +1 -0
- package/dist/core/lesson-engine.d.ts +21 -0
- package/dist/core/lesson-engine.d.ts.map +1 -0
- package/dist/core/lesson-engine.js +76 -0
- package/dist/core/lesson-engine.js.map +1 -0
- package/dist/core/operations.d.ts +2 -1
- package/dist/core/operations.d.ts.map +1 -1
- package/dist/core/operations.js +15 -0
- package/dist/core/operations.js.map +1 -1
- package/dist/core/schema-export.d.ts.map +1 -1
- package/dist/core/schema-export.js +18 -0
- package/dist/core/schema-export.js.map +1 -1
- package/dist/core/types.d.ts +12 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/transports/cli/cli.js +35 -3
- package/dist/transports/cli/cli.js.map +1 -1
- package/dist/transports/http/server.d.ts.map +1 -1
- package/dist/transports/http/server.js +52 -1
- package/dist/transports/http/server.js.map +1 -1
- package/dist/transports/mcp/handlers.d.ts +31 -0
- package/dist/transports/mcp/handlers.d.ts.map +1 -1
- package/dist/transports/mcp/handlers.js +34 -1
- package/dist/transports/mcp/handlers.js.map +1 -1
- package/package.json +3 -1
- package/plugin.json +12 -4
- package/scripts/hooks/session-start.js +38 -1
- package/scripts/hooks/session-summary.js +34 -2
- package/skills/memesh/SKILL.md +73 -0
- package/skills/memesh-review/SKILL.md +54 -0
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
42
|
+
### Step 3: Your AI recalls
|
|
29
43
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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-
|
|
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-
|
|
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
|
-
##
|
|
67
|
+
## Who Is This For?
|
|
47
68
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
53
|
-
memesh recall "login security"
|
|
76
|
+
---
|
|
54
77
|
|
|
55
|
-
|
|
56
|
-
memesh forget --name "old-auth-design"
|
|
78
|
+
## Works With Everything
|
|
57
79
|
|
|
58
|
-
|
|
59
|
-
|
|
80
|
+
<table>
|
|
81
|
+
<tr>
|
|
82
|
+
<td width="33%" align="center">
|
|
60
83
|
|
|
61
|
-
|
|
62
|
-
|
|
84
|
+
**Claude Code / Desktop**
|
|
85
|
+
```bash
|
|
86
|
+
memesh-mcp
|
|
63
87
|
```
|
|
88
|
+
MCP protocol (auto-configured)
|
|
64
89
|
|
|
65
|
-
|
|
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
|
|
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
|
-
|
|
101
|
+
</td>
|
|
102
|
+
<td width="33%" align="center">
|
|
76
103
|
|
|
104
|
+
**Any LLM (OpenAI format)**
|
|
77
105
|
```bash
|
|
78
|
-
memesh export-schema
|
|
79
|
-
|
|
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
|
|
117
|
+
## Why Not Just Use Mem0 / Zep?
|
|
85
118
|
|
|
86
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
133
|
+
## What Happens Automatically
|
|
102
134
|
|
|
103
|
-
|
|
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
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
232
|
+
<p align="center">
|
|
233
|
+
<strong>MIT</strong> โ Made by <a href="https://pcircle.ai">PCIRCLE AI</a>
|
|
234
|
+
</p>
|