Session Cleaner
Security checks across static analysis, malware telemetry, and agentic risk
Overview
This skill transparently moves old OpenClaw session files into a local backup, but users should run the dry-run first because it changes persistent session state.
Before installing or using this skill, understand that its default mode moves stale session .jsonl files from the active OpenClaw sessions directory into `sessions/backup/`. Use the dry-run option first, verify that the files marked for movement are not needed, and keep the backup if you may need to restore session history.
Static analysis
No static analysis findings were reported for this release.
VirusTotal
64/64 vendors flagged this skill as clean.
Risk analysis
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.
Running the skill can make older OpenClaw session files no longer appear in the active sessions directory.
The script performs local file mutation by moving session transcript files into a backup directory. This is purpose-aligned and disclosed, but it is the default behavior rather than only a dry-run.
mkdir -p "$BACKUP_DIR"
mv "$f" "$BACKUP_DIR/"Run `bash scripts/clean-sessions.sh --dry-run` first and confirm the listed files are safe to move before running the default mode.
Session history may be moved out of the active location, which can affect what context remains readily available to OpenClaw.
The skill operates on OpenClaw session transcripts, which are persistent agent context and may contain private conversation data. The behavior is local and purpose-aligned, with backup rather than deletion.
Clean stale session transcript files from `~/.openclaw/agents/main/sessions/`.
Review the backup location and retention expectations, especially if session transcripts contain sensitive information or are needed for audit/history.
