From swarmesh
Posts messages to swarmesh discuss roundtable with @-mentions to trigger replies from participants. Useful for user interventions in CLI-based multi-agent discussions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swarmesh:swarm-chat-msgThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
在 discuss session 里发消息。支持 `@name` 点名——被点名者收到"最近 N 轮对话 + 当前消息"并接话。
在 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 调整npx claudepluginhub soein/swarmesh --plugin swarmeshLists current participants in discuss-mode swarm-chat roundtables for @-mentioning. Useful when users ask 'who's in the discussion', 'list participants', or 'who can I @'.
Sends and receives direct messages between active Claude Code sessions on the same machine. Use for coordinating parallel sessions via dm, broadcast, active checks, and project-scoped messaging.
Sends messages to Telegram/Slack/Discord, system events to agents, and agent invocations via openclaw CLI. For user notifications, broadcasts, agent coordination, and swarmmail.