DEPRECATED - Bobo Context Cleanup

v0.2.1

分析并归档 OpenClaw workspace 中低价值 memory 记录,缓解上下文膨胀与启动变慢。适用于上下文冗余、维护整理场景。默认先分析与计划,执行归档前要求确认。

0· 289· 2 versions· 0 current· 0 all-time· Updated 13m ago· MIT-0

Install

openclaw skills install bobo-context-cleanup

Context Cleanup

用于整理 workspace 的 memory 日志,降低冗余上下文负担。

关键资源

  • 脚本:cleanup.sh
  • 策略:references/policy.md

标准流程(必须)

  1. 分析现状
./skills/context-cleanup/cleanup.sh analyze
  1. 生成计划(不执行)
./skills/context-cleanup/cleanup.sh plan
  1. 用户确认后执行归档
./skills/context-cleanup/cleanup.sh archive

可选参数

# 指定截止日期(早于该日期的记录可归档)
./skills/context-cleanup/cleanup.sh archive 2026-03-01

# 仅预览,不执行
./skills/context-cleanup/cleanup.sh archive --dry-run

# 非交互执行(需谨慎)
./skills/context-cleanup/cleanup.sh archive --yes

# 机器可读输出
./skills/context-cleanup/cleanup.sh analyze --json
./skills/context-cleanup/cleanup.sh plan --json

执行规则

  • 默认归档,不做永久删除
  • planarchive
  • 归档前必须获得用户确认(除非用户明确同意 --yes
  • 不处理 MEMORY.mdspecs/AGENTS.md

输出模板

🧹 上下文清理计划

- Memory 文件:X
- 低价值候选:A
- 归档候选:B

是否按计划执行归档?

发布前自检

./skills/context-cleanup/cleanup.sh analyze
./skills/context-cleanup/cleanup.sh plan
./skills/context-cleanup/cleanup.sh archive --dry-run

Version tags

latestvk97d5tjx4zz9tfncmkc0yhc3r182cdpn