Use Case
Stop doing repetitive general tools tasks manually. Cleanup Sessions lets your AI agent handle them automatically through natural conversation. Clean up sub-agent sessions and expired backup files that have been terminated and have not been updated for 48 hours, free up disk space and update index files synchronously. This guide shows practical examples of using Cleanup Sessions to automate common general tools workflows and save hours every week.
Install Cleanup Sessions: npx clawhub@latest --dir ~/.claude/skills install cleanup-sessions
Identify the repetitive general tools tasks you want to automate
Describe the task to your AI in plain English
Cleanup Sessions will execute the task and return results directly in the chat
Chain multiple tasks: ask your AI to run a sequence of operations
Copy these prompts and use them with your AI agent after installing Cleanup Sessions
Automate my general tools tasks using Cleanup Sessions
What repetitive tasks can Cleanup Sessions handle for me?
Set up a workflow that runs Cleanup Sessions every morning
Select your agent
Option 1: Install via CLI (recommended)
Recommended (no pre-install needed)
npx clawhub@latest --dir ~/.claude/skills install cleanup-sessionsOr via clawhub CLI (if already installed)
clawhub --dir ~/.claude/skills install cleanup-sessionsβ οΈ Requires Node.js 18+. No Node? Use Option 2 below to download the ZIP instead. Install Node.js β
Option 2: Manual install (no Node required)
Download the ZIP, extract it, and place the folder at the path below. Restart your agent to activate.
Install path
~/.claude/skills/cleanup-sessions/π‘Extract and place the folder at the path above, then restart your agent.