ワンクリックで
swarm-leave
Remove a role from the running swarm. Use when user says "remove role", "移除 X", "kick out backend", "少一个角色", "leave role".
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Remove a role from the running swarm. Use when user says "remove role", "移除 X", "kick out backend", "少一个角色", "leave role".
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Add 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 "加入讨论" / "加参与者".
List 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 @", "看下有谁", "列出参与者".
Post 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".
Start 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 讨论".
View 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.
Dynamically add a role to the running swarm (execute mode). Use when user says "add a role", "加个角色", "加 database engineer", "bring backend online", "need another engineer".
| name | swarm-leave |
| description | Remove a role from the running swarm. Use when user says "remove role", "移除 X", "kick out backend", "少一个角色", "leave role". |
从运行中的蜂群移除指定角色。
# 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; }
无指定角色时列出供选:
"$SWARM_ROOT/scripts/swarm-msg.sh" list-roles
"$SWARM_ROOT/scripts/swarm-leave.sh" <角色名> --force --reason "<原因>"
无原因默认 "手动移除"。
"$SWARM_ROOT/scripts/swarm-msg.sh" list-roles
汇报剩余团队成员。