🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

elite-longterm-memory

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elite-longterm-memory

Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol, vector search, git-based knowledge graphs, cloud backup. Never lose context again.

latest
Source
npmnpm
Version
1.2.3
Version published
Weekly downloads
9
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Elite Longterm Memory 🧠

The ultimate memory system for AI agents. Never lose context again.

npm version npm downloads License: MIT

Works With

Claude AI GPT Cursor LangChain

Built for: Clawdbot • Moltbot • Claude Code • Any AI Agent

Combines 7 proven memory approaches into one bulletproof architecture:

  • Bulletproof WAL Protocol — Write-ahead logging survives compaction
  • LanceDB Vector Search — Semantic recall of relevant memories
  • Git-Notes Knowledge Graph — Structured decisions, branch-aware
  • File-Based Archives — Human-readable MEMORY.md + daily logs
  • Cloud Backup — Optional SuperMemory sync
  • Memory Hygiene — Keep vectors lean, prevent token waste
  • Mem0 Auto-Extraction — Automatic fact extraction, 80% token reduction

Quick Start

# Initialize in your workspace
npx elite-longterm-memory init

# Check status
npx elite-longterm-memory status

# Create today's log
npx elite-longterm-memory today

Architecture

┌─────────────────────────────────────────────────────┐
│              ELITE LONGTERM MEMORY                  │
├─────────────────────────────────────────────────────┤
│  HOT RAM          WARM STORE        COLD STORE     │
│  SESSION-STATE.md → LanceDB      → Git-Notes       │
│  (survives         (semantic       (permanent      │
│   compaction)       search)         decisions)     │
│         │              │                │          │
│         └──────────────┼────────────────┘          │
│                        ▼                           │
│                   MEMORY.md                        │
│               (curated archive)                    │
└─────────────────────────────────────────────────────┘

The 5 Memory Layers

LayerFile/SystemPurposePersistence
1. Hot RAMSESSION-STATE.mdActive task contextSurvives compaction
2. Warm StoreLanceDBSemantic searchAuto-recall
3. Cold StoreGit-NotesStructured decisionsPermanent
4. ArchiveMEMORY.md + daily/Human-readableCurated
5. CloudSuperMemoryCross-device syncOptional

The WAL Protocol

Critical insight: Write state BEFORE responding, not after.

User: "Let's use Tailwind for this project"

Agent (internal):
1. Write to SESSION-STATE.md → "Decision: Use Tailwind"
2. THEN respond → "Got it — Tailwind it is..."

If you respond first and crash before saving, context is lost. WAL ensures durability.

Why Memory Fails (And How to Fix It)

ProblemCauseFix
Forgets everythingmemory_search disabledEnable + add OpenAI key
Repeats mistakesLessons not loggedWrite to memory/lessons.md
Sub-agents isolatedNo context inheritancePass context in task prompt
Facts not capturedNo auto-extractionUse Mem0 (see below)

Auto-extract facts from conversations. 80% token reduction.

npm install mem0ai
export MEM0_API_KEY="your-key"
const { MemoryClient } = require('mem0ai');
const client = new MemoryClient({ apiKey: process.env.MEM0_API_KEY });

// Auto-extracts facts from messages
await client.add(messages, { user_id: "user123" });

// Retrieve relevant memories  
const memories = await client.search(query, { user_id: "user123" });

For Clawdbot/Moltbot Users

Add to ~/.clawdbot/clawdbot.json:

{
  "memorySearch": {
    "enabled": true,
    "provider": "openai",
    "sources": ["memory"]
  }
}

Files Created

workspace/
├── SESSION-STATE.md    # Hot RAM (active context)
├── MEMORY.md           # Curated long-term memory
└── memory/
    ├── 2026-01-30.md   # Daily logs
    └── ...

Commands

elite-memory init      # Initialize memory system
elite-memory status    # Check health
elite-memory today     # Create today's log
elite-memory help      # Show help

Built by @NextXFrontier

Keywords

memory

FAQs

Package last updated on 11 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts