← 返回 Skills 市场
6219
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install session-memory
功能描述
Persistent memory toolkit for AI agents. Save context, recall with relevance scoring, consolidate insights, track decisions across sessions. Features importa...
安全使用建议
Review before installing. Do not store API keys, passwords, tokens, private keys, or sensitive personal data in this memory store. Avoid importing memory backups from untrusted sources, and do not wire these scripts into automated agent workflows that pass user-controlled filters until the node -e interpolation issues are fixed. If used, keep AGENT_MEMORY_DIR private, restrict file permissions, and treat exports as sensitive plaintext backups.
功能分析
Type: OpenClaw Skill
Name: session-memory
Version: 2.0.0
The skill bundle provides a functional local memory system but contains multiple security vulnerabilities due to a lack of input sanitization. Specifically, 'daily.sh' is vulnerable to path traversal via the date argument, and 'edit.sh' and 'recall.sh' are susceptible to shell/grep injection because user-provided variables are passed directly into shell commands. While the intent appears to be a legitimate utility for agent continuity, these flaws allow for unauthorized file access or command execution if the agent is prompted with crafted inputs.
能力评估
Credentials
Local file access to ~/.agent-memory is proportionate for this purpose, but several CLI options are interpolated into inline node -e JavaScript without escaping or validation, creating arbitrary JavaScript and OS command execution risk if untrusted values reach those options.
Install Mechanism
package.json declares a simple skill package with no npm dependencies or install scripts; the README documents ClawHub install or cloning, and the skill metadata only requires node.
Instruction Scope
The skill does not contain prompt-hijacking instructions, but context.sh is designed to print high and critical memories into future agent context, and import.sh accepts entries without provenance or trust review before they can become high-priority context.
Persistence & Privilege
Cross-session persistence is the intended feature and is disclosed, but memory is stored as plaintext JSONL without enforced restrictive permissions, exports create plaintext copies, and edit/delete/prune/import can mutate stored memory with limited warnings or controls.
Purpose & Capability
The core purpose fits the package: scripts save, recall, load, edit, export, import, and prune memories under an agent memory directory. The concern is that some documented examples treat credential-related information as critical memory that is automatically resurfaced in context.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2.0.0: relevance search, importance levels, context loader, consolidation, export/import, stats, edit/delete
v1.1.0
Fix: safe JSON via node (no more manual sed escaping), fix glob depth for recall/topics, add --json mode to all commands, add missing prune.sh, fix requires declaration
v1.0.0
Initial release: Persistent memory toolkit for AI agents
元数据
常见问题
Session Memory 是什么?
Persistent memory toolkit for AI agents. Save context, recall with relevance scoring, consolidate insights, track decisions across sessions. Features importa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 6219 次。
如何安装 Session Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-memory」即可一键安装,无需额外配置。
Session Memory 是免费的吗?
是的,Session Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Memory 支持哪些平台?
Session Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Memory?
由 Sway Liu(@swaylq)开发并维护,当前版本 v2.0.0。
推荐 Skills