ainb-fleetsequence

Solid

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).

AI & Automation 18 stars 6 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ainb fleet:sequence Send N prompts in order. Between steps, wait for every target's next assistant-turn-end before firing the next step. ## Run ```bash ainb fleet sequence "step1" "step2" "step3" --all --timeout 300 ``` ## Args | 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 | ## How ack-gating works 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. ## Common flows **Disconnect → reconnect cycle:** ```bash ainb fleet sequence \ "remote-control disconnect" \ "remote-control" \ --all ``` **Clear → resume:** ```bash ainb fleet sequence \ "/clear" \ "continue from where you left off" \ --all ``` **Verify-then-act:** ```bash ainb fleet sequence \ "/status" \ "if status shows clean, proceed; otherwise abort" \ --all ``` ## Caveats - **--all only in v0.1.** Filter/cwd selectors not yet wired for sequence. Workaround: use a wrapper script that builds a filter list then runs per-target sequences. - **Ack detectio...

Details

Author
stevengonsalvez
Repository
stevengonsalvez/agents-in-a-box
Created
1 years ago
Last Updated
today
Language
Rust
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category