← 返回
开发者工具 中文

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".
面向AI代理人的文件式记忆系统,解决会话间遗忘问题。实现"Dory-Proof"模式,在上下文重置时保持连续性。适用于设置代理记忆、构建工作空间结构、任务跟踪及防止上下文丢失错误。触发词:"memory system"、"remember between sessions"、"Dory pattern"、"agent continuity"、"workspace setup"。
justinhartbiz
开发者工具 clawhub v1.0.0 1 版本 99786.6 Key: 无需
★ 4
Stars
📥 2,726
下载
💾 72
安装
1
版本
#latest

概述

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 (<10KB)
├── 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):

Axis0123
------------------
LongevityGone tomorrowWeeksMonthsYears+
ReuseOne-offOccasionalFrequentEvery session
ImpactTrivialNice to knowChanges outputsChanges decisions
UniquenessObviousSlightly helpfulHard to rederiveImpossible 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 15:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

GEDCOM Explorer

justinhartbiz
从GEDCOM (.ged)文件生成交互式家谱仪表板。创建单文件HTML应用,包含5个标签页(仪表板、家谱、人员、时间线、每日提醒)、搜索、人员弹窗、图表和"今日事件"。用于可视化家谱数据、探索家族历史、构建家谱查看器或处理GEDCOM文件
★ 0 📥 2,281
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,906
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,749