crbro-memory 1.5.0 β†’ 1.5.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.
package/README.md CHANGED
@@ -1,170 +1,170 @@
1
- # 🧠 CRBRO β€” Persistent Neural Memory for AI
2
-
3
- [![npm](https://img.shields.io/npm/v/crbro-memory)](https://www.npmjs.com/package/crbro-memory)
4
- [![license](https://img.shields.io/github/license/Octonove/crbro-memory)](LICENSE)
5
- [![MCP](https://img.shields.io/badge/MCP-Claude%20Code%20%C2%B7%20Claude%20Desktop%20%C2%B7%20Cursor-1E3A5F)](https://modelcontextprotocol.io)
6
-
7
- **CRBRO** is a local MCP (Model Context Protocol) server that gives your AI assistant **persistent long-term memory** across sessions. It uses a biological neural architecture β€” cortex, synapses, hippocampus β€” to store, connect, and retrieve knowledge automatically.
8
-
9
- ![CRBRO demo](docs/demo.gif)
10
-
11
- Free and open source (MIT). All 16 tools included β€” no license, no account, no tiers.
12
-
13
- > ⭐ **If CRBRO gives your AI a memory worth keeping, a star on GitHub is the best way to support it.**
14
-
15
- ## Features
16
-
17
- - **🧬 Biological Architecture** β€” Knowledge organized as neurons (cortex), connections (synapses), and session memory (hippocampus)
18
- - **πŸ” Fact-Level Search** β€” Powered by [Orama](https://orama.com/). Every fact is indexed on its own, so a topic with hundreds of facts stays as findable as one with three, and each result comes back with the exact fact that matched and the date it was recorded
19
- - **πŸ”₯ Heat Scores** β€” Automatic relevance tracking based on frequency, recency, and connectivity
20
- - **✏️ Correctable** β€” Knowledge can be superseded or retracted, not just piled up. A memory that only appends keeps serving yesterday's answer with today's confidence
21
- - **πŸ—ΊοΈ Global Map** β€” Cluster detection and cross-domain bridge identification
22
- - **⛏️ Knowledge Miner** β€” Optionally scans your local `.md`/`.txt` notes and feeds them into the brain
23
- - **πŸ”’ Fully Local** β€” Runs on Node.js alone: no Python, no Docker, no databases, no external services. Your memory never leaves your machine
24
- - **πŸ’Ύ File-Based** β€” All data stored as readable JSON files in `~/.crbro/` β€” inspectable, diffable, and versionable with git
25
- - **πŸ”Œ MCP Native** β€” Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client
26
-
27
- ## Quick Start
28
-
29
- ### 1. Initialize
30
-
31
- ```bash
32
- npx crbro-memory init
33
- ```
34
-
35
- ### 2. Add to your MCP config
36
-
37
- > **Register CRBRO at the user level, not per-project.** Your brain lives in
38
- > `~/.crbro/` and is shared across every folder β€” but if you register the
39
- > server inside a single project, other folders won't have the tools and it
40
- > will *look* like the memory is gone. User-level registration makes it
41
- > available everywhere, which is the whole point.
42
-
43
- **Claude Code** (one command, available in every folder):
44
- ```bash
45
- claude mcp add --scope user crbro -- npx -y crbro-memory
46
- ```
47
-
48
- **Claude Desktop** (`~/AppData/Roaming/Claude/claude_desktop_config.json`):
49
- ```json
50
- {
51
- "mcpServers": {
52
- "crbro": {
53
- "command": "npx",
54
- "args": ["-y", "crbro-memory"]
55
- }
56
- }
57
- }
58
- ```
59
-
60
- **Cursor** (`~/.cursor/mcp.json` β€” the one in your home folder, not a project's `.cursor/`):
61
- ```json
62
- {
63
- "mcpServers": {
64
- "crbro": {
65
- "command": "npx",
66
- "args": ["-y", "crbro-memory"]
67
- }
68
- }
69
- }
70
- ```
71
-
72
- ### 3. Start using it
73
-
74
- Your AI will now have access to 16 memory tools. Start any session with `crbro_boot`.
75
-
76
- ## Tools
77
-
78
- | Tool | Description |
79
- |------|-------------|
80
- | `crbro_boot` | Boot the brain at session start β€” loads hot topics and context |
81
- | `crbro_status` | Brain status β€” neurons, synapses, sessions count |
82
- | `crbro_learn` | Store a fact, decision, pattern, or preference |
83
- | `crbro_neuron` | Read a specific neuron (topic) with all its knowledge |
84
- | `crbro_neurons` | List neurons with optional filters (domain, type, heat) |
85
- | `crbro_recall` | Search every stored fact, not just topic names β€” returns the fact that matched |
86
- | `crbro_connect` | Create or strengthen a connection between neurons |
87
- | `crbro_connections` | Get all connections for a neuron |
88
- | `crbro_session_log` | Log a session summary |
89
- | `crbro_sessions` | List recent sessions |
90
- | `crbro_context` | Read/update active working context |
91
- | `crbro_hot_topics` | Get the most active topics by heat score |
92
- | `crbro_global_map` | View the neural network β€” clusters and cross-domain bridges |
93
- | `crbro_revise` | Mark facts as superseded or retracted when they stop being true |
94
- | `crbro_maintenance` | Brain maintenance β€” heat, pruning, integrity, index rebuild |
95
- | `crbro_consolidate` | End-of-session consolidation |
96
-
97
- ## Architecture
98
-
99
- ```
100
- ~/.crbro/
101
- β”œβ”€β”€ manifest.json ← Brain metadata
102
- β”œβ”€β”€ cortex/ ← One JSON per neuron (topic)
103
- β”‚ β”œβ”€β”€ project_octochat.json
104
- β”‚ └── tech_firebase.json
105
- β”œβ”€β”€ synapses/ ← One JSON per connection
106
- β”‚ └── syn_octochat__firebase.json
107
- β”œβ”€β”€ hippocampus/ ← One JSON per session
108
- β”‚ └── session_2026-05-06.json
109
- β”œβ”€β”€ prefrontal/ ← Working memory
110
- β”‚ β”œβ”€β”€ active_context.json
111
- β”‚ β”œβ”€β”€ hot_topics.json
112
- β”‚ └── global_map.json
113
- β”œβ”€β”€ archives/ ← Cold neurons (opt-in; nothing is archived unless you ask)
114
- └── .search/ ← Orama search index
115
- └── chunks.index.json ← one document per fact
116
- ```
117
-
118
- ## Heat Score Algorithm
119
-
120
- Each neuron has a heat score (0.0 - 1.0) calculated from:
121
-
122
- - **Frequency (35%)** β€” How often the neuron is accessed
123
- - **Recency (40%)** β€” When it was last accessed (today = 1.0, >3 months = 0.05)
124
- - **Connectivity (25%)** β€” How many synapses connect to it
125
-
126
- ## Knowledge Miner
127
-
128
- The miner is an **optional, fully local** helper that scans a directory for `.md` and `.txt` files (notes, docs, journals) and extracts knowledge into the brain β€” so CRBRO can learn from what you already wrote, not just from conversations. It never touches the network and never leaves your machine.
129
-
130
- ```bash
131
- npx crbro-memory mine [dir] # One-shot scan of a directory
132
- npx crbro-memory setup-miner # Install a scheduled auto-scan (OS task scheduler)
133
- npx crbro-memory miner-status # Check the auto-miner status
134
- npx crbro-memory remove-miner # Remove the scheduled task
135
- ```
136
-
137
- > Naming note: "miner" here means *knowledge* mining β€” extracting facts from your own text files. Nothing to do with cryptocurrency.
138
-
139
- ## CLI Commands
140
-
141
- ```bash
142
- npx crbro-memory # Start MCP server (stdio)
143
- npx crbro-memory init # Initialize brain + detect IDEs
144
- npx crbro-memory status # Show brain status
145
- npx crbro-memory reindex # Rebuild the search index
146
- npx crbro-memory eval # Measure retrieval quality against your own query set
147
- npx crbro-memory --help # Help
148
- ```
149
-
150
- ### Measuring retrieval
151
-
152
- `eval` is there so you can tell a fix from a feeling. Write
153
- `~/.crbro/.eval/queries.json` as a list of questions you would actually ask,
154
- each naming the neuron that should answer it:
155
-
156
- ```json
157
- [
158
- { "query": "how we deploy the api",
159
- "expect_neuron": "project_octochat",
160
- "expect_contains": "Cloud Run" }
161
- ]
162
- ```
163
-
164
- Then `npx crbro-memory eval` reports how often the right neuron comes back
165
- first, how often it makes the top three, and MRR β€” plus every miss, so you can
166
- see what it got wrong instead of guessing.
167
-
168
- ## License
169
-
170
- MIT β€” see [LICENSE](LICENSE). Built by [Octonove](https://github.com/Octonove).
1
+ # 🧠 CRBRO β€” Persistent Neural Memory for AI
2
+
3
+ [![npm](https://img.shields.io/npm/v/crbro-memory)](https://www.npmjs.com/package/crbro-memory)
4
+ [![license](https://img.shields.io/github/license/Octonove/crbro-memory)](LICENSE)
5
+ [![MCP](https://img.shields.io/badge/MCP-Claude%20Code%20%C2%B7%20Claude%20Desktop%20%C2%B7%20Cursor-1E3A5F)](https://modelcontextprotocol.io)
6
+
7
+ **CRBRO** is a local MCP (Model Context Protocol) server that gives your AI assistant **persistent long-term memory** across sessions. It uses a biological neural architecture β€” cortex, synapses, hippocampus β€” to store, connect, and retrieve knowledge automatically.
8
+
9
+ ![CRBRO demo](docs/demo.gif)
10
+
11
+ Free and open source (MIT). All 16 tools included β€” no license, no account, no tiers.
12
+
13
+ > ⭐ **If CRBRO gives your AI a memory worth keeping, a star on GitHub is the best way to support it.**
14
+
15
+ ## Features
16
+
17
+ - **🧬 Biological Architecture** β€” Knowledge organized as neurons (cortex), connections (synapses), and session memory (hippocampus)
18
+ - **πŸ” Fact-Level Search** β€” Powered by [Orama](https://orama.com/). Every fact is indexed on its own, so a topic with hundreds of facts stays as findable as one with three, and each result comes back with the exact fact that matched and the date it was recorded
19
+ - **πŸ”₯ Heat Scores** β€” Automatic relevance tracking based on frequency, recency, and connectivity
20
+ - **✏️ Correctable** β€” Knowledge can be superseded or retracted, not just piled up. A memory that only appends keeps serving yesterday's answer with today's confidence
21
+ - **πŸ—ΊοΈ Global Map** β€” Cluster detection and cross-domain bridge identification
22
+ - **⛏️ Knowledge Miner** β€” Optionally scans your local `.md`/`.txt` notes and feeds them into the brain
23
+ - **πŸ”’ Fully Local** β€” Runs on Node.js alone: no Python, no Docker, no databases, no external services. Your memory never leaves your machine
24
+ - **πŸ’Ύ File-Based** β€” All data stored as readable JSON files in `~/.crbro/` β€” inspectable, diffable, and versionable with git
25
+ - **πŸ”Œ MCP Native** β€” Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client
26
+
27
+ ## Quick Start
28
+
29
+ ### 1. Initialize
30
+
31
+ ```bash
32
+ npx crbro-memory init
33
+ ```
34
+
35
+ ### 2. Add to your MCP config
36
+
37
+ > **Register CRBRO at the user level, not per-project.** Your brain lives in
38
+ > `~/.crbro/` and is shared across every folder β€” but if you register the
39
+ > server inside a single project, other folders won't have the tools and it
40
+ > will *look* like the memory is gone. User-level registration makes it
41
+ > available everywhere, which is the whole point.
42
+
43
+ **Claude Code** (one command, available in every folder):
44
+ ```bash
45
+ claude mcp add --scope user crbro -- npx -y crbro-memory
46
+ ```
47
+
48
+ **Claude Desktop** (`~/AppData/Roaming/Claude/claude_desktop_config.json`):
49
+ ```json
50
+ {
51
+ "mcpServers": {
52
+ "crbro": {
53
+ "command": "npx",
54
+ "args": ["-y", "crbro-memory"]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ **Cursor** (`~/.cursor/mcp.json` β€” the one in your home folder, not a project's `.cursor/`):
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "crbro": {
65
+ "command": "npx",
66
+ "args": ["-y", "crbro-memory"]
67
+ }
68
+ }
69
+ }
70
+ ```
71
+
72
+ ### 3. Start using it
73
+
74
+ Your AI will now have access to 16 memory tools. Start any session with `crbro_boot`.
75
+
76
+ ## Tools
77
+
78
+ | Tool | Description |
79
+ |------|-------------|
80
+ | `crbro_boot` | Boot the brain at session start β€” loads hot topics and context |
81
+ | `crbro_status` | Brain status β€” neurons, synapses, sessions count |
82
+ | `crbro_learn` | Store a fact, decision, pattern, or preference |
83
+ | `crbro_neuron` | Read a specific neuron (topic) with all its knowledge |
84
+ | `crbro_neurons` | List neurons with optional filters (domain, type, heat) |
85
+ | `crbro_recall` | Search every stored fact, not just topic names β€” returns the fact that matched |
86
+ | `crbro_connect` | Create or strengthen a connection between neurons |
87
+ | `crbro_connections` | Get all connections for a neuron |
88
+ | `crbro_session_log` | Log a session summary |
89
+ | `crbro_sessions` | List recent sessions |
90
+ | `crbro_context` | Read/update active working context |
91
+ | `crbro_hot_topics` | Get the most active topics by heat score |
92
+ | `crbro_global_map` | View the neural network β€” clusters and cross-domain bridges |
93
+ | `crbro_revise` | Mark facts as superseded or retracted when they stop being true |
94
+ | `crbro_maintenance` | Brain maintenance β€” heat, pruning, integrity, index rebuild |
95
+ | `crbro_consolidate` | End-of-session consolidation |
96
+
97
+ ## Architecture
98
+
99
+ ```
100
+ ~/.crbro/
101
+ β”œβ”€β”€ manifest.json ← Brain metadata
102
+ β”œβ”€β”€ cortex/ ← One JSON per neuron (topic)
103
+ β”‚ β”œβ”€β”€ project_octochat.json
104
+ β”‚ └── tech_firebase.json
105
+ β”œβ”€β”€ synapses/ ← One JSON per connection
106
+ β”‚ └── syn_octochat__firebase.json
107
+ β”œβ”€β”€ hippocampus/ ← One JSON per session
108
+ β”‚ └── session_2026-05-06.json
109
+ β”œβ”€β”€ prefrontal/ ← Working memory
110
+ β”‚ β”œβ”€β”€ active_context.json
111
+ β”‚ β”œβ”€β”€ hot_topics.json
112
+ β”‚ └── global_map.json
113
+ β”œβ”€β”€ archives/ ← Cold neurons (opt-in; nothing is archived unless you ask)
114
+ └── .search/ ← Orama search index
115
+ └── chunks.index.json ← one document per fact
116
+ ```
117
+
118
+ ## Heat Score Algorithm
119
+
120
+ Each neuron has a heat score (0.0 - 1.0) calculated from:
121
+
122
+ - **Frequency (35%)** β€” How often the neuron is accessed
123
+ - **Recency (40%)** β€” When it was last accessed (today = 1.0, >3 months = 0.05)
124
+ - **Connectivity (25%)** β€” How many synapses connect to it
125
+
126
+ ## Knowledge Miner
127
+
128
+ The miner is an **optional, fully local** helper that scans a directory for `.md` and `.txt` files (notes, docs, journals) and extracts knowledge into the brain β€” so CRBRO can learn from what you already wrote, not just from conversations. It never touches the network and never leaves your machine.
129
+
130
+ ```bash
131
+ npx crbro-memory mine [dir] # One-shot scan of a directory
132
+ npx crbro-memory setup-miner # Install a scheduled auto-scan (OS task scheduler)
133
+ npx crbro-memory miner-status # Check the auto-miner status
134
+ npx crbro-memory remove-miner # Remove the scheduled task
135
+ ```
136
+
137
+ > Naming note: "miner" here means *knowledge* mining β€” extracting facts from your own text files. Nothing to do with cryptocurrency.
138
+
139
+ ## CLI Commands
140
+
141
+ ```bash
142
+ npx crbro-memory # Start MCP server (stdio)
143
+ npx crbro-memory init # Initialize brain + detect IDEs
144
+ npx crbro-memory status # Show brain status
145
+ npx crbro-memory reindex # Rebuild the search index
146
+ npx crbro-memory eval # Measure retrieval quality against your own query set
147
+ npx crbro-memory --help # Help
148
+ ```
149
+
150
+ ### Measuring retrieval
151
+
152
+ `eval` is there so you can tell a fix from a feeling. Write
153
+ `~/.crbro/.eval/queries.json` as a list of questions you would actually ask,
154
+ each naming the neuron that should answer it:
155
+
156
+ ```json
157
+ [
158
+ { "query": "how we deploy the api",
159
+ "expect_neuron": "project_octochat",
160
+ "expect_contains": "Cloud Run" }
161
+ ]
162
+ ```
163
+
164
+ Then `npx crbro-memory eval` reports how often the right neuron comes back
165
+ first, how often it makes the top three, and MRR β€” plus every miss, so you can
166
+ see what it got wrong instead of guessing.
167
+
168
+ ## License
169
+
170
+ MIT β€” see [LICENSE](LICENSE). Built by [Octonove](https://github.com/Octonove).