{"id":48117264,"url":"https://github.com/thebasedcapital/neurovault","last_synced_at":"2026-04-04T16:16:55.748Z","repository":{"id":339272763,"uuid":"1159574551","full_name":"thebasedcapital/neurovault","owner":"thebasedcapital","description":"OpenClaw plugin for BrainBox — Hebbian memory that learns from every tool call, recalls relevant context automatically. Combines BrainBox procedural memory + VaultGraph knowledge graph.","archived":false,"fork":false,"pushed_at":"2026-02-18T21:38:38.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T02:59:49.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebasedcapital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T22:23:34.000Z","updated_at":"2026-02-18T21:38:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thebasedcapital/neurovault","commit_stats":null,"previous_names":["thebasedcapital/neurovault"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/thebasedcapital/neurovault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebasedcapital%2Fneurovault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebasedcapital%2Fneurovault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebasedcapital%2Fneurovault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebasedcapital%2Fneurovault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebasedcapital","download_url":"https://codeload.github.com/thebasedcapital/neurovault/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebasedcapital%2Fneurovault/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31405700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T16:16:54.963Z","updated_at":"2026-04-04T16:16:55.732Z","avatar_url":"https://github.com/thebasedcapital.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NeuroVault\n\nOpenClaw plugin for [BrainBox](https://github.com/thebasedcapital/brainbox). Gives your agent memory that learns — combines **Hebbian learning** (procedural memory) with [VaultGraph](https://github.com/thebasedcapital/vaultgraph) (knowledge graph).\n\n## Quick Start\n\n```bash\n# 1. Clone and install\ngit clone https://github.com/thebasedcapital/neurovault.git\ncd neurovault \u0026\u0026 npm install\n\n# 2. Install backends (both optional — install at least one)\ncargo install --git https://github.com/thebasedcapital/vaultgraph  # knowledge graph\nnpm install -g brainbox-hebbian                                     # Hebbian memory\n\n# 3. Register with OpenClaw\nopenclaw --dev plugins install -l $(pwd)\n```\n\nThen add to `~/.openclaw-dev/openclaw.json`:\n\n```json\n{\n  \"plugins\": {\n    \"slots\": {\n      \"memory\": \"neurovault\"\n    }\n  }\n}\n```\n\nRestart the gateway and you're done:\n\n```bash\nlaunchctl kickstart -k gui/$(id -u)/ai.openclaw.dev\n```\n\n### Verify\n\n```bash\nopenclaw --dev agent --agent main --local -m \"hello\"\n# Check logs for [neurovault]:\ntail -20 ~/.openclaw-dev/logs/gateway.log\n```\n\n## What It Does\n\nBefore every agent prompt, NeuroVault queries two memory systems and injects relevant context:\n\n```\n[neurovault] Unified memory context for this session:\n\n[vaultgraph] Relevant memory files for this task:\n  - trading-polymarket (score: 100%, ~1699tok)\n  - general-lessons (score: 79%, ~1072tok)\n\n[brainbox] Neural recall for this task:\n  - ~/project/src/market.py (confidence: 82%, myelin: 45%)\n  - ~/project/src/redeem.py (confidence: 68%, myelin: 38%)\n```\n\nAfter every tool call, it learns which files were accessed together (Hebbian learning). Over time, it builds muscle memory for your codebase.\n\n| System | Type | What It Learns | Speed |\n|--------|------|---------------|-------|\n| **VaultGraph** | Declarative (what you know) | Knowledge graph over markdown notes | \u003c5ms |\n| **BrainBox** | Procedural (how you work) | File access patterns, error-fix pairs, tool chains | ~100ms |\n\n## Configuration\n\nAll optional — defaults work out of the box:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `NEUROVAULT_ENABLED` | `true` | Master enable/disable |\n| `NEUROVAULT_VAULT_PATH` | `~/.openclaw/memory` | Markdown vault directory |\n| `NEUROVAULT_VG_BUDGET` | `3000` | Max tokens for VaultGraph context |\n| `NEUROVAULT_BB_BUDGET` | `5000` | Max tokens for BrainBox context |\n| `NEUROVAULT_MIN_CONFIDENCE` | `0.5` | Minimum BrainBox confidence to show |\n\n## Architecture\n\n```\nOpenClaw before_agent_start\n    |\n    |---\u003e VaultGraph (Rust subprocess, \u003c5ms)\n    |     Spreading activation over wikilink graph\n    |\n    +---\u003e BrainBox (SQLite + Hebbian engine, ~100ms)\n          Neural recall over file co-access patterns\n    |\n    v\nCombined context injected as system message\n\nOpenClaw after_tool_call\n    |\n    +---\u003e BrainBox records file access (Hebbian learning)\n\nOpenClaw agent_end\n    |\n    +---\u003e Captures facts/preferences as semantic neurons\n```\n\n## Hooks \u0026 Tools\n\n| Hook | Event | Purpose |\n|------|-------|---------|\n| `before_agent_start` | Every prompt | Inject relevant context |\n| `after_tool_call` | Every tool use | Learn file access patterns |\n| `agent_end` | Session end | Capture conversation highlights |\n\n| Tool | Description |\n|------|-------------|\n| `neurovault_recall` | Manually query memory |\n| `neurovault_stats` | Show memory statistics |\n\n## Related\n\n- [BrainBox](https://github.com/thebasedcapital/brainbox) — Core Hebbian memory engine (also works standalone with Claude Code, Kilo)\n- [VaultGraph](https://github.com/thebasedcapital/vaultgraph) — Knowledge graph CLI for markdown vaults\n- [OpenClaw](https://github.com/openclaw) — AI agent platform\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebasedcapital%2Fneurovault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebasedcapital%2Fneurovault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebasedcapital%2Fneurovault/lists"}