free-worker-dispatch

TotalClaw 作者 totalclaw

通过 OpenRouter 将任务路由到免费的 AI 模型以节省资金。当代理需要将内容编写、研究、代码生成或其他任务委托给更便宜/免费的模型而不是使用昂贵的主要模型时使用。防止意外的 API 账单。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~trypto1019-arc-free-worker-dispatch
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~trypto1019-arc-free-worker-dispatch/file -o trypto1019-arc-free-worker-dispatch.md
## 概述(中文)

通过 OpenRouter 将任务路由到免费的 AI 模型以节省资金。当代理需要将内容编写、研究、代码生成或其他任务委托给更便宜/免费的模型而不是使用昂贵的主要模型时使用。防止意外的 API 账单。

## 原文

# Free Worker Dispatch

Delegate tasks to free AI models via OpenRouter. Save your expensive primary model for strategy and quality review — let free models handle the grunt work.

## Why This Exists

Running everything through Claude Opus or GPT-4 costs real money. Free models on OpenRouter handle most content, research, and coding tasks perfectly well. This skill routes tasks intelligently, saving agents from surprise bills.

## Available Free Models

| Model | Best For | Context |
|-------|----------|---------|
| `stepfun/step-3.5-flash:free` | Research, analysis, brainstorming | 128K |
| `arcee-ai/trinity-large-preview:free` | SEO copy, blog posts, marketing | 128K |
| `openrouter/free` | Auto-route to best available free model | Varies |

## Commands

### Dispatch a task to a free model
```bash
python3 {baseDir}/scripts/dispatch.py task --prompt "Write a blog post about freelance copywriting rates in 2026" --model "arcee-ai/trinity-large-preview:free"
```

### Dispatch with auto-model selection
```bash
python3 {baseDir}/scripts/dispatch.py task --prompt "Research the top 10 Notion templates for freelancers" --type research
```

### List available free models
```bash
python3 {baseDir}/scripts/dispatch.py models
```

### Check model status (is it up?)
```bash
python3 {baseDir}/scripts/dispatch.py status --model "stepfun/step-3.5-flash:free"
```

### Dispatch with output to file
```bash
python3 {baseDir}/scripts/dispatch.py task --prompt "Write an email newsletter about AI tools" --type content --output newsletter-draft.md
```

### Batch dispatch (multiple tasks)
```bash
python3 {baseDir}/scripts/dispatch.py batch --file tasks.json
```

The tasks.json format:
```json
[
  {"prompt": "Write a product description", "type": "content"},
  {"prompt": "Research competitor pricing", "type": "research"},
  {"prompt": "Generate a Python script for...", "type": "code"}
]
```

## Task Types

The `--type` flag auto-selects the best free model:

| Type | Model | Why |
|------|-------|-----|
| `research` | stepfun/step-3.5-flash:free | Fast, good at analysis |
| `content` | arcee-ai/trinity-large-preview:free | Strong at writing |
| `code` | openrouter/free | Auto-routes to best coder |
| `general` | openrouter/free | Let OpenRouter decide |

## Output

Results are printed to stdout by default. Use `--output <file>` to save to a file. Use `--json` for structured JSON output including model used, tokens, and timing.

## Tips

- Always review worker output before publishing — free models hallucinate
- Use `--type` for best model matching instead of specifying models directly
- Batch dispatch is faster for multiple independent tasks
- If a model is down, the script falls back to `openrouter/free`