← 返回 Skills 市场
zgjq

Smart Memory (Zero Dep)

作者 zgjq · GitHub ↗ · v1.1.2 · MIT-0
cross-platform ✓ 安全检测通过
118
总下载
0
收藏
0
当前安装
7
版本数
在 OpenClaw 中安装
/install smart-memory-zero-dep
功能描述
Enhanced memory system for agentic workflows. Automatic memory extraction from conversations, memory type classification (preference/project/technical/lesson...
安全使用建议
This skill appears to do what it says: local memory extraction, tagging, decay, and a session WAL. Before installing or enabling: 1) ensure Python 3.10+ and Bash 4+ are available (metadata omitted these but scripts require them), 2) back up any existing ~/.openclaw/workspace data (scripts will read/modify these files), 3) review/adjust OPENCLAW_WORKSPACE if you want files stored elsewhere, 4) understand the WAL rule (the agent will write remembered text to disk before replying) — if you worry about accidental persistence of secrets, test extraction on non-sensitive sample data and review the regex patterns that block tokens/keys, and 5) if you want to limit risk, disable autonomous invocation for the skill or run it in a sandboxed account until you’re comfortable with behavior.
功能分析
Type: OpenClaw Skill Name: smart-memory-zero-dep Version: 1.1.2 The smart-memory-zero-dep skill is a comprehensive local memory management system for OpenClaw agents, implementing a multi-layered storage architecture (Hot RAM, daily logs, and curated long-term facts). The bundle includes several Python and Bash scripts (session_state.py, session_cache.py, memory_decay.py) designed to handle data isolation, temporal archival, and input sanitization. Notably, the scripts include proactive security features such as hard-coded regex filters to prevent the accidental storage of sensitive credentials like API keys (OpenAI, GitHub, ClawHub), passwords, and private keys. All operations are performed locally within the user's workspace or /tmp directory, with no evidence of network exfiltration or malicious execution logic.
能力评估
Purpose & Capability
Overall coherent: name/description (memory extraction, tagging, decay, session cache) matches the included scripts (session_state.py, session_cache.py, extract_memories.sh, classify_memory.py, memory_decay.py, memory_health.sh). Minor inconsistency: registry metadata lists "Required binaries: none" but SKILL.md explicitly requires Python 3.10+ and Bash 4+. Also the package was marked "instruction-only" in install spec but includes multiple executable scripts — this is fine but worth noting as a mismatch between metadata and bundled files.
Instruction Scope
Instructions stay within the stated domain (local writes to ~/.openclaw/workspace and /tmp, no network endpoints). They direct the agent to write WAL entries before responding, run local classification/decay/health scripts, and optionally use the agent's own LLM for higher-quality extraction. Caution: the WAL requirement means the agent will persist extracted text before responding — if extraction misclassifies sensitive text, it may be written locally. The scripts implement regex-based blocking for common key/token patterns, but those checks are heuristic and can miss exotic credential formats.
Install Mechanism
No install spec — scripts are included and run directly. No external downloads or package installs. This is low-risk from an installation perspective (nothing downloaded/executed from remote URLs).
Credentials
The skill requests no secrets or privileged environment variables. SKILL.md documents two optional environment variables (OPENCLAW_WORKSPACE, OPENCLAW_SESSION_ID) used to locate workspace and session cache — these are reasonable and proportional to the functionality.
Persistence & Privilege
The skill writes and modifies files inside a user-local workspace (~/.openclaw/workspace) and /tmp session caches, which is expected for a memory system. always:false (normal). Because the agent is expected to autonomously invoke these scripts (disable-model-invocation: false by default), the skill can autonomously persist data to disk — this is expected for a memory plugin but increases blast radius if the agent is misconfigured or hostile.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install smart-memory-zero-dep
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /smart-memory-zero-dep 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.2
UX: wal shortcut alias (--help: 20 chars vs 70), classify --summary for stats-only output, decay --promote-only for quick LESSON promotion, health now shows actionable suggestions
v1.1.1
Extraction: default to keyword mode (zero token cost), LLM mode opt-in only for 20+ turn conversations. Updated extraction_prompt.md with mode comparison table.
v1.1.0
6 upgrades: (1) snapshot/restore for session state persistence, (2) n-gram similarity for CJK/mixed-text classification, (3) LESSON promotion with reference counting, (4) duplicate detection before tagging, (5) auto-extract via --auto flag, (6) expanded Chinese keywords
v1.0.3
Narrow extraction scope: add explicit 'Do NOT Extract' list (credentials, private conversations, speculation, transient state). Clarify sensitive-data regex limitations.
v1.0.2
Security: replace shell scripts with Python (no injection risk), add sensitive data hard-block (API keys, passwords, private keys), input sanitization, path-safe session IDs. Scripts: session_state.sh→session_state.py, session_cache.sh→session_cache.py
v1.0.1
Fix: declare runtime requirements (Bash 4+, Python 3.10+), document env vars (OPENCLAW_WORKSPACE, OPENCLAW_SESSION_ID), add session_state.sh to scripts table, add done/blocker/get to quick reference.
v1.0.0
smart-memory-zero-dep v1.0.0 - Initial release of enhanced memory system for agentic workflows - Automatic extraction and classification of memory from conversations - Zero external dependencies; pure shell/Python scripts - Multi-layer memory design (HOT RAM, daily, curated, archival, session cache) - Built-in decay/archival and maintenance workflows - Adopts WAL protocol to prevent context loss in workflow execution
元数据
Slug smart-memory-zero-dep
版本 1.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 7
常见问题

Smart Memory (Zero Dep) 是什么?

Enhanced memory system for agentic workflows. Automatic memory extraction from conversations, memory type classification (preference/project/technical/lesson... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 118 次。

如何安装 Smart Memory (Zero Dep)?

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

Smart Memory (Zero Dep) 是免费的吗?

是的,Smart Memory (Zero Dep) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Smart Memory (Zero Dep) 支持哪些平台?

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

谁开发了 Smart Memory (Zero Dep)?

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

💬 留言讨论