sillyhippy/zo-skills/agent-swarm

Claude Code and agent skill by sillyhippy/zo-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Mimics Moonshot AI's Kimi K2.6 Agent Swarm — decompose tasks into parallel sub-agents, coordinate execution via Zo API, and synthesize results. Use for research, batch processing, multi-format output, and any task that decomposes into parallel subtasks. Model-agnostic, framework-native on Zo.

Install

npx vskill@latest install sillyhippy/zo-skills/agent-swarm

SKILL.md

The same SKILL.md was published earlier as sillyhippy/zo-skills/agent-swarm.

Agent Swarm — Zo-Native Multi-Agent Orchestration

Mimics the Kimi K2.6 Agent Swarm architecture using Zo's native /zo/ask API as the sub-agent execution layer. You (the coordinator) decompose a complex task, spawn heterogeneous sub-agents in parallel, and synthesize their outputs — no external orchestration frameworks required.

How It Works

The Kimi Agent Swarm is model-native — the model itself handles orchestration. Since we can't modify the model, we implement the same pattern using a Python coordinator that wraps the Zo API:

┌─────────────────────────────────────────────────────────┐
│ COORDINATOR (you) │
│ 1. Decompose task into subtasks │
│ 2. Classify each subtask by agent type │
│ 3. Spawn sub-agents via Zo API in parallel waves │
│ 4. Monitor progress, handle failures, retry │
│ 5. Synthesize all outputs into final deliverable │
└──────────┬──────────────────────────────────┬───────────┘
│ │
┌──────▼──────┐ ┌──────┐ ┌──────┐ ┌───▼──────────┐
│ Researcher │ │Coder │ │Writer│ │ Analyst │
│ (web search)│ │(code)│ │(prose│ │ (data) │
└──────────────┘ └──────┘ └──────┘ └──────────────┘
│ │ │ │
└───────────────┴─────────┴────────────┘
│
┌────────▼────────┐
│ SYNTHESIZER │
│ Merge outputs │
│ into final doc │
└─────────────────┘

When to Use

  • Parallel research — investigate multiple topics/sources simultaneously
  • Batch processing — process many items with the same logic (classification, enrichment, summarization)
  • Multi-format output — produce reports, code, data, and docs from one prompt
  • Comparative analysis — research competitors, evaluate options, cross-validate findings
  • Deep dives — explore a topic from multiple angles (technical, business, legal, etc.)

Quick Start

bash
# Basic research swarm
python Skills/agent-swarm/scripts/swarm.py \
--task "Research the top 10 competitors in cloud databases. For each: pricing, features, customers, funding. Output structured comparison." \
--agent-types researcher,analyst,writer \
--max-agents 20
# Full-scale swarm with custom output
python Skills/agent-swarm/scripts/swarm.py \
--task-file /home/workspace/my-research-brief.md \
--agent-types researcher,coder,analyst,writer,tester \
--max-agents 100 \
--output-format report,spreadsheet,slides \
--verbose

Agent Types

TypeRoleBest For
researcherWeb search, fact gathering, source verificationCompetitive intel, literature reviews, due diligence
coderCode generation, debugging, optimization, refactoringSoftware engineering, automation scripts
writerProse, documentation, reports, creative contentReports, articles, documentation
analystData analysis, pattern recognition, statisticsFinancial analysis, metrics, trend analysis
testerValidation, edge cases, quality assuranceCode review, fact-checking, consistency validation
generalistAny task type; fallback when specialization unclearGeneral-purpose subtasks

Architecture Details

See references/architecture.md for deep technical documentation on:

  • How Kimi K2.6 Agent Swarm works under the hood
  • How we adapted the pattern for Zo's API constraints
  • State management, failure recovery, and step budgeting
  • Comparison with LangGraph, CrewAI, and other frameworks

Failure Recovery

The swarm handles failures automatically:

  • Agent timeout: 5 min default, configurable per agent type
  • Empty/stale output: detected and retried up to 3 times
  • Coordinator stall: if an agent hangs, its subtask is reassigned
  • Step budget tracking: total steps consumed vs budget, prevents infinite loops

Limitations (Honest)

  • Not model-native: we can't modify the LLM itself, so decomposition quality depends on prompt engineering
  • Concurrency cap: Zo API recommends ~20 concurrent requests; larger swarms use batching
  • Cost: each sub-agent is a full Zo session — budget carefully for large swarms
  • State drift: file-based state can get stale under high concurrency; coordinator enforces serialized merge
  • Orchestration is a black box: sub-agent routing is template-based, not learned
  • No persistent memory: agents start fresh each run (unlike Kimi's persistent contexts)

Scripts

  • scripts/swarm.py — Main coordinator. Decompose, spawn, monitor, synthesize.
  • scripts/swarm_agent.py — Sub-agent runner (called by Zo API). Execute single subtask.

Run python scripts/swarm.py --help for full options.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Refreshed 28 Oct 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sillyhippy/zo-skills/agent-swarm/badge)](https://verified-skill.com/skills/sillyhippy/zo-skills/agent-swarm)

Something wrong with this skill or its page? Tell us.