/ainb-fleet:broadcastfrom ainb-fleet
Broadcasts a single prompt to multiple Claude sessions across a fleet using tmux or a broker. Requires explicit targeting flags to prevent accidental fan-out.
Ships in ainb-fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Send one prompt to selected sessions. Mandatory targeting flag.
ainb fleet broadcast "<prompt>" --all # every running session
ainb fleet broadcast "<prompt>" --filter "<regex>" # match tmux/workspace name
ainb fleet broadcast "<prompt>" --cwd "<substring>" # match cwd
| flag | matches against |
|---|---|
--all | every session in ainb fleet standup |
--filter <regex> | regex against tmux_session OR workspace_name |
--cwd <substring> | substring against cwd |
If none provided, the command exits with broadcast requires --all, --filter <regex>, or --cwd <substring> — by design, to prevent
accidental fan-out.
ainb fleet broadcast — sent to N target(s)
✓ <name> via tmux <tmux_session>
✓ <name> via broker peer <peer_id>
✗ <name>: <reason>
✓ via tmux = sent via tmux send-keys -l (literal mode, works for any
tmux pane regardless of peer state) — this is the default path.
✓ via broker = sent through claude-peers HTTP — only seen when a target
has no live tmux pane (or AINB_FLEET_TRANSPORT=peers is set).
Controlled by AINB_FLEET_TRANSPORT (default tmux-first). For each target:
Default (tmux-first):
tmux_session and tmux says it exists → tmux send-keys -l.peer_id and broker is healthy → POST /send-message to broker.Failed { reason: "no live tmux session and no reachable broker peer" }.tmux-only: step 1 only; never touches the broker. Failure reason notes
(transport=tmux-only).
peers / broker (legacy): the old order — broker first, tmux fallback.
Cycle a specific app:
ainb fleet broadcast "/clear" --filter "shotclubhouse"
Pull latest in every active worktree:
ainb fleet broadcast "git pull" --cwd "/agents-in-a-box/worktrees/"
Universal reset:
ainb fleet broadcast "/exit" --all # careful — quits everything
tmux send-keys -l uses literal mode → shell metacharacters in the
prompt are safe (no injection).For each target, tail the JSONL transcript:
ls -t ~/.claude/projects/<cwd-slug>/*.jsonl | head -1 | xargs grep "<prompt-text>"
(<cwd-slug> = replace / with - in the target's cwd.)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/ainb-fleetFleet orchestration overview — the `ainb fleet ...` Rust subcommand
namespace for driving every claude session on the host. Routes to the
sub-skills (ainb-spawn / standup / broadcast / sequence / needs / daemon / atc).
Invoke this for an at-a-glance map of what fleet can do; reach for the
specific sub-skill for the verb you want.
/ainb-spawnainb-fleet:ainb-spawnSpawn a coding-agent session correctly with `ainb run`: always into a git
worktree, never bare into a plain checkout. Use whenever you are about to
start a Claude/Codex/Gemini/Copilot session in a terminal. Guards the
invocations that silently produce a `(broken)` workspace row, two agents
sharing one working tree, a `--parent` flag that never fires, or a teardown
that cancels itself and leaks the session.
/atcnpx claudepluginhub stevengonsalvez/agents-in-a-box --plugin ainb-fleetOther plugins' skills for the same job