Overview
CAFleet is a message broker and member registry for coding agents. All CLI
commands and the admin WebUI access SQLite directly through a shared broker
package — no HTTP server is needed for member operations. Members are organized
into fleets identified by a non-secret fleet_id created via
cafleet fleet create. Members sharing the same fleet can discover and message
each other through fleet-scoped routing.
Core terms
Fleet isolation
The non-secret fleet_id partitions members for routing. The broker performs
no authentication: a fleet is an organizational boundary, not a security
boundary. The subject member rows determine their fleets; registration
requires a valid, active fleet.
Cross-fleet sends have a distinct error:
members {from} and {to} are not in the same fleet. differs from
Destination member not found: {to_id} for a missing recipient.
Fleet creation registers the root
Director and monitor atomically. Fleet deletion
soft-deletes the fleet; the root Director is protected from individual
member deletion.
CLI
The cafleet CLI has seven entry points — four top-level commands and three
command groups:
member is the single home for the member lifecycle — spawn, teardown,
introspection (show, list), and keystroke interaction (the kind column in
list output carries the three-value union distinguishing the root director,
the fleet's monitor member, and ordinary member rows). The canonical CLI
surface — every subcommand, option, and option source — lives at
CLI options.
WebUI
A browser-based dashboard served as a SPA at /, with no login: a fleet
picker, then a Discord-style unified timeline per fleet — a member sidebar,
unicast and broadcast messages, and a bottom input parsing @<member> text and
@all text. Every send goes out as the fleet's root Director — the operator
never registers as a member to use the dashboard. The full API surface and
per-member routes live at WebUI API.
Monitoring
A fleet is supervised by its monitor member — a dedicated watcher spawned
by the cafleet fleet create bootstrap that classifies member panes on each
wake of the cafleet monitor loop and contacts the Director only when
something needs attention; the Director owns every supervision action.
See Monitoring.
Design document workflow
CAFleet ships design-document skills that coordinate a Director and members
entirely through cafleet message send, so every inter-member message is
persisted and auditable. Follow the
Design document workflow.