An automated context management tool that prevents token overflows by summarizing long conversation histories into concise, structured snapshots.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install dragon-session-compactor
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 dragon-session-compactor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Session Compactor is a technical utility designed to solve context window saturation in AI coding agents. As conversations grow, token limits often become a bottleneck, leading to lost information or high costs. This skill automatically compresses older messages into a high-density summary while preserving the most recent context. Built with Node.js and requiring no external dependencies, it ensures your AI agent maintains project-wide awareness without hitting performance walls within the Openclaw Skills ecosystem.
To integrate this functionality into your environment for Openclaw Skills, use the following commands:
# Check the current session and token status
node scripts/compact.mjs status
# Manually run the compaction process
node scripts/compact.mjs run
# Force a compaction regardless of thresholds
node scripts/compact.mjs compact --force
# View the history of all compaction operations
node scripts/compact.mjs history
The skill organizes session data within a .clawsession.json file using the following structure:
| Property | Type | Description |
|---|---|---|
version |
Number | The schema version for data compatibility. |
messages |
Array | The active list of user, assistant, and system messages. |
compactionCount |
Number | Total number of times the session has been compressed. |
totalTokens |
Number | The estimated current token count of the session. |
updatedAt |
String | ISO8601 timestamp of the last session update. |
Loading
A professional framework for automating the generation of high-quality, data-driven landing pages at scale using AI-enhanced templates.

Run Gemini CLI as a high-performance headless worker for parallelized AI tasks and reliable fallback automation.

A professional tool for configuring canonical tags, managing 301 redirects, and ensuring HTTPS security to consolidate search engine ranking signals.

An expert framework for optimizing web video content for Google Search, AI Overviews, and rich SERP features through structured data and technical SEO.

A strategic framework for publishing content on high-authority platforms to leverage their domain strength for immediate search rankings and AI citations.

DeepRead Insurance is a high-accuracy AI skill designed to extract structured data from complex insurance documents and redact sensitive PII.








































