dore-memory 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +132 -9
  2. package/package.json +35 -8
package/README.md CHANGED
@@ -1,14 +1,137 @@
1
- # dore-memory
1
+ <h1 align="center">dore</h1>
2
2
 
3
- Local long-term memory for Claude Code. Say it once, it remembers in every new session.
4
- Runs on your machine, nothing leaves it. macOS and Linux.
3
+ <p align="center">
4
+ <strong>Memory for Claude Code. Say it once, it remembers in every new session.</strong><br/>
5
+ Runs on your laptop · free to learn · nothing leaves your machine
6
+ </p>
7
+
8
+ <p align="center">
9
+ <img src="https://img.shields.io/badge/Claude_Code-plugin_0.5.1-d97757?style=flat-square" alt="Claude Code plugin 0.5.1" />
10
+ <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>
11
+ <img src="https://img.shields.io/badge/python-3.11+-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+" />
12
+ <img src="https://img.shields.io/badge/data-stays_local-2ea44f?style=flat-square" alt="Data stays local" />
13
+ <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT license" />
14
+ </p>
15
+
16
+ ```bash
17
+ npx dore-memory install # sets up dore and its Claude Code plugin, then open a new Claude Code session
18
+ ```
19
+
20
+ ## Why dore
21
+
22
+ **Problem:** every new Claude Code session forgets what you told it, so you repeat yourself.
23
+
24
+ **Solution:** dore remembers what you say, just by talking as usual.
25
+
26
+ - 🪶 **Saves tokens:** learning costs 0 Claude tokens; most prompts get nothing added.
27
+ - 🧠 **Learns over time:** newer facts replace older ones, with no model training.
28
+ - 🗂️ **Shared across projects:** facts about you go everywhere; project facts stay put.
29
+ - ⚡ **Fast and private:** about 13 ms per prompt; everything stays on your machine.
30
+
31
+ ## See it work in Claude Code
32
+
33
+ Real screenshots: two Claude Code windows side by side, left **without** dore, right **with** dore.
34
+ Claude Code's own memory is turned off on both sides, so only dore can remember.
35
+
36
+ **Session 1:** tell Claude a fact.
37
+
38
+ ![Session 1: both sides are told the staging port](https://raw.githubusercontent.com/SopheaII/dore-memory/master/docs/images/claude-code-1-tell.png)
39
+
40
+ **Session 2:** close Claude, start a new session, and ask.
41
+
42
+ ![Session 2: without dore Claude can't find it; with dore it answers 8443](https://raw.githubusercontent.com/SopheaII/dore-memory/master/docs/images/claude-code-2-ask.png)
43
+
44
+ Without dore, Claude can't find the port. With dore, it answers **8443** right away.
45
+
46
+ ### Shared across projects
47
+
48
+ Facts about you are shared by all your projects. Tell it in project **api**:
49
+
50
+ ![Project api: both sides are told "I write all my APIs in Go"](https://raw.githubusercontent.com/SopheaII/dore-memory/master/docs/images/claude-code-3-other-project-tell.png)
51
+
52
+ Then ask in a different project, **shop**:
53
+
54
+ ![Project shop: without dore Claude can't tell; with dore it answers Go](https://raw.githubusercontent.com/SopheaII/dore-memory/master/docs/images/claude-code-4-other-project-ask.png)
55
+
56
+ Without dore, Claude can't tell. With dore, it knows: **Go**. Facts about one project (like its port) stay in
57
+ that project.
58
+
59
+ ## Test results
60
+
61
+ | Test | Result |
62
+ |---|---|
63
+ | Remembers facts across 20 sessions | **80 of 80** |
64
+ | Shows an outdated value after a change | **0 of 53** |
65
+ | Saves chatter (requests, questions) by mistake | **0 of 39** |
66
+ | Correct after 24 weeks, 12 projects | **81%** |
67
+ | Time per prompt | **13 ms** |
68
+
69
+ Run them yourself (no AI model needed, a few seconds each):
70
+
71
+ ```bash
72
+ .venv/bin/pytest -q
73
+ .venv/bin/python -m dore.eval.conversation
74
+ .venv/bin/python -m dore.eval.learning
75
+ ```
76
+
77
+ ## Install
78
+
79
+ ### With npm (recommended)
80
+
81
+ Needs Node 18+, [Claude Code](https://claude.com/claude-code), and [uv](https://docs.astral.sh/uv/) or Python 3.11+.
5
82
 
6
83
  ```bash
7
- npx dore-memory install # set up dore + the Claude Code plugin
8
- npx dore-memory status # check it
9
- npx dore-memory update # upgrade
10
- npx dore-memory uninstall # remove (your memory is kept)
84
+ npx dore-memory install
11
85
  ```
12
86
 
13
- Needs Node 18+, Claude Code, and `uv` or Python 3.11+.
14
- Source and docs: https://github.com/SopheaII/dore-memory
87
+ Then start a new Claude Code session and talk as usual. That's it.
88
+
89
+ | Command | What it does |
90
+ |---|---|
91
+ | `npx dore-memory install` | Sets up dore and turns on its Claude Code plugin |
92
+ | `npx dore-memory status` | Shows where dore is and whether the plugin is on |
93
+ | `npx dore-memory update` | Gets the latest dore |
94
+ | `npx dore-memory uninstall` | Removes dore and the plugin (your memory is kept) |
95
+
96
+ **What `install` does:** sets up dore in `~/.dore-memory` and turns on its Claude Code plugin.
97
+ Your memory is saved in `~/.dore-memory/data`. Change the folder with `DORE_HOME`.
98
+ The first install downloads about 200 MB (Python packages and a small search model).
99
+
100
+ ### From source
101
+
102
+ ```bash
103
+ git clone https://github.com/SopheaII/dore-memory.git ~/Documents/dore
104
+ cd ~/Documents/dore # or set DORE_HOME to where it is
105
+ uv venv .venv --python 3.12
106
+ uv pip install --python .venv/bin/python -e ".[dev]"
107
+ claude plugin marketplace add ~/Documents/dore
108
+ claude plugin install dore-memory@dore-memory
109
+ ```
110
+
111
+ Works on macOS and Linux, no GPU. It also works with opencode and other MCP agents.
112
+
113
+ ## How it works
114
+
115
+ 1. **You type a message** in Claude Code. dore's hook reads it before Claude does.
116
+ 2. **If it tells a fact** ("our staging port is 8443"), dore saves it as a note on your machine.
117
+ Questions and requests are not saved.
118
+ 3. **If it asks about something dore knows**, the hook adds the matching notes (a few lines) to your
119
+ message, so Claude can answer. If nothing matches, nothing is added (0 tokens).
120
+ 4. **If a fact changes** ("the port is now 9443"), the newer note replaces the old one.
121
+
122
+ Learning runs locally with small models, so it costs no Claude tokens and nothing leaves your machine.
123
+
124
+ ## Limits
125
+
126
+ - One question per fact works best. If one question asks two things, it may answer only one.
127
+ - Different words for the same thing ("job" vs "work as a nurse") may not match.
128
+ - English only.
129
+
130
+ ## More
131
+
132
+ [`AGENTS.md`](https://github.com/SopheaII/dore-memory/blob/master/AGENTS.md) (design and roadmap) · [`.agents/rules/`](https://github.com/SopheaII/dore-memory/blob/master/.agents/rules) (details and all measurements) ·
133
+ [`REFERENCES.md`](https://github.com/SopheaII/dore-memory/blob/master/REFERENCES.md) (where the ideas come from)
134
+
135
+ ## License
136
+
137
+ [MIT](https://github.com/SopheaII/dore-memory/blob/master/LICENSE): free to use, change and share.
package/package.json CHANGED
@@ -1,14 +1,41 @@
1
1
  {
2
2
  "name": "dore-memory",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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
- "keywords": ["claude-code", "claude", "memory", "agent", "mcp", "plugin"],
5
+ "keywords": [
6
+ "claude-code",
7
+ "claude",
8
+ "memory",
9
+ "agent",
10
+ "mcp",
11
+ "plugin"
12
+ ],
6
13
  "homepage": "https://github.com/SopheaII/dore-memory#readme",
7
- "repository": { "type": "git", "url": "git+https://github.com/SopheaII/dore-memory.git", "directory": "npm" },
8
- "bugs": { "url": "https://github.com/SopheaII/dore-memory/issues" },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/SopheaII/dore-memory.git",
17
+ "directory": "npm"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/SopheaII/dore-memory/issues"
21
+ },
9
22
  "license": "MIT",
10
- "bin": { "dore-memory": "bin/dore-memory.js" },
11
- "files": ["bin/", "README.md", "LICENSE"],
12
- "engines": { "node": ">=18" },
13
- "os": ["darwin", "linux"]
23
+ "bin": {
24
+ "dore-memory": "bin/dore-memory.js"
25
+ },
26
+ "files": [
27
+ "bin/",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "os": [
35
+ "darwin",
36
+ "linux"
37
+ ],
38
+ "scripts": {
39
+ "prepack": "node scripts/sync-readme.js"
40
+ }
14
41
  }