返回顶部
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
安全检测
已通过
17,919
下载量
18
收藏
概述
安装方式
版本历史

memory-hygiene

# Memory Hygiene Keep vector memory lean. Prevent token waste from junk memories. ## Quick Commands **Audit:** Check what's in memory ``` memory_recall query="*" limit=50 ``` **Wipe:** Clear all vector memory ```bash rm -rf ~/.clawdbot/memory/lancedb/ ``` Then restart gateway: `clawdbot gateway restart` **Reseed:** After wipe, store key facts from MEMORY.md ``` memory_store text="<fact>" category="preference|fact|decision" importance=0.9 ``` ## Config: Disable Auto-Capture The main source of junk is `autoCapture: true`. Disable it: ```json { "plugins": { "entries": { "memory-lancedb": { "config": { "autoCapture": false, "autoRecall": true } } } } } ``` Use `gateway action=config.patch` to apply. ## What to Store (Intentionally) ✅ Store: - User preferences (tools, workflows, communication style) - Key decisions (project choices, architecture) - Important facts (accounts, credentials locations, contacts) - Lessons learned ❌ Never store: - Heartbeat status ("HEARTBEAT_OK", "No new messages") - Transient info (current time, temp states) - Raw message logs (already in files) - OAuth URLs or tokens ## Monthly Maintenance Cron Set up a monthly wipe + reseed: ``` cron action=add job={ "name": "memory-maintenance", "schedule": "0 4 1 * *", "text": "Monthly memory maintenance: 1) Wipe ~/.clawdbot/memory/lancedb/ 2) Parse MEMORY.md 3) Store key facts to fresh LanceDB 4) Report completion" } ``` ## Storage Guidelines When using memory_store: - Keep text concise (<100 words) - Use appropriate category - Set importance 0.7-1.0 for valuable info - One concept per memory entry

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install memory-hygiene-1776114629

下载 Zip 包

⬇ 下载 memory-hygiene v1.0.0

文件大小: 1.68 KB | 发布时间: 2026-4-14 12:47

v1.0.0 最新 2026-4-14 12:47
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
返回顶部