/ainb-fleet:sequencefrom ainb-fleet
Sends ordered multi-step prompts to fleet targets with ack-gating. Blocks until each target's assistant turn finishes or timeout fires. For disconnect-reconnect cycles, clear-resume flows, or sequential multi-agent orchestration.
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 N prompts in order. Between steps, wait for every target's next assistant-turn-end before firing the next step.
ainb fleet sequence "step1" "step2" "step3" --all --timeout 300
| arg/flag | purpose |
|---|---|
<steps...> | 1 or more prompts, fired in argv order |
--all | required (v0.1 only supports --all targeting) |
--timeout <seconds> | per-step ack deadline, default 300 |
After each step (except the last):
for each target:
watch ~/.claude/projects/<cwd-slug>/<sid>.jsonl via notify
resolve when next row has:
type == "assistant"
message.stop_reason == "end_turn"
OR timeout fires
This guarantees claude has finished responding to step N before step N+1 lands. The watch runs in parallel across all targets; the next step fires when all targets either acked or timed out.
Disconnect → reconnect cycle:
ainb fleet sequence \
"remote-control disconnect" \
"remote-control" \
--all
Clear → resume:
ainb fleet sequence \
"/clear" \
"continue from where you left off" \
--all
Verify-then-act:
ainb fleet sequence \
"/status" \
"if status shows clean, proceed; otherwise abort" \
--all
~/.claude/projects/ is
unreadable (perms / sandboxing), ack always times out → step N+1
fires after the timeout regardless of actual completion./clear), pass
--timeout 30 to fail fast.Time the run:
time ainb fleet sequence "say hi" "say bye" --all --timeout 30
If elapsed is suspiciously short (< number of round-trips × ~3s), check the JSONL transcripts to see if turn-ends were actually observed — fall-through on timeout looks identical from the outside.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fleet, multi-step, ack-gating, sequence, orchestration, multi-agent
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.
/atcainb-fleet:atcATC (Air Traffic Control) — the single operator-visible fleet supervisor, in
exactly one mode: `lite` (no LLM: deterministic scan, known-transient retry
policy, safety caps, evidence) or `full` (the persistent orchestrating brain).
Full mode is a plain `ainb` session (Claude or Codex) running a generated
policy, woken on a heartbeat (default 15 min) built from the LLM-free `fleet needs`
read — which is itself HOOKS-PRIMARY (event-sourced): ATC learns ASK/WAIT/IDLE
from the materialized `current_state` table, not by scraping panes, with a
tmux fallback for non-Claude agents. `atc setup` installs the global Claude
Code hooks into ~/.claude/settings.json. It auto-clears the safe/blocked
sessions via the fleet verbs (confident ASK → broadcast; ERR → continue within
a retry cap) and escalates the uncertain ones to the phone bridge. Supersedes
the `daemon` skill for managed fleets. Use to provision / inspect / tear down
an ATC instance, or to switch which controller owns the fleet.
/bridgeainb-fleet:bridgeNative phone bridge — relay messages two-way between a chat channel
(Telegram, Slack, and/or Discord) and your ainb sessions. Inbound chat
messages route to a target session (by `name:` prefix, else a conductor-
first default) and are delivered via tmux send-keys; the session's reply is
captured from its JSONL transcript and sent back to the chat. Config lives
in ~/.agents-in-a-box/config/config.toml under [fleet.bridge.*]; tokens
resolve from $ENV / keychain refs and are NEVER passed on argv. Use to run,
install, or check the bridge — this is the channel ATC pages you through.
/broadcastainb-fleet:broadcastFan out a single prompt to selected claude sessions across the fleet.
Use when you need to apply the same instruction (e.g. `/clear`,
`git pull`, `remote-control disconnect`) to many sessions at once.
Routing: tmux send-keys by default (the broker is an opt-in fallback,
toggled via AINB_FLEET_TRANSPORT). Refuses to run without an explicit
targeting flag (--all, --filter <regex>, or --cwd <substring>) — no
implicit fan-out.
/costainb-fleet:costShow fleet spend — per-session, per-model, per-day, and per-group USD
cost rollups for every claude/codex session, sourced live from ainb's
burndown analytics (which already prices every provider call). Use when
you need spend visibility across a multi-session fleet, want to find the
most expensive session/model, or are checking whether any session/group
has crossed a configured budget cap. Budget breaches are also delivered
as notifyd alerts.
Default output: text tables. Pass --format json for LLM consumption.
npx claudepluginhub stevengonsalvez/agents-in-a-box --plugin ainb-fleetOther plugins' skills for the same job