返回顶部
m

memory-hygiene记忆卫生

Audit, clean, and optimize Clawdbot's vector memory (LanceDB). Use when memory is bloated with junk, token usage is high from irrelevant auto-recalls, or setting up memory maintenance automation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
18,333
下载量
免费
免费
18
收藏
概述
安装方式
版本历史

memory-hygiene

记忆卫生

保持向量记忆精简。防止垃圾记忆造成Token浪费。

快速命令

审计: 检查记忆中的内容

memory_recall query=* limit=50

清除: 清空所有向量记忆
bash
rm -rf ~/.clawdbot/memory/lancedb/

然后重启网关:clawdbot gateway restart

重新注入: 清除后,从MEMORY.md中存储关键事实

memory_store text=<事实> category=preference|fact|decision importance=0.9

配置:禁用自动捕获

垃圾记忆的主要来源是autoCapture: true。禁用它:

json
{
plugins: {
entries: {
memory-lancedb: {
config: {
autoCapture: false,
autoRecall: true
}
}
}
}
}

使用gateway action=config.patch来应用。

应存储的内容(有意识地)

✅ 存储:

  • - 用户偏好(工具、工作流程、沟通风格)
  • 关键决策(项目选择、架构)
  • 重要事实(账户、凭证位置、联系人)
  • 经验教训

❌ 绝不存储:

  • - 心跳状态(HEARTBEAT_OK、无新消息)
  • 临时信息(当前时间、临时状态)
  • 原始消息日志(已在文件中)
  • OAuth URL或令牌

月度维护定时任务

设置月度清除+重新注入:

cron action=add job={
name: memory-maintenance,
schedule: 0 4 1 ,
text: 月度记忆维护:1) 清除 ~/.clawdbot/memory/lancedb/ 2) 解析 MEMORY.md 3) 将关键事实存储到新的 LanceDB 4) 报告完成
}

存储指南

使用memory_store时:

  • - 保持文本简洁(少于100词)
  • 使用适当的类别
  • 对有价值的信息设置重要性0.7-1.0
  • 每条记忆条目只包含一个概念

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-hygiene-1776380242 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memory-hygiene-1776380242 技能

通过命令行安装

skillhub install memory-hygiene-1776380242

下载

⬇ 下载 memory-hygiene v1.0.0(免费)

文件大小: 1.68 KB | 发布时间: 2026-4-17 15:18

v1.0.0 最新 2026-4-17 15:18
Version 1.0.0 – Initial Release

- Introduces memory-hygiene for auditing, cleaning, and optimizing Clawdbot's vector memory (LanceDB).
- Provides quick commands for memory audit, wipe, and reseed.
- Details configuration for disabling auto-capture to prevent junk memories.
- Lists guidelines on what types of information to store or avoid storing in memory.
- Includes instructions for setting up monthly automated maintenance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部