docs(recipes): add command-your-fleet recipe and CLI variations to existing recipes
Merged
KI
4mo ago+91+91+01234567890123456789-0-0-0123456789
Summary
- New recipe Command Your Fleet from the CLI (
recipes/command-your-fleet): read every agent's terminal across a project, broadcast a follow-up to all of them, and clean up — three composable shell loops overworkspaces list+terminals list/read/send. - Added "From the CLI" variations to existing recipes: one-paste agent race loop (
race-agents), one-worker-per-slice loop (fan-out-refactor), and a create-and-fire-in-one-pipe automation variant (nightly-audit). - Registered the new page in
meta.jsonafternightly-audit.
Why / Context
The recipes were UI-first (⌘N flows) with almost no CLI presence, while the CLI docs cover commands individually but never compose them. These loops came out of scripting a CLI walkthrough video: the fleet read/broadcast patterns weren't documented anywhere, and the race/fan-out recipes had no copy-paste path for CLI users.
Testing
bun run lintpasses (docs-only change)- The fleet read/broadcast loops were run for real against a local demo project (multiple workspaces, live agent sessions) and produce the documented output; race/fan-out loops use the same verified
workspaces create --agentinvocation
Summary by cubic
Adds the "Command Your Fleet from the CLI" recipe and CLI one-paste variations to race-agents, fan-out-refactor, and nightly-audit. Documents fleet read/broadcast/cleanup loops, now with a note that loops are host-scoped and support --host <id> for remote hosts.
- New Features
- New recipe: Command Your Fleet from the CLI — sweep terminal logs, broadcast follow-ups, and clean up with shell loops using
workspaces list+terminals list/read/send; note host-scoped behavior and remote sweep via--host <id>. - Added "From the CLI" snippets:
- race-agents: start a multi-agent race in one loop
- fan-out-refactor: launch one worker per slice
- nightly-audit: create and run an automation in one pipe
- Registered the new page in
meta.json.
- New recipe: Command Your Fleet from the CLI — sweep terminal logs, broadcast follow-ups, and clean up with shell loops using
Summary by CodeRabbit
- Documentation
- Added a recipe for managing multiple agent workspaces, including viewing output, sending follow-up instructions, deleting workspaces, filtering fleets, targeting hosts, and monitoring agents.
- Added examples for running parallel migration refactors across separate workspaces and branches.
- Added a nightly audit automation workflow with JSON output and immediate execution.
- Added a workflow for launching multiple agents from a shared prompt.
- Updated documentation navigation to include the new fleet management recipe.