← 返回 Skills 市场
yxyujian98-png

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理

作者 yxyujian98-png · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
42
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install agent-openclaw-memory
功能描述
OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理。Obsidian vault 实时同步、零 LLM 成本压缩、向量检索、自愈健康监控、自动归档/分类/清理。Local knowledge base + auto memory & file management for OpenClaw ag...
使用说明 (SKILL.md)

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理

让 OpenClaw Agent 拥有本地知识库和自动记忆 & 文件管理。

Obsidian vault 实时同步 → Agent 可搜索。会话观察零 LLM 成本压缩 → 不丢失。自动归档/分类/清理 → vault 自己管自己。向量检索 + 嵌入服务 + 同步链路 → 自动健康监控 + 自愈修复。

Build a local knowledge base + automatic memory & file management for your OpenClaw Agent.

Auto-sync Obsidian vault → searchable by Agent. Zero-LLM compression → nothing lost. Auto archive/categorize/cleanup → vault manages itself. Vector search + embedding + sync chain → auto health monitoring + self-healing.

关键词 / Keywords

本地知识库、自动记忆管理、长期记忆、向量检索、知识库同步、Obsidian vault、Qdrant、embedding、agent memory、零 LLM 压缩、自愈监控、vault 同步、概念聚合、记忆蒸馏、健康检查、自动维护、DAG 调度、抗体自愈

local knowledge base, auto memory management, long-term memory, vector search, knowledge sync, Obsidian vault, Qdrant, embedding, agent memory, zero-LLM compression, self-healing, vault sync, concept consolidation, memory distillation, health monitoring, auto maintenance, DAG scheduler, antibody healing


中文

这是什么

一个 OpenClaw 的记忆增强技能。解决了三个问题:

  1. Vault 内容进不了记忆 — 你用 Obsidian 记了大量笔记,但 Agent 的 memory_search 搜不到
  2. 会话记忆丢失 — 工具调用、决策、发现等有价值信息,对话结束就没了
  3. 记忆系统维护成本高 — 向量库、嵌入服务、同步链路,哪个断了都不知道

安装

cd ~/.openclaw/workspace/skills
git clone https://github.com/yxyujian98-png/vault-memory-system.git
cd openclaw-memory-system
pip install -r requirements.txt
docker-compose up -d
python scripts/setup.py --vault-dir /path/to/vault

前置条件

组件 必需 说明
Python 3.10+ 脚本运行环境
Qdrant 向量数据库
嵌入服务 LM Studio / Ollama / OpenAI 兼容
Obsidian Vault Markdown 知识库
LLM API 可选 高重要性记忆才需要

运行时数据流

┌─────────────────────────────────────────────────────┐
│                Layer 1: OpenClaw 内置                 │
│                                                     │
│  session-memory hook → memory/YYYY-MM-DD-HHMM.md   │
│  memory-compact hook → compaction 前提取记忆          │
│  memory-extract hook → /new、/reset 时提取           │
│                       ↓                             │
│  memory_search ← SQLite (FTS5 + sqlite-vec + 混合)  │
└─────────────────────────────────────────────────────┘
         │ sync_vault_memory.py
         ↓
┌─────────────────────────────────────────────────────┐
│                Layer 2: 自定义脚本                     │
│                                                     │
│  Cron 每 45 分钟 → orchestrator --light --parallel  │
│    → vault_guardian / extract_memories / memory_health│
│    → 12 个任务按 DAG 拓扑并行执行                      │
│                                                     │
│  Qdrant (knowledge_base)                            │
│    → vault 分块 / 工具观察 / 融合概念                  │
└─────────────────────────────────────────────────────┘

核心设计

  • 零 LLM 成本:compress.py 纯规则驱动
  • 三级嵌入降级:LM Studio → ONNX → numpy 哈希
  • 版本追踪:version / is_latest / supersedes
  • PRISM 意图路由:事实型 / 过程型 / 反思型 / 时序型
  • 抗体自愈:错误模式 → 自动修复规则

English

What is this

An OpenClaw memory enhancement skill. Solves three problems:

  1. Vault content not in memory — You have extensive Obsidian notes, but Agent's memory_search can't find them
  2. Session memory lost — Tool calls, decisions, discoveries — all gone when session ends
  3. Memory system maintenance costly — Vector DB, embedding service, sync chain — which one broke?

Installation

cd ~/.openclaw/workspace/skills
git clone https://github.com/yxyujian98-png/vault-memory-system.git
cd openclaw-memory-system
pip install -r requirements.txt
docker-compose up -d
python scripts/setup.py --vault-dir /path/to/vault

Prerequisites

Component Required Description
Python 3.10+ Script runtime
Qdrant Vector database
Embedding server LM Studio / Ollama / OpenAI-compatible
Obsidian Vault Markdown knowledge base
LLM API Optional Only for high-importance memories

