搜索

PythonReactSEOPDF
OpenClaw

swarm

Cut your LLM costs by 200x. Offload parallel, batch, and research work to Gemini Flash workers instead of burning your expensive primary model.

chair4ce0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install chair4ce/swarm

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Swarm — Cut Your LLM Costs by 200x

Turn your expensive model into an affordable daily driver. Offload the boring stuff to Gemini Flash workers — parallel, batch, research — at a fraction of the cost.

At a Glance

30 tasks via Time Cost
Opus (sequential) ~30s ~$0.50
Swarm (parallel) ~1s ~$0.003

When to Use

Swarm is ideal for:

  • 3+ independent tasks (research, summaries, comparisons)
  • Comparing or researching multiple subjects
  • Multiple URLs to fetch/analyze
  • Batch processing (documents, entities, facts)
  • Complex analysis needing multiple perspectives → use chain

Quick Reference

# Check daemon (do this every session)
swarm status

# Start if not running
swarm start

# Parallel prompts
swarm parallel "What is X?" "What is Y?" "What is Z?"

# Research multiple subjects
swarm research "OpenAI" "Anthropic" "Mistral" --topic "AI safety"

# Discover capabilities
swarm capabilities

Execution Modes

Parallel (v1.0)

N prompts → N workers simultaneously. Best for independent tasks.

swarm parallel "prompt1" "prompt2" "prompt3"
Research (v1.1)

Multi-phase: search → fetch → analyze. Uses Google Search grounding.

swarm research "Buildertrend" "Jobber" --topic "pricing 2026"
Chain (v1.3) — Refinement Pipelines

Data flows through multiple stages, each with a different perspective/filter. Stages run in sequence; tasks within a stage run in parallel.

Stage modes:

  • parallel — N inputs → N workers (same perspective)
  • single — merged input → 1 worker
  • fan-out — 1 input → N workers with DIFFERENT perspectives
  • reduce — N inputs → 1 synthesized output

Auto-chain — describe what you want, get an optimal pipeline:

curl -X POST http://localhost:9999/chain/auto \
  -d '{"task":"Find business opportunities","data":"...market data...","depth":"standard"}'

Manual chain:

swarm chain pipeline.json
#...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/chair4ce/swarm
Version
—
Commit
a09428f2cefa48212ee44857d9023b8704b87eb4
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

🐝 Swarm — Parallel Task Execution for OpenClaw

Version

Turn sequential LLM tasks into parallel operations. 200x cheaper than Opus. Now with live web search.

What is Swarm?

Swarm adds parallel processing to OpenClaw by distributing work across cheap Gemini Flash workers. Instead of burning expensive tokens sequentially, fire 30 tasks in parallel for $0.003.

┌────────────────────────────────────────────────────┐
│              Coordinator (Claude)                   │
│         Orchestration • Memory • Synthesis          │
└─────────────────────┬──────────────────────────────┘
                      │ Task Distribution
    ┌─────────────────┼─────────────────┐
    │                 │                 │
┌───▼───┐        ┌───▼───┐        ┌───▼───┐
│Search │        │ Fetch │        │Analyze│
│Workers│        │Workers│        │Workers│
│(Flash)│        │(Flash)│        │(Flash)│
│  🔍   │        │  📄   │        │  🧠   │
└───────┘        └───────┘        └───────┘
      Optional: Google Search grounding
What's New in v1.2.0
  • 💰 Cost tracking & savings reports — See exactly how much you're saving vs Opus in real-time
  • 🔄 Auto-retry — Failed tasks retry automatically with backoff (skips non-transient errors)
  • ⏱️ Task timeouts — 30s default prevents hung workers from blocking the pool
  • 🧹 Dead code cleanup — Removed 1,300+ lines of unused code
  • 🔍 Web Search Grounding — Workers search the live web via Google Search (Gemini only, no extra cost)
  • 🔒 Security policy — Workers answer research questions while blocking credential exfiltration
Performance
Tasks Sequential (Opus) Swarm (Parallel) Cost Savings
5 ~5s, $0.08 1.5s, $0.0005 160x cheaper
10 ~10s, $0.17 1.5s, $0.001 170x cheaper
30 ~30s, $0.50 ...

来源内容

SKILL.md
# Swarm — Cut Your LLM Costs by 200x

