Smart Memory Keeper

v1.5.2

解决 AI /new 后失忆问题的记忆管理 skill。三层加载机制(热/温/冷),session 启动时只取当前需要的记忆,省 token。 包含:任务状态恢复、每日日记、项目索引、Dream 定期整理。纯文件系统,无需外部服务。 用户说"先这样"、"暂停"、"记住这个"、里程碑完成时触发。 Memory ma...

1· 177·0 current·0 all-time
byRyan@porkapple

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for porkapple/smart-memory-keeper.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Smart Memory Keeper" (porkapple/smart-memory-keeper) from ClawHub.
Skill page: https://clawhub.ai/porkapple/smart-memory-keeper
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: openclaw
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install smart-memory-keeper

ClawHub CLI

Package manager switcher

npx clawhub@latest install smart-memory-keeper
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill claims to be a local memory manager and only requires the openclaw CLI plus read/write access to ~/.openclaw/workspace/memory and MEMORY.md. Those capabilities are coherent with the stated goal (persisting tasks, journals, and a project index).
Instruction Scope
SKILL.md instructs the agent to read the most recent session history, inspect openclaw.json, run openclaw --version, and write/read files under ~/.openclaw/workspace/memory and MEMORY.md. That scope matches a memory skill, but it includes modifications to global agent config files (AGENTS.md and HEARTBEAT.md) which will change startup/heartbeat behavior — this is expected for the feature but worth reviewing before applying.
Install Mechanism
There is no automated install spec in the bundle (instruction-only), so nothing is silently downloaded or executed. README suggests a manual git clone or using openclaw skills install (which would fetch from the registry), but those actions are external to the skill bundle and visible to the user before running.
Credentials
The skill requests no environment variables or external credentials. The declared file_write and session_read permissions are proportionate to persisting and bootstrapping memory from local sessions.
Persistence & Privilege
always:false and normal autonomous invocation. The skill writes persistent files into the user's workspace and suggests appending content to AGENTS.md and HEARTBEAT.md to enable automatic behavior — this persistent change is reasonable for the feature, but users should be aware it modifies agent startup/heartbeat configuration.
Assessment
This skill is internally consistent: it only uses the openclaw CLI and the user's workspace files to implement a 3-tier memory (tasks, daily journals, project index). Before installing or enabling automated behavior: 1) review the exact AGENTS.md and HEARTBEAT.md snippets in references/install-snippets.md and back up your AGENTS.md, HEARTBEAT.md, and MEMORY.md; 2) confirm you are comfortable with the skill reading your most recent session history (openclaw sessions list) and writing files under ~/.openclaw/workspace/memory; 3) verify that no sensitive tokens/credentials are present in those session histories or files (the skill's rules forbid recording secrets, but it will read existing content to bootstrap); 4) prefer manual application of the install snippets if you don't want global startup changes; 5) if you use the registry install command, inspect the fetched files (or clone the GitHub repo) before running. No regex scan findings were reported in the bundle.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

Binsopenclaw
latestvk972m6b318jhfs4261a4cw9v9h84h54n
177downloads
1stars
8versions
Updated 2w ago
v1.5.2
MIT-0

Memory Keeper

Core goal: After /new, the AI picks up exactly where you left off — no re-explaining needed.

Part 0: First-Run Initialization

Trigger: memory/tasks.md exists but is empty.

  1. Tell the user: "Your tasks.md is empty. Let me scan your recent work history and build your memory from scratch."
  2. Read MEMORY.md + most recent session history (openclaw sessions list --limit 1)
  3. Extract in-progress tasks, statuses, next steps
  4. Present to user for confirmation — never write without approval
  5. On confirmation → write to memory/tasks.md
  6. If nothing found → ask user what they're working on

Post-Install Setup (one-time)

See references/install-snippets.md for the three things to set up:

  1. Append memory management section to AGENTS.md
  2. Append daily journal check to HEARTBEAT.md
  3. Initialize memory/tasks.md

These three configs form a complete memory loop: HEARTBEAT.md creates journals, AGENTS.md restores context on startup, tasks.md persists work state.

Part 1: Task State

See references/formats.md for format specs, quality bar for "Next", and the 3-file rule.

When to update tasks.md — trigger immediately, don't wait:

TriggerAction
Milestone reached (version published, bug fixed, module done)Update status/next, or move to Completed
Pause signal ("that's it", "pause", "done for today")Self-check gaps → fill → update Next → tell user "State saved"

Don't trigger for: Pure Q&A, reviewing files, discussing plans without executing.

Multiple in-progress tasks: List all on startup, let user choose. Don't auto-select.

Part 2: Daily Journal

See references/formats.md for journal template and when-to-write triggers.

  • Group by topic, not chronological
  • Skip empty sections entirely
  • Watch List is the most important section

Part 3: Project Index

See references/formats.md for MEMORY.md entry format.

Update immediately after: project added/removed, version released, Git remote/path changed.

Part 4: Dream Consolidation

Version check (every heartbeat)

openclaw --version

Parse version as YYYY.M.R:

  • >= 2026.4.8: OpenClaw has native Dreaming — use it instead
    • Check if native Dream is enabled: look for plugins.entries.memory-core.config.dreaming.enabled: true in openclaw.json, or run openclaw memory promote --dry-run (exit 0 = active)
    • Already enabled → skip our Part 4 entirely, no message
    • Not enabled:
      • Check for upgrade from old version: memory/dream-state.json exists AND lastDream != "2000-01-01"
      • Upgrade detected → tell user: "检测到你升级到了 2026.4.8+,建议开启原生 Dreaming(/dreaming on)。开启后旧 Dream 状态文件会自动清理。"
      • Fresh install (no upgrade) → tell user once: "OpenClaw v2026.4.8+ has built-in Dreaming. You can enable it with /dreaming on in any session."
      • After user enables native Dreaming → delete memory/dream-state.json
    • Then skip our Part 4
  • < 2026.4.8: use our built-in Dream consolidation (see references/dream-guide.md)

Trigger conditions (only for < 2026.4.8)

Run during heartbeat when both are true:

  • lastDream > 7 days ago
  • sessionsSinceLastDream >= 3

For full details — four phases, drift correction, state file — see references/dream-guide.md.

Rules

  • Never record secrets, tokens, or credentials in tasks.md or journals
  • Keep project index at the top of MEMORY.md for fast scanning
  • Absolute dates only: always YYYY-MM-DD — never "next week", "tomorrow"
  • Archive journals by age: move journals older than 30 days to memory/archive/; startup loads last 7 days only
  • MEMORY.md under 200 lines: Dream consolidation handles trimming — never hard-truncate

Comments

Loading comments...