BrainBox implements Hebbian learning for Claude Code and other MCP clients, treating files and tools as neurons that form synapses when accessed together. It hooks PostToolUse to passively learn patterns, then injects predicted files into UserPromptSubmit prompts automatically. Six MCP tools expose manual operations: record, recall, error (for error-fix associations), predict_next, stats, and decay. The engine uses SNAP plasticity to prevent connection dominance and BCM sliding thresholds for myelination. An optional macOS daemon watches file changes across all editors via FSEvents. Bootstrap from git history to seed the network with commit co-changes instead of starting cold. Useful when your agent repeatedly searches for the same file clusters or you want token savings from skipping grep operations.
claude mcp add --transport stdio thebasedcapital-brainbox uvx brainbox