← Back to Skills Marketplace
ad2546

Context Optimizer

by ad2546 · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
7912
Downloads
15
Stars
59
Active Installs
1
Versions
Install in OpenClaw
/install context-optimizer
Description
Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat.
Usage Guidance
Install only if you are comfortable with conversation content being archived locally. Set an appropriate archive path, retention size, and file permissions; disable archive or chat logging for sensitive work; review retrieved archive context before high-stakes use; and double-check paths before running any rm -rf uninstall commands.
Capability Analysis
Type: OpenClaw Skill Name: context-optimizer Version: 1.0.0 The OpenClaw AgentSkills skill 'context-optimizer' is designed for advanced context management, including token counting, semantic analysis via embeddings, and a local archive system. Its dependencies (`tiktoken`, `@xenova/transformers`) and file system operations (`fs.mkdir`, `fs.readFile`, `fs.writeFile`, `fs.unlink` for a local archive) are directly aligned with its stated purpose. The `@xenova/transformers` library performs a justified network call to download ML models locally on first use. Installation instructions in `SKILL.md` and `INSTALL.md` are standard `npm install` commands. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts against the agent with harmful objectives.
Capability Assessment
Purpose & Capability
The stated purpose is context optimization with token counting, pruning, semantic retrieval, and local archiving; those capabilities match the package code and documentation.
Instruction Scope
Runtime behavior includes automatic compaction, local archive retrieval, and chat/console logging. Reintroducing archived snippets as system-role messages is high-trust behavior, but it is tied to the advertised memory feature rather than hidden or unrelated capability.
Install Mechanism
Installation uses standard npm dependency installation. No install-time persistence, obfuscation, privilege escalation, postinstall script, or hidden command execution was evident.
Credentials
Filesystem access and first-use model downloads are proportionate to local archiving and semantic search. The archive may contain private conversation text and is not encrypted by default.
Persistence & Privilege
The skill intentionally writes archived messages to a configurable local archive directory with size cleanup and clear/archive functions. Persistence is disclosed and purpose-aligned, but enabled by default in the main configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context-optimizer
  3. After installation, invoke the skill by name or use /context-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of context-optimizer (v1.0.0): - Advanced context management optimized for DeepSeek’s 64k context window. - Auto-compaction with multiple strategies: semantic, temporal, extractive, and adaptive. - Dynamic, query-aware context selection using relevance scoring and relevance decay. - Hierarchical memory system with context archive for selective long-term storage and retrieval. - Real-time context health monitoring and optimization event logging to chat. - Flexible configuration options for thresholds, strategies, logging format, and archive behavior.
Metadata
Slug context-optimizer
Version 1.0.0
License
All-time Installs 270
Active Installs 59
Total Versions 1
Frequently Asked Questions

What is Context Optimizer?

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat. It is an AI Agent Skill for Claude Code / OpenClaw, with 7912 downloads so far.

How do I install Context Optimizer?

Run "/install context-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Context Optimizer free?

Yes, Context Optimizer is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Context Optimizer support?

Context Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Context Optimizer?

It is built and maintained by ad2546 (@ad2546); the current version is v1.0.0.

💬 Comments