dore-memory 0.3.2 → 0.4.4
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 +23 -39
- package/bin/dore-memory.js +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<strong>Memory for Claude Code. Say it once, it remembers in every new session.</strong><br/>
|
|
5
|
-
Runs on your laptop ·
|
|
5
|
+
Runs on your laptop · notes stored only on your machine · learns with Claude Haiku after sessions
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/SopheaII/dore-memory/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/SopheaII/dore-memory/ci.yml?branch=master&style=flat-square&label=CI" alt="CI" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/dore-memory"><img src="https://img.shields.io/npm/v/dore-memory?style=flat-square&logo=npm" alt="npm" /></a>
|
|
12
12
|
<img src="https://img.shields.io/badge/python-3.11+-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+" />
|
|
13
|
-
<img src="https://img.shields.io/badge/memory-
|
|
13
|
+
<img src="https://img.shields.io/badge/memory-stored_locally-2ea44f?style=flat-square" alt="Memory stored locally" />
|
|
14
14
|
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT license" />
|
|
15
15
|
</p>
|
|
16
16
|
|
|
@@ -29,11 +29,9 @@ Claude Code forgets everything between sessions, so you explain the same things
|
|
|
29
29
|
|
|
30
30
|
## How is it different from other memory tools?
|
|
31
31
|
|
|
32
|
-
Most memory tools
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
**dore keeps that work outside the model:** local rules in a hook decide what to save in ~13 ms for **0 Claude
|
|
36
|
-
tokens**, and Claude only reads the few notes that match your message — nothing when nothing matches.
|
|
32
|
+
Most memory tools let the AI decide what to save, then load it into every message: you pay tokens, and a fact is
|
|
33
|
+
lost when the AI forgets to save it. **dore saves outside the model** (~13 ms) and gives Claude
|
|
34
|
+
only the notes that match your message.
|
|
37
35
|
|
|
38
36
|
| | Usual memory tools | dore |
|
|
39
37
|
|---|---|---|
|
|
@@ -41,39 +39,25 @@ tokens**, and Claude only reads the few notes that match your message — nothin
|
|
|
41
39
|
| What Claude receives | Everything, or what the AI searched | Only matching notes (plus rules once a session) |
|
|
42
40
|
| Conflicting notes | Old and new may both stay | New beats old; you beat the AI |
|
|
43
41
|
| Where facts belong | No rule | You vs. project, kept apart |
|
|
44
|
-
| Where it runs | Sometimes a cloud service | On your computer;
|
|
42
|
+
| Where it runs | Sometimes a cloud service | On your computer; Haiku through your own `claude` login |
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
replies) to Haiku to sort it into facts, rules, lists and noise — about 6k tokens a day on one real history (estimate), never
|
|
49
|
-
while you work.
|
|
44
|
+
At a session end, Haiku sorts what you typed (not Claude's replies) into facts, rules and noise, in one batch: about
|
|
45
|
+
6k tokens a day (estimate), never while you work.
|
|
50
46
|
|
|
51
47
|
## See it work in Claude Code
|
|
52
48
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
**Session 1:** tell Claude a fact.
|
|
56
|
-
|
|
57
|
-

|
|
58
|
-
|
|
59
|
-
**Session 2:** close Claude, start a new session, and ask.
|
|
60
|
-
|
|
61
|
-

|
|
62
|
-
|
|
63
|
-
Without dore, Claude can't find the port. With dore, it answers **8443** right away.
|
|
64
|
-
|
|
65
|
-
### Shared across projects
|
|
49
|
+
Two real Claude Code terminals, both with dore, recorded as they ran (Claude's thinking time plays faster).
|
|
66
50
|
|
|
67
|
-
|
|
51
|
+
**Same project:** what you tell one terminal, the other knows: the port (7311, then 7412) and a rule (pnpm).
|
|
68
52
|
|
|
69
|
-

|
|
70
54
|
|
|
71
|
-
|
|
55
|
+
### Different projects
|
|
72
56
|
|
|
73
|
-
|
|
57
|
+
Terminal 2 moves to project **beta**. alpha's port and rule stay in alpha; your favourite fruit, and its update,
|
|
58
|
+
reach both.
|
|
74
59
|
|
|
75
|
-
|
|
76
|
-
that project.
|
|
60
|
+

|
|
77
61
|
|
|
78
62
|
## Test results
|
|
79
63
|
|
|
@@ -142,20 +126,20 @@ It also works with opencode and other MCP agents.
|
|
|
142
126
|
|
|
143
127
|
- **Learn:** dore reads each message before Claude does and keeps facts and rules. It skips questions and requests.
|
|
144
128
|
- **Recall:** it adds only the notes that match your message. Nothing matches, nothing is added.
|
|
145
|
-
- **Update:** a new value replaces the old one. The old note is hidden, never
|
|
129
|
+
- **Update:** a new value replaces the old one. The old note is hidden but kept, so the old value never comes back.
|
|
146
130
|
- **Rules like habits:** a rule you repeat or Claude follows gets stronger and starts each session; unused ones fade.
|
|
147
131
|
- **Haiku review:** at a session end, Haiku checks what you typed and pasted (not Claude's replies)
|
|
148
|
-
and keeps
|
|
132
|
+
and keeps or merges notes, deleting the junk; a pasted list is kept whole, a log or error is dropped. Until it runs (or
|
|
149
133
|
when `claude` can't be reached), local word rules keep what you say.
|
|
150
134
|
|
|
151
135
|
## Privacy
|
|
152
136
|
|
|
153
|
-
- **
|
|
154
|
-
|
|
155
|
-
- **Haiku
|
|
156
|
-
what you typed since the last batch
|
|
157
|
-
|
|
158
|
-
|
|
137
|
+
- **Stored only on your machine:** your notes, your projects and the search model's work. dore has no account,
|
|
138
|
+
no server and no telemetry.
|
|
139
|
+
- **Sent to Claude Haiku** after a session, through your own `claude` login like any message you send Claude (it
|
|
140
|
+
counts toward your Claude usage): what you typed since the last batch (not Claude's replies), anything you pasted
|
|
141
|
+
(only its first 20 and last 5 lines when it is long; code and logs included), and a few saved notes and rules
|
|
142
|
+
close to it, so Haiku can tell a new fact from an update or a repeat.
|
|
159
143
|
- **Besides Haiku, the only thing dore sends:** once a day, one request for the public page
|
|
160
144
|
`https://registry.npmjs.org/dore-memory/latest` to see the newest version number. It carries nothing about
|
|
161
145
|
you or your memory; npm sees an ordinary request from your IP address. When there is a newer version, the
|
package/bin/dore-memory.js
CHANGED
|
@@ -150,7 +150,7 @@ function install(upgrade) {
|
|
|
150
150
|
console.log(` memory: ${DATA}`);
|
|
151
151
|
console.log(` plugin: ${plugin ? PLUGIN + " installed" : "not installed (see above)"}`);
|
|
152
152
|
console.log(" Start a new Claude Code session; dore learns from what you tell it.");
|
|
153
|
-
console.log(" Your
|
|
153
|
+
console.log(" Your notes are stored on this computer. After a session, what you typed goes to Claude Haiku through your");
|
|
154
154
|
console.log(" own `claude` login to sort it into facts and rules. Once a day dore asks npm for a newer version and updates");
|
|
155
155
|
console.log(" itself in the background (nothing about you is sent); turn that off with DORE_NO_AUTO_UPDATE=1.");
|
|
156
156
|
}
|
|
@@ -166,7 +166,6 @@ function uninstall() {
|
|
|
166
166
|
fail(`could not remove ${VENV} (dore's helper may still be running). Close Claude Code, wait a minute, and run uninstall again.`);
|
|
167
167
|
}
|
|
168
168
|
say("removed the plugin and the Python environment.");
|
|
169
|
-
// dore never deletes memories: the notes stay unless the user removes them.
|
|
170
169
|
console.log(` Your memory was kept in ${DATA}. Delete that folder yourself if you want it gone.`);
|
|
171
170
|
}
|
|
172
171
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dore-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Local long-term memory for Claude Code. Say it once, it remembers in every new session. Installs the dore Python package and its Claude Code plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|