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

mem-orchestrator内存协调器

Agent Skill

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

总安装

2,840

周安装

122

GitHub Stars

公开资料未说明

下载量

996
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install mem-orchestrator

简介

mem-orchestrator 用于在 OpenClaw 中实现对话的分层内存编排,支持按域对用户输入进行分类管理。

  • 适用于需要构建结构化记忆系统的场景,如多领域任务处理或复杂上下文分类。
  • 通过关键词、任务场景或来源线索快速定位候选结果,结合语义与规则匹配进行检索。
  • 安装命令为 openclaw skills install mem-orchestrator,建议确认权限范围和维护状态。
  • 使用前需核实是否会触发联网、命令执行或文件读写等敏感操作。

SKILL.md

name
memory-orchestrator
description
Layered memory orchestration for OpenClaw conversations. Use when implementing or maintaining a memory system that must classify user input by domain, capture preferences/decisions during chat, organize long-term knowledge objects, do summary-first recall, and periodically reflect/compress memory for better future retrieval. Triggers on requests about memory architecture, recall strategy, progressive disclosure, long-term context, cross-topic association, user preference capture, or building an OpenClaw skill/plugin for persistent memory.

Memory Orchestrator

Implement a layered memory system that remembers the right things, loads the least necessary context, and improves over time through reflection.

Core Model

Represent memory in five layers:

  1. Session state — current task, active domains, active objects, constraints
  2. Daily raw log — important interactions and memory-worthy events from the day
  3. Topic index — summary cards for broad domains. Seed topics like technology/career/investing/research/life/meta are only defaults, not a fixed ontology.
  4. Object store — durable objects such as papers, concepts, frameworks, decisions, preferences, open questions, notes, people, projects, or any future type that proves useful
  5. Reflection output — compressed updates that merge duplicates, raise abstraction, and add cross-topic links

Do not use one giant memory file as the primary operating model.

Default Directory Layout

Use this layout inside the workspace unless the user specifies another storage backend. Treat it as a readable default, not a rigid schema:

memory/
  session-state.yaml
  working-buffer.md
  daily/
    YYYY-MM-DD.md
  topics/
    technology.yaml
    career.yaml
    investing.yaml
    research.yaml
    life.yaml
    meta.yaml
  objects/
    papers/
    concepts/
    frameworks/
    decisions/
    preferences/
    open-questions/
  reflections/
    YYYY-MM-DD.md
  indexes/
    manifest.json

Cost Control Model

Do not run the full memory pipeline on every message.

Use three levels:

  1. Gate only — cheap check for whether the message is memory-relevant at all
  2. Conditional recall/write — only when the gate says the message is likely to benefit from memory
  3. Low-frequency reflection — background/manual maintenance, never every turn

Use scripts/should_trigger_memory.py or scripts/memory_cli.py turn ... for the default low-cost path.

Workflow

1. Gate the incoming message

Skip memory work for lightweight messages like acknowledgements, simple confirmations, or operational noise.

2. Classify the incoming message

Estimate:

  • intent: ask | compare | decide | reflect | write-report | update-preference
  • domains: one or more of technology/career/investing/research/life/meta
  • whether memory recall is needed
  • whether the message contains a memory-worthy event

Use scripts/classify_memory_input.py for a deterministic rule-based baseline.

2. Capture write-ahead events before responding

Before composing the answer, extract memory-worthy events such as:

  • explicit preferences
  • corrections
  • decisions
  • stable background facts
  • new high-value objects
  • relations between known objects

Write them immediately to:

  • memory/session-state.yaml
  • memory/daily/YYYY-MM-DD.md

Use scripts/extract_memory_events.py and scripts/apply_memory_events.py.

3. Recall with progressive disclosure

Do not load full memory by default.

Recall in this order:

  1. Topic cards only
  2. Matching object summaries only
  3. Full object details only if needed
  4. Adjacent associated objects only if they improve the answer

Use scripts/recall_memory.py.

Default retrieval budget:

  • topics: top 1-2
  • object summaries: top 3-5
  • full detail expansions: top 1-2
  • associative expansions: top 0-2

4. Answer using the smallest sufficient context

Prefer answers grounded in:

  • active topic summary
  • the best matching object summaries
  • any critical stable preferences

Do not stuff the answer prompt with raw daily logs unless the user is explicitly asking for chronology.

5. Reflect and compress

Periodically review recent daily logs and update the durable layers.

