Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

proactive-memory-agent主动记忆剂

Agent Skill

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

总安装

4,318

周安装

173

GitHub Stars

公开资料未说明

下载量

1,398
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install proactive-memory-agent

简介

用于查找、检索和筛选相关信息,支持主动记忆管理。proactive-memory-agent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在 OpenClaw 中根据关键词快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发联网操作。
  • 安装方式:clawhub,适用于 OpenClaw 宿主环境。

SKILL.md

name
proactive-memory-agent
version
1.0.1
description
Ultimate memory optimization for AI agents. Combines WAL protocol, Working Buffer, three-tier memory (HOT/WARM/COLD), context budgeting (10/40/20/20), and .learnings/ system. Maximum context efficiency with zero information loss.
description_zh
AI智能体终极记忆优化系统。整合WAL预写协议、工作缓冲区、三级记忆架构(HOT/WARM/COLD)、上下文预算分区(10/40/20/20)和学习记录系统。实现60-70%上下文占用降低,零信息丢失保障。
author
integrated-from-proactive-agent-context-budgeting-memory-tiering

Proactive Memory Agent 🧠⚡

The ultimate memory optimization system for OpenClaw agents.

OpenClaw 智能体终极记忆优化系统。

Combines the best of three worlds:

  • 🦞 Proactive Agent — WAL protocol, Working Buffer, learning system
  • 📊 Context Budgeting — Strict 10/40/20/20 partitioning
  • 🗂️ Memory Tiering — Automatic HOT/WARM/COLD archiving

Result: 60-70% context reduction + complete learning retention + zero maintenance

效果:降低60-70%上下文占用 + 完整保留学习记录 + 零维护成本


快速开始 / Quick Start

中文简介

Proactive Memory Agent 是一个专为 OpenClaw 设计的记忆优化系统,解决长会话中的上下文爆炸问题。

核心特性:

  • 🔥 WAL 预写协议 — 关键决策先写后回,确保信息不丢失
  • ⚠️ 工作缓冲区 — 危险区(>60%)自动记录所有对话
  • 📊 上下文预算 — 严格 10/40/20/20 分区控制
  • 🗂️ 三级记忆架构 — HOT→WARM→COLD 自动归档
  • 📝 学习记录系统 — 自动记录错误、纠正和最佳实践

适用场景:

  • 长会话 (>50条消息)
  • 复杂任务 (多步骤、多文件)
  • 高频交互 (需要记住用户偏好)
  • 成本控制 (降低token消耗)

预期效果:

  • Context 占用降低 60-70%
  • Token 消耗降低 50-60%
  • 信息丢失风险 几乎为零

Memory Architecture / 记忆架构

workspace/
├── SESSION-STATE.md          # 🔥 HOT: Current task (WAL target)
├── .learnings/               # 🌡️ WARM: Learning records
│   ├── ERRORS.md            — 错误记录
│   ├── LEARNINGS.md         — 学习/纠正记录
│   └── FEATURE_REQUESTS.md  — 功能请求记录
├── MEMORY.md                 # ❄️ COLD: Long-term archive
├── memory/
│   ├── hot/HOT_MEMORY.md     # 快速恢复检查点
│   ├── warm/                 # 稳定偏好/配置
│   ├── cold/                 # 长期归档
│   └── working-buffer.md     # ⚠️ 危险区日志
└── AGENTS.md/SOUL.md/TOOLS.md — 只读参考

The Four Protocols / 四大协议

1️⃣ WAL Protocol (Write-Ahead Logging) / 预写协议

Law: Context is a BUFFER, not storage. Write first, respond second. 法则: 上下文是缓冲,不是存储。先写再回。

SCAN every message for: 扫描每条消息中的:

  • ✏️ Corrections — "It's X, not Y" / "Actually..." / 纠正
  • 📍 Proper nouns — Names, places, products / 专有名词
  • 🎨 Preferences — Colors, styles, approaches / 偏好
  • 📋 Decisions — "Let's do X" / "Go with Y" / 决策
  • 🔢 Specific values — Numbers, dates, IDs, URLs / 具体数值

The Protocol:

  1. STOP — Do not start composing your response / 停止,不要开始回复
  2. WRITE — Update SESSION-STATE.md with the detail / 写入 SESSION-STATE.md
  3. THEN — Respond to your human / 然后回复用户

2️⃣ Working Buffer Protocol / 工作缓冲区协议

Purpose: Capture EVERY exchange in the danger zone (>60% context). 目的: 在危险区(>60%上下文)记录每一条消息。

中文说明: 当上下文使用率超过 60% 时,系统自动启用工作缓冲区,记录每一条对话。即使发生压缩,也能从缓冲区恢复。

How:

  1. At 60% context: Clear old buffer, start fresh
  2. Every message after 60%: Append to memory/working-buffer.md
  3. After compaction: Read buffer FIRST, extract important context
  4. Leave buffer as-is until next 60% threshold

3️⃣ Context Budgeting (10/40/20/20) / 上下文预算分区

Strict partitioning / 严格分区:

Zone%ContentFile中文说明
Objective10%Core task, active constraintsSESSION-STATE.md核心任务
Short-term40%Recent 5-10 turns raw dialogueWorking Buffer短期对话
Decision Log20%Summarized outcomes.learnings/*.md决策日志
Background20%High-relevance snippetsMEMORY.md背景知识

Rule: When any zone exceeds quota, oldest content moves to lower tier. 规则: 任何分区超出配额时,最旧内容移至下一层级。


4️⃣ Memory Tiering (HOT → WARM → COLD) / 记忆分层归档

Automatic lifecycle / 自动生命周期:

🔥 HOT (Current session) 当前会话
   ↓ (Task complete) 任务完成
🌡️ WARM (Recurring use) 重复使用
   ↓ (30 days old / promoted) 30天旧/已提升
❄️ COLD (Archive) 归档
TierLocationUpdate FrequencyRetention中文
HOTSESSION-STATE.mdEvery messageCurrent task only当前任务
WARM.learnings/When learning occursUntil promoted学习记录
COLDMEMORY.mdWeekly archivalPermanent长期存档

使用脚本 / Scripts

快速设置 / Quick Setup

~/.openclaw/workspace/skills/proactive-memory-agent/scripts/init.sh

日常使用 / Daily Operations

# 检测当前状态 / Check current status
~/.openclaw/workspace/skills/proactive-memory-agent/scripts/detect.sh

# 搜索记忆 / Search memories
~/.openclaw/workspace/skills/proactive-memory-agent/scripts/search.sh "关键词"

# 执行记忆分层归档 / Run memory tiering
~/.openclaw/workspace/skills/proactive-memory-agent/scripts/tiering.sh

# 创建预压缩检查点 / Create pre-compaction checkpoint
~/.openclaw/workspace/skills/proactive-memory-agent/scripts/checkpoint.sh

学习记录系统 / Learning System (.learnings/)

何时记录 / When to Record

场景 / Situation记录位置 / Record To类别 / Category
命令失败 / Command failsERRORS.mderror
用户纠正 / User correctsLEARNINGS.mdcorrection
缺失功能 / Missing featureFEATURE_REQUESTS.mdfeature_request
知识过时 / Knowledge outdatedLEARNINGS.mdknowledge_gap
更好方法 / Better approachLEARNINGS.mdbest_practice

记录格式 / Format

## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending | in_progress | resolved | promoted

### Summary / 摘要
一句话描述学到了什么

### Details / 详情
What happened, what was wrong, correct approach
发生了什么,哪里错了,正确做法

### Suggested Action / 建议操作
Specific fix or improvement
具体的修复或改进建议

---

提升路径 / Promotion Path

Learning in .learnings/ 在学习记录中
    ↓
IF recurring (3+ times) OR broadly applicable 如果重复(3+次)或广泛适用
    ↓
Promote to / 提升到:
  ├─ Behavioral patterns → SOUL.md 行为模式
  ├─ Workflow improvements → AGENTS.md 工作流改进
  └─ Tool gotchas → TOOLS.md 工具技巧

心跳集成 / Heartbeat Integration

Add to HEARTBEAT.md: 添加到心跳文件:

## Memory Management / 记忆管理 (每30分钟)
- [ ] Run detect.sh — 检查context使用率
- [ ] If >80%: Create checkpoint with checkpoint.sh / 创建检查点
- [ ] If >70%: Run tiering.sh to archive old content / 归档旧内容
- [ ] Review .learnings/ for pending items / 检查待处理项

核心原则 / Key Principles

  1. Write before respond — WAL is non-negotiable / 先写再回,WAL不可妥协
  2. Buffer the danger zone — >60% = automatic logging / 缓冲危险区,>60%自动记录
  3. Strict budgeting — 10/40/20/20, no exceptions / 严格预算,10/40/20/20无例外
  4. Auto-tiering — HOT→WARM→COLD without manual effort / 自动分层,无需手动
  5. Promote aggressively — Recurring patterns become permanent / 积极提升,重复模式永久化
  6. Never lose context — Working Buffer + Compaction Recovery / 永不丢失,缓冲+恢复

预期效果 / Expected Results

Metric / 指标Before / 之前After / 之后Improvement / 改进
Context usage / 上下文占用100%30-40%60-70% reduction
Token consumption / Token消耗Baseline / 基准-50-60%Major savings
Maintenance / 维护成本High / 高Minimal / 极低Auto-tiering
Information loss / 信息丢失Risk / 有风险Zero / 零Buffer protection

Changelog / 更新日志

v1.0.1 (2026-03-24)

  • Added Chinese documentation / 添加中文文档
  • Improved README with bilingual support / 改进双语支持
  • Fixed minor formatting issues / 修复格式问题

v1.0.0 (2026-03-24)

  • Initial release / 初始版本
  • Integrated: proactive-agent + context-budgeting + memory-tiering / 整合三大技能
  • 5 management scripts included / 包含5个管理脚本
  • Full documentation in SKILL.md / 完整文档

License / 许可证

MIT License — Free to use, modify, distribute. MIT 许可证 — 自由使用、修改、分发。


*Part of the Hal Stack 🦞 + Self-Improvement Integration* *Integrated by @silaszhu*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.24%
按下载量换算1,178

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills