360 Secure SkillHub
360 安全技能中心

memory-router

通过 Node 脚本检查工作区记忆与索引状态,预览或执行记忆分层、压缩生成清单、审计重复与冲突,并维护实体索引与会话状态;替换 MEMORY.md 前需用户确认并先写备份与归档,支持备份预览与恢复。

分类:知识
jlacroix82
jlacroix82
热度 86.82
最近更新 2026-12-02 17:08:28

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jlacroix82/memory-router
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
memory-router
description
Inspect, index, and tier workspace memory, with explicit confirmation and verified write ordering for memory replacement.
version
2.4.4
metadata
{"openclaw":{"requires":{"bins":["node"]},"envVars":[{"name":"MM_WORKSPACE","required":false,"description":"Operator-selected memory workspace."}]}}

Memory Router

Run node {baseDir}/memory-router.js. Memory files can contain private user context; don't share their contents without approval. Use the active workspace selected by the operator or identified by MEMORY.md. All configured paths must be workspace-relative and may not traverse links.

Options Effect
--status Inspect memory and index status.
--tier --dry-run Preview tiering without writing.
--tier --confirm With user approval, write a pre-tier backup and archive before replacing MEMORY.md. May regenerate the manifest.
--restore / --restore --force Preview the latest backup, or after explicit confirmation restore it and first save the current memory file.
--compact [--query <text>] [--budget <tokens>] Write a workspace memory manifest.
--audit Write a local duplicate and conflict report.
--entity add|list|search, --wal init|get|update Maintain the entity index and session state. Changes persist across sessions.

Backups are intended for local recovery. Manage retention explicitly; removing an archive or backup can make recovery impossible. Version 2.4.4 fixes backup construction, aborts on failed prerequisite writes, and validates paths before creating directories.