A utility for removing stale or ghost subagent sessions from the OpenClaw webchat sidebar to maintain a clean workspace.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install sayba-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 sayba-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 is a specialized maintenance utility designed to manage the lifecycle of subagent sessions within the OpenClaw environment. Over time, the webchat sidebar can become cluttered with ghost sessions—entries that persist in the UI even after their underlying transcript files have been removed or the task is finished. This tool automates the process of pruning the session index, ensuring your interface remains relevant and high-performing.
Integrating Openclaw Skills like this one is critical for developers who manage multiple concurrent subagents. By targeting the sessions.json index, the skill allows for precise removal of specific agent entries or a complete purge of subagent history, which is essential for maintaining a focused development environment and avoiding UI lag caused by session bloat.
To utilize this feature among your Openclaw Skills, ensure you have the script available in your local agent directory and execute the following commands:
# Basic cleanup of stale sessions
python3 scripts/cleanup_sessions.py
# To preview changes without deleting
python3 scripts/cleanup_sessions.py --dry-run
After running the cleanup, you must restart the gateway for the UI to refresh:
openclaw gateway restart
The skill manages metadata within the OpenClaw directory structure to ensure UI synchronization.
| Data Component | Path / Detail |
|---|---|
| Session Index | ~/.openclaw/agents/<agent>/sessions/sessions.json |
| Transcript Files | Local .jsonl files stored in the agent's session directory |
| Target Filter | Supports filtering by specific agent names via the --agent flag |
Loading
A multi-platform automation tool designed to synchronize video and image-text publishing across major social media networks through a secure local browser interface.

A decentralized identity framework that enables AI agents to create self-sovereign identities and link them to human owners via the Billions Network.

A specialized tool for extracting nested comment replies and threaded discussions from TikTok posts.

A specialized scraper that converts GitHub's trending repository pages into clean, actionable JSON data without requiring an API key.

A professional-grade intelligent trading assistant dedicated to providing real-time data and strategic analysis for the Chinese A-share market.

A production-ready framework for managing multi-agent teams with defined roles, structured task lifecycles, and rigorous handoff protocols.








































