← 返回
开发者工具 中文

Speckit Swarm

Orchestrates complex tasks by detecting keywords, decomposing work into parallel chunks, and coordinating multiple specialized agent personas for full execut...
通过关键词检测、任务分解为并行块,并协调多个专业代理角色,完成复杂任务的整体执行。
heldinhow
开发者工具 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 672
下载
💾 6
安装
1
版本
#latest

概述

Speckit Swarm - Agent Orchestration System

Overview

Native implementation of oh-my-opencode-style orchestration using OpenClaw's tools.

Architecture

Core Components

  1. Ultrawork Detector - Detects "ulw"/"ultrawork" keywords and triggers parallel execution
  2. Agent Personas - Specialized system prompts for different tasks
  3. Task Planner - Breaks complex tasks into parallel chunks
  4. Continuation Enforcer - Ensures tasks complete fully

File Structure

skills/speckit-swarm/
├── SKILL.md                      # This file
├── src/
│   ├── ultrawork.ts              # Ultrawork detection & trigger
│   ├── personas/
│   │   ├── mod.ts               # Persona exports
│   │   ├── sisyphus.ts          # Main orchestrator
│   │   ├── hephaestus.ts        # Deep worker
│   │   ├── oracle.ts            # Design/debug
│   │   ├── librarian.ts         # Research/docs
│   │   └── explore.ts            # Fast scout
│   ├── planner.ts               # Task decomposition
│   └── index.ts                 # Main entry

Usage

Manual Mode

# Use personas directly
sessions_spawn task:"..." model:"minimax-m2.5" thinking:"high"

Ultrawork Mode

When user includes "ulw" or "ultrawork":

  1. Detect keyword
  2. Decompose task into parallel chunks
  3. Execute with parallel_spawn
  4. Aggregate results

Personas

Sisyphus (Main Orchestrator)

  • Model: minimax-m2.5
  • Thinking: high
  • Behavior: Relentless execution, parallel coordination, todo tracking

Hephaestus (Deep Worker)

  • Model: minimax-m2.5
  • Thinking: high
  • Behavior: Autonomous execution, no hand-holding, completes full scope

Oracle (Design/Debug)

  • Model: minimax-m2.5
  • Thinking: high
  • Behavior: Architecture decisions, bug hunting, code review

Librarian (Research)

  • Model: minimax-m2.1
  • Thinking: medium
  • Behavior: Docs lookup, code exploration, pattern finding

Explore (Scout)

  • Model: minimax-m2.5-highspeed
  • Thinking: low
  • Behavior: Fast grep, file finding, quick analysis

How to Use

1. Direct Persona Usage

import { PERSONAS, buildTaskPrompt } from './speckit-swarm';

const persona = PERSONAS.hephaestus;
const task = "Fix the login bug in auth.ts";

sessions_spawn({
  task: buildTaskPrompt({ task, persona: 'hephaestus' }),
  model: persona.config.model,
  thinking: persona.config.thinking
});

2. Ultrawork Mode (auto-detected)

When user includes "ulw" or "ultrawork":

import { planTask, shouldUseUltrawork } from './speckit-swarm';

const task = "ulw refactor the auth module";
if (shouldUseUltrawork(task)) {
  const plan = planTask(task);
  // Execute plan.chunks with parallel_spawn
}

3. Task Decomposition

import { planTask } from './speckit-swarm';

const plan = planTask("Create a new API endpoint");
// plan.chunks = [{ label: 'spec', ... }, { label: 'setup', ... }, ...]

Ultrawork Handler

O handler detecta "ulw" automaticamente e prepara tarefas para parallel_spawn.

Funções Exportadas

// Verifica se contém keyword ulw
containsUltrawork(task: string): boolean

// Limpa o prefixo ulw da tarefa
cleanUltraworkTask(task: string): string

// Prepara execução ultrawork
prepareUltrawork(task: string): {
  shouldExecute: boolean;
  chunks: Array<{
    label: string;
    task: string;
    model?: string;
    thinking?: string;
  }>;
  cleanedTask: string;
}

Exemplo de Uso

// Na minha resposta, quando receber mensagem com "ulw":

const ultrawork = prepareUltrawork("ulw create a new API");

if (ultrawork.shouldExecute) {
  // Executar com parallel_spawn
  parallel_spawn({
    tasks: ultrawork.chunks,
    wait: "all"
  });
}

Como Eu Detecto e Executo

Análise de Segurança de Concorrência

Antes de paralelizar, verifico se não há conflitos:

Tipo de TarefaEstratégia
----------------------------
Criar novo projeto/CLI/APIPARALLEL
Múltiplos arquivos novosPARALLEL
Refatorar móduloCAUTIOUS (verifica dependências)
Corrigir bugSEQUENTIAL
Editar mesmo arquivoSEQUENTIAL
Tarefa simplesSINGLE

Fluxo de Decisão

  1. Analiso complexidade - É uma tarefa grande?
  2. Verifico conflitos - Vai mexer no mesmo arquivo?
  3. Decido estratégia - parallel / sequential / single

Isso evita problemas de concorrência quando múltiplos agentes tentam modificar o mesmo arquivo.

Exemplo de Uso

// Detecção automática
const result = prepareParallelExecution("criar um novo CLI");
// result.shouldExecute = true (detectou complexidade)

if (result.shouldExecute) {
  parallel_spawn({
    tasks: result.chunks,
    wait: "all"
  });
}

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-29 07:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,816
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,307
ai-intelligence

Freeride Opencode

heldinhow
{"answer":"配置优化OpenCode Zen免费模型,为子任务、心跳和定时任务提供智能回退。用于设置高性价比AI模型路由及免费模型自动故障转移。"}
★ 1 📥 1,335