**Turn your expensive model into an affordable daily driver. Offload the boring stuff to Gemini Flash workers — parallel, batch, research — at a fraction of the cost.**

## At a Glance

| 30 tasks via | Time | Cost |
|--------------|------|------|
| Opus (sequential) | ~30s | ~$0.50 |
| Swarm (parallel) | ~1s | ~$0.003 |

## When to Use

Swarm is ideal for:
- **3+ independent tasks** (research, summaries, comparisons)
- **Comparing or researching multiple subjects**
- **Multiple URLs** to fetch/analyze
- **Batch processing** (documents, entities, facts)
- **Complex analysis** needing multiple perspectives → use chain

## Quick Reference

```bash
# Check daemon (do this every session)
swarm status

# Start if not running
swarm start

# Parallel prompts
swarm parallel "What is X?" "What is Y?" "What is Z?"

# Research multiple subjects
swarm research "OpenAI" "Anthropic" "Mistral" --topic "AI safety"

# Discover capabilities
swarm capabilities
```

## Execution Modes

### Parallel (v1.0)
N prompts → N workers simultaneously. Best for independent tasks.

```bash
swarm parallel "prompt1" "prompt2" "prompt3"
```

### Research (v1.1)
Multi-phase: search → fetch → analyze. Uses Google Search grounding.

```bash
swarm research "Buildertrend" "Jobber" --topic "pricing 2026"
```

### Chain (v1.3) — Refinement Pipelines
Data flows through multiple stages, each with a different perspective/filter. Stages run in sequence; tasks within a stage run in parallel.

**Stage modes:**
- `parallel` — N inputs → N workers (same perspective)
- `single` — merged input → 1 worker
- `fan-out` — 1 input → N workers with DIFFERENT perspectives
- `reduce` — N inputs → 1 synthesized output

**Auto-chain** — describe what you want, get an optimal pipeline:
```bash
curl -X POST http://localhost:9999/chain/auto \
  -d '{"task":"Find business opportunities","data":"...market data...","depth":"standard"}'
```

**Manual chain:**
```bash
swarm chain pipeline.json
#...
README
# 🐝 Swarm — Parallel Task Execution for OpenClaw

[![Version](https://img.shields.io/badge/version-1.2.0-blue.svg)](./CHANGELOG.md)

**Turn sequential LLM tasks into parallel operations. 200x cheaper than Opus. Now with live web search.**

## What is Swarm?

Swarm adds parallel processing to [OpenClaw](https://github.com/openclaw/openclaw) by distributing work across cheap Gemini Flash workers. Instead of burning expensive tokens sequentially, fire 30 tasks in parallel for $0.003.

```
┌────────────────────────────────────────────────────┐
│              Coordinator (Claude)                   │
│         Orchestration • Memory • Synthesis          │
└─────────────────────┬──────────────────────────────┘
                      │ Task Distribution
    ┌─────────────────┼─────────────────┐
    │                 │                 │
┌───▼───┐        ┌───▼───┐        ┌───▼───┐
│Search │        │ Fetch │        │Analyze│
│Workers│        │Workers│        │Workers│
│(Flash)│        │(Flash)│        │(Flash)│
│  🔍   │        │  📄   │        │  🧠   │
└───────┘        └───────┘        └───────┘
      Optional: Google Search grounding
```

### What's New in v1.2.0

- 💰 **Cost tracking & savings reports** — See exactly how much you're saving vs Opus in real-time
- 🔄 **Auto-retry** — Failed tasks retry automatically with backoff (skips non-transient errors)
- ⏱️ **Task timeouts** — 30s default prevents hung workers from blocking the pool
- 🧹 **Dead code cleanup** — Removed 1,300+ lines of unused code
- 🔍 **Web Search Grounding** — Workers search the live web via Google Search (Gemini only, no extra cost)
- 🔒 **Security policy** — Workers answer research questions while blocking credential exfiltration

### Performance

| Tasks | Sequential (Opus) | Swarm (Parallel) | Cost Savings |
|-------|-------------------|------------------|--------------|
| 5 | ~5s, $0.08 | **1.5s, $0.0005** | 160x cheaper |
| 10 | ~10s, $0.17 | **1.5s, $0.001** | 170x cheaper |
| 30 | ~30s, $0.50 |...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance