← 返回
未分类

MemCore 记忆核心

v2.1.0 (WAL+VFM enhanced). Five-tier adaptive memory system with WAL indexing, Working Buffer search, and VFM scoring. 为 OpenClaw 打造的五层自适应记忆检索系统,四层自进化记忆模型(L1...
v2.1.0 (WAL+VFM enhanced). Five-tier adaptive memory system with WAL indexing, Working Buffer search, and VFM scoring. 为 OpenClaw 打造的五层自适应记忆检索系统,四层自进化记忆模型(L1...
adchina2025 adchina2025 来源
未分类 clawhub v2.1.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 347
下载
💾 0
安装
1
版本
#automation#chinese#latest#memory#proactive-agent#retrieval#vfm#wal

概述

MemCore 记忆核心

为 OpenClaw 打造的五层自适应记忆系统,自进化。替代全量 MEMORY.md 注入 — 节省 92% token。

Five-tier adaptive memory system with self-evolution for OpenClaw. Drop-in replacement for full MEMORY.md injection — 92% token savings.

v2.1.0 (proactive-agent enhanced) ⭐

  • WAL Protocol: cmd_index now parses SESSION-STATE.md as high-priority traces
  • Working Buffer: SESSION-STATE.md + working-buffer.md searchable in World Model tier
  • VFM Scoring: 4-dimension trace evaluation (frequency, failure reduction, user burden, self cost)
  • New command: python3 scripts/memcore/cli.py vfm — VFM score analysis

Quick Commands

# Startup: generate brief (≤500 tokens, replaces full MEMORY.md)
python3 scripts/memcore/cli.py brief

# Search: 5-tier adaptive fallback
python3 scripts/memcore/cli.py search "<query>" -n 5

# Daily maintenance (index new logs → induce patterns → decay → refresh brief)
python3 scripts/memcore/cli.py run-all

# VFM score analysis
python3 scripts/memcore/cli.py vfm

# Stats overview
python3 scripts/memcore/cli.py stats

# Feedback: log whether retrieved memory was useful
python3 scripts/memcore/cli.py feedback-log <trace_id> used|skipped|good|bad

Startup Integration

On each session start, replace full MEMORY.md loading with:

1. Read SOUL.md → USER.md → MEMORY_BRIEF.md (auto-generated) → .anatomy.md → yesterday+today memory
2. MEMORY.md loaded on-demand only via: python3 scripts/memcore/cli.py search "<keywords>"

The brief generator picks top 5 active patterns, top 3 recent lessons, and current taskboard items — all under 500 tokens.

散会 Integration

Add step 3 to 散会 flow:

python3 scripts/memcore/cli.py index && \
python3 scripts/memcore/cli.py induce && \
python3 scripts/memcore/cli.py feedback

This auto-indexes today's log, induces new patterns, and decays stale traces.

Health Check Integration

When running daily health checks (09:00), append MemCore diagnostic:

# Get system stats
python3 scripts/memcore/cli.py stats

# If anomalies found, search historical similar faults
python3 scripts/memcore/cli.py search "<anomaly keywords>" -n 3

Safety rule: Report only. Never auto-fix. Let human decide.

Search & Feedback Flow

After every memory_search call, log feedback:

# If the retrieved memory was helpful:
python3 scripts/memcore/cli.py feedback-log <trace_id> used

# If irrelevant:
python3 scripts/memcore/cli.py feedback-log <trace_id> skipped

This trains the retrieval system — high-value traces rise, stale ones decay.

Cron Setup

Two 12-hour maintenance jobs (systemEvent, main session, wakeMode: next-heartbeat):

Time (CST)Cron expressionAction
-----------------------------------
04:000 4 *index + induce + feedback + brief
16:000 16 *same

These are SQLite-only, no model calls, near-zero resource cost.

Rollback

cp memcore_backup_<date>/AGENTS.md ~/.openclaw/workspace/
cp memcore_backup_<date>/MEMORY.md ~/.openclaw/workspace/

Original MEMORY.md is never modified. All MemCore data lives in separate SQLite files under ~/.openclaw/.

Detailed Reference

版本历史

共 1 个版本

  • v2.1.0 当前
    2026-05-20 05:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,164 📥 936,077
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 865 📥 344,789
content-creation

InkOS - Autonomous Novel Writing Agent

adchina2025
自主小说写作CLI代理,配备网页工作台InkOS Studio,用于创意小说写作、小说生成、风格模仿、章节续写...
★ 1 📥 569