neural-memoryAssociative memory with spreading activation for persistent, intelligent recall. Use PROACTIVELY when: (1) You need to remember facts, decisions, errors, or context across sessions (2) User asks "do you remember..." or references past conversations (3) Starting a new task — inject relevant context from memory (4) After making decisions or encountering errors — store for future reference (5) User asks "why did X happen?" — trace causal chains through memory Zero LLM dependency. Neural graph with Hebbian learning, memory decay, contradiction detection, and temporal reasoning.
Install via ClawdBot CLI:
clawdbot install nhadaututtheky/neural-memoryA biologically-inspired memory system that uses spreading activation instead of keyword/vector search. Memories form a neural graph where neurons connect via 20 typed synapses. Frequently co-accessed memories strengthen their connections (Hebbian learning). Stale memories decay naturally. Contradictions are auto-detected.
Why not just vector search? Vector search finds documents similar to your query. NeuralMemory finds conceptually related memories through graph traversal — even when there's no keyword or embedding overlap. "What decision did we make about auth?" activates time + entity + concept neurons simultaneously and finds the intersection.
pip install neural-memory
nmem init
This creates ~/.neuralmemory/ with a default brain and configures MCP automatically.
Add to your OpenClaw MCP configuration (~/.openclaw/mcp.json or project openclaw.json):
{
"mcpServers": {
"neural-memory": {
"command": "python3",
"args": ["-m", "neural_memory.mcp"],
"env": {
"NEURALMEMORY_BRAIN": "default"
}
}
}
}
nmem stats
You should see brain statistics (neurons, synapses, fibers).
| Tool | Purpose | When to Use |
|------|---------|-------------|
| nmem_remember | Store a memory | After decisions, errors, facts, insights, user preferences |
| nmem_recall | Query memories | Before tasks, when user references past context, "do you remember..." |
| nmem_context | Get recent memories | At session start, inject fresh context |
| nmem_todo | Quick TODO with 30-day expiry | Task tracking |
| Tool | Purpose | When to Use |
|------|---------|-------------|
| nmem_auto | Auto-extract memories from text | After important conversations — captures decisions, errors, TODOs automatically |
| nmem_recall (depth=3) | Deep associative recall | Complex questions requiring cross-domain connections |
| nmem_habits | Workflow pattern suggestions | When user repeats similar action sequences |
| Tool | Purpose | When to Use |
|------|---------|-------------|
| nmem_health | Brain health diagnostics | Periodic checkup, before sharing brain |
| nmem_stats | Brain statistics | Quick overview of memory counts |
| nmem_version | Brain snapshots and rollback | Before risky operations, version checkpoints |
| nmem_transplant | Transfer memories between brains | Cross-project knowledge sharing |
nmem_context to inject recent memories into your awarenessnmem_recall with that topicnmem_remember with type="decision"nmem_remember with type="error"nmem_remember with type="preference"nmem_recall with appropriate depthnmem_auto with action="process" on important conversation segmentsnmem_remember(
content="Use PostgreSQL for production, SQLite for development",
type="decision",
tags=["database", "infrastructure"],
priority=8
)
nmem_recall(
query="database configuration for production",
depth=1,
max_tokens=500
)
Returns memories found via graph traversal, not keyword matching. Related memories (e.g., "deploy uses Docker with pg_dump backups") surface even without shared keywords.
nmem_recall(
query="why did the deployment fail last week?",
depth=2
)
Follows CAUSED_BY and LEADS_TO synapses to trace cause-and-effect chains.
nmem_auto(
action="process",
text="We decided to switch from REST to GraphQL because the frontend needs flexible queries. The migration will take 2 sprints. TODO: update API docs."
)
Automatically extracts: 1 decision, 1 fact, 1 TODO.
| Depth | Name | Speed | Use Case |
|-------|------|-------|----------|
| 0 | Instant | <10ms | Quick facts, recent context |
| 1 | Context | ~50ms | Standard recall (default) |
| 2 | Habit | ~200ms | Pattern matching, workflow suggestions |
| 3 | Deep | ~500ms | Cross-domain associations, causal chains |
~/.neuralmemory/brains/.db nmem_remember returns fiber_id for reference trackingGenerated Feb 24, 2026
Support agents use NeuralMemory to recall past customer interactions, decisions, and error resolutions across sessions. When a customer asks 'do you remember my issue last week?', the agent proactively injects relevant context, improving response accuracy and reducing repetition.
Development teams store decisions, errors, and TODOs in NeuralMemory to maintain project context. During sprint planning, they recall past causal chains to understand why deployments failed, enabling better planning and knowledge retention across team members.
Healthcare providers use NeuralMemory to track patient preferences, treatment decisions, and error logs over time. When starting a new consultation, the system recalls relevant past events and contradictions, aiding in personalized care and compliance tracking.
Legal professionals leverage NeuralMemory to store case facts, decisions, and causal relationships. When researching 'why did a precedent case fail?', the tool traces causal chains through memory, helping build stronger arguments and avoid past mistakes.
Tutoring platforms integrate NeuralMemory to remember student errors, learning preferences, and progress across sessions. At the start of each lesson, it injects context from past interactions, providing tailored guidance and tracking long-term learning patterns.
Offer NeuralMemory as a cloud-based service with tiered pricing based on memory capacity and advanced features like contradiction detection. Revenue comes from monthly subscriptions, targeting enterprises needing persistent AI memory across teams.
Sell licenses for on-premise deployment in regulated industries like healthcare or finance, where data privacy is critical. Revenue includes upfront license fees and annual support contracts, ensuring compliance and customization.
Partner with AI platform providers to bundle NeuralMemory as a core memory module. Revenue is generated through revenue-sharing agreements and API usage fees, expanding reach to developers building intelligent agents.
💬 Integration Tip
Ensure the NEURALMEMORY_BRAIN environment variable is set and verify installation with nmem stats before integrating into MCP workflows.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection