ContextClaw is a comprehensive session management and cleanup utility designed to optimize storage and analyze token consumption for AI agents.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install contextclaw-usage
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 contextclaw-usage using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
ContextClaw is a specialized plugin for the OpenClaw ecosystem that provides developers with the tools needed to manage the data lifecycle of their AI agents. As one of the more technical Openclaw Skills, it focuses on session analysis, statistics, and storage optimization. It helps users understand their message history and token usage while providing automated ways to clean up temporary or old session data.
The tool acts as a maintenance layer, ensuring that your local environment remains performant by identifying large sessions and orphaned files. It distinguishes between critical main agent sessions and temporary sub-agent sessions, allowing for safe, rule-based pruning without the risk of losing important historical data.
To get started with these Openclaw Skills, install the package via npm and register it as a plugin:
npm install -g @rmruss2022/contextclaw
openclaw plugins install @rmruss2022/contextclaw
Verify the installation and check the current status:
openclaw contextclaw status
ContextClaw organizes and displays data using the following taxonomy:
| Metric | Definition |
|---|---|
| main | Primary agent sessions, protected from automated deletion. |
| cron | Sessions generated by scheduled tasks, also protected. |
| subagent | Temporary sessions created for specific tasks, eligible for pruning. |
| Orphaned | Session files present on disk but missing from the index. |
| Total Tokens | Estimated count where 1 token is approximately 4 characters. |
| Storage | The physical disk footprint of the .jsonl session logs. |
Loading
A real-time activity monitoring plugin for tracking file operations, command executions, and web searches performed by your AI agent.

A powerful command-line interface for managing HelpScout Inbox and Docs APIs, enabling full CRUD operations for conversations, customers, and knowledge base articles.

A CLI utility that grants AI agents and automations their own GitHub App identity for seamless, bot-attributed git and gh operations.

An automated media controller that uses browser automation to manage video playback and DJ duties within Kosmi watch party rooms.

A distributed, git-backed graph issue tracker specifically designed for AI agents to manage complex task dependencies and project state.

A verification and discovery engine for AI agents that provides live A2A agent cards and trust scores for over 40,000 entities.








































