Automatic memory capture with importance scoring, decay, and reinforcement for AI agents. Based on Stanford Generative Agents.
Ships in sundial-org-awesome-openclaw-skills-4. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
"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 reinforcement.
# Install
./install.sh --with-cron
# Load core memories
./scripts/load-core.sh
# Search with importance weighting
./scripts/recall.sh "query" --reinforce
# Apply decay (runs daily via cron)
./scripts/decay.sh
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.
CAPTURE → SCORE → STORE → DECAY/REINFORCE → RETRIEVE
↑ │
└────────────────────────────────────────────┘
$WORKSPACE/
├── memory/
│ ├── index.json # Central weighted index
│ ├── 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 |
|---|---|
decay.sh | Apply 0.99^days decay to all memories |
reinforce.sh | Boost importance when memory is used |
recall.sh | Search with importance weighting |
load-core.sh | Output high-importance memories |
sync-core.sh | Generate HIPPOCAMPUS_CORE.md |
preprocess.sh | Extract signals from transcripts |
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)
When a memory is accessed and useful:
new_importance = old + (1 - old) × 0.15
Each use adds ~15% of remaining headroom toward 1.0.
| Score | Status |
|---|---|
| 0.7+ | Core — high priority |
| 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",
"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"]
}
]
}
Set up via OpenClaw cron:
# Daily decay at 3 AM
openclaw cron add --name hippocampus-decay \
--cron "0 3 * * *" \
--session main \
--system-event "🧠 Run: WORKSPACE=\$WORKSPACE decay.sh"
# Weekly consolidation
openclaw cron add --name hippocampus-consolidate \
--cron "0 21 * * 6" \
--session main \
--system-event "🧠 Weekly consolidation time"
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" --reinforce
\`\`\`
Auto-capture when you hear:
Memory is identity. Text > Brain. If you don't write it down, you lose it.
ARCHITECTURE.md (opens in a new tab)CONFIG-UPGRADE.md (opens in a new tab)README.md (opens in a new tab)agentdir/AGENTS.md (opens in a new tab)agents/hippocampus-agent.md (opens in a new tab)install.sh (opens in a new tab)prompts/consolidation-guide.md (opens in a new tab)prompts/deep-inquiry.md (opens in a new tab)prompts/process-recent.md (opens in a new tab)prompts/recall-patterns.md (opens in a new tab)prompts/relationship-detection.md (opens in a new tab)prompts/self-reflect.md (opens in a new tab)prompts/weekly-reflection-event.md (opens in a new tab)scripts/capture.sh (opens in a new tab)scripts/consolidate.sh (opens in a new tab)scripts/decay.sh (opens in a new tab)scripts/load-core.sh (opens in a new tab)scripts/preprocess.sh (opens in a new tab)scripts/recall.sh (opens in a new tab)scripts/reflect.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/sundial-org-awesome-openclaw-skills-4:hippocampusfrom sundial-org-awesome-openclaw-skills-4
sundial-org-awesome-openclaw-skills-4@cascade-ai-ml-agents-misc-2 is listed by joshuarweaver/cascade-ai-ml-agents-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4908 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./a11y-checkerScan HTML and JSX for accessibility issues with AI-powered fix suggestions/abm-outboundMulti-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email sequences, LinkedIn touches, and handwritten letters via Scribeless. The secret weapon for standing out in crowded inboxes.Other plugins' skills for the same job