[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77QF7HKGCAJMF3H402NCZJX":3,"skill-same:01M77QF7HKGCAJMF3H402NCZJX":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77QF7HKGCAJMF3H402NCZJX","overkill-memory-system",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fo\u002Foverkill-memory-system\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Ultimate Unified Memory System (Overkill Memory System)\n## VERSION 1.9.3 (SPEED-FIRST)\n\nA comprehensive 6-tier memory architecture with neuroscience integration, WAL protocol, and full automation for OpenClaw agents.\n\n## Overview\n\nThe Ultimate Unified Memory System implements a **biologically-inspired, speed-first** memory hierarchy. It provides persistent, contextual memory across agent sessions with automatic importance weighting, emotional tagging, and value-based retention.\n\n### What It Does\n\n- **Brain-Full Architecture**: 6 brain regions (Hippocampus, Amygdala, VTA, Basal Ganglia, Insula, ACC)\n- **Speed-First Architecture**: Optimized for ~5ms average query time\n- **Fast File Search**: Uses `fd` + `rg` for 10x faster file tier searching\n- **Knowledge Graph**: Structured atomic facts with versioning\n- **Self-Improving**: Continuous learning from errors and corrections\n- **Self-Reflection**: Periodic self-assessment and performance review\n- **Multi-Agent Support**: Shared + private ChromaDB areas per agent\n- **6-Tier Memory Architecture**: From instant recall (HOT) to archival (COLD\u002FGIT-NOTES)\n- **Hybrid Neuroscience**: Filter + Ranker approach for precision + speed\n- **WAL (Write-Ahead Log) Protocol**: Ensures no memory is ever lost\n- **Neuroscience Integration**: Hippocampus (importance), Amygdala (emotions), VTA (rewards\u002Fmotivation)\n- **Error Learning**: Tracks and learns from user corrections\n- **Spaced Repetition**: FSRS-6 via Vestige for natural memory decay\n- **Semantic Search**: ChromaDB-powered vector storage for contextual retrieval\n- **Cloud Backup**: Supermemory integration for cross-device backup (NOT in query path)\n- **Full Automation**: Cron jobs for cross-session messages, platform posts, diary entries, and proactive memory maintenance\n\n### Speed Targets\n\n| Scenario | Time |\n|----------|------|\n| Compiled query match | ~0ms |\n| Ultra-hot hit | ~0.1ms |\n| Hot cache hit | ~1ms |\n| Mem0 hit | ~22ms |\n| Full search | ~55ms |\n| **Average** | **~5ms** |\n\n> **Note**: Supermemory is NOT in the query path - it's a **background sync** only (daily backup). This keeps queries fast (~5ms). Cloud access is only for backup\u002Frestore, not real-time queries.\n\n---\n## Speed-First Architecture Diagram\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                        USER QUERY                               │\n└─────────────────────────┬───────────────────────────────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    ULTRA-HOT (Dict)           │\n          │    Last 10 queries ~0.1ms    │\n          │    (RETURN if hit!)           │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    HOT CACHE (Redis)          │\n          │    Recent queries ~1ms        │\n          │    (RETURN if hit!)           │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    COMPILED QUERIES           │\n          │    Pre-parsed common queries │\n          │    ~0ms (dict lookup)        │\n          │    (USE if match!)            │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    EMOTIONAL DETECTOR         │\n          │    preference\u002Ferror\u002Fimportant │\n          │    ~0.5ms                    │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    BLOOM FILTER               │\n          │    \"Does it exist?\" ~0ms     │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    MEM0 (FIRST!)              │\n          │    Fast cache ~20ms           │\n          │    80% token savings          │\n          │    (RETURN if hit!)           │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    EARLY WEIGHTING            │\n          │    Adjust tier weights        │\n          │    ~1ms                      │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    RUN TIERS PARALLEL          │\n          │    acc-err, vestige, chromadb, │\n          │    gitnotes, file             │\n          │    ~30ms                      │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    MERGE + RANKING            │\n          │    Neuroscience scoring       │\n          │    PASS 1: Quick filter      │\n          │    PASS 2: Full rank          │\n          │    ~10ms                      │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    CONFIDENCE EARLY EXIT     │\n          │    confidence > 0.95? return 1│\n          │    gap > 0.5? return 1        │\n          └───────────────┬───────────────┘\n                          │\n          ┌───────────────▼───────────────┐\n          │    BACKGROUND SYNC           │\n          │    Supermemory (daily backup) │\n          │    NOT in query path!       │\n          └───────────────┬───────────────┘\n                          │\n                          ▼\n                  ┌───────────────┐\n                  │   RESULTS     │\n                  │  (~5-15ms)    │\n                  └───────────────┘\n```\n---\n\n## Features\n\n### 1. Speed Optimizations (NEW in v1.3.0)\n\n| Optimization | Time Saved |\n|-------------|-----------|\n| **Ultra-Hot Tier** | In-memory dict for last 10 queries (~0.1ms) |\n| **Compiled Queries** | Pre-parsed common queries (~0ms) |\n| **Lazy Loading** | Import heavy libs only when needed |\n| **Confidence Early Exit** | Skip ranking if confident enough |\n| **Mem0 First** | 80% queries hit here (~22ms) |\n| **Parallel Tiers** | All tiers queried simultaneously |\n\n### 2. Six-Tier Memory Architecture\n\n| Tier | Name | Storage | Retention | Use Case |\n|------|------|---------|-----------|----------|\n| 1 | HOT | Session state | Current session | Active context, WAL buffer |\n| 2 | WARM | Daily notes | 24-48 hours | Recent conversations, working memory |\n| 3 | TEMP | Cache | Minutes-hours | Temporary processing, scratchpad |\n| 4 | COLD | Core memory | Weeks-months | Important facts, decisions, preferences |\n| 5 | ARCHIVE | Diary | Months-years | Long-term journal, milestone memories |\n| 6 | COLD-STORAGE | Git-Notes | Indefinite | Permanent knowledge base |\n\n### 2. Neuroscience Components\n\n#### Hippocampus (Importance Scoring)\n- Analyzes content for importance signals\n- Maintains index.json with memory importance scores\n- Auto-weights memories based on repetition and context\n\n#### Amygdala (Emotional Tagging)\n- Detects 8 emotions: joy, sadness, anger, fear, curiosity, connection, accomplishment, fatigue\n- Tracks emotional dimensions: valence, arousal, connection, curiosity, energy\n- Stores state in emotional-state.json\n\n#### VTA (Value\u002FReward System)\n- Computes motivation scores based on reward types\n- Reward categories: accomplishment, social, curiosity, connection, creative, competence\n- Drives attention toward high-value memories\n\n### 3. Hybrid Search (NEW in v1.3.0)\n\n#### Emotional Detector\n- Detects query intent: preference, error, important, recent, project, general\n- Adjusts tier weights based on detected intent\n- Runs AFTER cache checks (only when needed)\n\n#### Early Weighting\n| Query Type | Keywords | Weight Adjustments |\n|------------|----------|-------------------|\n| Error\u002FFix | \"bug\", \"fix\", \"error\" | acc-error: 2x |\n| Preference | \"prefer\", \"like\", \"always\" | vestige: 2x |\n| Important | \"remember\", \"critical\" | all: 1.5x |\n| Recent | \"yesterday\", \"last week\" | hot: 2x |\n| Project | \"project\", \"architecture\" | gitnotes: 1.5x |\n\n### 4. Hybrid Neuroscience (NEW in v1.3.0)\n\nTwo-pass approach for precision + speed:\n\n| Pass | What | When |\n|------|------|------|\n| Pass 1 | Quick filter (skip 0 importance) | High-importance queries |\n| Pass 2 | Full ranking (all components) | Always |\n\n#### Scoring Formula\n```\nFinal Score = \n    (Base Relevance × 0.25) +\n    (Importance × 0.30) +      ← Hippocampus\n    (Value × 0.25) +          ← VTA\n    (Emotion Match × 0.20)    ← Amygdala\n```\n\n### 5. Error Learning (NEW in v1.3.0)\n\n- **acc-error-memory** integration\n- Tracks error patterns over time\n- Records user corrections\n- Learns from mistakes\n- High priority in search results\n\n### 6. Spaced Repetition (NEW in v1.3.0)\n\n- **vestige** integration (FSRS-6)\n- Memories fade naturally like human memory\n- Preferences strengthen with use\n- Solutions decay if unused\n\n### 7. Write-Ahead Log (WAL) Protocol\n- Session state maintained in SESSION-STATE.md\n- WAL buffer ensures atomic commits\n- Crash recovery from uncommitted state\n\n### 4. Automation Features\n\n- **Cron Inbox**: Cross-session messages via cron-inbox.md\n- **Platform Posts**: Tracks Discord\u002FTelegram posts in platform-posts.md\n- **Diary Entry**: Daily journal entries in diary\u002F directory\n- **Daily Notes**: Session logs in daily\u002F directory\n- **Heartbeat State**: Tracks periodic check timestamps\n\n---\n\n## Installation & Setup\n\n### Prerequisites\n\n```bash\n# Ensure Python 3.8+ is available\npython3 --version\n\n# Optional: ChromaDB for semantic search\npip install chromadb\n\n# Optional: Ollama for embeddings\n# Install from https:\u002F\u002Fgithub.com\u002Follama\u002Follama\n```\n\n### Step 1: Install the Skill\n\n```bash\n# The skill should be placed in your skills directory\n# ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Foverkill-memory-system\u002F\n```\n\n### Step 2: Configure Environment\n\nCopy `.env.example` to `.env` and configure:\n\n```bash\ncp .env.example .env\n# Edit .env with your preferences\n```\n\n### Step 3: Initialize Memory System\n\n```bash\npython3 cli.py init\n```\n\nThis creates all required memory files:\n- `~\u002F.openclaw\u002Fmemory\u002FSESSION-STATE.md`\n- `~\u002F.openclaw\u002Fmemory\u002FMEMORY.md`\n- `~\u002F.openclaw\u002Fmemory\u002Fcron-inbox.md`\n- `~\u002F.openclaw\u002Fmemory\u002Fplatform-posts.md`\n- `~\u002F.openclaw\u002Fmemory\u002Fstrategy-notes.md`\n- `~\u002F.openclaw\u002Fmemory\u002Fheartbeat-state.json`\n- `~\u002F.openclaw\u002Fmemory\u002Fdiary\u002F`\n- `~\u002F.openclaw\u002Fmemory\u002Fdaily\u002F`\n- `~\u002F.openclaw\u002Fmemory\u002Fchroma\u002F`\n- `~\u002F.openclaw\u002Fmemory\u002Fgit-notes\u002F`\n\n---\n\n## CLI Commands\n\n### Initialization\n\n```bash\n# Initialize memory system files\npython3 cli.py init\n\n# Initialize with custom memory base path\npython3 cli.py init --path \u002Fcustom\u002Fpath\n```\n\n### Memory Operations\n\n```bash\n# Add a memory with auto-detected importance & emotions\npython3 cli.py add \"Finished the project, feeling accomplished!\"\n\n# Add memory with explicit importance (0.0-1.0)\npython3 cli.py add \"Important decision made\" --importance 0.9\n\n# Add with explicit emotions\npython3 cli.py add \"Excited about the new feature\" --emotions joy,curiosity\n\n# Add with reward\u002Fvalue tracking\npython3 cli.py add \"Shipped v2.0\" --reward accomplishment --intensity 0.8\n```\n\n### Retrieval\n\n```bash\n# Search memories (hybrid - default, uses all optimizations)\npython3 cli.py search \"project updates\"\n\n# Fast mode (cache + ultra-hot only)\npython3 cli.py search \"query\" --fast\n\n# Full search (all tiers)\npython3 cli.py search \"query\" --full\n\n# Get recent memories\npython3 cli.py recent --limit 10\n\n# Get memories by importance threshold\npython3 cli.py important --threshold 0.7\n```\n\n### Error Tracking (NEW)\n\n```bash\n# Track an error\npython3 cli.py error track \"Forgot to add import\"\n\n# Show error patterns\npython3 cli.py error patterns\n\n# Show corrections made\npython3 cli.py error corrections\n\n# Error statistics\npython3 cli.py error stats\n```\n\n### Vestige Integration (NEW)\n\n```bash\n# Search vestige memories\npython3 cli.py vestige search \"user preferences\"\n\n# Ingest with tags\npython3 cli.py vestige ingest \"User prefers dark mode\" --tags preference\n\n# Promote memory (strengthen)\npython3 cli.py vestige promote \u003Cmemory_id>\n\n# Demote memory (weaken)\npython3 cli.py vestige demote \u003Cmemory_id>\n\n# Check vestige stats\npython3 cli.py vestige stats\n```\n\n### File Search (NEW)\n\n```bash\n# Search by file name (uses fd)\npython3 cli.py file search \"*.md\"\n\n# Search by content (uses rg)\npython3 cli.py file content \"TODO\"\n\n# Fast combined search\npython3 cli.py file fast \"pattern\"\n```\n\n### Knowledge Graph (NEW)\n\n```bash\n# Add atomic fact\npython3 cli.py kg add --entity \"people\u002Fkasper\" --category \"preference\" --fact \"Prefers TypeScript\"\n\n# Supersede old fact\npython3 cli.py kg supersede --entity \"people\u002Fkasper\" --old kasper-001 --fact \"New fact\"\n\n# Generate entity summary\npython3 cli.py kg summarize --entity \"people\u002Fkasper\"\n\n# Search knowledge graph\npython3 cli.py kg search \"preference\"\n\n# List all entities\npython3 cli.py kg list\n```\n\n### Self-Improving (NEW)\n\n```bash\n# Log an error\npython3 cli.py improve error \"Command failed\" --context \"details\"\n\n# Log user correction\npython3 cli.py improve correct \"No, that's wrong\" --context \"user corrected me\"\n\n# Log feature request\npython3 cli.py improve request \"Need markdown support\"\n\n# Log best practice\npython3 cli.py improve better \"Use async for I\u002FO\" --context \"found during work\"\n\n# Get all learnings\npython3 cli.py improve list\n```\n\n### Neuroscience (NEW)\n\n```bash\n# Show neuroscience statistics\npython3 cli.py neuro stats\n\n# Analyze text for neuroscience scores\npython3 cli.py neuro analyze \"I'm excited about this project!\"\n```\n\n### Session Management\n\n```bash\n# Start new session (flushes WAL to daily)\npython3 cli.py session new\n\n# End session (commits WAL buffer)\npython3 cli.py session end\n\n# Show session state\npython3 cli.py session status\n```\n\n### Neuroscience Queries\n\n```bash\n# Get current emotional state\npython3 cli.py brain state\n\n# Get motivation\u002Fdrive level\npython3 cli.py brain drive\n\n# Update emotional dimensions\npython3 cli.py brain update --valence 0.8 --arousal 0.6\n```\n\n### Daily & Diary\n\n```bash\n# Create daily note entry\npython3 cli.py daily \"What happened today\"\n\n# Create diary entry (prompts for date)\npython3 cli.py diary \"Reflecting on the week\"\n\n# List recent diary entries\npython3 cli.py diary list --limit 5\n```\n\n### Automation\n\n```bash\n# Process cron inbox messages\npython3 cli.py cron process\n\n# Sync platform posts\npython3 cli.py sync posts\n\n# Run memory analysis\npython3 cli.py analyze\n```\n\n### Utilities\n\n```bash\n# Show memory statistics\npython3 cli.py stats\n\n# Export memory backup\npython3 cli.py export \u002Fpath\u002Fto\u002Fbackup\u002F\n\n# Import memory backup\npython3 cli.py import \u002Fpath\u002Fto\u002Fbackup\u002F\n```\n\n---\n\n## Configuration (.env)\n\n```bash\n# Memory base directory\nMEMORY_BASE=\u002Fhome\u002Fuser\u002F.openclaw\u002Fmemory\n\n# ChromaDB settings (optional)\nCHROMA_URL=http:\u002F\u002Flocalhost:8100\nCHROMA_COLLECTION=memory-v2\n\n# Ollama settings (optional)\nOLLAMA_URL=http:\u002F\u002Flocalhost:11434\nEMBEDDING_MODEL=bge-m3\n\n# Capture settings\nPOLL_INTERVAL=300\n\n# Processing settings\nCHUNK_SIZE=512\nCHUNK_OVERLAP=50\n\n# Retrieval settings\nCACHE_TTL=3600\nMAX_RESULTS=10\n```\n\n\n---\n\n## Storage Guidelines\n\n### Tier 1: HOT (Session State)\n- **Location**: `~\u002F.openclaw\u002Fmemory\u002FSESSION-STATE.md`\n- **Size**: Keep under 50KB\n- **Content**: Active context, current task, recent messages\n\n### Tier 2: WARM (Daily)\n- **Location**: `~\u002F.openclaw\u002Fmemory\u002Fdaily\u002FYYYY-MM-DD.md`\n- **Size**: Up to 100KB per day\n- **Content**: Daily logs, conversation summaries\n\n### Tier 3: TEMP (Cache)\n- **Location**: `~\u002F.cache\u002Fmemory-v2\u002F`\n- **Size**: Auto-cleaned after 24h\n- **Content**: Processing scratchpad, temporary embeddings\n\n### Tier 4: COLD (Core)\n- **Location**: `~\u002F.openclaw\u002Fmemory\u002FMEMORY.md`\n- **Size**: Keep under 500KB\n- **Content**: Key facts, decisions, preferences, lessons learned\n\n### Tier 5: ARCHIVE (Diary)\n- **Location**: `~\u002F.openclaw\u002Fmemory\u002Fdiary\u002F`\n- **Size**: Unlimited\n- **Content**: Personal journal, milestone reflections\n\n### Tier 6: COLD-STORAGE (Git-Notes)\n- **Location**: `~\u002F.openclaw\u002Fmemory\u002Fgit-notes\u002F`\n- **Size**: Unlimited\n- **Content**: Knowledge base, permanent reference\n\n---\n\n## Cron Jobs\n\n### Recommended Cron Setup\n\n```bash\n# Process cron inbox every 5 minutes\n*\u002F5 * * * * cd ~\u002F.openclaw\u002Fworkspace-cody\u002Fskills\u002Foverkill-memory-system && python3 cli.py cron process >> \u002Fvar\u002Flog\u002Fmemory-cron.log 2>&1\n\n# Sync platform posts every 15 minutes\n*\u002F15 * * * * cd ~\u002F.openclaw\u002Fworkspace-cody\u002Fskills\u002Foverkill-memory-system && python3 cli.py sync posts >> \u002Fvar\u002Flog\u002Fmemory-sync.log 2>&1\n\n# Daily diary entry at 9 PM\n0 21 * * * cd ~\u002F.openclaw\u002Fworkspace-cody\u002Fskills\u002Foverkill-memory-system && python3 cli.py diary \"Daily reflection\" >> \u002Fvar\u002Flog\u002Fmemory-diary.log 2>&1\n\n# Weekly memory analysis (Sunday 10 PM)\n0 22 * * 0 cd ~\u002F.openclaw\u002Fworkspace-cody\u002Fskills\u002Foverkill-memory-system && python3 cli.py analyze >> \u002Fvar\u002Flog\u002Fmemory-analyze.log 2>&1\n```\n\n### Heartbeat Integration\n\nAdd to `HEARTBEAT.md`:\n\n```markdown\n## Memory System Checks\n\n- [ ] Check cron-inbox for cross-session messages\n- [ ] Check platform-posts for new activity\n- [ ] Review recent daily notes for important context\n- [ ] Update emotional state if significantly changed\n```\n\n---\n\n## Troubleshooting\n\n### Memory System Won't Initialize\n\n```bash\n# Check directory permissions\nls -la ~\u002F.openclaw\u002Fmemory\u002F\n\n# Manually create directory\nmkdir -p ~\u002F.openclaw\u002Fmemory\n```\n\n### ChromaDB Connection Failed\n\n```bash\n# Check if ChromaDB is running\ncurl http:\u002F\u002Flocalhost:8100\u002Fapi\u002Fv1\u002Fheartbeat\n\n# Or use keyword search fallback\npython3 cli.py search \"query\" --method keyword\n```\n\n### Ollama Embeddings Not Working\n\n```bash\n# Check Ollama is running\ncurl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags\n\n# Verify embedding model\nollama list\n```\n\n### Session State Not Persisting\n\n```bash\n# Manually flush WAL buffer\npython3 cli.py session end\n\n# Check session file\ncat ~\u002F.openclaw\u002Fmemory\u002FSESSION-STATE.md\n```\n\n### Memory Search Returns No Results\n\n```bash\n# Rebuild search index\npython3 cli.py analyze\n\n# Try keyword fallback\npython3 cli.py search \"term\" --method keyword\n```\n\n### Git-Notes Sync Issues\n\n```bash\n# Check git-notes directory\nls -la ~\u002F.openclaw\u002Fmemory\u002Fgit-notes\u002F\n\n# Initialize git repo if needed\ncd ~\u002F.openclaw\u002Fmemory\u002Fgit-notes && git init\n```\n\n---\n\n## File Structure\n\n```\noverkill-memory-system\u002F\n├── SKILL.md                 # This file\n├── README.md                # Quick start guide\n├── .env.example             # Environment template\n├── cli.py                   # Main CLI interface\n├── config.py                # Configuration\n├── scripts\u002F\n│   └── analyze_memories.py # Memory analysis tool\n├── templates\u002F               # Future: custom templates\n└── ULTIMATE_UNIFIED_FRAMEWORK.md  # Full framework docs\n```\n\n---\n\n## Credits & Sources\n- **vestige** - FSRS-6 spaced repetition for natural memory decay and preferences\n- **acc-error-memory** - Error pattern tracking and correction learning\n\nBuilt with neuroscience-inspired architecture:\n- **Hippocampus**: Importance-based memory consolidation\n- **Amygdala**: Emotional tagging and valence processing\n- **VTA**: Reward-driven attention and motivation\n\nBased on the Ultimate Unified Memory Framework (ULTIMATE_UNIFIED_FRAMEWORK.md)\n\n---\n\n## Credits & Sources\n- **vestige** - FSRS-6 spaced repetition for natural memory decay and preferences\n- **acc-error-memory** - Error pattern tracking and correction learning\n\nThis skill was built by integrating ideas and features from the following ClawHub skills:\n\n### Core Architecture\n- **elite-longterm-memory** - WAL Protocol, Git-Notes knowledge graph, SESSION-STATE.md concept\n- **jarvis-memory-architecture** - Cron inbox, diary, daily logs, platform post tracking, adaptive learning\n- **memory-hygiene** - Auto-cleanup, storage guidelines\n\n### Neuroscience Components\n- **hippocampus-memory** - Importance-weighted recall and memory encoding\n- **amygdala-memory** - Emotional tagging and processing\n- **vta-memory** - Value scoring and motivation tracking\n\n### Storage & Integration\n- **chromadb-memory** - Vector storage integration (ChromaDB + Ollama bge-m3)\n- **supermemory-free** - Optional cloud backup integration\n- **mem0** - Auto-fact extraction (80% token reduction)\n- **memory-system-v2** - Core unified memory framework\n\n### Created By\n- Initial implementation by Cody (AI coding specialist)\n- Framework designed by Broedkrummen\n- Built with OpenClaw agent-orchestrator\n\n---\n\n*Last Updated: 2026-02-25 | Version 1.3.0 (Speed-First)*\n\n### Cloud Integration (Requires Setup)\n\nThe system supports optional cloud backup and sync:\n\n- **Supermemory Integration**: Push memories to cloud for cross-device access\n- **Mem0 Auto-Fact Extraction**: Automatic fact extraction from conversations (80% token reduction)\n\nConfigure via environment variables:\n- `SUPERMEMORY_API_KEY` - For cloud backup\n- `MEM0_API_KEY` - For auto-fact extraction\n\n---\n\n## Speed Optimizations (v1.0.5)\n\n### Optimization Techniques Implemented\n\n| Technique | Layer | Complexity | Benefit |\n|-----------|-------|------------|---------|\n| Bloom Filters | Pre-query | O(1) | Skip expensive queries |\n| Redis Hot Cache | L0 | \u003C1ms | Sub-millisecond access |\n| Mem0 L1 Cache | L1 | \u003C10ms | 80% token reduction |\n| Parallel Queries | All | O(1) wall | Concurrent tier queries |\n| Connection Pooling | ChromaDB | Reuse | No connection overhead |\n| Binary Search | Git-Notes | O(log n) | Fast sorted lookups |\n| Pre-computed Embeddings | Cache | Skip compute | Cache hits = instant |\n| Lazy Loading | Files | On-demand | Reduced memory footprint |\n| Pre-fetch Context | Predictive | Anticipate | Results ready before ask |\n| Result Caching | TTL | 1-5min | Avoid redundant queries |\n\n### L1 Cache (Mem0)\n- **Purpose**: First-layer cache for 80% token reduction\n- **How**: Mem0 extracts facts from conversations automatically\n- **Benefit**: Reduces context window usage while preserving key information\n\n### Parallel Tier Query\n- **Purpose**: Query all memory tiers simultaneously\n- **How**: Async queries to Mem0, ChromaDB, Git-Notes, and file search\n- **Benefit**: O(1) wall-clock time instead of sequential O(n) tier traversal\n\n### Redis Hot Cache (L0)\n- **Purpose**: Ultra-fast L0 cache for frequently accessed memories\n- **TTL**: 5-15 minutes for hot data\n- **Benefit**: Sub-millisecond access for top results\n\n### Result Caching with TTL\n- **Purpose**: Cache search results to avoid redundant queries\n- **TTL**: 1-5 minutes depending on tier\n- **Benefit**: Dramatically reduces API calls and computation\n\n### Binary Search (Git-Notes)\n- **Purpose**: O(log n) lookup in sorted memory index\n- **How**: Maintain sorted timestamp\u002Findex files\n- **Benefit**: Fast retrieval from large Git-Notes collections\n\n### Connection Pooling\n- **Purpose**: Reuse ChromaDB and Ollama connections\n- **How**: Persistent connection pools with health checks\n- **Benefit**: Eliminates connection overhead on each query\n\n### Bloom Filters\n- **Purpose**: Quick existence checks before expensive queries\n- **How**: Probabilistic filter for memory presence\n- **Benefit**: Skip unnecessary tier searches when result is definitely not present\n\n### Pre-fetch Context\n- **Purpose**: Predictive memory loading based on context\n- **How**: Anticipate likely queries based on current session\n- **Benefit**: Results ready before user asks\n\n### Lazy Loading\n- **Purpose**: Load files only when needed\n- **How**: On-demand loading of large files\n- **Benefit**: Reduced memory footprint and faster initial response\n\n### Pre-computed Embeddings\n- **Purpose**: Cache embeddings for frequently queried content\n- **How**: Store embeddings alongside source data\n- **Benefit**: Skip embedding computation on cache hit\n- **How**: Store embeddings alongside source data\n- **Benefit**: Skip embedding computation on cache hit\n\n---\n\n## Cloud Architecture (v1.0.5)\n\n### Priority Order\n```\nMem0 (L1 Cache) → ChromaDB → Git-Notes → Supermemory (Backup)\n```\n\n| Tier | Service | Purpose | Latency | Cost |\n|------|---------|---------|---------|------|\n| L0 | Redis | Hot cache | \u003C1ms | Low |\n| L1 | Mem0 | Auto-extracted facts | \u003C10ms | Medium |\n| L2 | ChromaDB | Semantic vectors | \u003C50ms | Low |\n| L3 | Git-Notes | Knowledge graph | \u003C20ms | Free |\n| Backup | Supermemory | Offsite backup | Daily | Free |\n\n### Cloud Services Integration\n\n#### Mem0 (L1 Cache)\n- **Purpose**: First-layer cache for 80% token reduction\n- **How**: Auto-extracts facts from conversations\n- **API**: `MEM0_API_KEY` environment variable\n- **Benefit**: Reduces context window usage while preserving key information\n\n#### ChromaDB (Vector Storage)\n- **Purpose**: Semantic similarity search\n- **Embeddings**: bge-m3 via Ollama\n- **Connection**: Pooled connections for speed\n- **Fallback**: Keyword search if unavailable\n\n#### Git-Notes (Knowledge Graph)\n- **Purpose**: Structured JSON storage\n- **Lookup**: Binary search O(log n)\n- **Sync**: Git-based versioning\n\n#### Supermemory (Cloud Backup)\n- **Purpose**: Daily backup only (not real-time sync)\n- **Frequency**: Once per day\n- **API**: `SUPERMEMORY_API_KEY` environment variable\n- **Benefit**: Reduces API calls while maintaining offsite backup\n\n### Environment Variables\n```bash\n# Required for cloud features\nMEM0_API_KEY=your_mem0_key          # Auto-fact extraction\nSUPERMEMORY_API_KEY=your_key       # Cloud backup\n\n# Optional overrides\nCHROMA_URL=http:\u002F\u002Flocalhost:8100   # ChromaDB server\nOLLAMA_URL=http:\u002F\u002Flocalhost:11434   # Ollama server\nEMBEDDING_MODEL=bge-m3              # Embedding model\n```\n\n---\n\n## Search Priority Flow (v1.0.5)\n\n```\nQuery Input\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 1. BLOOM FILTER CHECK (O(1))                                │\n│    • Probabilistic existence check                          │\n│    • Skip expensive queries if definitely not present        │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 2. REDIS HOT CACHE \u002F L0 CACHE (Sub-millisecond)            │\n│    • TTL: 5-15 minutes                                       │\n│    • Frequently accessed memories                           │\n│    • Return immediately if cached                           │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 3. MEM0 L1 CACHE (First Priority)                            │\n│    • Auto-extracted facts (80% token reduction)             │\n│    • Fast fact lookup                                        │\n│    • No embedding computation needed                         │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 4. CHROMADB (Second Priority)                                │\n│    • Semantic vector search (bge-m3 embeddings)             │\n│    • Connection pooling for speed                            │\n│    • Return top-k results with scores                        │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 5. GIT-NOTES (Third Priority)                                │\n│    • Structured JSON knowledge graph                         │\n│    • Binary search on sorted index                           │\n│    • O(log n) lookup time                                     │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ 6. FILE SEARCH (Fallback)                                    │\n│    • Raw grep on daily\u002Fdiary files                          │\n│    • Last resort fallback                                    │\n└──────────────────────────────────────────────────────────────┘\n     │\n     ▼\n┌──────────────────────────────────────────────────────────────┐\n│ RESULTS MERGE & RANKING                                      │\n│    • Combine results from all tiers                         │\n│    • Apply importance weights (Hippocampus)                 │\n│    • Apply emotional relevance (Amygdala)                   │\n│    • Apply value scores (VTA)                               │\n│    • Return unified ranked results                          │\n└──────────────────────────────────────────────────────────────┘\n```\n\n### Cache Strategy Details\n- **Cache Hit**: Return cached result immediately (sub-ms)\n- **Cache Miss**: Query next tier, cache result with TTL\n- **Negative Cache**: Optionally cache \"not found\" results (shorter TTL)\n- **Cache Invalidation**: On session end, new memory add, or manual trigger\n\n\n---\n\n## ⚠️ Prerequisites & Setup\n\n### Required Services (must be running)\n- ChromaDB on http:\u002F\u002Flocalhost:8100\n- Ollama on http:\u002F\u002Flocalhost:11434 with bge-m3 model\n\n### Optional Services (require API keys)\n- Mem0.ai account (for cloud fact extraction)\n- Supermemory.ai account (for cloud backup)\n- Redis (optional, falls back to in-memory)\n\n### Environment Setup\n1. Copy `.env.example` to `.env`\n2. Fill in optional API keys if using cloud features\n3. Run `python3 cli.py --help` to get started\n\n### Manual Setup for Automation\nThe CLI provides commands but cron jobs are NOT auto-installed. To enable:\n- Add cron jobs manually via `crontab -e`\n- Example: `0 3 * * * python3 \u002Fpath\u002Fto\u002Fcli.py cloud sync`\n\n---\n\n## ⚠️ Important Notes\n\n### On-Import Side Effects\nWhen Python imports cli.py, it may create memory directories under `~\u002F.openclaw\u002Fmemory\u002F`. This is intentional - the system needs these directories to function. To avoid this, run commands via subprocess rather than import.\n\n### No Auto-Installed Cron Jobs\nThe skill provides CLI commands for automation but does NOT auto-install cron jobs. You must manually add them if desired:\n```bash\n# Add to crontab -e\n0 3 * * * python3 \u002Fpath\u002Fto\u002Fcli.py cloud sync\n```\n\n### Cloud Features\nCloud features (Mem0, Supermemory) require API keys. Set in environment or .env file before use.\n\n---\n\n## 🔐 Security & Network Access\n\n### When Network Access Occurs\n\n| Variable | When Accessed | External Service |\n|----------|--------------|-----------------|\n| CHROMA_URL | If set | ChromaDB server |\n| OLLAMA_URL | If set | Ollama server |\n| MEM0_API_KEY | If set AND MEM0_USE_LOCAL=false | Mem0.ai API |\n| SUPERMEMORY_API_KEY | If set | Supermemory.ai API |\n| REDIS_URL | If set | Redis server |\n\n### Default Behavior (No Network)\n- Without API keys, system runs **fully offline**\n- Uses local ChromaDB + local Ollama (if available)\n- All data stored locally in ~\u002F.openclaw\u002Fmemory\u002F\n\n### Cloud Features\nOnly enabled when you:\n1. Set MEM0_API_KEY and set MEM0_USE_LOCAL=false\n2. Set SUPERMEMORY_API_KEY\n\nThese are opt-in only. Default = offline.\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fo\u002Foverkill-memory-system",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill overkill-memory-system",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill overkill-memory-system",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill overkill-memory-system","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fo\u002Foverkill-memory-system\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]