MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
Search & Research
🔬

Elite Longterm Memory

6-layer persistent memory system for AI agents: WAL protocol, vector search, git-notes, and cloud backup so you never lose context again.

NextFrontierBuildsv1.2.3
ProductivityAI PoweredOpen SourceAutomationDeveloper Tool
Connecting to VM...
Connecting to VM...
npx clawhub@latest install elite-longterm-memory
96Stars
21.0kDownloads
418Current Installs
141All-time Installs
📦
v1.2.3Version
📅
Mar 5, 2026Updated

Requirements

LLM API KeyMemory Extraction API Key(optional)Cloud Memory Backup Key(optional)
View Source(ClawHub)

Elite Longterm Memory Skill Overview

Elite Longterm Memory combines six proven memory approaches into one architecture for AI coding agents. It layers hot RAM (session state), semantic vector search via LanceDB, a git-notes knowledge graph, curated markdown archives, optional cloud backup via SuperMemory, and automatic fact extraction via Mem0. The result: your agent retains preferences, decisions, and context across sessions, compactions, and restarts — without repeating mistakes or losing prior work.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install elite-longterm-memory
or

Click the Install button at the top of this page for one-click setup

When to Use Elite Longterm Memory

Best Fit

  • You lose context mid-session — the WAL (Write-Ahead Log) protocol ensures state is written before the agent responds, so compactions and crashes can't erase what matters.
  • You work across long-running or multi-session projects — the curated MEMORY.md + daily logs give both agent and human a durable, human-readable record of decisions.
  • Your agents repeat mistakes or forget preferences — Mem0 auto-extracts facts from conversations and deduplicates them, reducing token usage by ~80% vs. raw history.
  • You run sub-agents or parallel workstreams — the layered architecture lets you pass structured context via git-notes and semantic search rather than re-explaining everything.

When Not to Use

  • You need a one-off, single-session task — the full 5-layer setup adds overhead that isn't justified for throwaway scripts or short tasks.
  • You're not using an OpenAI-compatible LLM key — semantic vector search (LanceDB) and Mem0 integration require OPENAI_API_KEY; the skill won't reach its full potential without it.

Key Features

Write-Ahead Log (WAL) Protocol

State is written to SESSION-STATE.md before the agent responds, not after. This prevents context loss during compaction, crashes, or mid-conversation interruptions — a guarantee that naive memory approaches can't provide.

LanceDB Semantic Vector Search

All memories are indexed in a local LanceDB vector store. Auto-recall injects the most relevant prior context into each response, and manual memory_store / memory_recall commands let you query or filter by category and importance score.

Git-Notes Knowledge Graph (Cold Store)

Structured decisions, learnings, and branch-aware context are stored as git notes — silent, version-controlled, and exportable as JSON. They persist permanently alongside your repo history.

Mem0 Auto-Extraction (80% Token Reduction)

Mem0 automatically extracts facts, preferences, and decisions from raw conversation history, deduplicates them, and surfaces relevant memories on demand. This eliminates the need to pass full chat history and cuts token consumption by up to 80%.

SuperMemory Cloud Backup (Optional)

Optionally sync your knowledge base to SuperMemory for cross-device access and natural-language querying of stored context. Requires a SUPERMEMORY_API_KEY.

Human-Readable Curated Archive

A MEMORY.md root file and dated daily logs under memory/YYYY-MM-DD.md give both agent and developer a clear, browsable record of what was decided, learned, and remembered — no opaque database required.

Use Cases

Long-running coding project with Cursor or Claude

As the project evolves across days or weeks, the agent writes tech decisions (e.g. "Use Tailwind, not vanilla CSS") to git-notes and SESSION-STATE.md. On every new session it reads prior context automatically, so it never asks what framework you're using again.

Vibe-coding sessions with frequent compactions

When the context window fills and the agent compacts, SESSION-STATE.md acts as hot RAM that survives the reset. The WAL protocol ensures that anything said in the last exchange is already persisted before the compaction fires.

Multi-agent or sub-agent orchestration

Context stored in git-notes and LanceDB can be queried by any spawned sub-agent at task start, so parallel agents share the same decisions and preferences without manual re-briefing.

Personal AI assistant with persistent preferences

User preferences, recurring deadlines, and corrected mistakes are auto-extracted by Mem0 and stored across sessions. The agent builds an accurate, deduplicated model of the user over time without growing the prompt.

Requirements

  • LLM API Key (OPENAI_API_KEY) — Required. Powers semantic vector search (LanceDB) and memory embedding. Must be set for memory_search to function.
  • Mem0 API Key (MEM0_API_KEY) (recommended) — Enables automatic fact extraction and deduplication from conversation history.
  • SuperMemory API Key (SUPERMEMORY_API_KEY) (optional) — Enables cloud backup and cross-device sync of your knowledge base.
  • Plugin dependency — memory-lancedb plugin must be enabled in ~/.openclaw/openclaw.json.
Connecting to VM...
npx clawhub@latest install elite-longterm-memory
96Stars
21.0kDownloads
418Current Installs
141All-time Installs
📦
v1.2.3Version
📅
Mar 5, 2026Updated

Requirements

LLM API KeyMemory Extraction API Key(optional)Cloud Memory Backup Key(optional)
View Source(ClawHub)

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!