← 返回
未分类 中文

OpenClaw Memory

Reuse, inspect, search, or append shared OpenClaw memory on the current machine. Use when a request depends on remembered local servers, deploy hosts, intern...
在当前机器上重用、检查、搜索或追加共享的 OpenClaw 内存。当请求依赖于已记忆的本地服务器、部署主机、实习生……时使用。
kamiender
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 355
下载
💾 0
安装
1
版本
#latest

概述

OpenClaw Memory

Resolve the skill directory from this SKILL.md file, then use the bundled script at scripts/openclaw_memory.py.

Data sources

  • Long-term memory: ~/.openclaw/workspace/MEMORY.md
  • Daily memory: ~/.openclaw/workspace/memory/YYYY-MM-DD.md
  • Indexed chunk fallback: ~/.openclaw/memory/main.sqlite

If OPENCLAW_HOME is set, use that as the root instead of ~/.openclaw.

Workflow

  1. If the request names a known machine, service, workflow, or environment-specific noun, search memory before any live checks.
  2. Prefer markdown files as the source of truth when inspecting or updating memory.
  3. If markdown results are sparse, query SQLite chunk text as a fallback.
  4. Extract concrete facts such as hostnames, IPs, ports, file paths, runbook steps, and user preferences.
  5. When the user wants to persist something:
    • Write durable rules and preferences to MEMORY.md.
    • Write day-specific progress to memory/YYYY-MM-DD.md.
  6. After writing, report the exact file that was updated.

Constraints

  • Do not claim semantic or vector retrieval is active unless you actually verified the runtime supports it.
  • For Chinese queries, direct markdown scanning is often more reliable than SQLite tokenization.
  • If the OpenClaw paths are missing, say so plainly and stop instead of inventing state.

Commands

Replace with the directory that contains this SKILL.md.

python3 <skill-dir>/scripts/openclaw_memory.py doctor
python3 <skill-dir>/scripts/openclaw_memory.py recent --limit 5
python3 <skill-dir>/scripts/openclaw_memory.py search --query "deploy host" --limit 8
python3 <skill-dir>/scripts/openclaw_memory.py append --scope daily --text "Confirmed the deploy host is healthy." --dry-run
python3 <skill-dir>/scripts/openclaw_memory.py append --scope long --text "- Always search both the workspace project tree and the main project tree."

Output expectations

  • For search, return compact results with path, source, score, and a short snippet.
  • For append, print the destination path.
  • For doctor, print which OpenClaw paths exist.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 11:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,211 📥 266,210
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,056 📥 796,390
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,844