← Back to Skills Marketplace
swaylq

Session Memory

by Sway Liu · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
6219
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install session-memory
Description
Persistent memory toolkit for AI agents. Save context, recall with relevance scoring, consolidate insights, track decisions across sessions. Features importa...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
⚠ 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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install session-memory
  3. After installation, invoke the skill by name or use /session-memory
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug session-memory
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Session Memory?

Persistent memory toolkit for AI agents. Save context, recall with relevance scoring, consolidate insights, track decisions across sessions. Features importa... It is an AI Agent Skill for Claude Code / OpenClaw, with 6219 downloads so far.

How do I install Session Memory?

Run "/install session-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Session Memory free?

Yes, Session Memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Session Memory support?

Session Memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Session Memory?

It is built and maintained by Sway Liu (@swaylq); the current version is v2.0.0.

💬 Comments