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 response to prevent 100k+ token bloat.

설치
$clawhub install startclaw-optimizer

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

세부 정보

버전
v1.0.2
다운로드
1,909

인기 Skills

Zoho Inventory
Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments. Use this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
AI Persona OS
The complete operating system for OpenClaw agents. Now with 13 Iconic Character souls (Thanos, Deadpool, JARVIS, Mary Poppins, Darth Vader, and more), SOUL.md Maker (deep SOUL.md builder interview), 11 original personality souls, soul blending, and the full soul gallery. Plus: zero-terminal agent-driven setup, quick-start persona presets, in-chat commands, ambient context monitoring, enforced heartbeat protocol (model + version display), traffic-light status indicators, auto-migration, auto-pruning, config validator, version tracking, structured escalation protocol, context protection, security inoculation, shared-channel discipline, team integration, proactive patterns, never-forget protocol, 8 operating rules, and 4 growth loops. One install. Complete system. Built by Jeff J Hunter.
Google Meet
Google Meet API integration with managed OAuth. Create meeting spaces, list conference records, and manage meeting participants. Use this skill when users want to interact with Google Meet. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).