Session Cleaner

PassAudited by ClawScan on May 13, 2026.

Overview

This is a disclosed OpenClaw session-cleanup skill, but it can delete local session history and restart the gateway, so users should confirm the scope and back up first.

This skill appears coherent and purpose-aligned. Before installing or using it, confirm exactly which agents and sessions will be cleaned, do not approve deletion of running sessions, and back up important session files if you may need the history later.

Findings (2)

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

If the wrong cleanup scope is confirmed, old session records or logs may be removed and the OpenClaw gateway may be restarted.

Why it was flagged

This documents local mutation of OpenClaw session indexes, deletion of session files, and a gateway restart. These actions are expected for a session cleaner and are gated by confirmation, but they can still remove user history or disrupt the UI if used incorrectly.

Skill content
获得确认后,调用 `sessions.json` 清理脚本,删除孤立的 .jsonl 文件,最后重启 Gateway。
Recommendation

Review the proposed deletion list carefully, avoid deleting running sessions, and make a backup before approving cleanup.

What this means

Cleanup can permanently remove local conversation history or task context unless backups exist.

Why it was flagged

The skill operates on persistent conversation transcripts, trajectory logs, and checkpoint files. Deleting them is purpose-aligned, but these files may contain prior context the user later wants to inspect or recover.

Skill content
`<uuid>.jsonl` # transcript 文件(实际消息记录) ... `<uuid>.trajectory.jsonl` ... `<uuid>.checkpoint.jsonl`
Recommendation

Back up relevant session files or `sessions.json` before cleanup, especially for projects where prior agent context matters.