/swarmesh:swarm-join runs instead · from swarmesh
Adds a role to a running swarm of Claude Code instances in execute mode. Triggered by phrases like 'add a role' or 'bring backend online'.
This skill never runs in Claude Code
It ships in swarmesh at skills/, but /swarmesh:swarm-join (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
向运行中的蜂群(execute 模式)动态添加新角色。
# 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; }
格式:<角色名> [选项]
database --task "设计用户表"ls "$SWARM_ROOT/config/roles/core/" \
"$SWARM_ROOT/config/roles/quality/" \
"$SWARM_ROOT/config/roles/management/"
有匹配自动用,否则让用户选。
"$SWARM_ROOT/scripts/swarm-join.sh" <角色名> \
--cli "claude code" \
--config <config_path> \
--force \
[--task "任务"]
CLI 选项:claude code / codex chat / gemini
多实例:同角色可多次加入,实例名自动编号(首 = 角色名,后续 角色名-2 ...)。supervisor/inspector 不支持多实例。
"$SWARM_ROOT/scripts/swarm-msg.sh" list-roles
汇报 pane 位置、实例名、当前团队。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swarm-join, dynamic-roles, swarm-management, add-role, multi-agent
13 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-leaveRemove a role from the running swarm. Use when user says "remove role", "移除 X", "kick out backend", "少一个角色", "leave role".npx claudepluginhub soein/swarmesh --plugin swarmeshOther plugins' skills for the same job