/swarmesh:swarm-chat-msg runs instead · from swarmesh
Posts a message to a discuss roundtable session with @-mentions to trigger replies from specific participants. Use when the user wants to send a message, @mention someone, or post to a roundtable discussion.
This skill never runs in Claude Code
It ships in swarmesh at skills/, but /swarmesh:swarm-chat-msg (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
在 discuss session 里发消息。支持 @name 点名——被点名者收到"最近 N 轮对话 + 当前消息"并接话。
# 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; }
echo "当前参与者(可 @点名):"
"$SWARM_ROOT/scripts/lib/discuss-relay.sh" list
MODE=$(jq -r '.mode' .swarm/runtime/state.json 2>/dev/null)
[[ "$MODE" == "discuss" ]] || { echo "⚠️ 当前不是 discuss 模式"; exit 1; }
用户输入即消息正文,含 @name 则触发该参与者接话:
@codex @claude 设计 Redis 缓存方案"$SWARM_ROOT/scripts/lib/discuss-relay.sh" post \
--from "user" \
--content "<用户输入的消息正文>"
"$SWARM_ROOT/scripts/lib/discuss-relay.sh" tail --last 20
SWARM_DISCUSS_MAX_TURNS=40 调整What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Three short reads, in order
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-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"./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