Memory Manager

AdvisoryAudited by Static analysis on Apr 30, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

Private agent context may be preserved longer than expected and later searched or reused by the agent.

Why it was flagged

The snapshot command copies portions of episodic, semantic, and procedural memory files into a new persistent snapshot file, which is expected for the skill but can retain sensitive or stale context.

Skill content
tail -n 30 "$file" >> "$SNAPSHOT_FILE" ... head -n 20 "$file" >> "$SNAPSHOT_FILE"
Recommendation

Avoid storing secrets in memory files, periodically review and prune snapshots, and treat retrieved memory as context to verify rather than unquestioned truth.

What this means

A mistaken invocation could move the wrong local file or reorganize memory content in an unintended way.

Why it was flagged

Manual categorization moves a user-specified source file into the memory structure. This is purpose-aligned, but it is a local file mutation and depends on the caller choosing the intended file and destination name.

Skill content
SOURCE="$3" ... mv "$SOURCE" "$DEST"
Recommendation

Use categorize only on files you intend to move, prefer files already under memory/legacy, and check source and destination paths before confirming.

NoteHigh Confidence
ASI10: Rogue Agents
What this means

The skill may keep checking, snapshotting, or organizing memory on a schedule if added to a heartbeat workflow.

Why it was flagged

The documentation recommends recurring heartbeat execution. It is disclosed and aligned with memory maintenance, but it creates ongoing automated activity if the user adopts it.

Skill content
## Memory Management (every 2 hours)
1. Run: ~/.openclaw/skills/memory-manager/detect.sh
2. If warning/critical: ~/.openclaw/skills/memory-manager/snapshot.sh
3. Daily at 23:00: ~/.openclaw/skills/memory-manager/organize.sh
Recommendation

Only add the heartbeat block if you want recurring memory maintenance, and review the generated snapshots and organization changes periodically.