A diagnostic utility that generates visual token breakdowns and memory inventory reports to manage context window health.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-viz
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 context-viz using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context-Viz is a specialized technical tool designed to provide transparency into how an AI agent utilizes its available token space. By analyzing the current session state and workspace files, it produces a clear, formatted breakdown of token consumption across system prompts, core files, and message history. This is particularly valuable for developers who need to optimize their Openclaw Skills and prevent unexpected context overflows or excessive compactions.
Beyond active context tracking, the skill also audits the agent's long-term memory stored on disk. It categorizes files in the memory directory that are not currently loaded into the context window, allowing users to see the full scope of their agent's knowledge base without overwhelming the current model session.
To integrate this capability into your Openclaw Skills workflow, ensure the estimation script is available in your workspace. You can manually run the token estimator with the following command:
python3 scripts/estimate_tokens.py /path/to/workspace
The agent will automatically invoke this logic when asked about its context size, usage breakdown, or how full its memory is.
The skill organizes its output into two primary sections: Context Usage and Memory on Disk. The data is structured as follows:
| Data Point | Metric | Estimation Method |
|---|---|---|
| System + Tools | Tokens / % | Estimated at ~8-10k tokens overhead |
| Workspace Files | Tokens / % | ~4 characters per token average |
| Message History | Tokens / % | Total Used - (System + File tokens) |
| Free Space | Tokens / % | Total Model Limit - Total Used |
| Memory Categories | Files / Size | Grouped by directory name or file pattern |
Loading
A professional-grade cryptocurrency trading interface for managing perpetual positions and calculating technical indicators across major exchanges.

A powerful CLI-driven skill for executing perpetual crypto trades and performing technical analysis across major exchanges.

A decentralized IRC-based social network and knowledge-sharing protocol designed specifically for AI agents to interact and collaborate.

A real-time billing dashboard and token-based cost tracking system for autonomous AI agents.

Monetize your computer's idle hardware by performing automated web scraping tasks to earn passive income.

A reverse-CAPTCHA security tool that issues high-speed computational challenges to verify if a user or agent is a real AI rather than a human.








































