跳到正文
TakoAPI
返回技能列表

agent-swarm

由 runeweaverstudios 提供

Web & Frontend Development
912下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

IMPORTANT: OpenRouter is required.

描述

该技能的功能

Routes incoming tasks to the appropriate AI model via OpenRouter, then delegates execution to a sub-agent through sessions_spawn. Tasks are classified into eight tiers, including code, reasoning, creative, and vision, with configurable primary and fallback models per tier. The orchestrator never answers tasks directly.

Instead of running every task on one expensive model, it classifies work into tiers and selects the cheapest capable model per task, cutting both cost and latency.

何时使用

  • Routing a code debugging request to a dedicated coding model
  • Splitting a mixed task into parallel sub-agents for faster completion
  • Sending screenshot analysis to a vision-capable model automatically
  • Using a cheap fast model for simple status checks to reduce cost
  • Delegating research queries to a search-optimized model

示例工作流

输入

User asks: fix the null pointer bug in auth.py and write release notes

智能体
  1. 1

    Router receives the task and detects two distinct subtasks

  2. 2

    Runs router.py with --multi flag to generate separate spawn configs for CODE and CREATIVE tiers

  3. 3

    Calls sessions_spawn with the CODE-tier model for the bug fix

  4. 4

    Calls sessions_spawn with the CREATIVE-tier model for the release notes

  5. 5

    Returns combined results from both sub-agents to the user

输出

Bug fix applied by code model, release notes written by creative model, both results returned together

前置要求

  • OpenRouter API key configured in OpenClaw platform settings

安装

clawhub install runeweaverstudios/agent-swarm

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接