plugins/ainb-fleet/skills/sequence/SKILL.md
Ordered multi-step prompts to fleet targets, ack-gated between steps via JSONL assistant-turn-end detection. Use for cycles like disconnect→reconnect→verify, or any flow where step N+1 requires step N to have completed first. The skill BLOCKS until each target's transcript shows the next assistant turn finishing OR per-step timeout fires (default 300s).
npx skillsauth add stevengonsalvez/agents-in-a-box ainb-fleet:sequenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
documentation
Report reflect drain spend over a time window — tokens split by cached (cache_read), uncached writes (cache_creation), and io (input+output), with a $ estimate, grouped by day / outcome / model / transcript. Reads the drainer's cost log and surfaces outlier runs and cache-reuse health (the 41.5M-token failure mode = low cache reuse + high cache writes). Use to answer "what is reflection costing me" for the last day / week.
development
Show fleet status — every claude session running on the host, merged across ainb + claude-peers broker + background jobs. Use when you need to enumerate sessions before composing an action, see which sessions have a peer registered (broker-routable) vs tmux-only, check the `summary` of each session, or pipe the list into jq for filtering. Default output: text table. Pass --format json for LLM consumption.
development
Center control panel — enumerate every claude session that is blocked waiting on something: a user answer (AskUserQuestion fired), an API error retry, an idle assistant turn-end with no follow-up, or an explicit WAITING: marker. Returns rich JSON with signal kind + context per session. Use this when you've stepped away from the fleet and want one place to see everything that wants your attention and answer it.
development
Workflow-backed Jarvis control panel. Runs the deterministic `hangar` workflow with verb=needs (discover → enrich → prioritize), renders the Jarvis HUD from its render-ready cards, fires AskUserQuestion per blocked session, and routes each answer back via tmux send-keys (broker fallback only). Requires the workflow gate (CLAUDE_CODE_WORKFLOWS=1). If the gate is off, fall back to the prompt-driven `/ainb-fleet:needs` skill.