Reflection should:

  • merge duplicate objects
  • promote repeated facts into preferences or decisions
  • update topic summaries
  • infer relations like similar_to, contrasts_with, applies_to, extends
  • lower the weight of stale or one-off material

Use scripts/reflect_memory.py.

Extensibility Rules

  • Do not assume the default topics are exhaustive.
  • Add a new topic card when a recurring theme cannot be cleanly routed through existing topics.
  • Do not assume the default object types are exhaustive.
  • Add a new object subtype directory when repeated objects share a stable shape and retrieval value.
  • Prefer human-readable expansion over hidden abstraction.
  • When extending the ontology, also update the memory index and README files so the user can inspect the new structure.

Data Shapes

Topic card

id: research
name: 科研 / 论文 / 方法论
summary: 用户会围绕论文研读、研究方法、观点对比进行持续讨论。
subtopics:
  - llm
  - evaluation
recent_objects:
  - paper/constitutional-ai
linked_topics:
  - technology
  - career
stable_preferences:
  - 先讲核心问题,再展开细节
priority_rules:
  - 当问题涉及论文、方法、实验时优先激活

Object

id: paper/constitutional-ai
type: paper
domain: research
title: Constitutional AI
summary: 一篇关于用 AI feedback 替代部分人工 feedback 的论文。
why_it_matters: 对齐训练与偏好学习的重要参照。
tags:
  - alignment
  - preference-learning
status: discussed
confidence: high
last_discussed: 2026-03-30
relations:
  similar_to:
    - paper/rlhf-overview
user_takeaways:
  - 用户更关心训练范式差异而不是宣传式总结

Session state

session_id: auto
active_domains:
  - research
active_objects:
  - paper/constitutional-ai
current_goal: 比较方法差异
recent_constraints:
  - 当前回答要技术向
last_updated: 2026-03-30T01:00:00+08:00

Retrieval Rules

Use a mixed ranking score:

final_score =
  0.35 * semantic_similarity
+ 0.20 * domain_match
+ 0.15 * recency_score
+ 0.15 * relation_score
+ 0.10 * user_preference_match
+ 0.05 * stability_score

If no semantic model is available, approximate with:

  • keyword overlap
  • explicit domain routing
  • recency decay
  • relation count
  • preference/tag overlap

Engineering Rules

  • Write first, answer second, when the user reveals durable information.
  • Keep topic cards short; they are routing objects, not full notebooks.
  • Keep object summaries decisive enough for summary-first retrieval.
  • Do not promote every casual message into durable memory.
  • Prefer merging and restructuring over endless append-only growth.
  • Treat daily logs as raw material, not as the primary retrieval layer.
  • Use associative recall only when it materially improves the answer.

When to create or update objects

Create or update an object when one of these is true:

  • the user returns to the same concept across multiple conversations
  • the item will likely matter again for future reasoning
  • the user asks for comparison, planning, or decision support around it
  • the object captures a persistent preference, framework, paper, or decision

Do not create durable objects for:

  • one-off factual lookups with no reuse value
  • shallow chit-chat
  • ephemeral administrative noise

Scripts

scripts/should_trigger_memory.py

Run a very cheap gate to decide whether the current message should trigger memory work at all.

scripts/classify_memory_input.py

Classify raw user text into intent/domains and whether recall/write is likely needed.

scripts/extract_memory_events.py

Extract structured memory events from a single message or turn transcript.

scripts/apply_memory_events.py

Apply events to session state and daily log, and optionally update topics/objects.

scripts/recall_memory.py

Perform summary-first retrieval across topics and objects, returning a compact JSON payload.

scripts/reflect_memory.py

Read recent daily logs and produce compressed updates for topics, objects, and relations.

scripts/memory_cli.py

Provide a unified entry point for bootstrap, gate, turn, capture, recall, reflect, and creating new topics/objects.

References

Read these references when implementing or extending the system:

  • references/file-layout.md for storage conventions and field semantics
  • references/retrieval-strategy.md for ranking, recall budgets, and expansion rules
  • references/reflection.md for compression and promotion rules
  • references/openclaw-integration.md for how to wire this into OpenClaw workflows
  • references/object-models.md for current topic/object/session schemas and extension rules

For broader maintainability, also read:

  • ARCHITECTURE.md
  • ROADMAP.md
  • EXAMPLES.md

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

70.56%
按下载量换算703

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills