@pcircle/memesh 4.0.0 → 4.0.2

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.md CHANGED
@@ -3,8 +3,8 @@
3
3
  <p align="center">
4
4
  <h1 align="center">MeMesh LLM Memory</h1>
5
5
  <p align="center">
6
- <strong>The lightest universal AI memory layer.</strong><br />
7
- One SQLite file. Any LLM. Zero cloud.
6
+ <strong>Local memory for Claude Code and MCP coding agents.</strong><br />
7
+ One SQLite file. No Docker. No cloud required.
8
8
  </p>
9
9
  <p align="center">
10
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>
@@ -18,9 +18,11 @@
18
18
 
19
19
  ## The Problem
20
20
 
21
- 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.
21
+ Your coding agent forgets what happened between sessions. Every architecture decision, bug fix, failed test, and hard-won lesson has to be re-explained. Claude Code starts fresh, re-discovers old constraints, and burns context on things it should already know.
22
22
 
23
- **MeMesh gives every AI persistent, searchable, evolving memory.**
23
+ **MeMesh gives coding agents persistent, searchable, evolving local memory.**
24
+
25
+ This package is the local memory layer of the MeMesh product family. It is intentionally small and open-source: install it with npm, keep your memory in `~/.memesh/knowledge-graph.db`, and connect it to Claude Code or any MCP-compatible client. Hosted workspace and enterprise operating-system products should stay separate from this package's README and roadmap.
24
26
 
25
27
  ---
26
28
 
@@ -32,13 +34,13 @@ Your AI forgets everything between sessions. Every decision, every bug fix, ever
32
34
  npm install -g @pcircle/memesh
33
35
  ```
34
36
 
35
- ### Step 2: Your AI remembers
37
+ ### Step 2: Store a decision
36
38
 
37
39
  ```bash
38
40
  memesh remember --name "auth-decision" --type "decision" --obs "Use OAuth 2.0 with PKCE"
39
41
  ```
40
42
 
41
- ### Step 3: Your AI recalls
43
+ ### Step 3: Recall it later
42
44
 
43
45
  ```bash
44
46
  memesh recall "login security"
@@ -71,14 +73,14 @@ memesh
71
73
 
72
74
  | If you are... | MeMesh helps you... |
73
75
  |---------------|---------------------|
74
- | **A developer using Claude Code** | Remember decisions, patterns, and lessons across sessions automatically |
75
- | **A team building with LLMs** | Share team knowledge via export/import, keep everyone's AI context aligned |
76
- | **An AI agent developer** | Give your agents persistent memory via MCP, HTTP API, or Python SDK |
77
- | **A power user with multiple AI tools** | One memory layer that works with Claude, GPT, LLaMA, Ollama, or any MCP client |
76
+ | **A developer using Claude Code** | Auto-recall project decisions, file-specific lessons, and past failures as you work |
77
+ | **A coding-agent power user** | Share one local memory layer across MCP-compatible tools |
78
+ | **A team experimenting with AI coding workflows** | Export/import project knowledge without introducing hosted infrastructure |
79
+ | **An agent developer** | Add local memory through MCP, HTTP, CLI, or the Python SDK |
78
80
 
79
81
  ---
80
82
 
81
- ## Works With Everything
83
+ ## Designed For Coding Agents First
82
84
 
83
85
  <table>
84
86
  <tr>
@@ -88,7 +90,7 @@ memesh
88
90
  ```bash
89
91
  memesh-mcp
90
92
  ```
91
- MCP protocol (auto-configured)
93
+ MCP tools + Claude Code hooks
92
94
 
93
95
  </td>
94
96
  <td width="33%" align="center">
@@ -96,6 +98,7 @@ MCP protocol (auto-configured)
96
98
  **Any HTTP Client**
97
99
  ```bash
98
100
  curl localhost:3737/v1/recall \
101
+ -H "Content-Type: application/json" \
99
102
  -d '{"query":"auth"}'
100
103
  ```
101
104
  `memesh serve` (REST API)
@@ -116,29 +119,30 @@ Paste tools into any API call
116
119
 
117
120
  ---
118
121
 
119
- ## Why Not Just Use Mem0 / Zep?
122
+ ## Why Not OpenMemory, Cursor Memories, Mem0, Or Zep?
120
123
 
