|
1 | 1 | <div align="center"> |
2 | 2 |
|
3 | | -# 🧠 Claude Brain |
| 3 | +# Claude Brain |
4 | 4 |
|
5 | | -### **Claude Code finally remembers.** |
| 5 | +### Give Claude Code photographic memory. |
6 | 6 |
|
7 | | -*One file. Instant recall. Zero config.* |
8 | | - |
9 | | -[](https://www.npmjs.com/package/claude-brain) |
10 | 7 | [](https://github.com/memvid/claude-brain) |
11 | 8 | [](https://opensource.org/licenses/MIT) |
12 | 9 |
|
13 | | -[Installation](#-installation) • [How it Works](#-how-it-works) • [Commands](#-commands) • [FAQ](#-faq) |
14 | | - |
15 | | - |
| 10 | +<br /> |
16 | 11 |
|
17 | 12 | https://github.com/user-attachments/assets/b57cb3db-576b-4c1f-af92-95796ba3fb5b |
18 | 13 |
|
| 14 | +<br /> |
19 | 15 |
|
| 16 | +**[Install in 30 seconds](#installation)** · [How it Works](#how-it-works) · [Commands](#commands) |
20 | 17 |
|
21 | 18 | </div> |
22 | 19 |
|
23 | | ---- |
| 20 | +<br /> |
24 | 21 |
|
25 | 22 | ## The Problem |
26 | 23 |
|
27 | 24 | ``` |
28 | | -You: "Hey Claude, remember when we fixed that auth bug?" |
29 | | -
|
| 25 | +You: "Remember that auth bug we fixed?" |
30 | 26 | Claude: "I don't have memory of previous conversations." |
31 | | -
|
32 | | -You: "We literally spent 3 hours on this yesterday" |
33 | | -
|
34 | | -Claude: "I'd be happy to help you debug it from scratch!" |
| 27 | +You: "We spent 3 hours on it yesterday" |
| 28 | +Claude: "I'd be happy to help debug from scratch!" |
35 | 29 | ``` |
36 | 30 |
|
37 | 31 | **200K context window. Zero memory between sessions.** |
38 | 32 |
|
39 | | -You're paying $200/month for a goldfish with a PhD. |
| 33 | +You're paying for a goldfish with a PhD. |
40 | 34 |
|
41 | | ---- |
| 35 | +<br /> |
42 | 36 |
|
43 | | -## The Solution |
| 37 | +## The Fix |
44 | 38 |
|
45 | 39 | ``` |
46 | | -You: "What did we decide about the auth system?" |
47 | | -
|
48 | | -Claude: "Last week we chose JWT over sessions because of your |
49 | | -microservices architecture. I also remember we had issues with |
50 | | -the refresh token rotation - here's what we fixed..." |
| 40 | +You: "What did we decide about auth?" |
| 41 | +Claude: "We chose JWT over sessions for your microservices. |
| 42 | + The refresh token issue - here's exactly what we fixed..." |
51 | 43 | ``` |
52 | 44 |
|
53 | | -**One plugin. One file. Claude remembers everything.** |
54 | | - |
55 | | ---- |
| 45 | +One file. Claude remembers everything. |
56 | 46 |
|
57 | | -## 🚀 Installation |
| 47 | +<br /> |
58 | 48 |
|
59 | | -**30 seconds. No config.** |
| 49 | +## Installation |
60 | 50 |
|
61 | | -1. Add the marketplace in Claude Code: |
62 | | -``` |
| 51 | +```bash |
| 52 | +# In Claude Code |
63 | 53 | /plugin add marketplace memvid/claude-brain |
64 | 54 | ``` |
65 | 55 |
|
66 | | -2. Go to **Plugins tab** (`/plugins`) → **Discover** → Install **mind** |
| 56 | +Then: `/plugins` → Discover → Install **mind** → Restart. |
67 | 57 |
|
68 | | -3. Restart Claude Code. **Done.** |
| 58 | +Done. |
69 | 59 |
|
70 | | ---- |
| 60 | +<br /> |
71 | 61 |
|
72 | | -## 🔮 How it Works |
| 62 | +## How it Works |
73 | 63 |
|
74 | | -After install, Claude stores memories in **one portable file**: |
| 64 | +After install, Claude's memory lives in one file: |
75 | 65 |
|
76 | 66 | ``` |
77 | | -your-project/ |
78 | | -└── .claude/ |
79 | | - └── mind.mv2 # Claude's brain. That's it. |
| 67 | +your-project/.claude/mind.mv2 |
80 | 68 | ``` |
81 | 69 |
|
82 | | -### What Gets Captured |
| 70 | +That's it. No database. No cloud. No API keys. |
83 | 71 |
|
84 | | -| When | What | |
85 | | -|------|------| |
86 | | -| **Session start** | Injects relevant context from past sessions | |
87 | | -| **While working** | Decisions, bugs found, solutions, file changes | |
88 | | -| **Session end** | Session summary for future recall | |
| 72 | +**What gets captured:** |
| 73 | +- Session context, decisions, bugs, solutions |
| 74 | +- Auto-injected at session start |
| 75 | +- Searchable anytime |
89 | 76 |
|
90 | | -### Why One File? |
| 77 | +**Why one file?** |
| 78 | +- `git commit` → version control Claude's brain |
| 79 | +- `scp` → transfer anywhere |
| 80 | +- Send to teammate → instant onboarding |
91 | 81 |
|
92 | | -| Action | Result | |
93 | | -|--------|--------| |
94 | | -| `git commit` | Version control Claude's memory | |
95 | | -| `scp file user@server:` | Transfer to any machine | |
96 | | -| Send to teammate | Instant project onboarding | |
| 82 | +<br /> |
97 | 83 |
|
98 | | -**No database. No background service. No API keys. No cloud.** |
99 | | - |
100 | | ---- |
101 | | - |
102 | | -## 📦 Commands |
| 84 | +## Commands |
103 | 85 |
|
104 | 86 | ```bash |
105 | | -/mind:mind stats # memory statistics |
106 | | -/mind:mind search "authentication" # find past context |
107 | | -/mind:mind ask "why did we choose X?" # ask your memory |
108 | | -/mind:mind recent # what happened lately |
109 | | -``` |
110 | | - |
111 | | ---- |
112 | | - |
113 | | -## ⚡ Endless Mode |
114 | | - |
115 | | -Claude hits context limits fast. Claude Mind compresses tool outputs ~20x: |
116 | | - |
117 | | -``` |
118 | | -Before: Read (8K) + Edit (4K) + Bash (12K) = 24K tokens gone |
119 | | -After: Read (400) + Edit (200) + Bash (600) = 1.2K tokens |
| 87 | +/mind:mind search "auth bug" # find past context |
| 88 | +/mind:mind ask "why JWT?" # query memory |
| 89 | +/mind:mind recent # latest memories |
| 90 | +/mind:mind stats # usage stats |
120 | 91 | ``` |
121 | 92 |
|
122 | | -Keeps errors, structure, key functions. Drops the noise. |
| 93 | +<br /> |
123 | 94 |
|
124 | | -Work longer without hitting limits. |
125 | | - |
126 | | ---- |
127 | | - |
128 | | -## ❓ FAQ |
| 95 | +## FAQ |
129 | 96 |
|
130 | 97 | <details> |
131 | | -<summary><b>How big is the .mv2 file?</b></summary> |
132 | | - |
133 | | -An empty `.mv2` file is only **~70KB**. It includes: |
134 | | - |
135 | | -- **Lexical index** for fast keyword search |
136 | | -- **Vector index** for semantic search (find by meaning) |
137 | | -- **Block-aligned storage** for O(1) random access |
| 98 | +<summary><b>How big is the file?</b></summary> |
138 | 99 |
|
139 | | -The file grows as you add memories (~1KB per memory). A year of daily use typically stays under 5MB. |
| 100 | +Empty: ~70KB. Grows ~1KB per memory. A year of use stays under 5MB. |
140 | 101 |
|
141 | 102 | </details> |
142 | 103 |
|
143 | 104 | <details> |
144 | | -<summary><b>How big does the file get?</b></summary> |
| 105 | +<summary><b>Is it private?</b></summary> |
145 | 106 |
|
146 | | -~1KB per memory. 1000 memories ≈ 1MB. The base ~70KB is minimal overhead. |
| 107 | +100% local. Nothing leaves your machine. Ever. |
147 | 108 |
|
148 | 109 | </details> |
149 | 110 |
|
150 | 111 | <details> |
151 | | -<summary><b>Is my data private?</b></summary> |
| 112 | +<summary><b>How fast?</b></summary> |
152 | 113 |
|
153 | | -**100% local.** Nothing leaves your machine. No telemetry. No cloud sync. You own your data. |
154 | | - |
155 | | -The `.mv2` file is just a file - encrypt it, back it up, delete it, share it. Your choice. |
156 | | - |
157 | | -</details> |
158 | | - |
159 | | -<details> |
160 | | -<summary><b>How fast is it?</b></summary> |
161 | | - |
162 | | -Native Rust core via [memvid](https://github.com/memvid/memvid). Sub-millisecond operations: |
163 | | - |
164 | | -- Search: < 1ms for 10K+ memories |
165 | | -- Insert: < 0.5ms |
166 | | -- Load context: < 5ms |
167 | | - |
168 | | -</details> |
169 | | - |
170 | | -<details> |
171 | | -<summary><b>Can I reset Claude's memory?</b></summary> |
172 | | - |
173 | | -```bash |
174 | | -rm .claude/mind.mv2 |
175 | | -``` |
176 | | - |
177 | | -Or use `/mind clear` (coming soon). |
| 114 | +Sub-millisecond. Native Rust core. Searches 10K+ memories in <1ms. |
178 | 115 |
|
179 | 116 | </details> |
180 | 117 |
|
181 | 118 | <details> |
182 | | -<summary><b>Does it work with multiple projects?</b></summary> |
| 119 | +<summary><b>Reset memory?</b></summary> |
183 | 120 |
|
184 | | -Yes! Each project gets its own `.claude/mind.mv2` file. Memories are project-scoped by default. |
| 121 | +`rm .claude/mind.mv2` |
185 | 122 |
|
186 | 123 | </details> |
187 | 124 |
|
188 | | ---- |
189 | | - |
190 | | -## 🔧 Configuration (Optional) |
191 | | - |
192 | | -Create `.claude/mind.config.json`: |
193 | | - |
194 | | -```json |
195 | | -{ |
196 | | - "memoryPath": ".claude/mind.mv2", |
197 | | - "maxContextObservations": 20, |
198 | | - "endlessMode": true |
199 | | -} |
200 | | -``` |
201 | | - |
202 | | -Most users don't need to configure anything. |
| 125 | +<br /> |
203 | 126 |
|
204 | 127 | --- |
205 | 128 |
|
206 | | -## 🤝 Contributing |
207 | | - |
208 | | -We love contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. |
209 | | - |
210 | | -**Quick wins:** |
211 | | -- Add to [awesome-claude-skills](https://github.com/travisvn/awesome-claude-skills) |
212 | | -- Star the repo ⭐ |
213 | | -- Share on Twitter/X with a demo |
214 | | - |
215 | | ---- |
216 | | - |
217 | | - |
218 | 129 | <div align="center"> |
219 | 130 |
|
220 | | -**MIT License** • Built on [memvid](https://github.com/memvid/memvid) — the single-file memory engine |
| 131 | +Built on **[memvid](https://github.com/memvid/memvid)** — the single-file memory engine |
| 132 | + |
| 133 | +<br /> |
221 | 134 |
|
222 | | -[Report Bug](https://github.com/memvid/claude-brain/issues) • [Request Feature](https://github.com/memvid/claude-brain/issues) |
| 135 | +**If this saved you time, [star the repo](https://github.com/memvid/claude-brain)** |
223 | 136 |
|
224 | 137 | </div> |
0 commit comments