brain-memory 0.1.0-beta.24 → 0.1.0-beta.26
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 +13 -2
- package/assets/icon.png +0 -0
- package/assets/icon.svg +1 -27
- package/bin/brain.js +1 -1
- package/bin/install.js +1 -1
- package/commands/brain/status.md +1 -1
- package/package.json +1 -1
- package/prompts/claude.md +2 -2
- package/prompts/gemini.md +2 -2
- package/prompts/openai.md +2 -2
- package/prompts/opencode.md +2 -2
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ When a session begins and `~/.brain/` exists, the agent makes a single `brain se
|
|
|
146
146
|
4. **Review queue + low-confidence alerts**, then a brief status line:
|
|
147
147
|
|
|
148
148
|
```
|
|
149
|
-
|
|
149
|
+
◉ Brain active — 42 memories loaded (8 in current project context)
|
|
150
150
|
📋 3 memories due for review — reinforced automatically during /brain:sleep
|
|
151
151
|
```
|
|
152
152
|
|
|
@@ -161,7 +161,7 @@ Throughout the session, the agent maintains a running mental log of notable even
|
|
|
161
161
|
Every ~10 substantive interactions (file edits, architecture decisions, debugging breakthroughs), the agent evaluates whether memorizable content has accumulated. If so, it appends a brief reminder to its next response:
|
|
162
162
|
|
|
163
163
|
```
|
|
164
|
-
|
|
164
|
+
◉ Notable decisions and learnings this session — /brain:memorize when ready
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
This never interrupts your flow — it's a one-liner appended to an existing response, at most once per ~10 interactions. The counter resets after you run `/brain:memorize`.
|
|
@@ -483,6 +483,17 @@ For one-off transfers, use `/brain:sync export` and `/brain:sync import <path>`.
|
|
|
483
483
|
|
|
484
484
|
Sync state is stored locally in `~/.brain/.sync/` and is never pushed to the remote.
|
|
485
485
|
|
|
486
|
+
### Brain in Claude apps (web & mobile) — beta
|
|
487
|
+
|
|
488
|
+
Beyond the CLI, you can use your brain from the **Claude apps** (web, desktop, and your
|
|
489
|
+
**phone**) via the **Brain connector** — a remote MCP server hosted by [Brain Cloud](https://app.brainmemory.ai).
|
|
490
|
+
Add it once on claude.ai (**Settings → Connectors → Add custom connector → `https://mcp.brainmemory.ai/mcp`**),
|
|
491
|
+
sign in with the Google account holding your cloud brain, and it syncs to every Claude client on
|
|
492
|
+
your account. Read **and write**: recall + status, plus memorize / pin / unpin (writes prompt for
|
|
493
|
+
confirmation) — so you can capture a memory on your phone and recall it on your laptop.
|
|
494
|
+
|
|
495
|
+
→ Full guide: **[Use Brain in Claude apps](https://brainmemory.ai/docs/getting-started/claude-apps)**
|
|
496
|
+
|
|
486
497
|
## File Structure
|
|
487
498
|
|
|
488
499
|
```
|
package/assets/icon.png
CHANGED
|
Binary file
|
package/assets/icon.svg
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<defs>
|
|
3
|
-
<radialGradient id="bm-glow" cx="50%" cy="50%" r="50%">
|
|
4
|
-
<stop offset="0%" stop-color="#FFD27A" stop-opacity="0.9"/>
|
|
5
|
-
<stop offset="100%" stop-color="#E8A33D" stop-opacity="0"/>
|
|
6
|
-
</radialGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<rect x="0" y="0" width="1024" height="1024" rx="224" ry="224" fill="#07090A"/>
|
|
9
|
-
<circle cx="512" cy="512" r="384" fill="url(#bm-glow)" opacity="0.7"/>
|
|
10
|
-
<g stroke="#E8A33D" stroke-width="38" stroke-linecap="round">
|
|
11
|
-
<line x1="512" y1="512" x2="256" y2="256" stroke-opacity="0.4"/>
|
|
12
|
-
<line x1="512" y1="512" x2="800" y2="256" stroke-opacity="0.82"/>
|
|
13
|
-
<line x1="512" y1="512" x2="864" y2="544" stroke-opacity="0.5"/>
|
|
14
|
-
<line x1="512" y1="512" x2="768" y2="800" stroke-opacity="0.75"/>
|
|
15
|
-
<line x1="512" y1="512" x2="256" y2="736" stroke-opacity="0.4"/>
|
|
16
|
-
<line x1="512" y1="512" x2="192" y2="512" stroke-opacity="0.35"/>
|
|
17
|
-
</g>
|
|
18
|
-
<circle cx="256" cy="256" r="51" fill="#9A6E28"/>
|
|
19
|
-
<circle cx="864" cy="544" r="45" fill="#DCA044"/>
|
|
20
|
-
<circle cx="768" cy="800" r="61" fill="#F0B24A"/>
|
|
21
|
-
<circle cx="256" cy="736" r="51" fill="#A9762E"/>
|
|
22
|
-
<circle cx="192" cy="512" r="42" fill="#8A6022"/>
|
|
23
|
-
<circle cx="800" cy="256" r="83" fill="#FFDD8C"/>
|
|
24
|
-
<circle cx="672" cy="368" r="42" fill="#FFF0CC"/>
|
|
25
|
-
<circle cx="512" cy="512" r="118" fill="#FFF2D2"/>
|
|
26
|
-
<circle cx="512" cy="512" r="61" fill="#FFFFFF"/>
|
|
27
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="1024" height="1024" role="img" aria-label="Brain Memory"><defs><filter id="bi0-lg" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="1.6"/></filter><radialGradient id="bi0-g0"><stop offset="0%" stop-color="#adb5c2" stop-opacity="1.00"/><stop offset="100%" stop-color="#5A6B84" stop-opacity="0"/></radialGradient><radialGradient id="bi0-g1"><stop offset="0%" stop-color="#b7d4eb" stop-opacity="0.66"/><stop offset="100%" stop-color="#6FA8D6" stop-opacity="0"/></radialGradient><radialGradient id="bi0-g2"><stop offset="0%" stop-color="#f8d09f" stop-opacity="0.67"/><stop offset="100%" stop-color="#F0A03E" stop-opacity="0"/></radialGradient><radialGradient id="bi0-g3"><stop offset="0%" stop-color="#9fc7c7" stop-opacity="0.80"/><stop offset="100%" stop-color="#3F8E8E" stop-opacity="0"/></radialGradient><radialGradient id="bi0-g4"><stop offset="0%" stop-color="#fae1a5" stop-opacity="0.70"/><stop offset="100%" stop-color="#F5C24B" stop-opacity="0"/></radialGradient></defs><rect x="0" y="0" width="256" height="256" rx="56" ry="56" fill="#07090A"/><g filter="url(#bi0-lg)" opacity="0.9"><line x1="128" y1="128" x2="138.9" y2="230.8" stroke="#658aad" stroke-width="3.71" stroke-opacity="0.40" stroke-linecap="round"/><line x1="128" y1="128" x2="231.4" y2="127.5" stroke="#a89768" stroke-width="3.84" stroke-opacity="0.42" stroke-linecap="round"/><line x1="128" y1="128" x2="24.8" y2="134.6" stroke="#a58661" stroke-width="3.73" stroke-opacity="0.41" stroke-linecap="round"/><line x1="138.9" y1="230.8" x2="231.4" y2="127.5" stroke="#b2b591" stroke-width="2.75" stroke-opacity="0.30" stroke-linecap="round"/><line x1="138.9" y1="230.8" x2="24.8" y2="134.6" stroke="#b0a48a" stroke-width="2.64" stroke-opacity="0.29" stroke-linecap="round"/><line x1="24.8" y1="134.6" x2="122.7" y2="24.7" stroke="#989766" stroke-width="3.10" stroke-opacity="0.34" stroke-linecap="round"/><line x1="128" y1="128" x2="122.7" y2="24.7" stroke="#4d7d89" stroke-width="4.18" stroke-opacity="0.45" stroke-linecap="round"/><line x1="122.7" y1="24.7" x2="231.4" y2="127.5" stroke="#9aa86d" stroke-width="3.22" stroke-opacity="0.35" stroke-linecap="round"/></g><circle cx="128" cy="128" r="62.40" fill="url(#bi0-g0)"/><circle cx="128" cy="128" r="18.72" fill="#dbdee4" fill-opacity="1.00"/><circle cx="138.9" cy="230.8" r="34.66" fill="url(#bi0-g1)"/><circle cx="138.9" cy="230.8" r="10.40" fill="#dfecf6" fill-opacity="0.80"/><circle cx="24.8" cy="134.6" r="35.06" fill="url(#bi0-g2)"/><circle cx="24.8" cy="134.6" r="10.52" fill="#fcead5" fill-opacity="0.80"/><circle cx="122.7" cy="24.7" r="46.49" fill="url(#bi0-g3)"/><circle cx="122.7" cy="24.7" r="13.95" fill="#d5e6e6" fill-opacity="0.88"/><circle cx="231.4" cy="127.5" r="37.92" fill="url(#bi0-g4)"/><circle cx="231.4" cy="127.5" r="11.38" fill="#fdf2d7" fill-opacity="0.82"/></svg>
|
package/bin/brain.js
CHANGED
|
@@ -40,7 +40,7 @@ const DELEGATED = {
|
|
|
40
40
|
// `npx brain-memory` via npm's single-bin fallback.
|
|
41
41
|
const INSTALLER = new Set(['install', 'update', 'uninstall']);
|
|
42
42
|
|
|
43
|
-
const HELP =
|
|
43
|
+
const HELP = `◉ brain — Brain Memory CLI
|
|
44
44
|
|
|
45
45
|
Usage: brain <command> [options]
|
|
46
46
|
|
package/bin/install.js
CHANGED
|
@@ -306,7 +306,7 @@ async function main() {
|
|
|
306
306
|
console.log(`
|
|
307
307
|
╔══════════════════════════════════════════════════════╗
|
|
308
308
|
║ ║
|
|
309
|
-
║
|
|
309
|
+
║ ◉ Brain Memory — Installer ║
|
|
310
310
|
║ ║
|
|
311
311
|
║ Hierarchical memory system for AI coding agents ║
|
|
312
312
|
║ ║
|
package/commands/brain/status.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brain-memory",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.26",
|
|
4
4
|
"description": "A brain-inspired hierarchical memory system for AI coding agents. Deep nested file structure that mimics human memory with time-decay and strength-based recall.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/prompts/claude.md
CHANGED
|
@@ -79,7 +79,7 @@ If `~/.brain/index.json` exists:
|
|
|
79
79
|
3. **Output a single status line:**
|
|
80
80
|
|
|
81
81
|
```
|
|
82
|
-
|
|
82
|
+
◉ Brain active — <N> memories (<M> in project context)
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
Only add extra lines if actionable:
|
|
@@ -108,7 +108,7 @@ Track these categories as they happen:
|
|
|
108
108
|
If notable items have accumulated, append a **brief one-liner** at the end of your next natural response:
|
|
109
109
|
|
|
110
110
|
```
|
|
111
|
-
|
|
111
|
+
◉ Notable <type(s)> this session — /brain:memorize when ready
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
**Rules:**
|
package/prompts/gemini.md
CHANGED
|
@@ -80,7 +80,7 @@ If `~/.brain/index.json` exists:
|
|
|
80
80
|
3. **Output a single status line:**
|
|
81
81
|
|
|
82
82
|
```
|
|
83
|
-
|
|
83
|
+
◉ Brain active — <N> memories (<M> in project context)
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Only add extra lines if actionable:
|
|
@@ -109,7 +109,7 @@ Track these categories as they happen:
|
|
|
109
109
|
If notable items have accumulated, append a **brief one-liner** at the end of your next natural response:
|
|
110
110
|
|
|
111
111
|
```
|
|
112
|
-
|
|
112
|
+
◉ Notable <type(s)> this session — /brain:memorize when ready
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
**Rules:**
|
package/prompts/openai.md
CHANGED
|
@@ -80,7 +80,7 @@ If `.brain/index.json` exists:
|
|
|
80
80
|
3. **Output a single status line:**
|
|
81
81
|
|
|
82
82
|
```
|
|
83
|
-
|
|
83
|
+
◉ Brain active — <N> memories (<M> in project context)
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Only add extra lines if actionable:
|
|
@@ -109,7 +109,7 @@ Track these categories as they happen:
|
|
|
109
109
|
If notable items have accumulated, append a **brief one-liner** at the end of your next natural response:
|
|
110
110
|
|
|
111
111
|
```
|
|
112
|
-
|
|
112
|
+
◉ Notable <type(s)> this session — /brain-memorize when ready
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
**Rules:**
|
package/prompts/opencode.md
CHANGED
|
@@ -79,7 +79,7 @@ It returns JSON with `memory_count`, `pinned` (always-apply conventions/preferen
|
|
|
79
79
|
3. **Output a single status line:**
|
|
80
80
|
|
|
81
81
|
```
|
|
82
|
-
|
|
82
|
+
◉ Brain active — <N> memories (<M> in project context)
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
Only add extra lines if actionable:
|
|
@@ -108,7 +108,7 @@ Track these categories as they happen:
|
|
|
108
108
|
If notable items have accumulated, append a **brief one-liner** at the end of your next natural response:
|
|
109
109
|
|
|
110
110
|
```
|
|
111
|
-
|
|
111
|
+
◉ Notable <type(s)> this session — /brain:memorize when ready
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
**Rules:**
|