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".
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- dory-memory
- description
- 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".
02 资源文件 10
- 参考文档_meta.json294 B
- 资产文件assets/templates/LESSONS.md696 B
- 资产文件assets/templates/memory/recent-work.md357 B
- 资产文件assets/templates/ops/WORKSPACE-INDEX.md1.1 KB
- 资产文件assets/templates/state/ACTIVE.md291 B
- 资产文件assets/templates/state/DECISIONS.md263 B
- 资产文件assets/templates/state/HOLD.md273 B
- 资产文件assets/templates/state/STAGING.md387 B
- 参考文档references/ANTI-PATTERNS.md2.1 KB
- 参考文档references/IMPLEMENTATION-GUIDE.md3.2 KB
03 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:
- IMMEDIATELY write their EXACT WORDS to
state/ACTIVE.md - Then interpret what it means
- Then do the work
- 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)
- Read
state/HOLD.md— what's BLOCKED - Read
state/ACTIVE.md— current task - Read
state/DECISIONS.md— recent choices - Read
memory/recent-work.md— last 48 hours - 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):
- state/HOLD.md — blocks override all
- state/ACTIVE.md — current instruction
- state/DECISIONS.md — recent choices
- 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 walkthroughreferences/ANTI-PATTERNS.md— Common mistakes to avoid
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.