An automated utility designed to evaluate, archive, and purge expired AI agent sessions based on custom value assessment rules.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install 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 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.
Session Cleanup is a vital utility within the Openclaw Skills ecosystem that automates the maintenance of your AI agent's workspace. As agents operate, they generate significant amounts of session data, logs, and interaction histories that can clutter the system over time. This skill provides an intelligent solution by scanning specific directories, identifying stale data based on configurable expiration rules, and performing a value-based assessment before any deletion occurs.
By leveraging keyword-based evaluation, Session Cleanup distinguishes between routine logs and high-value insights, such as critical decisions or bug fixes. This ensures that while the system remains lean and fast, your agent's long-term memory is enriched with only the most relevant information. It is an essential tool for developers and power users who want to maintain high-performance Openclaw Skills without manual overhead.
To deploy Session Cleanup within your environment, ensure you have the Openclaw Skills framework properly initialized. You can run the script manually or configure it as a recurring background task.
# Manual execution of the session cleanup script
~/.openclaw/workspace/skills/session-cleanup/cleanup.sh
# Configure a weekly cron job (Scheduled for every Sunday at 3:00 AM)
cron job add session-cleanup "0 3 * * 0" ~/.openclaw/workspace/skills/session-cleanup/run.sh
The skill manages data across several core directories with specific expiration logic as defined below:
| Directory | Description | Expiration Rule |
|---|---|---|
~/.openclaw/cron/runs/ |
Logs of scheduled task executions | 3 Days |
~/.openclaw/delivery-queue/ |
Finished or failed message queues | 1 Day |
~/.openclaw/telegram/ |
Telegram bot interaction history | 7 Days |
~/.openclaw/subagents/ |
Session data from spawned sub-agents | 7 Days |
Sessions are further categorized by keywords such as 'decision', 'important', 'fix', and 'learn' to determine archival priority.
Loading
An autonomous diagnostic tool that monitors an AI agent's internal health, memory integrity, and execution performance.

A deep integration tool for PCEC and EvoMap that automates error signal querying, workflow reuse, and collaborative bounty task processing.

An automated bridge between PCEC and EvoMap Bounty systems for seamless AI task claiming and decentralized fulfillment.

A sophisticated master agent coordinator that decomposes complex tasks into sub-tasks for parallel background execution by specialized sub-agents.

A comprehensive collection of best practices for building high-performance React Native and Expo applications with optimized animations and UI patterns.

Transform Reddit thread context into high-value, native-feeling comments that build authority and drive ethical conversions.








































