← 返回 Skills 市场
jujitao

🧠 Memory Never Forget 🧠

作者 jujitao · GitHub ↗ · v4.1.3 · MIT-0
cross-platform ✓ 安全检测通过
3279
总下载
3
收藏
17
当前安装
12
版本数
在 OpenClaw 中安装
/install memory-never-forget
功能描述
Memory system v4.13: Dual-layer structure (todos for execution + knowledge for strategy) with Dream/Refinement memory mechanisms.
使用说明 (SKILL.md)

🧠 Memory Never Forget v4.13

A full-featured memory system for OpenClaw, integrating Active Memory retrieval, Memory Palace structured views, and a Dual-Layer Dream Verification mechanism — delivering "proactive memory + global view + verifiable consolidation."

Core Logic: Active Memory = Memory Butler, Memory Palace = Knowledge Palace, Dual-Layer Dream = Verification & Consolidation Expert

Three-Layer Separation: todos.md = Execution Layer | knowledge/ = Strategy Layer | memory/ = Classified Memory Layer

License: MIT-0 | Updated: 2026-04-18 | v4.13: Added dual-layer structure


Overview

This skill manages memory across two orthogonal dimensions:

  1. Temporal (Atkinson-Shiffrin 3-stage model) — what to keep vs. what to prune
  2. Content (4-type taxonomy) — where to store for fast retrieval

Three independent mechanisms work together:

Mechanism Trigger Write to disk? Purpose
Active Memory Every reply (before_prompt_build) ❌ Read-only Real-time recall, inject relevant memories into current conversation
Dream (memory-core) Daily 12:30 cron ✅ MEMORY.md (Deep phase) Decide which memories promote or decay
Refinement (13:00) Daily 13:00 cron (user-defined) ✅ Writeable Verify Dream results, fill gaps

⚠️ v4.12b source-verified correction (2026-04-17): Clarified actual division of three mechanisms


Core Components

1. Active Memory — Proactive Recall (Source-Verified)

Trigger mechanism:

  • Hooked to before_prompt_build, auto-triggers before every reply
  • Spawns a read-only sub-agent with only memory_search + memory_get permissions
  • Builds query from current user message, searches recall index (memory/.dreams/short-term-recall.json)
  • Searched summaries are prepended to prompt before model generates reply
  • Results cached 15 seconds (cacheTtlMs) to avoid repeated recall in same turn

Key constraints:

  • ❌ Read-only, produces no files
  • ❌ Cannot call other tools
  • Only affects current conversation context, not persisted

Configuration (openclaw.jsonplugins.entries.active-memory.config):

{
  "enabled": true,
  "queryMode": "recent",      // message | recent | full
  "promptStyle": "balanced",  // balanced | strict | contextual | recall-heavy | precision-heavy | preference-only
  "maxSummaryChars": 220,
  "recentUserTurns": 2,
  "recentAssistantTurns": 1,
  "timeoutMs": 15000
}

2. Memory Palace — Structured Views

Provides multi-dimensional views of your agent's long-term memory:

  • Timeline — chronological view of work progress
  • Projects — aggregated by project
  • Technology — organized by tech domain
  • Custom — user-defined dimensions

3. Dream (memory-core) — Temporal Layering (Source-Verified)

Trigger: 30 12 * * * (cron), sessionTarget="main", payload="systemEvent: __openclaw_memory_core_short_term_promotion_dream__"

Three phases (Light → REM → Deep):

Source quote (formatPhaseGuide):
"deep is the only stage that writes durable entries to MEMORY.md. DREAMS.md is for human-readable dreaming summaries and diary entries."

Phase Output Writes files? Description
Light Dream Diary prose entries → DREAMS.md Organize session-corpus, 4 parallel sessions
REM Theme reflections → DREAMS.md Extract recurring themes
Deep 6-dimensional weighted scoring signals ✅ → MEMORY.md Only phase that writes to MEMORY.md

