Advanced context management for DeepSeek models featuring auto-compaction and dynamic relevance-based optimization.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-optimizer
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-optimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Pruner is a sophisticated context management engine designed specifically to handle the demands of Large Language Models, with specialized optimization for the DeepSeek 64k token window. By implementing intelligent compaction strategies and dynamic relevance scoring, it ensures that AI agents maintain high performance and logical consistency without hitting hard context limits. This tool is essential for developers building complex Openclaw Skills that require long-running conversations, extensive data processing, or high-fidelity memory management.
The skill provides a robust framework for adaptive pruning, utilizing semantic deduplication to remove redundant information while preserving high-priority system messages. Whether you are building an autonomous research agent or a coding assistant, integrating this into your Openclaw Skills workflow ensures that token overhead is minimized and context health is monitored in real-time.
To integrate this functionality into your Openclaw Skills environment, navigate to the skill directory and install the necessary peer dependencies:
cd ~/.clawdbot/skills/context-pruner && npm install tiktoken @xenova/transformers
Add the skill to your configuration file:
skills:
context-pruner:
enabled: true
config:
contextLimit: 64000
autoPrune: true
The skill organizes its internal logic and archival system using the following schema:
| Parameter | Type | Description |
|---|---|---|
| contextLimit | Number | The maximum token window (default: 64000 for DeepSeek) |
| archivePath | String | Local directory for storing the hierarchical memory archive |
| strategies | Array | List of active strategies: semantic, temporal, extractive, or adaptive |
| relevanceDecay | Float | The rate at which older message relevance scores decrease (0.0 to 1.0) |
| logToChat | Boolean | Determines if optimization events are reported in the chat interface |
Loading
A sophisticated text processing skill that identifies and removes AI-generated signatures to transform robotic LLM output into natural human writing.

A professional-grade thermal and gliding weather forecast tool using an 11-parameter scoring engine to predict soaring conditions.

A sophisticated memory layer that tracks user preferences, goals, and boundaries to provide highly personalized AI interactions over time.

Omarchy provides a comprehensive suite of system wrappers and operating guardrails to ensure AI agents manage local environments using safe, native workflows.

An interactive configuration guide for setting up secure API credentials and environment variables for the OpenMM trading framework.

An automated grid trading engine for OpenMM that executes buy and sell orders around a center price to capture market volatility.








































