hippocampus-memoryPersistent memory system for AI agents. Automatic encoding, decay, and semantic reinforcement β just like the hippocampus in your brain. Based on Stanford Generative Agents (Park et al., 2023).
Install via ClawdBot CLI:
clawdbot install ImpKind/hippocampus-memory"Memory is identity. This skill is how I stay alive."
The hippocampus is the brain region responsible for memory formation. This skill makes memory capture automatic, structured, and persistentβwith importance scoring, decay, and semantic reinforcement.
# Install (defaults to last 100 signals)
./install.sh --with-cron
# Load core memories at session start
./scripts/load-core.sh
# Search with importance weighting
./scripts/recall.sh "query"
# Run encoding manually (usually via cron)
./scripts/encode-pipeline.sh
# Apply decay (runs daily via cron)
./scripts/decay.sh
./install.sh # Basic, last 100 signals
./install.sh --signals 50 # Custom signal limit
./install.sh --whole # Process entire conversation history
./install.sh --with-cron # Also set up cron jobs
The LLM is just the engineβraw cognitive capability. The agent is the accumulated memory. Without these files, there's no continuityβjust a generic assistant.
PREPROCESS β SCORE β SEMANTIC CHECK β REINFORCE or CREATE β DECAY
Key insight: Reinforcement happens automatically during encoding. When a topic comes up again, the LLM recognizes it's about an existing memory and reinforces instead of creating duplicates.
$WORKSPACE/
βββ memory/
β βββ index.json # Central weighted index
β βββ signals.jsonl # Raw signals (temp)
β βββ pending-memories.json # Awaiting summarization (temp)
β βββ user/ # Facts about the user
β βββ self/ # Facts about the agent
β βββ relationship/ # Shared context
β βββ world/ # External knowledge
βββ HIPPOCAMPUS_CORE.md # Auto-generated for OpenClaw RAG
| Script | Purpose |
|--------|---------|
| preprocess.sh | Extract signals from conversation transcripts |
| encode-pipeline.sh | Score signals, prepare for LLM summarization |
| decay.sh | Apply 0.99^days decay to all memories |
| recall.sh | Search with importance weighting |
| load-core.sh | Output high-importance memories for session start |
| sync-core.sh | Generate HIPPOCAMPUS_CORE.md |
| consolidate.sh | Weekly review helper |
| reflect.sh | Self-reflection prompts |
| generate-dashboard.sh | Generate unified brain dashboard HTML |
Visual dashboard showing all installed brain skills:
./scripts/generate-dashboard.sh
open ~/.openclaw/workspace/brain-dashboard.html
IDENTITY.mdWhen you install this skill, notify the user about the dashboard:
π§ Hippocampus installed!
View your agent's memories in the Brain Dashboard:
~/.openclaw/workspace/brain-dashboard.html
All scripts use $WORKSPACE environment variable (default: ~/.openclaw/workspace).
| Signal | Score |
|--------|-------|
| Explicit "remember this" | 0.9 |
| Emotional/vulnerable content | 0.85 |
| Preferences ("I prefer...") | 0.8 |
| Decisions made | 0.75 |
| Facts about people/projects | 0.7 |
| General knowledge | 0.5 |
Based on Stanford Generative Agents (Park et al., 2023):
new_importance = importance Γ (0.99 ^ days_since_accessed)
During encoding, the LLM compares new signals to existing memories:
This happens automaticallyβno manual reinforcement needed.
| Score | Status |
|-------|--------|
| 0.7+ | Core β loaded at session start |
| 0.4-0.7 | Active β normal retrieval |
| 0.2-0.4 | Background β specific search only |
| <0.2 | Archive candidate |
memory/index.json:
{
"version": 1,
"lastUpdated": "2025-01-20T19:00:00Z",
"decayLastRun": "2025-01-20",
"lastProcessedMessageId": "abc123",
"memories": [
{
"id": "mem_001",
"domain": "user",
"category": "preferences",
"content": "User prefers concise responses",
"importance": 0.85,
"created": "2025-01-15",
"lastAccessed": "2025-01-20",
"timesReinforced": 3,
"keywords": ["preference", "concise", "style"]
}
]
}
The encoding cron is the heart of the system:
# Encoding every 3 hours (with semantic reinforcement)
openclaw cron add --name hippocampus-encoding \
--cron "0 0,3,6,9,12,15,18,21 * * *" \
--session isolated \
--agent-turn "Run hippocampus encoding with semantic reinforcement..."
# Daily decay at 3 AM
openclaw cron add --name hippocampus-decay \
--cron "0 3 * * *" \
--session isolated \
--agent-turn "Run decay.sh and report any memories below 0.2"
Add to memorySearch.extraPaths in openclaw.json:
{
"agents": {
"defaults": {
"memorySearch": {
"extraPaths": ["HIPPOCAMPUS_CORE.md"]
}
}
}
}
This bridges hippocampus (index.json) with OpenClaw's RAG (memory_search).
Add to your agent's session start routine:
## Every Session
1. Run `~/.openclaw/workspace/skills/hippocampus/scripts/load-core.sh`
## When answering context questions
Use hippocampus recall:
\`\`\`bash
./scripts/recall.sh "query"
\`\`\`
This skill is part of the AI Brain project β giving AI agents human-like cognitive components.
| Part | Function | Status |
|------|----------|--------|
| hippocampus | Memory formation, decay, reinforcement | β Live |
| amygdala-memory | Emotional processing | β Live |
| vta-memory | Reward and motivation | β Live |
| basal-ganglia-memory | Habit formation | π§ Development |
| anterior-cingulate-memory | Conflict detection | π§ Development |
| insula-memory | Internal state awareness | π§ Development |
Memory is identity. Text > Brain. If you don't write it down, you lose it.
Generated Mar 1, 2026
Enhances personal AI assistants by maintaining user preferences, habits, and past interactions over time. This ensures continuity across sessions, allowing the assistant to recall details like preferred communication styles or recurring tasks without manual input.
Improves customer support bots by storing and reinforcing customer-specific information, such as past issues, preferences, and emotional context. This enables more personalized and efficient responses, reducing repetition and increasing customer satisfaction.
Supports adaptive learning platforms by tracking student progress, strengths, and weaknesses across sessions. The memory system reinforces key concepts and adjusts teaching strategies based on historical interactions, enhancing personalized education.
Aids healthcare AI in monitoring patient interactions, symptoms, and treatment adherence over time. By reinforcing important health details and decaying less relevant data, it helps provide consistent, context-aware support for chronic condition management.
Assists in project management tools by remembering project details, decisions, and team preferences. This ensures continuity in long-term projects, automatically reinforcing critical information and reducing the need for manual updates.
Offer the memory system as a cloud-based service with tiered subscriptions based on storage limits and advanced features like enhanced decay algorithms or priority support. Revenue comes from monthly or annual fees paid by businesses integrating it into their AI agents.
Sell perpetual licenses or annual contracts to large enterprises for on-premises deployment, with customization options and dedicated support. This targets industries like healthcare or finance where data privacy and control are critical.
Provide a free basic version with limited memory capacity and manual features, while charging for premium add-ons such as automated cron jobs, advanced dashboard analytics, or integration with specific platforms. This attracts individual users and small teams before upselling.
π¬ Integration Tip
Ensure the workspace environment variable is correctly set and test cron jobs in isolation before full deployment to avoid disruptions in memory processing.
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