Deep phase promotion parameters (adjust in cron job description):

  • minScore: 0.500 (tune based on your promotion rate)
  • minRecallCount: 3
  • minUniqueQueries: 3
  • recencyHalfLifeDays: 14
  • maxAgeDays: 30
  • limit: 10

⚠️ The following files are NEVER generated (source-verified):

  • memory/dreaming/deep/YYYY-MM-DD.md
  • memory/dreaming/light/YYYY-MM-DD.md
  • memory/dreaming/rem/YYYY-MM-DD.md

4. Refinement (User-Defined Cron) — Content Classification

Trigger: 0 13 * * * (user-defined cron), sessionTarget="isolated"

Nature: User-written AI agent prompt, not an OpenClaw native mechanism

Responsibilities:

  • Read Dream outputs (DREAMS.md, session-corpus)
  • Verify conflicts, hallucinations, outdated entries
  • Classify new memories into 4 categories (user/feedback/project/reference)
  • Write verification report to memory/dreaming/verify/YYYY-MM-DD.md

⚠️ Note: Verification reports' "supplementary promotion suggestions" are text only and won't automatically write to MEMORY.md. Manual promotion required.


Two Orthogonal Dimensions

Dimension Framework Mechanism Purpose
Temporal (how long) Atkinson-Shiffrin 3-stage model Dream (memory-core) Deep phase Decay — what to keep vs. prune
Content (where) 4-type taxonomy Refinement 13:00 + agent proactive writes Storage — where to put for retrieval

Dimension 1: Temporal Layering

Stage Human Equivalent Implementation TTL Action
Sensory ~0.25 sec perception Current input context Instant Filter immediately
Short-term Recent Model context window 10 turns 10 turns Pass through working filters
Working Recent ~7 days memory/YYYY-MM-DD.md + Active Memory 7 days Extract signal → promote or decay
Long-term Permanent MEMORY.md (index) + classified files Permanent Periodic review, prune when stale

Dimension 2: Content Classification (4 Types)

Written by: agent proactively during conversation (not automatic)

Type Directory Content Example When to Write
user memory/user/ User profile (role, preferences, knowledge, goals) When learning user preferences/profile
feedback memory/feedback/ Lessons (corrections, confirmations, style) When user corrects or confirms
project memory/project/ Project decisions/reasoning (raw material) When project has new progress/decision
reference memory/reference/ External resources (links, tools, locations) When discovering new tools/resources

Important: Project execution state tracking (blockers, needs, progress) → write directly to knowledge/project-tracker.md (strategy layer); only project experience, decision reasoning, retrospective summaries → sublimate to memory/project/ (classified memory layer)


What to Save / What NOT to Save

✅ Save

  • User's role, preferences, responsibilities, knowledge
  • User corrections ("not like that", "should be this way")
  • User confirmations ("yes exactly", "perfect, keep that")
  • Project decisions and the reasoning (not just what, but why)
  • New tools, links, resources
  • External system locations and their purpose

❌ Don't Save

  • ❌ Code patterns, architecture, file paths (derivable from codebase)
  • ❌ Git history (git log is the authoritative source)
  • ❌ Debugging solutions (the fix is in the code)
  • ❌ Anything already documented elsewhere
  • ❌ Ephemeral task state (write to todos.md instead)
  • ❌ Raw conversation content

MEMORY.md = Long-Term Index Only

MEMORY.md is the index of long-term memories only, never content. Format:

- [Title](path) — one-line description (\x3C150 chars)

Memory File Format

Every classified memory file must have frontmatter:

---
name: Memory name
description: One-line description (used to judge relevance)
type: user|feedback|project|reference
created: YYYY-MM-DD
---

## Rule / Fact
(the content)

## Why
(reason / motivation)

## How to apply
(when and how to use this memory)

Memory Drift Caveat

Memories can become stale. Rules:

  1. Verify first: When referencing a file, function, or path — check it still exists
  2. Trust current state: If memory conflicts with current observation, trust what you see now
  3. Update or delete: When a memory is outdated, fix or remove it immediately
  4. Absolute dates: Convert relative dates ("yesterday", "last week") to absolute dates

Memory → Knowledge Sublimation

Not all mature memories should decay. Some evolve into knowledge.

When to Sublimate

Trigger Detection Signal Result
Project complete All tasks marked done, 3+ related project memories Merge into knowledge/project-postmortem.md
Project state tracking New progress/blockers/resource needs Update knowledge/project-tracker.md directly (skip sublimation)
Feedback patterns 3+ related feedback entries (e.g., all about reply style) Merge into knowledge/user-work-style-guide.md
User depth User memory accumulates role, preferences, habits over time Expand to knowledge/user-playbook.md
Periodic review Dream detects high density of related memories in one category Suggest: "Found 5 related feedback entries → merge into knowledge?"

Session Lifecycle

Session Start

1. Sensory: Read current input
2. Short-term: Last 10 turns from context window
3. Working: Read memory/today.md + memory/yesterday.md
4. Long-term: Read MEMORY.md index

Note: Active Memory runs before the above (in before_prompt_build hook)

During Conversation

- New info → write to working memory (today's daily log)
- Learned something worth remembering → update MEMORY.md index + save classified file
- User preference → update USER.md + memory/user/
- Task/priority change → update todos.md
- Need to retrieve → find in MEMORY.md index → read classified file

Session End

- Summarize → write to memory/today.md (working memory)
- Identify items for long-term → update classified files
- Update MEMORY.md index
- Mark items for Dream review (decay candidates)

Workspace Structure

workspace/
├── MEMORY.md              # long-term memory index (written by Dream Deep phase)
├── USER.md                # user info
├── SOUL.md                # AI identity
├── todos.md               # ★ Execution layer: today's tasks + long-term tracking (user-facing)
├── HEARTBEAT.md           # daily reminders
├── memory/
│   ├── memory-types.md    # this file (or link to SKILL.md)
│   ├── user/              # long-term user memories (written by agent)
│   ├── feedback/          # long-term feedback (written by agent)
│   ├── project/           # long-term project memories (written by agent, post-sublimate)
│   ├── reference/         # long-term references (written by agent)
│   ├── palace/            # Memory Palace views
│   │   ├── timeline.md
│   │   ├── projects.md
│   │   ├── technology.md
│   │   └── custom.md
│   ├── dreaming/
│   │   └── verify/        # Verification reports (written by Refinement 13:00)
│   ├── .dreams/           # Internal machine data (NOT human-readable)
│   │   ├── phase-signals.json    # Deep phase scoring signals
│   │   ├── events.jsonl          # memory_search event log
│   │   ├── session-ingestion.json # session-corpus metadata
│   │   └── short-term-recall.json # Active Memory recall index
│   └── YYYY-MM-DD.md     # working memory (daily logs)
└── knowledge/             # ★ Strategy layer (project blockers/progress/resources/suggestions)
    └── project-tracker.md # Project panorama, user-facing

Three-Layer Principle

  • todos.md = Execution layer: what to do today, tracking each node (user-maintained)
  • knowledge/ = Strategy layer: where projects are stuck, what resources needed, suggestions
  • memory/ = Classified memory layer: experience distillation, decision retrospectives, pattern discovery

Each layer has its own purpose, no duplication.


Example Interactions

User provides important info:

User: "I'm a data analyst, mostly working with Python" → Working: log in today's daily log → Long-term: save to memory/user/user-profile.md, update MEMORY.md index

User corrects you:

User: "Don't use Markdown tables, use lists" → Working: log in today's daily log → Long-term: save to memory/feedback/no-tables.md, update MEMORY.md index

Project decision:

Decision: approach A over B because lower cost → Working: log decision context → Long-term: save to memory/project/decision.md with reasoning

Looking up a past date:

User: "What did we do last Tuesday?" → Active Memory auto-recalls → read memory/YYYY-MM-DD.md for that date


OpenClaw Commands

# Check Active Memory status
openclaw plugins list | grep active-memory

# Check Dream status
openclaw dreaming status

# Toggle Dream on/off
openclaw dreaming on
openclaw dreaming off

# Manually trigger Dream Consolidation
openclaw memory dream

Changelog

Version Changes
v4.13 Dual-layer structure established (2026-04-18): Added three-layer principle (todos execution + knowledge strategy + memory classified); removed ongoing-projects.md, replaced with knowledge/project-tracker.md for strategic view; updated Workspace Structure and Sublimation description
v4.12b Source-verified major correction (2026-04-17): Clarified three-mechanism division (Active Memory trigger/read-only, Dream Deep唯一写MEMORY.md, Refinement as user-defined cron); corrected Deep/Light/REM phase descriptions; removed non-existent file references; updated Active Memory source-level description
v4.12 Dual-Layer Dream Verification: Official Dream (12:30) + Refined Verify (13:00) cross-checking. Verification reports in memory/dreaming/verify/. Hallucination and drift prevention.
v4.11 Full integration with OpenClaw 4.11 ecosystem, Active Memory + Memory Palace + Dream Consolidation
v3.2 Memory sublimation system, 5-phase consolidation
v2.2 Memory-Knowledge layering + Atkinson-Shiffrin integration
v1.0 Initial release — Atkinson-Shiffrin three-stage model

Version: v4.13 | Updated: 2026-04-18 | Three layers: todos execution + knowledge strategy + memory classified

安全使用建议
This skill appears to do what it says: keep short-term and long-term 'memories' by reading and writing files and running scheduled consolidation steps. Before installing, verify: (1) where the memory files will be stored and who/what has access to them; (2) how the platform executes the described cron/session triggers and whether you can disable them or opt out of automatic writes; (3) whether the 'source-verified' claims are trustworthy (there is no homepage and metadata versions in the bundle disagree), and prefer skills with a public repository or author contact; (4) your retention and deletion policy (how to delete MEMORY.md and related logs if you want to remove retained data). If you need strict privacy, do not install until you confirm the platform enforces the file write boundaries and scheduling model to your satisfaction.
功能分析
Type: OpenClaw Skill Name: memory-never-forget Version: 4.1.3 The skill is a comprehensive memory management system for OpenClaw agents, utilizing local file storage and automated maintenance tasks (Dream and Refinement phases) to organize long-term data. It follows a structured approach to categorize and prune information based on the Atkinson-Shiffrin model. No indicators of data exfiltration, malicious execution, or harmful prompt injection were found; all logic in SKILL.md and the reference files is strictly aligned with the stated purpose of enhancing agent recall and knowledge organization.
能力评估
Purpose & Capability
Name/description match the instructions: the skill describes a memory subsystem and the SKILL.md exclusively instructs memory-related reads/writes, prompt injection, and scheduled consolidation. It does not ask for unrelated credentials, binaries, or external network endpoints.
Instruction Scope
Instructions direct the agent to read and write local memory files (e.g., MEMORY.md, memory/YYYY-MM-DD.md, DREAMS.md), spawn a limited sub-agent for memory_search/memory_get, and run scheduled jobs (cron-like triggers). These are coherent with a memory system but imply persistent storage of user data and automatic triggers before replies — this has privacy/consent implications. There is no instruction to read unrelated system files or environment variables.
Install Mechanism
No install spec and no code files to run; lowest-risk deployment model. The skill is instruction-only so nothing external is downloaded or installed by the skill itself.
Credentials
The skill requests no environment variables, credentials, or external config paths. All required storage and operations are internal (memory/ and related files), so the declared requirements are proportionate to its purpose.
Persistence & Privilege
always:false (normal). The skill instructs writing persistent memory files and scheduling daily jobs; it can autonomously inject short-term summaries before replies. While not requesting elevated platform privileges, the persistent write behavior and scheduled/automated runs mean the skill can accumulate user data over time — review retention, visibility, and how/where cron-like triggers execute on your platform.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install memory-never-forget
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /memory-never-forget 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v4.1.3
v4.13 introduces a clear dual-layer structure and significant source-verified clarifications. - Adds explicit separation: todos.md (execution), knowledge/ (strategy), memory/ (classified memory). - Clarifies architecture: three mechanisms—Active Memory (real-time), Dream (12:30 cron, memory-core), and Refinement (user-defined verification). - Provides detailed, source-verified phases and outputs of Dream and disables misleading deep/light/rem memory files. - Outlines new config parameters, constraints, and memory handling for each layer. - Refines guidance on what gets saved, the memory file schema, and explicit project memory vs. knowledge distinctions. - Emphasizes manual promotion for verified/supplementary memories; no more auto-writes outside Dream’s deep phase.
v4.1.2
**v4.12 introduces dual-layer verification and a new "Memory Palace" global memory view.** - Added Active Memory: automatic, real-time retrieval and injection of relevant memories before conversations, supporting message/recent/full modes. - Introduced Memory Palace: structured, multi-dimensional memory views (timeline, project, technology, custom) for global navigation and organization. - Implemented dual-layer Dream verification: “Official Dream” promotes memories daily; a second, independent “Refined Verification” layer cross-checks, audits, and reports memory conflicts or AI hallucinations, ensuring reliability. - Enhanced memory file structure and automated updating—memories are now aggregated and validated across dimensions. - Improved documentation with updated workflow, new configuration examples, and expanded best practices for memory management. - Added SKILL.md.bak as a backup file.
v3.2.1
**Memory-never-forget v3.2.1 Changelog** - Adds the Memory Sublimation System, enabling mature memories to be merged and evolved into long-term knowledge artifacts. - Description updated to reflect this enhancement. - No other functional or structural changes.
v3.2.0
## Memory system upgraded to v3.2 with memory sublimation system. - ✅ Added complete Memory → Knowledge Sublimation mechanism - ✅ Enhanced Dream system with 5-phase consolidation - ✅ Automatic detection of memory maturation patterns - ✅ Knowledge document generation from accumulated memories - ✅ Improved memory classification accuracy and retrieval precision
v3.1.1
memory-never-forget v3.1.1 - Added a concise summary and flow diagram illustrating the end-to-end memory pipeline, from sensory input through Dream consolidation to long-term storage. - Clarified the two-dimensional memory system by explicitly describing the filter-then-classify process. - Improved structure and readability with more visual formatting (diagram and table organization). - No functional or technical changes to underlying behavior or architecture. Documentation clarity and presentation improved only.
v3.1.0
**Summary:** v3.1 is a major upgrade, introducing Atkinson-Shiffrin temporal layering alongside the previous 4-type classification for a unified, robust long-term memory system. - Adds a 2D memory structure: temporal (sensory, short-term, working, long-term) + content (user, feedback, project, reference). - Working memory (daily logs, 7-day TTL) sits between current context and long-term classified files; periodic "Dream" consolidation reviews, promotes, or prunes entries. - Retrieval flows now leverage both classified long-term memories and recent working memory (daily logs), with direct mapping for "what, when, where" style questions. - Tightened what/what-not-to-save guidelines; raw conversations are short-term only, with only distilled signals promoted. - Index (MEMORY.md) is exclusively for classified memory pointers; detailed content lives in structured files. - Enforces memory drift handling, absolute dates, and periodic pruning to avoid staleness.
v3.0.0
**Major upgrade: Memory system moves from cognitive psychology model to a Claude Code-inspired, 4-type taxonomy with streamlined indexing and automated extraction.** - New 4-type memory categories: User, Feedback, Project, Reference, each with dedicated subfolders and frontmatter format. - MEMORY.md becomes a pure index (no content), listing only memory file titles, paths, and one-line summaries. - Clear guidelines on what to save (important info, user feedback, decisions) and what NOT to save (code details, git logs, dialog transcripts). - Automated memory extraction at conversation end with deduplication, classification, and immediate summary to user. - Memory drift handling rules: always verify, trust current data, and update or delete outdated memories. - Regular background consolidation ("Dream") merges, deduplicates, and prunes memory files for relevance and brevity. - Retrieval process splits memory (indexed recall) and knowledge (deep lookup), streamlining memory management and futureproofing. ## v2.2 → v3.0 (2026-04-03) **Inspired by deep analysis of Claude Code's memory system source code** (`memoryTypes.ts`, `extractMemories.ts`, `autoDream.ts`, `consolidationPrompt.ts`). Key upgrades: ### Classification - Added 4-type taxonomy: **User / Feedback / Project / Reference** (mirrors Claude Code's eval-validated memory types) - MEMORY.md refactored into a **pure index** file with content separated into subdirectories (`memory/user/`, `memory/feedback/`, etc.) - Mandatory frontmatter format: `name`, `description`, `type`, `created` ### Extraction - Daily Dream-style consolidation via cron (4-stage: Orient → Gather → Consolidate → Prune) - "What NOT to Save" rules to prevent memory bloat (code patterns, git history, ephemeral tasks) - Memory Drift Caveat: verify file/function claims before recommending from memory ### Quality - Feedback captures both corrections AND confirmations (not just failures) - Relative dates converted to absolute dates for future interpretability - Project memories include "Why" field to help judge if they're still load-bearing --- *Source: Claude Code v1.0.0-research reverse-engineered analysis*
v2.2.2
No functional or code changes; documentation updated: - SKILL.md fully rewritten in English with streamlined explanations. - All key upgrade details, workflow, architecture, and memory principles retained. - Documentation now emphasizes international usability and clarity for wider audiences. - No file or behavior changes in this version.
v2.2.1
No functional change in this version. - No file changes or content modifications detected. - All core features and documentation remain the same as the previous version.
v2.2.0
Memory skill upgraded to "memory-never-forget" v2.2 with major architecture enhancements: - Introduced a two-layer framework: memory layer (索引) and knowledge layer (内容), clearly separating memory organization from knowledge storage. - Added proactive consolidation mechanisms (间隔重复), including daily logs, periodic reviews, and index updates, to strengthen long-term memory through spaced repetition. - Implemented metacognitive training (元认知训练) for self-monitoring: plan, monitor, and evaluate memory coverage in each session. - Enhanced retrieval efficiency with results sorting, associative expansion, and clear distinction between memory and knowledge queries. - Expanded scientific memory workflow with deep encoding, active consolidation, and efficient extraction—a full closed feedback loop. - Updated workflows and checklists to ensure robust recall, knowledge utilization, and minimized forgetting. v2.2.0: 基于《科学记忆技能体系化指南》重大升级。新增编码→巩固→提取闭环、主动巩固(间隔重复)、元认知训练(计划/监控/评估)、睡前复习机制;增强高效提取(排序+扩展+费曼原则)
v2.0.0
v2.0.0 - 当前版本,优化了缓存、7天周期、智能检索 v1.0.0 - 初始版本
v1.0.0
🧠 Never Forget — AI Memory That Actually Works Tired of starting every conversation from scratch? This skill gives your AI persistent memory using the same three-stage memory architecture humans use. 🔬 Science-backed: Based on Atkinson-Shiffrin's cognitive model 📚 Three memory layers: Sensory → Short-term → Long-term 🎯 Auto-recall: Remembers your name, preferences, past discussions 💾 Smart consolidation: Important stuff gets saved permanently ⚡ Zero setup: Just install and it works Perfect for: Personal assistants, customer service bots, knowledge workers who need continuity.
元数据
Slug memory-never-forget
版本 4.1.3
许可证 MIT-0
累计安装 18
当前安装数 17
历史版本数 12
常见问题

🧠 Memory Never Forget 🧠 是什么?

Memory system v4.13: Dual-layer structure (todos for execution + knowledge for strategy) with Dream/Refinement memory mechanisms. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3279 次。

如何安装 🧠 Memory Never Forget 🧠?

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

🧠 Memory Never Forget 🧠 是免费的吗?

是的,🧠 Memory Never Forget 🧠 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

🧠 Memory Never Forget 🧠 支持哪些平台?

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

谁开发了 🧠 Memory Never Forget 🧠?

由 jujitao(@jujitao)开发并维护,当前版本 v4.1.3。

💬 留言讨论