A maintenance utility designed to optimize OpenClaw by purging accumulated subagent and cron job session data from sessions.json.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclaw-session-cleanup-ruodon
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 openclaw-session-cleanup-ruodon using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The OpenClaw Session Cleanup skill is a specialized maintenance tool for developers using Openclaw Skills. Over time, every subagent call and cron job execution creates entries in the sessions.json file. This accumulation can lead to significant performance degradation, causing the gateway to slow down when initializing new subagents. This skill provides a safe and automated way to compact your session data, ensuring your environment remains responsive and efficient by focusing on removing transient child sessions while preserving critical main and channel data.
To begin using this maintenance utility within your Openclaw Skills setup, follow these steps:
openclaw gateway stop
.\cleanup.ps1
openclaw gateway
The skill interacts with the sessions.json file and .jsonl history files. It uses a specific logic to decide which metadata to retain or purge.
| Data Type | Key Pattern | Retention Status |
|---|---|---|
| Main Session | agent:main:main | Preserved |
| Messaging Channels | agent:main:channel:direct:* | Preserved |
| Cron Definitions | agent:main:cron:uuid | Preserved |
| Cron Run Records | agent:main:cron:uuid:run:uuid | Purged |
| Subagent Sessions | agent:main:subagent:uuid | Purged |
| .jsonl Files | history logs | Preserved (unless -CleanJsonl is used) |
Loading
A comprehensive flight search and airfare monitoring skill powered by the Travelpayouts and Aviasales API.

A maintenance utility designed to optimize OpenClaw performance by purging accumulated subagent and cron job session records.

Lemma is an AI operating system platform that enables business teams to design, provision, and orchestrate complex AI pods and automated workflows.

A powerful integration for AI agents to query Atlas Obscura for curious locations, hidden gems, and worldbuilding inspiration.

A smart utility that analyzes code changes to generate comprehensive, split-responsibility QA checklists for automated and manual verification.

A comprehensive command-line interface for Sun Yat-sen University students to manage academic schedules, campus bookings, and shuttle services.








































