← 返回 Skills 市场
justinhartbiz

Dory-Proof Memory System

作者 justinhartbiz · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2300
总下载
4
收藏
10
当前安装
1
版本数
在 OpenClaw 中安装
/install dory-memory
功能描述
File-based memory system for AI agents that forget between sessions. Implements the "Dory-Proof" pattern for continuity across context resets. Use when setting up agent memory, building workspace structure, implementing task tracking, or preventing context-loss errors. Triggers on "memory system", "remember between sessions", "Dory pattern", "agent continuity", or "workspace setup".
使用说明 (SKILL.md)

Dory-Proof Memory System

AI agents forget everything between sessions. This skill implements a file-based memory system that survives context resets.

Core Principle

Text > Brain. Write everything down. Files are memory. The agent only "remembers" what's on disk.

The Dory-Proof Pattern (Critical)

When the user gives a task:

  1. IMMEDIATELY write their EXACT WORDS to state/ACTIVE.md
  2. Then interpret what it means
  3. Then do the work
  4. Mark complete when done

Why: Paraphrasing introduces drift. Exact words preserve intent across context flushes.

Workspace Structure

workspace/
├── AGENTS.md        # Operating rules (system file, don't rename)
├── SOUL.md          # Identity + personality
├── USER.md          # About the human
├── MEMORY.md        # Curated long-term memory (\x3C10KB)
├── LESSONS.md       # "Never again" safety rules
├── TOOLS.md         # Tool-specific notes
│
├── state/           # Active state (check every session)
│   ├── ACTIVE.md    # Current task (exact user words)
│   ├── HOLD.md      # Blocked items (check before acting!)
│   ├── STAGING.md   # Drafts awaiting approval
│   └── DECISIONS.md # Recent choices with timestamps
│
├── memory/          # Historical
│   ├── YYYY-MM-DD.md
│   ├── recent-work.md
│   └── archive/
│
└── ops/             # Operational
    └── WORKSPACE-INDEX.md

Boot Sequence (Every Session)

  1. Read state/HOLD.md — what's BLOCKED
  2. Read state/ACTIVE.md — current task
  3. Read state/DECISIONS.md — recent choices
  4. Read memory/recent-work.md — last 48 hours
  5. Read MEMORY.md — long-term (main session only)

Output status line after boot:

📋 Boot: ACTIVE=[task] | HOLD=[n] items | STAGING=[n] drafts

State File Formats

state/ACTIVE.md

## Current Instruction
**User said:** "[exact quote]"
**Interpretation:** [what you think it means]
**Status:**
- [ ] Step 1
- [ ] Step 2

state/HOLD.md

[YYYY-MM-DD HH:MM | session] Item — reason blocked

ALL agents must check before acting on anything that looks ready.

state/DECISIONS.md

[YYYY-MM-DD HH:MM | session] Decision made

Conflict Resolution

When files conflict, priority (highest first):

  1. state/HOLD.md — blocks override all
  2. state/ACTIVE.md — current instruction
  3. state/DECISIONS.md — recent choices
  4. AGENTS.md — general rules

Memory Scoring (Before Saving to MEMORY.md)

Score on 4 axes (0–3 each):

Axis 0 1 2 3
Longevity Gone tomorrow Weeks Months Years+
Reuse One-off Occasional Frequent Every session
Impact Trivial Nice to know Changes outputs Changes decisions
Uniqueness Obvious Slightly helpful Hard to rederive Impossible without

Save if: Total ≥ 8, OR any axis = 3 AND total ≥ 6.

Quick Setup

Copy template files from assets/templates/ to your workspace:

