← 返回
数据分析 中文

StartClaw-Optimizer

Master optimization system - APPLIES TO EVERY RESPONSE. Before responding, classify task complexity (simple question vs analysis vs coding). Use Haiku for simple/navigation/extraction/status. Use Sonnet ONLY for writing/analysis/planning/debugging. Monitor context size - if >50k tokens, recommend /compact. For automations, use scheduler wrapper. Never load full conversation history for simple tasks. Heartbeats always Haiku, single-line only. Never use Opus. This skill MUST run before every respo
主控优化系统 - 适用于每个响应。分类任务复杂度(简单问题/分析/编码)。简单/导航/提取/状态使用Haiku,仅写作/分析/规划/调试使用Sonnet。监控上下文大小,超过5万token推荐使用/compact。自动化使用调度器包装器。简单任务不加载完整对话历史。心跳仅用Haiku单行,从不用Opus。此技能必须在每次响应前运行,防止超过10万token膨胀。
idanmann10
数据分析 clawhub v1.0.2 1 版本 99865.4 Key: 无需
★ 1
Stars
📥 2,947
下载
💾 232
安装
1
版本
#latest

概述

OpenClaw Optimizer Skill

Overview

The OpenClaw Optimizer is a comprehensive performance and cost optimization skill designed to enhance the efficiency of Clawdbot's subagent workflows.

Core Components

1. Task Router

  • Intelligent model selection based on task complexity
  • Automatic routing between Haiku, Sonnet, and Opus models
  • Cost prediction and optimization

2. Scheduler

  • Robust task execution with retry mechanism
  • Configurable preflight and postflight hooks
  • Timeout and exponential backoff handling

3. Browser Governor

  • Browser tab serialization
  • Concurrent tab management
  • Circuit breaker for preventing runaway processes

4. Context Compaction

  • Automatic token tracking
  • Summarization at 50,000 token threshold
  • Preserves critical context

5. Real-time Dashboard

  • Monitor daily budget
  • Track task execution
  • Visualize model distribution
  • Circuit breaker status

Expected Savings

Before Optimization: $90/day

After Optimization: $3-5/day

Savings: 95%

Installation

npm install @startclaw/openclaw-optimizer

Usage

const { TaskRouter, OptimizerScheduler, BrowserGovernor } = require('@startclaw/openclaw-optimizer');

const router = new TaskRouter();
const scheduler = new OptimizerScheduler();
const browserGovernor = new BrowserGovernor();

// Automatic model and cost optimization
const modelSelection = router.selectModel(taskDescription);
await scheduler.execute(task, modelSelection);

Monitoring

# Real-time dashboard
python3 scripts/dashboard.py watch

License

StartClaw Internal Use License

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-28 12:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,611
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,096
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,175