Agent skill · operations · sundial-org
hippocampus
Background memory organ for AI agents. Runs separately from the main agent—encoding, decaying, and reinforcing memories automatically. Just like the real hippocampus in your brain. Based on Stanford Generative Agents (Park et al., 2023).
Why this skill is useful
Adds multiple executable scripts for memory management and reinforcement that fundamentally extend the AI's capabilities.
What it needs
Requires jq, python3 installed locally. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
Hippocampus Skill "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. Quick Start Core Concept 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. Memory Lifecycle Memory Structure Scripts 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 HIPPOCAMPUSCORE.md preprocess.sh Extract signals from transcripts All scripts use $WORKSPACE environment variable (default: ~/.openclaw/workspace). Importance Scoring Initial Score (0.0-1.0) 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 Decay Formula Based on Stanford Generative Agents (Park et al., 2023): After 7 days: 93% of original After 30 days: 74% of original After 90 days: 40% of original Reinforcement Formula When a memory is accessed and useful: Each use adds ~15% of remaining headroom toward 1.0. Thresholds 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 Schema memory/index.json: Cron Jobs Set up via OpenClaw cron: OpenClaw Integration Add to memorySearch.extraPaths in openclaw.json: This bridges hippocampus (index.json) with OpenClaw's RAG (memorysearch). …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/hippocampus