Hebbian memory for AI agents. Learns file patterns, predicts next tools, saves tokens.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Hebbian memory for AI coding agents. Learns which files you access together, which errors lead to which fixes, and which tool chains you use most β then recalls them instantly.
Not a vector database. Not RAG. Procedural memory.
If BrainBox saved you tokens, give it a star β it helps others find it. Built by @thebasedcapital
That's it. The postinstall script automatically:
PostToolUse hook to ~/.claude/settings.json (learns from every file read/edit/search)UserPromptSubmit hook (injects neural recall into prompts automatically)claude mcp add (6 tools for manual recall/recording)~/.brainbox/ database directoryBrainBox learns passively from your next Claude Code session. No configuration needed.
The macOS daemon (system-wide FSEvents file watcher) is completely separate and opt-in:
The daemon watches file changes across all your editors β not just Claude Code. It requires explicit opt-in because it registers a LaunchAgent and monitors your configured project directories.
Kill cold start by bootstrapping from your existing git history:
This seeds the neural network from git commit co-changes and import graphs so BrainBox starts with knowledge instead of from zero.
BrainBox implements neuroscience-inspired learning:
https://github.com/thebasedcapital/brainbox/raw/main/assets/brainbox-animation.mp4
https://github.com/thebasedcapital/brainbox/raw/main/assets/brainbox-spreading.mp4
https://github.com/thebasedcapital/brainbox/raw/main/assets/brainbox-superhighway.mp4
https://github.com/thebasedcapital/brainbox/raw/main/assets/brainbox-immune.mp4
If you're not using Claude Code, you can run the MCP server standalone:
Add to ~/.config/kilo/config.json:
BrainBox can be deployed as an OpenClaw memory slot plugin. See NeuroVault for the reference implementation.
| Aspect | Claude Code | OpenClaw |
|---|---|---|
| Tool names | PascalCase (Read) | Lowercase (read) |
| Context injection | UserPromptSubmit hook | before_agent_start lifecycle |
| Learning trigger | PostToolUse hook | after_tool_call lifecycle |
| Embeddings | all-MiniLM-L6-v2 | Keyword-only (lower confidence gate) |
Files accessed together form synapses. Access auth.ts then session.ts 10 times and BrainBox learns they're related β recalling one activates the other.
When you fix a bug, BrainBox remembers which files fixed which errors. Next time a similar error appears, it suggests the fix files immediately.
After 20 Grep-Read-Edit chains, BrainBox predicts you'll Read after Grep and pre-loads likely files.
Strong synapses resist further strengthening (like real neural synapses). Prevents any single connection from dominating the network.
Files recalled but never opened get progressively stronger decay. Consecutive ignores escalate: 1st = 10%, 2nd = 19%, 3rd = 27%. Opening the file resets the streak.
Identify the most-connected neurons in your network and detect decaying superhighways before they fade.
Auto-tag file neurons by project. Recall scoped to current project reduces cross-project noise.
| Component | Mechanism |
|---|---|
| Synapse formation | Sequential window (25 items), positional decay |
| Strengthening | SNAP sigmoid plasticity (midpoint 0.5, steepness 8) |
| Myelination | BCM sliding threshold + diminishing returns, 0.95 ceiling |
| Confidence | Multiplicative: contextScore * (1 + myelin + recency + path) |
| Spreading | 2-hop BFS, fan-out cap 10, fan effect 1/sqrt(degree) |
| Decay | Activation -15%, synapses -2%, myelination -0.5% per cycle |
| Error learning | 2x boosted learning rate for error neurons |
| Anti-recall | Compound decay: 1 - (1 - 0.1)^streak, floor at 0.1 |
Full details in WHITEPAPER.md.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/brainbox-2)<a href="https://allmcps.com/mcp/brainbox-2"><img src="https://allmcps.com/api/badge/brainbox-2?style=directory" alt="Brainbox on AllMCPs" /></a>