← All skills
Tencent SkillHub · Developer Tools

Elite Longterm Memory

Local vector memory system with LanceDB + Pure JS embedding. No native modules or external APIs required.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Local vector memory system with LanceDB + Pure JS embedding. No native modules or external APIs required.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
CHANGELOG.md, README.md, SKILL.md, bin/init.js, bin/memory.js, bin/test.js

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 15 sections Open source page

Elite Longterm Memory (Local Edition) 🧠

基于 LanceDB + Pure JavaScript Embedding 的本地向量记忆系统,无需外部 API。

核心特性

✅ 纯本地运行 — Pure JavaScript embedding,零外部依赖 ✅ WAL 协议 — 写前日志,防数据丢失 ✅ LanceDB 向量搜索 — 语义召回相关记忆 ✅ 三层存储 — Hot/Warm/Cold 分层管理 ✅ 无需配置 — 无需 Ollama 或 OpenAI API key ✅ 自动召回/捕获 — 智能注入相关上下文

架构

┌─────────────────────────────────────────────────────────────────┐ │ ELITE LONGTERM MEMORY │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ │ HOT RAM │ │ WARM STORE │ │ COLD STORE │ │ │ │ │ │ │ │ │ │ │ │ SESSION- │ │ LanceDB │ │ Git-Notes │ │ │ │ STATE.md │ │ Vectors │ │ Knowledge │ │ │ │ │ │ │ │ Graph │ │ │ │ (survives │ │ (semantic │ │ (permanent │ │ │ │ compaction)│ │ search) │ │ decisions) │ │ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │ │ │ │ │ │ └────────────────┼────────────────┘ │ │ ▼ │ │ ┌─────────────┐ │ │ │ MEMORY.md │ ← Curated long-term │ │ │ + daily/ │ (human-readable) │ │ └─────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘

五层记忆系统

层级文件/系统用途持久化1. Hot RAMSESSION-STATE.md活跃任务上下文survived compaction2. Warm StoreLanceDB Vectors语义搜索自动召回3. Cold StoreGit-Notes结构化决策永久保存4. ArchiveMEMORY.md + daily/人类可读精选归档5. EmbeddingOllama本地向量模型纯本地

1. 安装依赖

# 确保 Ollama 已安装并运行 ollama --version # 拉取向量模型 ollama pull nomic-embed-text # 安装 Node 依赖 cd skills/elite-longterm-memory npm install

2. 初始化记忆系统

node bin/init.js 这会创建: SESSION-STATE.md — 热内存 MEMORY.md — 长期记忆 memory/ — 每日日志目录 memory/vectors/ — LanceDB 数据库

3. 使用记忆工具

# 存储记忆 node bin/memory.js store "用户喜欢深色模式" --importance 0.9 --category preference # 搜索记忆 node bin/memory.js search "用户界面偏好" # 查看统计 node bin/memory.js stats # 删除记忆 node bin/memory.js forget --query "深色模式"

启用插件

在 ~/.openclaw/openclaw.json 中添加: { "plugins": { "entries": { "elite-longterm-memory": { "enabled": true, "config": { "ollamaUrl": "http://localhost:11434", "embeddingModel": "nomic-embed-text", "dbPath": "./memory/vectors", "autoRecall": true, "autoCapture": false } } } } }

使用记忆工具

启用后,OpenClaw 会自动提供以下工具: memory_recall — 搜索相关记忆 memory_store — 存储重要信息 memory_forget — 删除记忆

智能提示词

  • 在 AGENTS.md 或 SOUL.md 中添加:
  • ## 记忆协议
  • ### 会话开始时
  • 1. 读取 SESSION-STATE.md — 获取热上下文
  • 2. 使用 memory_recall 搜索相关历史
  • 3. 检查 memory/YYYY-MM-DD.md 了解近期活动
  • ### 对话中
  • 用户给出具体细节?→ 先写入 SESSION-STATE.md,再回复
  • 重要决策?→ 使用 memory_store 存储
  • 表达偏好?→ memory_store --importance 0.9 --category preference
  • ### 会话结束时
  • 1. 更新 SESSION-STATE.md 最终状态
  • 2. 重要内容移至 MEMORY.md
  • 3. 创建/更新 memory/YYYY-MM-DD.md

WAL 协议(关键)

写前日志:先写状态,再回复。 触发条件动作用户表达偏好写入 SESSION-STATE.md → 然后回复用户做出决策写入 SESSION-STATE.md → 然后回复用户给出期限写入 SESSION-STATE.md → 然后回复用户纠正你写入 SESSION-STATE.md → 然后回复 为什么? 如果先回复再保存,崩溃/压缩会导致上下文丢失。WAL 确保数据持久。

维护命令

# 查看向量记忆统计 node bin/memory.js stats # 搜索所有记忆 node bin/memory.js search "*" --limit 50 # 清理重复记忆 node bin/memory.js dedup # 导出记忆 node bin/memory.js export --format json > memories.json # 备份记忆 node bin/memory.js backup ./backups/memory-$(date +%Y%m%d).zip

故障排查

Ollama 连接失败 → 检查 ollama serve 是否运行 → 检查 OLLAMA_HOST 环境变量 向量搜索无结果 → 检查 LanceDB 路径是否正确 → 确认已存储记忆:node bin/memory.js stats 内存占用过高 → 运行 node bin/memory.js compact 压缩向量 → 清理旧记忆:node bin/memory.js cleanup --before 30d

为什么本地 Embedding?

对比OpenAI APIOllama 本地费用按 token 收费免费延迟网络依赖本地毫秒级隐私数据出域完全本地离线不可用可用质量text-embedding-3nomic-embed-text 对于个人使用,nomic-embed-text 的质量足够,且完全免费。

链接

Ollama: https://ollama.com LanceDB: https://lancedb.github.io (npm: vectordb) nomic-embed-text: https://ollama.com/library/nomic-embed-text 本地优先,隐私至上。

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Docs3 Scripts
  • SKILL.md Primary doc
  • CHANGELOG.md Docs
  • README.md Docs
  • bin/init.js Scripts
  • bin/memory.js Scripts
  • bin/test.js Scripts