Memory Shrink
PassAudited by VirusTotal on May 11, 2026.
Overview
Type: OpenClaw Skill Name: memory-shrink Version: 1.0.0 The skill bundle is designed for automated memory management, archiving old markdown files when context usage exceeds a specific threshold. The core logic in `scripts/shrink.sh` performs standard file operations (moving files older than 7 days to an archive directory) within the local workspace, and the instructions in `SKILL.md` are strictly aligned with this purpose without any indicators of data exfiltration, malicious execution, or harmful prompt injection.
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.
The agent may pause the current task and perform memory archiving when context usage is high.
This changes task priority when context is very high. It is consistent with the cleanup purpose, but users should know the skill can interrupt other work to archive memory.
| > 90% | 强制存档,跳过所有其他操作 |
Use this skill only if automatic context cleanup is desired, and review its output after it runs.
Older memory files in the targeted workspace may be moved into an archive folder, which can change what memory is readily available.
The helper script performs local file mutation by moving old markdown memory files into an archive directory. This is purpose-aligned, but the default workspace path should be checked.
WORKSPACE="${1:-/root/.openclaw/workspace-code_analyst}" ... mv "$file" "$ARCHIVE_DIR/${TIMESTAMP}_${basename}"Run the script only against the intended workspace, and confirm the archive directory contains the expected files.
Future sessions may have less detail available if memories are summarized or archived.
The skill searches and updates persistent memory. That is central to its purpose, but changes to memory can influence future agent context.
调用 `memory_search` 查找可删除内容,然后更新 memory 文件。
Keep backups or review archived memories if important project context should remain immediately available.