cp -r skills/dory-memory/assets/templates/* ~/.openclaw/workspace/

Then customize SOUL.md and USER.md for your agent.

References

  • references/IMPLEMENTATION-GUIDE.md — Full setup walkthrough
  • references/ANTI-PATTERNS.md — Common mistakes to avoid
安全使用建议
This skill appears to do what it says: implement a persistent, file-based memory for agents. Before installing, consider these points: - Privacy: the Dory pattern explicitly tells the agent to record the user's exact words verbatim. Do NOT ask the agent to 'remember' passwords, API keys, payment details, or other secrets — those will be stored on disk. - Storage location: the templates and runtime files live under ~/.openclaw/workspace; confirm you are comfortable with persistent files there and set strict filesystem permissions (e.g., restrict to your user) if needed. - Retention and pruning: follow the guidance to keep MEMORY.md small and archive/prune logs regularly to limit long-term exposure of sensitive content. - Testing: try this in an isolated or sandbox workspace first to verify the file layout and behavior. The cp command in the docs (cp -r skills/dory-memory/assets/templates/* ~/.openclaw/workspace/) assumes the asset path exists; you may need to copy templates manually if the runtime packaging differs. - Operational safeguards: if you need the agent to remember anything sensitive, use a secure secret store rather than these plaintext files; add redaction or explicit 'do not persist' rules in AGENTS.md or LESSONS.md. If you accept the tradeoffs (persistent plaintext memory vs improved continuity), the skill is consistent and can be used. If you cannot allow verbatim persistence of user content, do not enable it or modify the instructions to redact sensitive fields first.
功能分析
Type: OpenClaw Skill Name: dory-memory Version: 1.0.0 The skill implements a file-based memory system for AI agents, which inherently requires file system access and direct instructions to the agent. While the `cp -r` command in `SKILL.md` and `mkdir -p` in `references/IMPLEMENTATION-GUIDE.md` are high-risk capabilities, they are used for local setup of the workspace and are clearly aligned with the stated purpose. The strong instructions to the agent in `SKILL.md` and `references/IMPLEMENTATION-GUIDE.md` (e.g., 'IMMEDIATELY write their EXACT WORDS') are a form of prompt injection, but their objective is to ensure fidelity of user input and implement the memory system, not to subvert the agent. Furthermore, `assets/templates/LESSONS.md` and `references/ANTI-PATTERNS.md` contain explicit safety rules (e.g., 'Ask before external actions', 'trash > rm', 'Never use isolated agentTurn for social media posting') that actively promote secure and responsible agent behavior. There is no evidence of intentional harmful behavior, data exfiltration, or malicious execution.
能力评估
Purpose & Capability
The skill's name/description (file-based memory, 'Dory-Proof' pattern) matches what the instructions do: create/read/write workspace state and memory files. There are no unrelated binaries, environment variables, or external services requested.
Instruction Scope
Instructions direct the agent to read and write files under ~/.openclaw/workspace (state/, memory/, ops/, etc.) and to immediately write the user's exact words to state/ACTIVE.md before interpreting. This is coherent with the stated purpose, but it means any user-provided secret or personal data sent as a task will be persisted verbatim. There are no network endpoints or exfiltration steps in the instructions, but the guidance does not include redaction or secrets-handling rules.
Install Mechanism
No install spec or code files are present; this is instruction-only with bundled templates. Lowest-risk install posture — nothing is downloaded or executed outside the agent's normal file I/O.
Credentials
The skill requests no environment variables, no credentials, and no config paths outside the designated workspace. The requested file access is proportionate to a file-based memory system.
Persistence & Privilege
The skill instructs agents to create and persist files in the user's ~/.openclaw/workspace, which grants local persistence (expected for a memory system). It does not set always:true and does not modify other skills' configs. Consider file-permission and retention policies because data remains on disk between sessions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dory-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dory-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: file-based memory for AI agents that forget
元数据
Slug dory-memory
版本 1.0.0
许可证
累计安装 10
当前安装数 10
历史版本数 1
常见问题

Dory-Proof Memory System 是什么?

File-based memory system for AI agents that forget between sessions. Implements the "Dory-Proof" pattern for continuity across context resets. Use when setting up agent memory, building workspace structure, implementing task tracking, or preventing context-loss errors. Triggers on "memory system", "remember between sessions", "Dory pattern", "agent continuity", or "workspace setup". 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2300 次。

如何安装 Dory-Proof Memory System?

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

Dory-Proof Memory System 是免费的吗?

是的,Dory-Proof Memory System 完全免费(开源免费),可自由下载、安装和使用。

Dory-Proof Memory System 支持哪些平台?

Dory-Proof Memory System 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dory-Proof Memory System?

由 justinhartbiz(@justinhartbiz)开发并维护,当前版本 v1.0.0。

💬 留言讨论