← 返回 Skills 市场
ad2546

Context Optimizer

作者 ad2546 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
7912
总下载
15
收藏
59
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context-optimizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context-optimizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug context-optimizer
版本 1.0.0
许可证
累计安装 270
当前安装数 59
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 7912 次。

如何安装 Context Optimizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context-optimizer」即可一键安装,无需额外配置。

Context Optimizer 是免费的吗?

是的,Context Optimizer 完全免费(开源免费),可自由下载、安装和使用。

Context Optimizer 支持哪些平台?

Context Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context Optimizer?

由 ad2546(@ad2546)开发并维护,当前版本 v1.0.0。

💬 留言讨论