/swarmesh:swarm-task runs instead · from swarmesh
Dispatches tasks to a swarm (multi-agent system) — defaults to supervisor for auto-orchestration or targets a specific role. Reads human inbox when called without arguments. Use for delegating and monitoring agent tasks.
This skill never runs in Claude Code
It ships in swarmesh at skills/, but /swarmesh:swarm-task (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
向蜂群派发高层任务。默认发给 supervisor(自动拆解/派发/监控)。
⚠️ 仅 execute 模式可用。 discuss 模式用 $swarm-chat-msg。
# Locate swarmesh plugin root (优先 $SWARM_ROOT env)
if [[ -z "${SWARM_ROOT:-}" || ! -d "$SWARM_ROOT/scripts" ]]; then
SWARM_ROOT=$(find "$HOME/.codex/plugins/cache" -type d -name scripts 2>/dev/null \
| grep -E '/swarmesh/[^/]+/scripts$' | head -1 | sed 's|/scripts$||')
fi
[[ -n "${SWARM_ROOT:-}" && -d "$SWARM_ROOT/scripts" ]] || { echo "⚠ 未找到 swarmesh plugin root,请 export SWARM_ROOT=/path/to/swarmesh"; exit 1; }
MODE=$(jq -r '.mode // "execute"' .swarm/runtime/state.json 2>/dev/null)
非 execute 时提示先 $swarm-stop 再 $swarm-start --mode execute,或改用 $swarm-chat-msg。
<任务描述> → 发给 supervisor<角色名> <任务描述> → 发给指定角色jq -r '.panes[].role' .swarm/runtime/state.json 2>/dev/null
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" send <目标角色> "<任务内容>"
for i in $(seq 1 40); do
RESULT=$(SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" read 2>/dev/null)
if [[ "$RESULT" != *"没有新消息"* ]]; then
echo "$RESULT"; break
fi
sleep 15
done
10 分钟无消息提示用户:再跑 $swarm-task(无参数)看最新 / 跑 $swarm-status。
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" read 2>/dev/null
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" list-tasks --all 2>/dev/null
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" reply <msg-id> "<回复>"
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" send <role> "<消息>"
SWARM_ROLE=human "$SWARM_ROOT/scripts/swarm-msg.sh" set-limit <新上限>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swarm, task-dispatch, multi-agent, orchestration, human-inbox
npx claudepluginhub soein/swarmesh --plugin swarmesh13 skills in this plugin
/swarm-chatStart a discuss-mode roundtable with multiple AI CLIs (Codex/Claude/Gemini) in a single tmux session. Use when user asks to "discuss X with multiple AIs", "start a roundtable", "brainstorm with other CLIs", "start multi-AI conversation", or mentions "discuss 模式" / "圆桌讨论" / "多 AI 讨论"./swarm-chat-addAdd a new AI CLI participant to an ongoing discuss-mode roundtable. Use when user asks to "add another AI", "bring in claude/gemini/codex", "add participant to discussion", or mentions "加入讨论" / "加参与者"./swarm-chat-listList current participants of the discuss-mode roundtable (show who can be @-mentioned). Use when user asks "who's in the discussion", "list participants", "who can I @", "看下有谁", "列出参与者"./swarm-chat-msgPost a message to the discuss roundtable with @-mentions to trigger replies. Use when user wants to "send message to discussion", "@mention a participant", "post to roundtable", "触发 CLI 接话", "发消息", or says "@xxx 讨论 X"./swarm-chat-tailView recent N turns of discuss session history from jsonl (without tmux attach). Use when user asks to "show discussion history", "what did they say", "回看讨论", "看下讨论历史", or needs to catch up on recent conversation./swarm-joinDynamically add a role to the running swarm (execute mode). Use when user says "add a role", "加个角色", "加 database engineer", "bring backend online", "need another engineer".Other plugins' skills for the same job