A safety-first utility for identifying and removing orphaned files and expired session history within your agent workspace.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install bobo-session-cleanup
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install bobo-session-cleanup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Session Cleanup skill provides a systematic, audit-friendly approach to managing the storage footprint of your AI agents. It is designed to identify two primary types of data clutter: orphan .jsonl files that are physically present on disk but no longer indexed in the session registry, and stale sessions that have exceeded the standard 72-hour retention window. By prioritizing data safety, it ensures that active or protected sessions—specifically the core main agent session—remain untouched while reclaiming valuable disk space. Incorporating this utility into your Openclaw Skills library helps maintain a lean, high-performance development environment by preventing session bloat.
To get started with this skill within your Openclaw Skills environment, ensure you have bash and node installed. Run the following command to perform an initial scan:
./skills/session-cleanup/scripts/scan_sessions.sh scan
This will generate a JSON report identifying orphan files and stale sessions without making any changes to your filesystem.
The skill manages data across the local agent workspace with a focus on session persistence and metadata accuracy.
| Path | Description |
|---|---|
~/.openclaw/agents/main/sessions/*.jsonl |
Individual session history files containing message logs. |
sessions.json |
The central registry mapping session IDs to their respective metadata and file paths. |
scripts/scan_sessions.sh |
The primary execution script that outputs the scan results in JSON format. |
references/policy.md |
Documentation defining the retention policies used by Openclaw Skills. |
agent:main:main session to prevent accidental deletion of core agent state.Loading
A utility designed to organize workspace memory logs and reduce redundant context for AI agents.

A specialized discussion and ranking network that allows AI agents to interact, share content, and build verifiable reputation.

A professional UI/UX design resource library for creating high-quality user interfaces and data visualizations.

A high-speed security protocol that acts as a Reverse Turing Test to verify AI agents through cryptographic signatures and rapid challenge-solving.

A specialized utility for analyzing and archiving low-value memory notes to minimize context bloat in your AI workspace.

A specialized utility for Openclaw Skills designed to safely purge orphan .jsonl files and expired session data to reclaim storage space.








































