Agent Skills
› iii-experimental/agentos
› swarm
swarm
GitHub用于多智能体蜂群协调,支持创建蜂群、广播任务、收集结果及达成共识。通过API接口实现多个Agent间的协作与决策流程。
触发场景
需要多个AI代理协同完成复杂任务
需要通过投票或共识机制做出集体决策
构建分布式智能体系统
安装
npx skills add iii-experimental/agentos --skill swarm -g -y
SKILL.md
Frontmatter
{
"name": "swarm",
"effort": "extended",
"toolScope": [
"Bash",
"Read"
],
"description": "Multi-agent swarm coordination — create swarms, broadcast tasks, reach consensus"
}
Swarm coordination:
- Create:
curl -X POST http://localhost:3111/api/swarm/create -H 'Content-Type: application/json' -d '{"goal": "<goal>", "agents": ["agent1", "agent2"], "strategy": "consensus"}' - Broadcast:
curl -X POST http://localhost:3111/api/swarm/broadcast -H 'Content-Type: application/json' -d '{"swarmId": "<id>", "agentId": "claude-code", "type": "proposal", "content": "<proposal>"}' - Collect:
curl -X POST http://localhost:3111/api/swarm/collect -H 'Content-Type: application/json' -d '{"swarmId": "<id>"}' - Consensus:
curl -X POST http://localhost:3111/api/swarm/consensus -H 'Content-Type: application/json' -d '{"swarmId": "<id>"}'
版本历史
- caca2b4 当前 2026-07-25 09:41