121
- | | **MeMesh** | Mem0 | Zep |
122
- |---|---|---|---|
123
- | **Install time** | 5 seconds | 30-60 minutes | 30+ minutes |
124
- | **Setup** | `npm i -g` done | Neo4j + VectorDB + API keys | Neo4j + config |
125
- | **Storage** | Single SQLite file | Neo4j + Qdrant | Neo4j |
126
- | **Works offline** | Yes, always | No | No |
127
- | **Dashboard** | Built-in (7 tabs + analytics) | None | None |
128
- | **Dependencies** | 6 | 20+ | 10+ |
129
- | **Price** | Free forever | Free tier / Paid | Free tier / Paid |
124
+ | | **MeMesh** | OpenMemory | Cursor Memories | Mem0 | Zep / Graphiti |
125
+ |---|---|---|---|---|---|
126
+ | **Best fit** | Local memory for coding agents | Local/cross-client MCP memory | Cursor-native project memory | Managed app/agent memory | Temporal knowledge graphs |
127
+ | **Install shape** | `npm install -g @pcircle/memesh` | Local app/server flow | Built into Cursor | Cloud API / SDK / MCP | Service/framework setup |
128
+ | **Storage** | One local SQLite file | Local memory stack | Cursor-managed rules/memories | Hosted or self-hosted stack | Graph database |
129
+ | **Cloud required** | No | No for local mode | Depends on Cursor account/settings | Yes for platform | Usually yes/self-hosted |
130
+ | **Claude Code hooks** | First-class | MCP tools | No | MCP tools | Not Claude Code-specific |
131
+ | **Dashboard** | Built in | Built in | Cursor settings | Platform dashboard | Platform/graph tooling |
132
+ | **Tradeoff** | Simple local wedge, not enterprise scale | Broader local app footprint | Locked to Cursor | Strong managed platform, less local-first | Strong graph model, heavier setup |
130
133
 
131
- **MeMesh trades:** enterprise-scale multi-tenant features for **instant setup, zero infrastructure, and 100% privacy**.
134
+ **MeMesh trades enterprise-scale managed infrastructure for instant local setup, inspectable storage, and coding-agent workflow hooks.**
132
135
 
133
136
  ---
134
137
 
135
- ## What Happens Automatically
138
+ ## What Happens Automatically In Claude Code
136
139
 
137
- You don't need to manually remember everything. MeMesh has **4 hooks** that capture knowledge without you doing anything:
140
+ You don't need to manually remember everything. MeMesh has **5 hooks** that capture and inject knowledge while you work:
138
141
 
139
142
  | When | What MeMesh does |
140
143
  |------|------------------|
141
144
  | **Every session start** | Loads your most relevant memories + proactive warnings from past lessons |
145
+ | **Before editing files** | Recalls memories tied to the file or project before Claude writes code |
142
146
  | **After every `git commit`** | Records what you changed, with diff stats |
143
147
  | **When Claude stops** | Captures files edited, errors fixed, and auto-generates structured lessons from failures |
144
148
  | **Before context compaction** | Saves knowledge before it's lost to context limits |
@@ -159,7 +163,7 @@ You don't need to manually remember everything. MeMesh has **4 hooks** that capt
159
163
  | **Graph** | Interactive force-directed knowledge graph with type filters, search, ego mode, recency heatmap |
160
164
  | **Lessons** | Structured lessons from past failures (error, root cause, fix, prevention) |
161
165
  | **Manage** | Archive and restore entities |
162
- | **Settings** | LLM provider config, language selector |
166
+ | **Settings** | LLM provider config, instant language selector |
163
167
 
164
168
  ---
165
169
 
@@ -167,17 +171,18 @@ You don't need to manually remember everything. MeMesh has **4 hooks** that capt
167
171
 
168
172
  **🧠 Smart Search** — Search "login security" and find memories about "OAuth PKCE". MeMesh expands queries with related terms using your configured LLM.
169
173
 
170
- **📊 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%).
174
+ **📊 Scored Ranking** — Results ranked by relevance (30%) + recency (25%) + frequency (15%) + confidence (15%) + recall impact (10%) + temporal validity (5%).
171
175
 
172
176
  **🔄 Knowledge Evolution** — Decisions change. `forget` archives old memories (never deletes). `supersedes` relations link old → new. Your AI always sees the latest version.
173
177
 
174
178
  **⚠️ Conflict Detection** — If you have two memories that contradict each other, MeMesh warns you.
175
179
 
176
180
  **📦 Team Sharing** — `memesh export > team-knowledge.json` → share with your team → `memesh import team-knowledge.json`
181
+ Imported bundles stay searchable, but MeMesh does not auto-inject imported memories into Claude hooks until you review or re-store them locally.
177
182
 
178
183
  ---
179
184
 
180
- ## Real-World Usage
185
+ ## Example Usage
181
186
 
182
187
  > "MeMesh remembered that we chose PKCE over implicit flow three weeks ago. When I asked Claude about auth again, it already knew — no re-explaining needed."
183
188
  > — **Solo developer, building a SaaS**
@@ -192,7 +197,7 @@ You don't need to manually remember everything. MeMesh has **4 hooks** that capt
192
197
 
193
198
  ## Unlock Smart Mode (Optional)
194
199
 
195
- MeMesh works fully offline out of the box. Add an LLM API key to unlock smarter search:
200
+ MeMesh works offline by default. Add an LLM API key only if you want query expansion, smarter extraction, and compression:
196
201
 
197
202
  ```bash
198
203
  memesh config set llm.provider anthropic
@@ -255,7 +260,8 @@ Core is framework-agnostic. Same logic runs from terminal, HTTP, or MCP.
255
260
  ```bash
256
261
  git clone https://github.com/PCIRCLE-AI/memesh-llm-memory
257
262
  cd memesh-llm-memory && npm install && npm run build
258
- npm test -- --run # 413 tests
263
+ npm test # 463 tests
264
+ npm run test:e2e-dashboard
259
265
  ```
260
266
 
261
267
  Dashboard: `cd dashboard && npm install && npm run dev`