← 返回
效率工具 中文

Optimize Context

Automatically monitors and optimizes conversation context to prevent prompt size errors by extracting key points and clearing excess history.
自动监控和优化对话上下文,防止提示尺寸超限,提取关键点并清除冗余历史。
blackworm
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 2,167
下载
💾 58
安装
1
版本
#latest

概述

Context Optimizer & Task Processing Skills Package

Overview

This package contains two powerful OpenClaw skills for automated context management:

  1. Context Optimizer - Automatically optimizes conversation context to prevent "prompt too large" errors
  2. Task Processor - Handles large tasks by automatically splitting them into smaller subtasks

Files Included

  • skills/context-optimizer/ - Main skill directory with all implementation files
  • commands/optimize-context.js - Command handler for context optimization
  • commands/optimize-context.json - Command configuration for context optimization
  • commands/process-task.js - Command handler for processing large tasks
  • commands/process-task.json - Command configuration for task processing
  • systems/context-monitor.js - Background context monitoring system
  • systems/context-monitor-config.json - Configuration for context monitoring
  • task_processing_config.json - Global task processing configuration

Installation Instructions

  1. Extract this package to your OpenClaw workspace:

```bash

cd ~/.openclaw/workspace

tar -xzf /path/to/context-optimizer-skill.tar.gz

```

  1. Install dependencies (if any are needed):

```bash

cd ~/.openclaw/workspace/skills/context-optimizer

npm install

```

  1. The skills should now be available in your OpenClaw system with:
    • /optimize-context command for manual context optimization
    • /process-task command for handling large tasks with automatic splitting

Features

Context Optimizer

  • Automatically monitors conversation length
  • Triggers optimization when message count exceeds thresholds
  • Extracts key points and facts while clearing old context
  • Prevents "prompt too large" errors

Task Processor

  • Detects large tasks that exceed token limits
  • Automatically splits large tasks into smaller subtasks
  • Processes subtasks sequentially while maintaining context
  • Integrates with context optimization to prevent overflow

Automatic Monitoring

  • Continuous background monitoring of context length
  • Configurable thresholds for automatic optimization
  • Seamless integration with normal conversation flow

Configuration

  • Adjust settings in task_processing_config.json
  • Modify thresholds for message counts and token limits
  • Configure timing for automatic optimization triggers

The skills are ready to use immediately after installation!

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 16:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

PROMPT INJECTION PROTECTION

blackworm
通过清洗、验证和安全处理来自网站、邮件和文档的不可信外部内容,防止提示注入攻击。
★ 2 📥 1,251
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,846
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,370