From swarmesh
Stops running swarms (execute or discuss mode) with optional data cleanup via bash scripts. Auto-triggers on 'stop swarm', 'kill all', 'shutdown', etc. Locates swarmesh root, checks status, kills tmux sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swarmesh:swarm-stopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
停止运行中的蜂群(execute 或 discuss 模式皆可)。
停止运行中的蜂群(execute 或 discuss 模式皆可)。
# 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-status.sh"
是否清理运行时数据(messages / tasks / state / events / discuss)?
# 普通停止
"$SWARM_ROOT/scripts/swarm-stop.sh" --force
# 或停止并清理
"$SWARM_ROOT/scripts/swarm-stop.sh" --force --clean
tmux has-session -t "$(jq -r '.session_name' .swarm/runtime/state.json 2>/dev/null || echo swarm)" 2>/dev/null \
&& echo "仍在运行" || echo "已停止"
npx claudepluginhub soein/swarmesh --plugin swarmeshPromotes swarmesh discuss mode conclusions to execute mode: dumps recent conversation to brief.md, closes discuss session, launches full swarm, dispatches to supervisor. Use after phrases like 'promote to execute'.
Stops and removes the ClaudeClaw background service for the current instance. Preserves data while removing the service unit.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.