mr-memory 3.6.1 → 3.7.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 (5) hide show
  1. package/README.md +4 -18
  2. package/index.js +1223 -0
  3. package/index.ts +60 -3
  4. package/package.json +9 -6
  5. package/upload.js +469 -0
package/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # mr-memory
2
2
 
3
- **mr-memory OpenClaw plugin** persistent AI memory that survives compaction and session resets.
3
+ `mr-memory` is the [MemoryRouter](https://memoryrouter.ai) plugin for [OpenClaw](https://github.com/openclaw/openclaw). It gives your AI persistent memory across every conversation.
4
4
 
5
- OpenClaw agents forget conversations after compaction. mr-memory fixes that. Every conversation is stored and the most relevant context is automatically injected into every response — not just at session start, but continuously.
6
-
7
- Powered by [MemoryRouter](https://memoryrouter.ai). 50M tokens free.
5
+ Powered by [MemoryRouter](https://memoryrouter.ai).
8
6
 
9
7
  ## Install
10
8
 
@@ -40,21 +38,9 @@ openclaw mr upload --brain <dir> # Custom state dir (sessions from another
40
38
 
41
39
  ## How It Works
42
40
 
43
- When enabled, the **mr-memory OpenClaw plugin** routes all LLM calls through MemoryRouter, which automatically:
44
-
45
- 1. **Retrieves** relevant memories from past conversations before every response
46
- 2. **Injects** that context into the prompt so the agent knows what's happened before
47
- 3. **Stores** new conversations for future recall
48
-
49
- Your provider API keys pass through untouched (BYOK). Only direct user-to-AI conversation is stored — tool use and subagent work are excluded automatically.
50
-
51
- ## Why mr-memory
41
+ When enabled, all LLM calls route through MemoryRouter which injects relevant past context and captures new conversations. Your provider API keys pass through untouched (BYOK).
52
42
 
53
- - **Survives compaction** memories persist even when OpenClaw summarizes/compacts conversation history
54
- - **Survives restarts** — stored externally, not in the session
55
- - **Full fidelity** — stores raw conversations, not lossy summaries
56
- - **Continuous** — queries memory on every message, not just session start
57
- - **Zero config** — one command install, one command setup
43
+ Only direct user-to-AI conversation is stored. Tool use and subagent work are excluded automatically.
58
44
 
59
45
  ## Config
60
46