simplemem

Efficient Lifelong Memory for LLM Agents - semantic compression, cross-session memory, and intent-aware retrieval

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "simplemem" with this command: npx skills add nantes/simplemem

SimpleMem Skill

Integrates SimpleMem: Efficient Lifelong Memory for LLM Agents into OpenClaw.

What it does

SimpleMem provides semantic memory compression and retrieval for agents:

  • Store: Compresses interactions into compact memory units
  • Synthesize: Merges related memories on-the-fly
  • Retrieve: Intent-aware planning for efficient context retrieval

Installation

# Install Python dependency
pip install simplemem

# Or via repo
git clone https://github.com/aiming-lab/SimpleMem.git
cd SimpleMem
pip install -r requirements.txt

Configuration (Optional - Full Features)

For full SimpleMem features, set your OpenAI API key:

$env:OPENAI_API_KEY = "your-openai-key"

Without API key: Uses JSON fallback (basic keyword search) With API key: Uses full SimpleMem with semantic embeddings

Usage

PowerShell Script

# Agregar memoria
.\simplemem.ps1 -Action add -Content "El usuario prefiere cafe con leche de avena"

# Buscar memorias
.\simplemem.ps1 -Action search -Query "cafe"

# Ver estadisticas
.\simplemem.ps1 -Action stats

Python API

from simplemem import SimpleMemSystem, set_config, SimpleMemConfig

# With API key (full features)
config = SimpleMemConfig()
config.openai_api_key = "your-key"
set_config(config)
system = SimpleMemSystem()

# Add memory
system.add("User preference: coffee with oat milk", user_id="user1")

# Retrieve
results = system.retrieve("What does user like?", user_id="user1")

Key Features

  • Cross-session memory: Persistent across conversations (64% better than Claude-Mem)
  • Semantic compression: 43.24% F1 on LoCoMo benchmark
  • Fast retrieval: 388ms average retrieval time
  • Multi-index: Semantic + Lexical + Symbolic layers
  • Fallback: JSON-based storage when no API key available

Files

  • simplemem.py - Main Python wrapper
  • simplemem.ps1 - PowerShell CLI script
  • data/ - Storage directory (created on first use)

Credits

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Stigmem

Persistent federated memory for OpenClaw agents — boot handshake, handoff, decision, and escalation surfaces backed by a Stigmem node.

Registry SourceRecently Updated
Automation

Boheng Investment Workflow

投资研究多智能体决策系统 - 8位专业分析师并行研究,加权投票给出投资建议。支持A股股票/基金/ETF/可转债。支持真实财报数据(baostock)或基础行情数据。⚠️ 风险提示:分析结果仅供学习参考,不构成投资建议。

Registry SourceRecently Updated
Automation

V19 Trust Manifesto

V19认知治理协议公开受信声明。包含协议身份、系统状态指纹、公开验证方式与接入安全保障。外部Agent验证V19协议真实性的信任锚点。

Registry SourceRecently Updated
Automation

Anonyflow

AnonyFlow integration. Manage data, records, and automate workflows. Use when the user wants to interact with AnonyFlow data.

Registry SourceRecently Updated