Runtime data flow

┌─────────────────────────────────────────────────────┐
│                Layer 1: OpenClaw Built-in            │
│                                                     │
│  session-memory hook → memory/YYYY-MM-DD-HHMM.md   │
│  memory-compact hook → extract before compaction    │
│  memory-extract hook → extract on /new, /reset      │
│                       ↓                             │
│  memory_search ← SQLite (FTS5 + sqlite-vec + hybrid)│
└─────────────────────────────────────────────────────┘
         │ sync_vault_memory.py
         ↓
┌─────────────────────────────────────────────────────┐
│                Layer 2: Custom Scripts               │
│                                                     │
│  Cron every 45m → orchestrator --light --parallel   │
│    → vault_guardian / extract_memories / memory_health│
│    → 15 tasks in DAG topological parallel           │
│                                                     │
│  Qdrant (knowledge_base)                            │
│    → vault chunks / tool observations / fused concepts│
└─────────────────────────────────────────────────────┘

Core design

  • Zero LLM cost: compress.py is purely rule-driven
  • 3-level embedding fallback: LM Studio → ONNX → numpy hash
  • Version tracking: version / is_latest / supersedes
  • PRISM intent routing: factual / procedural / reflective / recency
  • Antibody self-healing: error patterns → auto-fix rules

License

MIT

安全使用建议
Review this carefully before installing. Use it only with a vault that is safe to index and modify, disable cron/self-healing until you have inspected the scripts, avoid storing secrets in synced notes or tool outputs, configure only trusted local or remote LLM/embedding endpoints, and do not enable antibody auto-fix unless repair commands are manually reviewed and constrained.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The memory, Obsidian vault sync, Qdrant indexing, alerting, and maintenance features fit the stated purpose, but the implementation also includes high-impact automation: tool I/O capture, session extraction, vault file moves/archives, external LLM calls, webhook alerts, and arbitrary PowerShell auto-fixes.
Instruction Scope
The README and SKILL.md disclose persistent memory, vault sync, cron, and self-healing at a high level, but they do not clearly warn that prompts/tool outputs/session summaries and vault contents may be persisted, indexed, transmitted to configured LLM/embedding services, or modified automatically.
Install Mechanism
Installation uses normal pip, Docker Compose for Qdrant, and a setup wizard; setup only installs dependencies or starts Qdrant when flags are provided, but the documented quick start and generated cron guidance lead users toward long-running background automation.
Credentials
The skill reads and writes across the Obsidian vault, OpenClaw memory/session/config areas, Qdrant, local or remote embedding/LLM endpoints, and optional WeChat webhooks. Some of this is expected for a memory system, but the scope is broad and lacks strong minimization, redaction, or destination controls.
Persistence & Privilege
It creates durable queues, snapshots, health state, vector indexes, cron-style recurring tasks, a restarting Docker service, and maintenance jobs. The strongest concern is health_check_v2 executing antibody auto_fix strings through PowerShell without confirmation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-openclaw-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-openclaw-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added file auto-management features to the skill description and documentation (archive/categorize/cleanup). - Updated references from "自动记忆管理" (auto memory management) to "自动记忆 & 文件管理" (auto memory & file management) throughout. - Expanded introduction and feature statements to include automated file organization for the vault. - Improved wording in both Chinese and English sections for clarity about file self-management capabilities. - No changes to installation, data flow diagrams, or core design.
v1.0.1
- Added detailed bilingual (Chinese & English) documentation in SKILL.md, covering installation, prerequisites, architecture, and core features. - Clarified the skill’s capabilities: local knowledge base, auto memory management, Obsidian sync, zero-LLM compression, vector search, and self-healing monitoring. - Provided step-by-step setup instructions and requirements. - Outlined design concepts, data flow diagrams, and key term explanations for all users.
v1.0.0
OpenClaw Agent memory system, initial release: - Adds Obsidian vault sync and Qdrant-backed vector search for persistent, searchable memory. - Implements zero-LLM-cost memory compression and three-level embedding fallback. - Supports self-healing health monitoring and error auto-fix mechanisms. - Clearly documents setup, workflow, and design in both Chinese and English.
元数据
Slug agent-openclaw-memory
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理 是什么?

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理。Obsidian vault 实时同步、零 LLM 成本压缩、向量检索、自愈健康监控、自动归档/分类/清理。Local knowledge base + auto memory & file management for OpenClaw ag... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。

如何安装 OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-openclaw-memory」即可一键安装,无需额外配置。

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理 是免费的吗?

是的,OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理 支持哪些平台?

OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw Agent 本地知识库 + 自动记忆 & 文件管理?

由 yxyujian98-png(@yxyujian98-png)开发并维护,当前版本 v1.0.2。

💬 留言讨论