Token导航 LogoToken导航

Agent Skill · 研究检索

openclaw-memory-upgrade(OpenClaw 记忆 upgrade)

openclaw-memory-upgrade 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

openclaw-memory-upgrade 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为调用外部服务;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 30,367。

总安装 2,892周安装 117GitHub Stars 公开资料未说明下载 908核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-memory-upgrade(OpenClaw 记忆 upgrade)
来源仓库:https://github.com/johnnywang2001/openclaw-memory-upgrade
安装命令:
openclaw skills install openclaw-memory-upgrade
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-memory-upgrade

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

openclaw-memory-upgrade 提供升级指南,实现跨会话持久化与可搜索上下文管理。适合在 OpenClaw 中实施六项关键升级以增强内存流量与稳定性。通过 clawhub 安装,使用 openclaw skills install 命令,按步骤执行配置变更。

安装前应备份现有内存文件,防止升级过程中数据损坏或丢失。包含增强型内存调度与故障回滚机制,降低升级风险。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openclaw-memory-upgrade;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openclaw-memory-upgrade 怎么安装?

在终端执行 openclaw skills install openclaw-memory-upgrade。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-memory-upgrade 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-memory-upgrade 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

openclaw-memory-upgrade 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openclaw-memory-upgrade 用的人多吗?

公开数据是累计安装 2,892 次,近一周安装 117 次,下载 908 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-memory-upgrade 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
openclaw-memory-upgrade

OpenClaw 记忆 upgrade · 本页

2,892—调用外部服务MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
openclaw-memory-upgrade
description
Complete guide to upgrading OpenClaw's memory system for persistent, searchable context across sessions. Implements 6 upgrades including enhanced memory flush, session indexing, QMD hybrid search, Mem0 plugin, and manual memory management patterns.

OpenClaw Memory Upgrade

Turn your OpenClaw agent from a goldfish into an elephant. This skill implements 6 memory upgrades that give your agent persistent, searchable memory across sessions — so it actually remembers who you are, what you're working on, and what happened yesterday.

The Problem

By default, OpenClaw agents wake up blank every session. Conversations are isolated. Context is lost at compaction. Your agent forgets decisions, preferences, and project status the moment the session ends.

What This Fixes

After applying these upgrades, your agent will:

  • Extract and save 8 categories of important information before context is lost
  • Search across all past sessions and memory files before answering
  • Use hybrid keyword + semantic search with diversity and recency ranking
  • Auto-capture and auto-recall memories via the Mem0 plugin
  • Maintain curated long-term memory separately from raw daily logs

Prerequisites

  • OpenClaw 2026.2.26 or later
  • Access to openclaw.json config file
  • npm (for Mem0 plugin installation)

Upgrade 1: Enhanced memoryFlush Prompt

What it does: When a conversation nears compaction (context window filling up), this automatically scans for 8 categories of important information and writes them to daily memory files before context gets trimmed.

Why it matters: Without this, compaction silently discards conversation details. With it, decisions, preferences, technical details, and more survive compaction.

Add to openclaw.json under agents.defaults.compaction:

{
  "compaction": {
    "mode": "safeguard",
    "reserveTokensFloor": 20000,
    "memoryFlush": {
      "enabled": true,
      "softThresholdTokens": 4000,
      "systemPrompt": "Session nearing compaction. Analyze the conversation and extract durable memories NOW before context is lost.",
      "prompt": "Scan the current conversation and write any of the following to memory/YYYY-MM-DD.md (use today's date):\
\
1. DECISIONS made (with reasoning and context)\
2. USER PREFERENCES or corrections expressed\
3. TECHNICAL DETAILS (commands, configs, API keys, endpoints, file paths)\
4. PROJECT STATUS changes or milestones\
5. PEOPLE mentioned (names, roles, contact info, relationships)\
6. WORKFLOWS or processes described\
7. ERRORS encountered and their solutions\
8. OPINIONS or feedback the user gave\
\
For each item, include timestamps and enough context that future-you can understand it without the conversation. If nothing meaningful happened, reply with NO_REPLY."
    }
  }
}

Config explained:

  • mode: "safeguard" — compaction mode that preserves important context
  • reserveTokensFloor: 20000 — always keep at least 20K tokens available for the agent to work with
  • softThresholdTokens: 4000 — trigger memory flush when only 4K tokens remain before compaction
  • systemPrompt — injected as a system message to signal urgency
  • prompt — the actual extraction instructions with 8 categories

Upgrade 2: Session Indexing

What it does: Makes past conversation sessions searchable. Without this, each session is a black box once it ends. With it, the agent can search across old conversations to find things discussed days or weeks ago.

Add to agents.defaults.memorySearch:

{
  "memorySearch": {
    "enabled": true,
    "experimental": {
      "sessionMemory": true
    },
    "sources": ["memory", "sessions"]
  }
}

Config explained:

  • sessionMemory: true — indexes past session transcripts for search
  • sources: ["memory", "sessions"] — searches both memory files AND past sessions

Upgrade 3: Manual Memory Management

What it does: Establishes a two-tier file-based memory system that the agent reads at the start of every session.

Structure:

workspace/
  MEMORY.md          ← Curated long-term memory (the agent's brain)
  memory/
    YYYY-MM-DD.md    ← Daily logs (raw notes from each day)

How it works:

  • MEMORY.md — distilled, organized knowledge. Sections for user profile, projects, decisions, preferences, contacts, workflows. Updated periodically.
  • memory/YYYY-MM-DD.md — raw daily logs. Auto-written by memoryFlush, also written manually by the agent during conversations. One file per day.

Agent instructions (add to AGENTS.md):

## Every Session
1. Read MEMORY.md — this is your long-term brain
2. Read memory/YYYY-MM-DD.md for today + yesterday
3. If something important happens, write it to today's daily file
4. Periodically review daily files and distill key learnings into MEMORY.md
5. Never rely on "mental notes" — if it matters, write it to a file

Key principle: Text > Brain. The agent's memory files ARE its continuity. Without them, it wakes up blank.


Upgrade 4: QMD Backend (Hybrid Search)

What it does: Replaces basic memory search with QMD — a hybrid system combining keyword matching (BM25) and semantic understanding (vector embeddings), with diversity ranking and recency bias.

Add to openclaw.json at the top level:

{
  "memory": {
    "backend": "qmd",
    "citations": "auto",
    "qmd": {
      "includeDefaultMemory": true,
      "update": {
        "interval": "5m",
        "debounceMs": 15000
      },
      "limits": {
        "maxResults": 8,
        "timeoutMs": 5000
      },
      "sessions": {
        "enabled": true,
        "retentionDays": 90
      }
    }
  }
}

Also add the query configuration under agents.defaults.memorySearch:

{
  "memorySearch": {
    "query": {
      "hybrid": {
        "enabled": true,
        "vectorWeight": 0.7,
        "textWeight": 0.3,
        "candidateMultiplier": 4,
        "mmr": {
          "enabled": true,
          "lambda": 0.7
        },
        "temporalDecay": {
          "enabled": true,
          "halfLifeDays": 30
        }
      }
    },
    "cache": {
      "enabled": true,
      "maxEntries": 50000
    }
  }
}

Config explained:

  • hybrid search — combines keyword (BM25, weight 0.3) with semantic/vector (weight 0.7) for best of both worlds
  • MMR (Maximal Marginal Relevance) — ensures search results are diverse, not 8 near-identical matches. Lambda 0.7 balances relevance vs diversity.
  • temporalDecay — recent memories rank higher than old ones. 30-day half-life means a memory from today scores 2x higher than one from a month ago.
  • retentionDays: 90 — keeps 90 days of session history searchable
  • update interval: 5m — re-indexes memory files every 5 minutes with 15-second debounce
  • cache: 50000 entries — caches search results for speed

Upgrade 5: Mem0 Plugin (Auto-Capture & Auto-Recall)

What it does: Adds a separate memory layer that automatically captures important information from conversations and automatically recalls relevant memories before the agent responds.

Install:

openclaw plugin install @mem0/openclaw-mem0

Add to openclaw.json under plugins:

{
  "plugins": {
    "slots": {
      "memory": "openclaw-mem0"
    },
    "entries": {
      "openclaw-mem0": {
        "enabled": true,
        "config": {
          "mode": "open-source",
          "autoCapture": true,
          "autoRecall": true,
          "enableGraph": true,
          "topK": 10,
          "searchThreshold": 0.5
        }
      }
    }
  }
}

Config explained:

  • mode: "open-source" — runs locally, no external API calls
  • autoCapture: true — automatically saves important facts from conversations without being told
  • autoRecall: true — automatically searches memory before responding to questions
  • enableGraph: true — builds a knowledge graph of relationships between memories
  • topK: 10 — returns up to 10 relevant memories per search
  • searchThreshold: 0.5 — only returns memories above 50% relevance score

Note: Requires the Ollama npm module. If you see errors about missing ollama module, run:

cd ~/.openclaw/extensions/openclaw-mem0 && npm install ollama

Upgrade 6: Cognee (Optional — Requires Docker)

What it does: Graph-based memory system for advanced knowledge representation.

Status: Optional. Requires Docker to be running. Also flagged by OpenClaw security audit for environment variable harvesting patterns in its code. Recommended to skip unless you have Docker running AND have audited the plugin source code.

If you want to install it anyway:

openclaw plugin install @cognee/cognee-openclaw

Recommendation: Skip this one. Upgrades 1-5 provide comprehensive memory coverage. Cognee adds complexity without proportional benefit for most setups.


How It All Fits Together

Conversation happens
    │
    ├── Mem0 auto-captures important facts (real-time)
    │
    ├── Agent writes to memory/YYYY-MM-DD.md (manual)
    │
    ├── memoryFlush triggers before compaction (automatic, 8 categories)
    │
    └── QMD indexes everything (every 5 min)
            │
            ├── BM25 keyword search
            ├── Vector semantic search
            ├── MMR diversity ranking
            ├── Temporal decay (recent > old)
            └── Session history (90 days)

Next session starts
    │
    ├── Agent reads MEMORY.md + today's daily note
    ├── Mem0 auto-recalls relevant memories
    └── QMD searches across all files + sessions

Verification

After applying all upgrades, restart the gateway:

openclaw gateway restart

Then verify:

openclaw status --deep

You should see:

  • Memory: enabled (plugin openclaw-mem0)
  • Memory backend: qmd
  • Session indexing: active

Test by telling your agent something specific, ending the session, starting a new one, and asking about it. If the memory system is working, it should find it.

Estimated Token Overhead

The memory system adds minimal overhead:

  • memoryFlush: ~2,000-5,000 tokens per compaction event (only when needed)
  • Mem0 auto-recall: ~500-1,000 tokens per query (injected relevant memories)
  • QMD search: runs server-side, no token cost
  • File reading (MEMORY.md + daily notes): depends on file size, typically 2,000-8,000 tokens at session start

平台分布

OpenClaw

87.98%
按下载量换算799

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills