clawpressor

Community

Slash session tokens and extend OpenClaw runtime.

Authorwjlmrzd
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill reduces OpenClaw session size and token consumption by compressing older conversation history into concise summaries, preserving immediate context while restoring performance and lowering API costs.

Core Features & Use Cases

  • Preserves the most recent messages (default: 5) and summarizes older messages using NLP (Sumy LexRank) to produce a single compact system message.
  • Creates a .backup before applying changes, supports restore, logs compression statistics locally, and can optionally update a Google Sheet for tracking.
  • Use case: Run periodically or when sessions exceed size thresholds to prevent slowdowns, reduce token billing, and extend session lifetime without losing essential context.

Quick Start

Run the compressor in dry-run mode to preview changes by executing python3 skills/clawpressor/scripts/compress.py --dry-run.

Dependency Matrix

Required Modules

sumynltkgoogle-authgoogle-api-python-client

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: clawpressor
Download link: https://github.com/wjlmrzd/OpenClaw-Wren/archive/main.zip#clawpressor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.