| name | neuromemory-ai |
| description | Neuroscience-grounded memory for AI agents. Add, recall, and manage memories with ACT-R activation, Hebbian learning, and cognitive consolidation. |
| homepage | https://github.com/tonitangpotato/neuromemory-ai |
| metadata | {"clawdbot":{"emoji":"🧠","requires":{"bins":["python3"],"packages":{"pip":["neuromemory-ai"]}}}} |
neuromemory-ai
Cognitive memory system implementing ACT-R activation, Memory Chain consolidation, Ebbinghaus forgetting, and Hebbian learning.
Installation
pip install neuromemory-ai
CLI Usage
The neuromem command is available after installation:
neuromem add "User prefers dark mode" --type preference --importance 0.8
neuromem recall "user preferences"
neuromem stats
neuromem consolidate
neuromem forget --threshold 0.01
neuromem list --limit 20
neuromem hebbian "dark mode"
neuromem --db ./custom.db add "Memory"
Python API
from engram import Memory
from engram.config import MemoryConfig
mem = Memory("./agent.db")
mem.add("User prefers concise answers", type="relational", importance=0.8)
mem.add("Always check calendar before scheduling", type="procedural", importance=0.9)
results = mem.recall("user preferences", limit=5)
for r in results:
print(f"[{r['confidence_label']}] {r['content']}")
mem.reward("Great answer!")
mem.reward("That's wrong")
mem.consolidate()
mem.forget()
Memory Types
factual — Facts and knowledge
episodic — Events and experiences
relational — Relationships and preferences
emotional — Emotional moments
procedural — How-to knowledge
opinion — Beliefs and opinions
Presets
from engram.config import MemoryConfig
MemoryConfig.chatbot()
MemoryConfig.task_agent()
MemoryConfig.personal_assistant()
MemoryConfig.researcher()
Hebbian Learning
Memories recalled together automatically form associations:
mem.add("Python is great for ML")
mem.add("PyTorch is my favorite framework")
mem.add("TensorFlow has better production support")
for _ in range(3):
mem.recall("machine learning", limit=3)
results = mem.recall("Python tools", graph_expand=True)
MCP Server
For Claude/Cursor integration:
python -m engram.mcp_server --db ./agent.db
Tools: store, recall, consolidate, forget, reward, stats, export
Key Features
| Feature | Description |
|---|
| ACT-R Activation | Retrieval ranked by recency × frequency × context |
| Memory Chain | Dual-system consolidation (working → core) |
| Ebbinghaus Forgetting | Natural decay with spaced repetition |
| Hebbian Learning | "Neurons that fire together wire together" |
| Confidence Scoring | Metacognitive monitoring (certain/likely/uncertain/vague) |
| Reward Learning | User feedback shapes future memory |
| Contradiction Detection | Flags conflicting memories |
| Zero Dependencies | Pure Python stdlib + SQLite |
Database Location
Default: ./neuromem.db
Override with NEUROMEM_DB environment variable or --db flag.
Links