crbro-memory 1.10.0 β 1.11.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 +26 -2
- package/bin/crbro.mjs +485 -424
- package/dist/engine/brain.d.ts.map +1 -1
- package/dist/engine/brain.js +4 -1
- package/dist/engine/brain.js.map +1 -1
- package/dist/engine/cortex.d.ts +10 -1
- package/dist/engine/cortex.d.ts.map +1 -1
- package/dist/engine/cortex.js +24 -3
- package/dist/engine/cortex.js.map +1 -1
- package/dist/engine/maintenance.d.ts +3 -0
- package/dist/engine/maintenance.d.ts.map +1 -1
- package/dist/engine/maintenance.js +21 -0
- package/dist/engine/maintenance.js.map +1 -1
- package/dist/engine/secrets.d.ts.map +1 -1
- package/dist/engine/secrets.js +77 -7
- package/dist/engine/secrets.js.map +1 -1
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +13 -0
- package/dist/search/index.js.map +1 -1
- package/dist/search/tokenize.d.ts.map +1 -1
- package/dist/search/tokenize.js +8 -0
- package/dist/search/tokenize.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/sync/materialize.d.ts +3 -0
- package/dist/sync/materialize.d.ts.map +1 -1
- package/dist/sync/materialize.js +28 -6
- package/dist/sync/materialize.js.map +1 -1
- package/dist/sync/ops.d.ts +8 -3
- package/dist/sync/ops.d.ts.map +1 -1
- package/dist/sync/ops.js.map +1 -1
- package/dist/sync/space.d.ts.map +1 -1
- package/dist/sync/space.js +13 -1
- package/dist/sync/space.js.map +1 -1
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -1
- package/hooks/crbro-subagent.mjs +148 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -21,12 +21,27 @@ Free and open source (MIT). All 22 tools included β no license, no account, no
|
|
|
21
21
|
- **π Credential-aware** β API keys, tokens and passwords are replaced with a marker before they touch the disk. The sentence around them survives; the secret does not β and `crbro_secret` puts the real value in your operating system's own keychain, so refusing it does not leave you with nowhere to put it
|
|
22
22
|
- **π₯ Safe with two editors open** β Writes are serialised per neuron, so running CRBRO in two IDEs at once does not silently lose facts
|
|
23
23
|
- **π€ Shareable per project** β Put one project in a team space and it stays in step across everyone's machine. Everything else in your brain never leaves it
|
|
24
|
-
- **πΊοΈ
|
|
24
|
+
- **πΊοΈ Living Maps** β Each topic can carry one always-current map of how its system works (`crbro_map`), replaced whole on every change β plus a global map of clusters and cross-domain bridges
|
|
25
|
+
- **π Error Ledger** β `type: "error"` stores each real mistake WITH its correction, on the topic where it happened, so the same error is not made twice
|
|
26
|
+
- **βοΈ Debt Ledger** β `type: "debt"` records what you deliberately did NOT build β ceiling and revisit-trigger included β so dead ideas stop being re-proposed *(v1.11+)*
|
|
27
|
+
- **π‘οΈ Subagents Covered** β `npx crbro-memory install-hooks` wires a Claude Code hook that hands your behavioral protocols to every spawned subagent, which otherwise run without them
|
|
25
28
|
- **βοΈ Knowledge Miner** β Optionally scans your local `.md`/`.txt` notes and feeds them into the brain
|
|
26
29
|
- **π Fully Local** β Runs on Node.js alone: no Python, no Docker, no databases, no external services. Your memory never leaves your machine
|
|
27
30
|
- **πΎ File-Based** β All data stored as readable JSON files in `~/.crbro/` β inspectable, diffable, and versionable with git
|
|
28
31
|
- **π MCP Native** β Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client
|
|
29
32
|
|
|
33
|
+
## Measured, not promised
|
|
34
|
+
|
|
35
|
+
Every number below comes from a deterministic benchmark in [`benchmarks/`](benchmarks/) that runs in CI β no API calls, reproducible on your machine with `node benchmarks/<name>/run.mjs`. The unflattering ones are published on purpose.
|
|
36
|
+
|
|
37
|
+
| What | Result | The honest part |
|
|
38
|
+
|------|--------|-----------------|
|
|
39
|
+
| **Retrieval** (48 blind paraphrased queries, written by someone who never saw the stored text) | recall@1 **56%** Β· recall@3 **69%** Β· MRR 0.63 | A naive substring search scores 38%/58% on the same set. The gap to 100% is the documented price of shipping no semantic model (the 472 MB download was rejected) β the misses are true synonym gaps, listed in the benchmark output |
|
|
40
|
+
| **Secret redaction** (20 credentials in adversarial disguises, 19 near-miss innocents) | **100%** caught Β· **0%** false positives | 100% on *this frozen set* β a floor, not a security proof. The set grows as new evasion shapes appear; four of its entries were misses in the first run and were fixed, not hidden |
|
|
41
|
+
| **Cost** (what CRBRO adds to a session) | ~**753 tokens** at boot Β· **<1 ms** local recall over 300 facts | The context block is the product's whole token footprint; there is no per-message overhead |
|
|
42
|
+
|
|
43
|
+
What these benchmarks deliberately do **not** claim β human productivity, "it knows you", comparisons against other memory systems β is written down in [`benchmarks/LIMITS.md`](benchmarks/LIMITS.md).
|
|
44
|
+
|
|
30
45
|
## Quick Start
|
|
31
46
|
|
|
32
47
|
### 1. Initialize
|
|
@@ -74,7 +89,15 @@ claude mcp add --scope user crbro -- npx -y crbro-memory
|
|
|
74
89
|
|
|
75
90
|
### 3. Start using it
|
|
76
91
|
|
|
77
|
-
Your AI will now have access to
|
|
92
|
+
Your AI will now have access to 23 memory tools. Start any session with `crbro_boot`.
|
|
93
|
+
|
|
94
|
+
### 4. (Claude Code) Cover your subagents too
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npx crbro-memory install-hooks
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Session context never reaches Task-spawned subagents, so without this they run without the behavioral protocols your session booted with. The hook injects the same protocol block `crbro_boot` loads β one source of truth β and is built to never block a session: any failure degrades to a fallback ruleset and exits clean.
|
|
78
101
|
|
|
79
102
|
## Tools
|
|
80
103
|
|
|
@@ -92,6 +115,7 @@ Your AI will now have access to 22 memory tools. Start any session with `crbro_b
|
|
|
92
115
|
| `crbro_sessions` | List recent sessions |
|
|
93
116
|
| `crbro_context` | Read/update active working context |
|
|
94
117
|
| `crbro_hot_topics` | Get the most active topics by heat score |
|
|
118
|
+
| `crbro_map` | Keep one living map of how a topic's system works β replaced whole, never patched |
|
|
95
119
|
| `crbro_global_map` | View the neural network β clusters and cross-domain bridges |
|
|
96
120
|
| `crbro_revise` | Mark facts as superseded or retracted when they stop being true |
|
|
97
121
|
| `crbro_audit` | Find credentials stored in the brain β reports the kind, never the value |
|