@pcircle/memesh 4.0.1 → 4.0.3
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 +56 -201
- package/README.es.md +56 -201
- package/README.fr.md +56 -201
- package/README.ja.md +55 -200
- package/README.ko.md +56 -201
- package/README.md +36 -30
- package/README.pt.md +56 -201
- package/README.th.md +56 -201
- package/README.vi.md +56 -201
- package/README.zh-CN.md +56 -201
- package/README.zh-TW.md +56 -201
- package/dashboard/dist/index.html +4 -4
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +17 -7
- package/dist/core/config.js.map +1 -1
- package/dist/core/embedder.d.ts +2 -0
- package/dist/core/embedder.d.ts.map +1 -1
- package/dist/core/embedder.js +51 -8
- package/dist/core/embedder.js.map +1 -1
- package/dist/core/install-channel.d.ts +30 -0
- package/dist/core/install-channel.d.ts.map +1 -0
- package/dist/core/install-channel.js +83 -0
- package/dist/core/install-channel.js.map +1 -0
- package/dist/core/operations.d.ts.map +1 -1
- package/dist/core/operations.js +26 -8
- package/dist/core/operations.js.map +1 -1
- package/dist/core/serializer.d.ts.map +1 -1
- package/dist/core/serializer.js +24 -0
- package/dist/core/serializer.js.map +1 -1
- package/dist/core/updater.d.ts +11 -0
- package/dist/core/updater.d.ts.map +1 -0
- package/dist/core/updater.js +28 -0
- package/dist/core/updater.js.map +1 -0
- package/dist/core/version-check.d.ts +28 -4
- package/dist/core/version-check.d.ts.map +1 -1
- package/dist/core/version-check.js +167 -21
- package/dist/core/version-check.js.map +1 -1
- package/dist/knowledge-graph.d.ts +3 -0
- package/dist/knowledge-graph.d.ts.map +1 -1
- package/dist/knowledge-graph.js +28 -3
- package/dist/knowledge-graph.js.map +1 -1
- package/dist/transports/cli/cli.js +44 -13
- package/dist/transports/cli/cli.js.map +1 -1
- package/dist/transports/http/server.d.ts +3 -1
- package/dist/transports/http/server.d.ts.map +1 -1
- package/dist/transports/http/server.js +53 -2
- package/dist/transports/http/server.js.map +1 -1
- package/package.json +5 -6
- package/plugin.json +2 -2
- package/scripts/hooks/_shared.js +62 -0
- package/scripts/hooks/pre-edit-recall.js +22 -15
- package/scripts/hooks/session-start.js +30 -21
- package/scripts/hooks/session-summary.js +4 -5
- package/skills/memesh/SKILL.md +8 -0
package/README.pt.md
CHANGED
|
@@ -3,253 +3,108 @@
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<h1 align="center">MeMesh LLM Memory</h1>
|
|
5
5
|
<p align="center">
|
|
6
|
-
<strong>
|
|
7
|
-
Um
|
|
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>
|
|
6
|
+
<strong>Camada de memória local para Claude Code e agentes de código compatíveis com MCP.</strong><br />
|
|
7
|
+
Um arquivo SQLite. Sem Docker. Sem depender de nuvem.
|
|
14
8
|
</p>
|
|
15
9
|
</p>
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
> Este README em português é uma versão resumida. Para a documentação mais completa e atualizada, use o [English README](README.md).
|
|
18
12
|
|
|
19
|
-
##
|
|
13
|
+
## Qual problema ele resolve?
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
Agentes de código costumam perder o contexto entre sessões. Decisões de arquitetura, correções importantes, erros já resolvidos e restrições do projeto acabam sendo explicados de novo e de novo.
|
|
22
16
|
|
|
23
|
-
**O MeMesh
|
|
17
|
+
**O MeMesh mantém esse conhecimento no seu ambiente local, com busca, inspeção e reaproveitamento ao longo do trabalho.**
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
Este pacote npm é a versão local do plugin / package do MeMesh. Ele não é o produto de workspace em nuvem nem uma plataforma enterprise completa.
|
|
26
20
|
|
|
27
|
-
## Comece em 60
|
|
21
|
+
## Comece em 60 segundos
|
|
28
22
|
|
|
29
|
-
###
|
|
23
|
+
### 1. Instale
|
|
30
24
|
|
|
31
25
|
```bash
|
|
32
26
|
npm install -g @pcircle/memesh
|
|
33
27
|
```
|
|
34
28
|
|
|
35
|
-
###
|
|
29
|
+
### 2. Salve uma decisão
|
|
36
30
|
|
|
37
31
|
```bash
|
|
38
32
|
memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
|
|
39
33
|
```
|
|
40
34
|
|
|
41
|
-
###
|
|
35
|
+
### 3. Recupere depois
|
|
42
36
|
|
|
43
37
|
```bash
|
|
44
38
|
memesh recall "login security"
|
|
45
|
-
# →
|
|
39
|
+
# → encontra "OAuth 2.0 with PKCE" mesmo com palavras diferentes
|
|
46
40
|
```
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Abra o painel para explorar sua memória:
|
|
42
|
+
Abra o dashboard:
|
|
51
43
|
|
|
52
44
|
```bash
|
|
53
45
|
memesh
|
|
54
46
|
```
|
|
55
47
|
|
|
56
|
-
|
|
57
|
-
<img src="docs/images/dashboard-search.png" alt="MeMesh Search — encontre qualquer memória instantaneamente" width="100%" />
|
|
58
|
-
</p>
|
|
59
|
-
|
|
60
|
-
<p align="center">
|
|
61
|
-
<img src="docs/images/dashboard-analytics.png" alt="MeMesh Analytics — entenda o conhecimento do seu AI" width="100%" />
|
|
62
|
-
</p>
|
|
63
|
-
|
|
64
|
-
<p align="center">
|
|
65
|
-
<img src="docs/images/dashboard-graph.png" alt="MeMesh Graph — grafo de conhecimento interativo com filtros de tipo e modo ego" width="100%" />
|
|
66
|
-
</p>
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## Para Quem É Isso?
|
|
71
|
-
|
|
72
|
-
| Se você é... | O MeMesh ajuda você a... |
|
|
73
|
-
|---------------|---------------------|
|
|
74
|
-
| **Desenvolvedor usando Claude Code** | Lembrar decisões, padrões e lições entre sessões automaticamente |
|
|
75
|
-
| **Equipe construindo com LLMs** | Compartilhar conhecimento da equipe via exportação/importação, mantendo o contexto de todos alinhado |
|
|
76
|
-
| **Desenvolvedor de agentes de IA** | Dar aos seus agentes memória persistente via MCP, HTTP API ou Python SDK |
|
|
77
|
-
| **Usuário avançado com múltiplas ferramentas de IA** | Uma camada de memória que funciona com Claude, GPT, LLaMA, Ollama ou qualquer cliente MCP |
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## Funciona com Tudo
|
|
82
|
-
|
|
83
|
-
<table>
|
|
84
|
-
<tr>
|
|
85
|
-
<td width="33%" align="center">
|
|
86
|
-
|
|
87
|
-
**Claude Code / Desktop**
|
|
88
|
-
```bash
|
|
89
|
-
memesh-mcp
|
|
90
|
-
```
|
|
91
|
-
Protocolo MCP (configurado automaticamente)
|
|
92
|
-
|
|
93
|
-
</td>
|
|
94
|
-
<td width="33%" align="center">
|
|
95
|
-
|
|
96
|
-
**Python / LangChain**
|
|
97
|
-
```python
|
|
98
|
-
from memesh import MeMesh
|
|
99
|
-
m = MeMesh()
|
|
100
|
-
m.recall("auth")
|
|
101
|
-
```
|
|
102
|
-
`pip install memesh`
|
|
103
|
-
|
|
104
|
-
</td>
|
|
105
|
-
<td width="33%" align="center">
|
|
106
|
-
|
|
107
|
-
**Qualquer LLM (formato OpenAI)**
|
|
108
|
-
```bash
|
|
109
|
-
memesh export-schema \
|
|
110
|
-
--format openai
|
|
111
|
-
```
|
|
112
|
-
Cole as ferramentas em qualquer chamada de API
|
|
113
|
-
|
|
114
|
-
</td>
|
|
115
|
-
</tr>
|
|
116
|
-
</table>
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Por que Não Usar Mem0 / Zep?
|
|
48
|
+
## Para quem ele foi feito?
|
|
121
49
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| **Armazenamento** | Arquivo SQLite único | Neo4j + Qdrant | Neo4j |
|
|
127
|
-
| **Funciona offline** | Sim, sempre | Não | Não |
|
|
128
|
-
| **Painel** | Integrado (7 abas + analytics) | Nenhum | Nenhum |
|
|
129
|
-
| **Dependências** | 6 | 20+ | 10+ |
|
|
130
|
-
| **Preço** | Grátis para sempre | Plano gratuito / Pago | Plano gratuito / Pago |
|
|
50
|
+
- Desenvolvedores que usam Claude Code e querem manter contexto entre sessões
|
|
51
|
+
- Usuários avançados que querem compartilhar a mesma memória local entre agentes MCP
|
|
52
|
+
- Pequenas equipes AI-native que querem trocar conhecimento via export / import
|
|
53
|
+
- Desenvolvedores de agents que querem integrar memória local via CLI, HTTP ou MCP
|
|
131
54
|
|
|
132
|
-
|
|
55
|
+
## Por que usar o MeMesh?
|
|
133
56
|
|
|
134
|
-
|
|
57
|
+
- Local-first: os dados ficam no seu próprio arquivo SQLite
|
|
58
|
+
- Instalação leve: `npm install -g` e pronto
|
|
59
|
+
- Integração direta: suporta CLI, HTTP e MCP
|
|
60
|
+
- Bom encaixe com Claude Code: hooks ajudam a trazer contexto no fluxo de trabalho
|
|
61
|
+
- Transparência: o dashboard permite ver e organizar a memória
|
|
62
|
+
- Limite de confiança mais seguro: memórias importadas continuam pesquisáveis, mas não entram automaticamente nos hooks do Claude sem revisão ou novo salvamento local
|
|
135
63
|
|
|
136
|
-
## O que
|
|
64
|
+
## O que ele faz automaticamente no Claude Code?
|
|
137
65
|
|
|
138
|
-
|
|
66
|
+
Hoje o MeMesh ajuda em 5 momentos:
|
|
139
67
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
| **Antes da compactação de contexto** | Salva o conhecimento antes que se perca por limite de contexto |
|
|
68
|
+
- no início da sessão, carrega memórias relevantes e lições já conhecidas
|
|
69
|
+
- antes de editar arquivos, busca memórias relacionadas ao arquivo ou ao projeto
|
|
70
|
+
- depois de `git commit`, registra o que foi alterado
|
|
71
|
+
- no fim da sessão, organiza correções, erros e lessons learned
|
|
72
|
+
- antes do compact de contexto, salva o que não deveria se perder
|
|
146
73
|
|
|
147
|
-
|
|
74
|
+
## O que existe no dashboard?
|
|
148
75
|
|
|
149
|
-
|
|
76
|
+
O dashboard tem 7 abas e suporte a 11 idiomas:
|
|
150
77
|
|
|
151
|
-
|
|
78
|
+
- Search: buscar memórias
|
|
79
|
+
- Browse: listar memórias
|
|
80
|
+
- Analytics: acompanhar saúde e tendências
|
|
81
|
+
- Graph: ver relações de conhecimento
|
|
82
|
+
- Lessons: revisar lições aprendidas
|
|
83
|
+
- Manage: arquivar e restaurar memórias
|
|
84
|
+
- Settings: configurar provedor de LLM e idioma
|
|
152
85
|
|
|
153
|
-
|
|
86
|
+
## O que é o Smart Mode?
|
|
154
87
|
|
|
155
|
-
|
|
156
|
-
|-----|---------------|
|
|
157
|
-
| **Search** | Busca full-text + similaridade vetorial em todas as memórias |
|
|
158
|
-
| **Browse** | Lista paginada de todas as entidades com arquivamento/restauração |
|
|
159
|
-
| **Analytics** | Pontuação de Saúde da Memória (0-100), timeline de 30 dias, métricas de valor, cobertura de conhecimento, sugestões de limpeza, seus padrões de trabalho |
|
|
160
|
-
| **Graph** | Grafo de conhecimento interativo dirigido por força com filtros de tipo, busca, modo ego, heatmap de recência |
|
|
161
|
-
| **Lessons** | Lições estruturadas de falhas passadas (erro, causa raiz, correção, prevenção) |
|
|
162
|
-
| **Manage** | Arquivar e restaurar entidades |
|
|
163
|
-
| **Settings** | Configuração do provedor LLM, seletor de idioma |
|
|
88
|
+
O MeMesh funciona offline por padrão. Se você configurar uma API key de LLM, pode habilitar recursos extras, como:
|
|
164
89
|
|
|
165
|
-
|
|
90
|
+
- query expansion
|
|
91
|
+
- extração automática mais útil
|
|
92
|
+
- organização e compressão mais inteligentes
|
|
166
93
|
|
|
167
|
-
|
|
94
|
+
Sem API key, o núcleo do produto continua funcionando normalmente.
|
|
168
95
|
|
|
169
|
-
|
|
96
|
+
## Leia mais
|
|
170
97
|
|
|
171
|
-
|
|
98
|
+
- Funcionalidades completas, comparações, API e release notes: [English README](README.md)
|
|
99
|
+
- Guia de integrações: [docs/platforms/README.md](docs/platforms/README.md)
|
|
100
|
+
- Referência de API: [docs/api/API_REFERENCE.md](docs/api/API_REFERENCE.md)
|
|
172
101
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
**⚠️ Detecção de Conflitos** — Se você tiver duas memórias que se contradizem, o MeMesh avisa.
|
|
176
|
-
|
|
177
|
-
**📦 Compartilhamento em Equipe** — `memesh export > team-knowledge.json` → compartilhe com sua equipe → `memesh import team-knowledge.json`
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Ative o Modo Inteligente (Opcional)
|
|
182
|
-
|
|
183
|
-
O MeMesh funciona completamente offline por padrão. Adicione uma chave de API de LLM para desbloquear buscas mais inteligentes:
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
memesh config set llm.provider anthropic
|
|
187
|
-
memesh config set llm.api-key sk-ant-...
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
Ou use a aba Configurações do painel (configuração visual):
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
memesh # abre o painel → aba Configurações
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
| | Nível 0 (padrão) | Nível 1 (Modo Inteligente) |
|
|
197
|
-
|---|---|---|
|
|
198
|
-
| **Busca** | Correspondência de palavras-chave FTS5 | + Expansão de consulta por LLM (~97% de recall) |
|
|
199
|
-
| **Captura automática** | Padrões baseados em regras | + LLM extrai decisões e lições |
|
|
200
|
-
| **Compressão** | Não disponível | `consolidate` comprime memórias longas |
|
|
201
|
-
| **Custo** | Grátis, sem chave de API | ~$0,0001 por busca (Haiku) |
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## Todas as 8 Ferramentas de Memória
|
|
206
|
-
|
|
207
|
-
| Ferramenta | O que faz |
|
|
208
|
-
|------|-------------|
|
|
209
|
-
| `remember` | Armazena conhecimento com observações, relações e tags |
|
|
210
|
-
| `recall` | Busca inteligente com pontuação multifatorial e expansão de consulta por LLM |
|
|
211
|
-
| `forget` | Arquivamento suave (nunca deleta) ou remoção de observações específicas |
|
|
212
|
-
| `consolidate` | Compressão de memórias longas com auxílio de LLM |
|
|
213
|
-
| `export` | Compartilha memórias como JSON entre projetos ou membros da equipe |
|
|
214
|
-
| `import` | Importa memórias com estratégias de mesclagem (pular / sobrescrever / anexar) |
|
|
215
|
-
| `learn` | Registra lições estruturadas a partir de erros (erro, causa raiz, correção, prevenção) |
|
|
216
|
-
| `user_patterns` | Analisa seus padrões de trabalho — agenda, ferramentas, pontos fortes, áreas de aprendizado |
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
## Arquitetura
|
|
221
|
-
|
|
222
|
-
```
|
|
223
|
-
┌─────────────────┐
|
|
224
|
-
│ Core Engine │
|
|
225
|
-
│ (8 operations) │
|
|
226
|
-
└────────┬────────┘
|
|
227
|
-
┌─────────────────┼─────────────────┐
|
|
228
|
-
│ │ │
|
|
229
|
-
CLI (memesh) HTTP API (serve) MCP (memesh-mcp)
|
|
230
|
-
│ │ │
|
|
231
|
-
└─────────────────┼─────────────────┘
|
|
232
|
-
│
|
|
233
|
-
SQLite + FTS5 + sqlite-vec
|
|
234
|
-
(~/.memesh/knowledge-graph.db)
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
O núcleo é independente de framework. A mesma lógica é executada a partir do terminal, HTTP ou MCP.
|
|
238
|
-
|
|
239
|
-
---
|
|
240
|
-
|
|
241
|
-
## Contribuindo
|
|
102
|
+
## Desenvolvimento e verificação
|
|
242
103
|
|
|
243
104
|
```bash
|
|
244
105
|
git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
|
|
245
|
-
cd memesh-llm-memory
|
|
246
|
-
npm
|
|
106
|
+
cd memesh-llm-memory
|
|
107
|
+
npm install
|
|
108
|
+
npm run build
|
|
109
|
+
npm test
|
|
247
110
|
```
|
|
248
|
-
|
|
249
|
-
Painel: `cd dashboard && npm install && npm run dev`
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
|
-
<p align="center">
|
|
254
|
-
<strong>MIT</strong> — Feito por <a href="https://pcircle.ai">PCIRCLE AI</a>
|
|
255
|
-
</p>
|
package/README.th.md
CHANGED
|
@@ -3,253 +3,108 @@
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<h1 align="center">MeMesh LLM Memory</h1>
|
|
5
5
|
<p align="center">
|
|
6
|
-
<strong
|
|
7
|
-
|
|
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>
|
|
6
|
+
<strong>ชั้นความจำแบบ local สำหรับ Claude Code และ coding agents ที่รองรับ MCP</strong><br />
|
|
7
|
+
ใช้ SQLite ไฟล์เดียว ไม่ต้องมี Docker และไม่ต้องพึ่ง cloud
|
|
14
8
|
</p>
|
|
15
9
|
</p>
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
> README ภาษาไทยฉบับนี้เป็นเวอร์ชันสรุป หากต้องการข้อมูลที่ครบและอัปเดตที่สุด ให้ยึด [English README](README.md) เป็นหลัก
|
|
18
12
|
|
|
19
|
-
##
|
|
13
|
+
## MeMesh แก้ปัญหาอะไร?
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
coding agent มักจะลืมบริบทเมื่อจบ session ไปแล้ว พอเริ่มงานรอบใหม่ ก็ต้องอธิบายการตัดสินใจทางสถาปัตยกรรม บั๊กที่เคยแก้ บทเรียนที่เคยได้ และข้อจำกัดของโปรเจกต์ซ้ำอีกครั้ง
|
|
22
16
|
|
|
23
|
-
**MeMesh
|
|
17
|
+
**MeMesh ช่วยเก็บความรู้เหล่านี้ไว้ในเครื่องของคุณ ค้นหาได้ ตรวจสอบได้ และดึงกลับมาใช้ต่อได้**
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
แพ็กเกจ npm นี้คือ MeMesh เวอร์ชัน plugin / package แบบ local ไม่ใช่ผลิตภัณฑ์ workspace บน cloud และไม่ใช่แพลตฟอร์ม enterprise แบบเต็มรูปแบบ
|
|
26
20
|
|
|
27
|
-
##
|
|
21
|
+
## เริ่มได้ใน 60 วินาที
|
|
28
22
|
|
|
29
|
-
###
|
|
23
|
+
### 1. ติดตั้ง
|
|
30
24
|
|
|
31
25
|
```bash
|
|
32
26
|
npm install -g @pcircle/memesh
|
|
33
27
|
```
|
|
34
28
|
|
|
35
|
-
###
|
|
29
|
+
### 2. บันทึกการตัดสินใจหนึ่งรายการ
|
|
36
30
|
|
|
37
31
|
```bash
|
|
38
32
|
memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
|
|
39
33
|
```
|
|
40
34
|
|
|
41
|
-
###
|
|
35
|
+
### 3. เรียกกลับมาใช้ภายหลัง
|
|
42
36
|
|
|
43
37
|
```bash
|
|
44
38
|
memesh recall "login security"
|
|
45
|
-
# →
|
|
39
|
+
# → ต่อให้ใช้คำค้นคนละแบบ ก็ยังหา "OAuth 2.0 with PKCE" เจอได้
|
|
46
40
|
```
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
เปิด dashboard เพื่อสำรวจหน่วยความจำของคุณ:
|
|
42
|
+
เปิด dashboard:
|
|
51
43
|
|
|
52
44
|
```bash
|
|
53
45
|
memesh
|
|
54
46
|
```
|
|
55
47
|
|
|
56
|
-
|
|
57
|
-
<img src="docs/images/dashboard-search.png" alt="MeMesh Search — ค้นหาความจำใดก็ได้ทันที" width="100%" />
|
|
58
|
-
</p>
|
|
59
|
-
|
|
60
|
-
<p align="center">
|
|
61
|
-
<img src="docs/images/dashboard-analytics.png" alt="MeMesh Analytics — ทำความเข้าใจความรู้ของ AI คุณ" width="100%" />
|
|
62
|
-
</p>
|
|
63
|
-
|
|
64
|
-
<p align="center">
|
|
65
|
-
<img src="docs/images/dashboard-graph.png" alt="MeMesh Graph — กราฟความรู้แบบโต้ตอบพร้อมฟิลเตอร์ประเภทและโหมด ego" width="100%" />
|
|
66
|
-
</p>
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## เหมาะสำหรับใคร?
|
|
71
|
-
|
|
72
|
-
| ถ้าคุณเป็น... | MeMesh ช่วยคุณ... |
|
|
73
|
-
|---------------|---------------------|
|
|
74
|
-
| **นักพัฒนาที่ใช้ Claude Code** | จดจำการตัดสินใจ pattern และบทเรียนข้าม session โดยอัตโนมัติ |
|
|
75
|
-
| **ทีมที่สร้างผลิตภัณฑ์ด้วย LLM** | แชร์ความรู้ของทีมผ่านการส่งออก/นำเข้า และรักษา AI context ของทุกคนให้สอดคล้องกัน |
|
|
76
|
-
| **นักพัฒนา AI agent** | มอบหน่วยความจำถาวรให้กับ agent ผ่าน MCP, HTTP API หรือ Python SDK |
|
|
77
|
-
| **ผู้ใช้ขั้นสูงที่มีเครื่องมือ AI หลายตัว** | เลเยอร์หน่วยความจำเดียวที่ใช้ได้กับ Claude, GPT, LLaMA, Ollama หรือ MCP client ใดก็ได้ |
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## ทำงานร่วมกับทุกอย่าง
|
|
82
|
-
|
|
83
|
-
<table>
|
|
84
|
-
<tr>
|
|
85
|
-
<td width="33%" align="center">
|
|
86
|
-
|
|
87
|
-
**Claude Code / Desktop**
|
|
88
|
-
```bash
|
|
89
|
-
memesh-mcp
|
|
90
|
-
```
|
|
91
|
-
โปรโตคอล MCP (ตั้งค่าอัตโนมัติ)
|
|
92
|
-
|
|
93
|
-
</td>
|
|
94
|
-
<td width="33%" align="center">
|
|
95
|
-
|
|
96
|
-
**Python / LangChain**
|
|
97
|
-
```python
|
|
98
|
-
from memesh import MeMesh
|
|
99
|
-
m = MeMesh()
|
|
100
|
-
m.recall("auth")
|
|
101
|
-
```
|
|
102
|
-
`pip install memesh`
|
|
103
|
-
|
|
104
|
-
</td>
|
|
105
|
-
<td width="33%" align="center">
|
|
106
|
-
|
|
107
|
-
**ทุก LLM (รูปแบบ OpenAI)**
|
|
108
|
-
```bash
|
|
109
|
-
memesh export-schema \
|
|
110
|
-
--format openai
|
|
111
|
-
```
|
|
112
|
-
วาง tools ลงใน API call ใดก็ได้
|
|
113
|
-
|
|
114
|
-
</td>
|
|
115
|
-
</tr>
|
|
116
|
-
</table>
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## ทำไมไม่ใช้ Mem0 / Zep?
|
|
48
|
+
## เหมาะกับใคร?
|
|
121
49
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| **การจัดเก็บ** | ไฟล์ SQLite เดียว | Neo4j + Qdrant | Neo4j |
|
|
127
|
-
| **ใช้ออฟไลน์ได้** | ได้ เสมอ | ไม่ได้ | ไม่ได้ |
|
|
128
|
-
| **Dashboard** | ในตัว (7 แท็บ + analytics) | ไม่มี | ไม่มี |
|
|
129
|
-
| **Dependencies** | 6 | 20+ | 10+ |
|
|
130
|
-
| **ราคา** | ฟรีตลอดชีพ | แผนฟรี / เสียเงิน | แผนฟรี / เสียเงิน |
|
|
50
|
+
- นักพัฒนาที่ใช้ Claude Code และอยากเก็บบริบทของโปรเจกต์ข้าม session
|
|
51
|
+
- ผู้ใช้ระดับสูงที่อยากใช้ความจำ local ชุดเดียวร่วมกันระหว่าง MCP coding agents
|
|
52
|
+
- ทีม AI-native ขนาดเล็กที่อยากแชร์ความรู้ของโปรเจกต์ผ่าน export / import
|
|
53
|
+
- นักพัฒนา agent ที่อยากเชื่อม memory local ผ่าน CLI, HTTP หรือ MCP
|
|
131
54
|
|
|
132
|
-
|
|
55
|
+
## ทำไมต้อง MeMesh?
|
|
133
56
|
|
|
134
|
-
|
|
57
|
+
- local-first: ข้อมูลอยู่ในไฟล์ SQLite ของคุณเอง
|
|
58
|
+
- ติดตั้งง่าย: `npm install -g` แล้วเริ่มใช้ได้เลย
|
|
59
|
+
- เชื่อมต่อได้ตรงไปตรงมา: รองรับ CLI, HTTP และ MCP
|
|
60
|
+
- เหมาะกับ Claude Code: มี hooks ช่วยดึงบริบทที่เกี่ยวข้องเข้ามาใน workflow
|
|
61
|
+
- ตรวจสอบและจัดการได้: มี dashboard ให้ดูและจัดระเบียบ memory
|
|
62
|
+
- มีขอบเขตความเชื่อถือที่ปลอดภัยกว่า: memory ที่ import เข้ามายังค้นหาได้ แต่จะไม่ถูก inject เข้า Claude hooks โดยอัตโนมัติ จนกว่าจะมีการตรวจทานหรือบันทึกใหม่ในเครื่อง
|
|
135
63
|
|
|
136
|
-
##
|
|
64
|
+
## ใน Claude Code จะทำอะไรให้อัตโนมัติ?
|
|
137
65
|
|
|
138
|
-
|
|
66
|
+
ตอนนี้ MeMesh ช่วยใน 5 ช่วงหลัก:
|
|
139
67
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
| **ก่อนการบีบอัด context** | บันทึกความรู้ก่อนที่จะหายไปเพราะข้อจำกัดของ context |
|
|
68
|
+
- ตอนเริ่ม session จะโหลด memory ที่เกี่ยวข้องและบทเรียนที่เคยมี
|
|
69
|
+
- ก่อนแก้ไฟล์ จะเรียก memory ที่เกี่ยวข้องกับไฟล์หรือโปรเจกต์
|
|
70
|
+
- หลัง `git commit` จะบันทึกสิ่งที่เปลี่ยนไป
|
|
71
|
+
- ตอนจบ session จะสรุปการแก้ไข ข้อผิดพลาด และ lessons learned
|
|
72
|
+
- ก่อน compact context จะเก็บข้อมูลสำคัญกลับเข้า memory local
|
|
146
73
|
|
|
147
|
-
|
|
74
|
+
## Dashboard มีอะไรบ้าง?
|
|
148
75
|
|
|
149
|
-
|
|
76
|
+
Dashboard ตอนนี้มี 7 แท็บ และรองรับ 11 ภาษา:
|
|
150
77
|
|
|
151
|
-
|
|
78
|
+
- Search: ค้นหา memory
|
|
79
|
+
- Browse: ดู memory ทั้งหมด
|
|
80
|
+
- Analytics: ดูสุขภาพและแนวโน้ม
|
|
81
|
+
- Graph: ดูความสัมพันธ์ของความรู้
|
|
82
|
+
- Lessons: ทบทวนบทเรียนที่ผ่านมา
|
|
83
|
+
- Manage: archive และ restore
|
|
84
|
+
- Settings: ตั้งค่า LLM provider และภาษา
|
|
152
85
|
|
|
153
|
-
|
|
86
|
+
## Smart Mode คืออะไร?
|
|
154
87
|
|
|
155
|
-
|
|
156
|
-
|------|----------------|
|
|
157
|
-
| **Search** | ค้นหาเต็มรูปแบบ + ความคล้ายคลึงเชิงเวกเตอร์ในทุกความจำ |
|
|
158
|
-
| **Browse** | รายการแบบแบ่งหน้าของ entity ทั้งหมดพร้อมการเก็บถาวร/กู้คืน |
|
|
159
|
-
| **Analytics** | คะแนนสุขภาพหน่วยความจำ (0-100), ไทม์ไลน์ 30 วัน, ตัวชี้วัดมูลค่า, ความครอบคลุมของความรู้, คำแนะนำการทำความสะอาด, pattern การทำงาน |
|
|
160
|
-
| **Graph** | กราฟความรู้แบบโต้ตอบ force-directed พร้อมฟิลเตอร์ประเภท, ค้นหา, โหมด ego, heatmap ความใหม่ |
|
|
161
|
-
| **Lessons** | บทเรียนที่มีโครงสร้างจากความล้มเหลวในอดีต (ข้อผิดพลาด, สาเหตุหลัก, การแก้ไข, การป้องกัน) |
|
|
162
|
-
| **Manage** | เก็บถาวรและกู้คืน entity |
|
|
163
|
-
| **Settings** | ตั้งค่าผู้ให้บริการ LLM, เลือกภาษา |
|
|
88
|
+
MeMesh ใช้งานแบบ offline ได้ตั้งแต่ต้น หากคุณใส่ LLM API key เพิ่ม ก็จะเปิดความสามารถเสริม เช่น
|
|
164
89
|
|
|
165
|
-
|
|
90
|
+
- query expansion
|
|
91
|
+
- การสกัดข้อมูลอัตโนมัติที่ดีขึ้น
|
|
92
|
+
- การจัดระเบียบและบีบอัดข้อมูลที่ฉลาดขึ้น
|
|
166
93
|
|
|
167
|
-
|
|
94
|
+
ถึงไม่มี API key ก็ยังใช้ฟังก์ชันหลักได้ตามปกติ
|
|
168
95
|
|
|
169
|
-
|
|
96
|
+
## อ่านต่อ
|
|
170
97
|
|
|
171
|
-
|
|
98
|
+
- ฟีเจอร์ทั้งหมด การเปรียบเทียบ API และข้อมูล release: [English README](README.md)
|
|
99
|
+
- คู่มือการเชื่อมต่อแพลตฟอร์ม: [docs/platforms/README.md](docs/platforms/README.md)
|
|
100
|
+
- เอกสารอ้างอิง API: [docs/api/API_REFERENCE.md](docs/api/API_REFERENCE.md)
|
|
172
101
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
**⚠️ Conflict Detection** — ถ้ามีความจำสองอันที่ขัดแย้งกัน MeMesh จะแจ้งเตือน
|
|
176
|
-
|
|
177
|
-
**📦 Team Sharing** — `memesh export > team-knowledge.json` → แชร์กับทีม → `memesh import team-knowledge.json`
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## เปิดใช้ Smart Mode (ไม่บังคับ)
|
|
182
|
-
|
|
183
|
-
MeMesh ทำงานออฟไลน์สมบูรณ์แบบโดยค่าเริ่มต้น เพิ่ม LLM API key เพื่อปลดล็อกการค้นหาที่ฉลาดขึ้น:
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
memesh config set llm.provider anthropic
|
|
187
|
-
memesh config set llm.api-key sk-ant-...
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
หรือใช้แท็บ Settings ใน dashboard (ตั้งค่าแบบ visual):
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
memesh # เปิด dashboard → แท็บ Settings
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
| | ระดับ 0 (ค่าเริ่มต้น) | ระดับ 1 (Smart Mode) |
|
|
197
|
-
|---|---|---|
|
|
198
|
-
| **การค้นหา** | FTS5 keyword matching | + LLM query expansion (~97% recall) |
|
|
199
|
-
| **Auto-capture** | Pattern ตามกฎ | + LLM ดึงการตัดสินใจและบทเรียน |
|
|
200
|
-
| **การบีบอัด** | ไม่มี | `consolidate` บีบอัดความจำที่ยาวเกิน |
|
|
201
|
-
| **ค่าใช้จ่าย** | ฟรี ไม่ต้องใช้ API key | ~$0.0001 ต่อการค้นหา (Haiku) |
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## เครื่องมือหน่วยความจำทั้ง 8 อย่าง
|
|
206
|
-
|
|
207
|
-
| เครื่องมือ | หน้าที่ |
|
|
208
|
-
|------|-------------|
|
|
209
|
-
| `remember` | บันทึกความรู้พร้อมการสังเกต ความสัมพันธ์ และแท็ก |
|
|
210
|
-
| `recall` | ค้นหาอัจฉริยะด้วย multi-factor scoring และการขยายคำค้นด้วย LLM |
|
|
211
|
-
| `forget` | เก็บถาวรแบบนุ่มนวล (ไม่ลบจริง) หรือลบการสังเกตเฉพาะ |
|
|
212
|
-
| `consolidate` | บีบอัดความจำที่ยืดเยื้อด้วย LLM |
|
|
213
|
-
| `export` | แชร์ความจำในรูปแบบ JSON ระหว่างโปรเจกต์หรือสมาชิกทีม |
|
|
214
|
-
| `import` | นำเข้าความจำด้วยกลยุทธ์การรวม (ข้าม / เขียนทับ / ต่อท้าย) |
|
|
215
|
-
| `learn` | บันทึกบทเรียนที่มีโครงสร้างจากข้อผิดพลาด (ข้อผิดพลาด, สาเหตุหลัก, การแก้ไข, การป้องกัน) |
|
|
216
|
-
| `user_patterns` | วิเคราะห์ pattern การทำงาน — ตารางเวลา, เครื่องมือ, จุดแข็ง, สิ่งที่ต้องเรียนรู้ |
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
## สถาปัตยกรรม
|
|
221
|
-
|
|
222
|
-
```
|
|
223
|
-
┌─────────────────┐
|
|
224
|
-
│ Core Engine │
|
|
225
|
-
│ (8 operations) │
|
|
226
|
-
└────────┬────────┘
|
|
227
|
-
┌─────────────────┼─────────────────┐
|
|
228
|
-
│ │ │
|
|
229
|
-
CLI (memesh) HTTP API (serve) MCP (memesh-mcp)
|
|
230
|
-
│ │ │
|
|
231
|
-
└─────────────────┼─────────────────┘
|
|
232
|
-
│
|
|
233
|
-
SQLite + FTS5 + sqlite-vec
|
|
234
|
-
(~/.memesh/knowledge-graph.db)
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
Core ไม่ขึ้นกับ framework ตรรกะเดียวกันทำงานจาก terminal, HTTP หรือ MCP
|
|
238
|
-
|
|
239
|
-
---
|
|
240
|
-
|
|
241
|
-
## การมีส่วนร่วม
|
|
102
|
+
## การพัฒนาและการตรวจสอบ
|
|
242
103
|
|
|
243
104
|
```bash
|
|
244
105
|
git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
|
|
245
|
-
cd memesh-llm-memory
|
|
246
|
-
npm
|
|
106
|
+
cd memesh-llm-memory
|
|
107
|
+
npm install
|
|
108
|
+
npm run build
|
|
109
|
+
npm test
|
|
247
110
|
```
|
|
248
|
-
|
|
249
|
-
Dashboard: `cd dashboard && npm install && npm run dev`
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
|
-
<p align="center">
|
|
254
|
-
<strong>MIT</strong> — สร้างโดย <a href="https://pcircle.ai">PCIRCLE AI</a>
|
|
255
|
-
</p>
|