Create and manage a fleet
Run several agents from one console. Each has its own config, chats, memory, and stores; the hub starts and stops local members and routes you to their consoles. Model connections and optional commons can be shared across the box.
Create an agent in the console
- Open Settings → Fleet and start the new-agent flow.
- Choose Basic for a minimal agent, or an archetype for a particular job.
- Name it and fill in any required configuration. For Project Manager, register a coding delegate first; see Build with a coding agent.
- Create it, then open its console from the fleet roster. Send a small prompt to confirm its model connection works.
The console creates the workspace and carries the hub's model configuration by default. If the agent cannot start, inspect the roster's error and verify its model connection and required tools.

Quick start
For an installed package with a running hub:
protoagent fleet new scratch
protoagent fleet ls
protoagent fleetThe new member inherits the hub's model connections by default. Open it from the roster and send a small prompt. In a source checkout, replace protoagent with uv run python -m server. Use CLI management for flags and offline workspace creation; use Build with a coding agent for a Project Manager's required inputs.
What the box shares with every member
Members share the hub's box settings and model connections. Delegates marked Share with fleet also stay shared, including credential updates; edit them from the hub's Settings → Delegates. Chats and private stores stay separate. See Run multiple instances for box and instance boundaries.
Fleet components
| Primitive | What it is | ADR |
|---|---|---|
| Workspace | a named agent — its own config, secrets, plugins, scoped data, port | 0041 |
| Bundle | a curated, pinned set of plugins installed as one | 0040 |
| Archetype | a starter agent type in the new-agent picker — a persona plus an optional bundle; the shipped catalog plus any installed bundle that declares one. Ships in an archetype repo (cowork-archetype, engineer-archetype, …; the old "stack" term is retired) | 0100 |
| Tiered stores | per-agent private data + an opt-in shared commons | 0041 |
| Supervisor | run agents as persistent background processes (start/stop/status) | 0042 |
| Unified console | one slug-routed console that hot-swaps between running agents (per-agent layout/theme) | 0042 |
| Fleet deck | the same fleet in a terminal — roster, conversations, parked questions, management, every hub on the box (guide) | 0075 |
Workspaces — a named, isolated agent
A workspace is an agent's instance root. Its config and secrets live in config/, installed plugins in plugins/, and its lock at plugins.lock; private stores also live beneath that root. The supervisor launches it with PROTOAGENT_HOME pointing there and PROTOAGENT_INSTANCE identifying the member. It inherits the hub's box root for shared settings and commons. See Run multiple instances.
workspace new <name> [--from <cfg>] [--bundle <url>] [--input KEY=VALUE …] [--soul FILE] [--port auto] [--shared-skills]
workspace ls
workspace run <name> # foreground: execs the normal server, env wired in
workspace rm <name> [--purge] # --purge also deletes its scoped data--from <dir> clones an existing agent's config + secrets (re-stamping identity/instance); --bundle <url> installs a bundle into it (next section); --port auto picks a port that is free and that no member of any instance on this machine records — ports are machine-wide, and a stopped member of another instance still owns its port (the pick and its record happen under one machine-wide lock, so two hubs creating members at once cannot collide). --input KEY=VALUE (repeatable, core ≥ 0.146, #2977) answers a bundle's config_inputs prompts — the required ones must be answered or the create is refused, a KEY=VALUE without = is a usage error, and a type: delegate answer is copied from the host config (the CLI runs inside the host) without inheriting the host model. --soul FILE writes the persona the picker would have seeded; without it the workspace has no persona, and the CLI never records an archetype's capability contract. The picker and POST /api/fleet do all of that in one step (PM setup).
Unlike the CLI path, the new-agent picker and POST /api/fleet default to inherit_config: true: they carry the host's effective model and provider registry plus nonblank secrets from the model/provider namespaces. protoAgent-owned OAuth is shared from the box store; an older instance-local store is transferred there, never copied. Promotion refuses a conflicting box login or a residual local override marked disconnected instead of choosing a credential silently. Set inherit_config: false for no model/provider-secret inheritance and no legacy OAuth transfer; an existing box OAuth store remains host-shared.
Bundles & archetypes — start from a type
An archetype supplies a persona and, optionally, a bundle of plugins. Choose its card, review What's included, then enter a name and the required Configure answers. The Advanced section holds optional MCP inputs, secrets, and persona. Back keeps the answers while you choose another type.
The picker combines the shipped catalog with archetypes declared by installed bundles. Installing a bundle with an archetype: block adds its starter type. For manifests, catalog overrides, installation, updates, and publishing, see Bundles and ADR 0100.
The Technical Writer archetype
Choose Technical Writer to write and maintain documentation for a codebase. Supply a local checkout during setup, or give it a repository from chat. Start with a task such as “write a first-run tutorial” or “audit the operator guides for stale commands and missing recovery steps.”
It grounds claims in code, tracks multi-section work, and uses separate skills for writing, audits, navigation, media planning, and verification. Say whether you want findings only, implemented edits, or delivery through a PR/merge. Repository access, command approvals, and hosting credentials still apply. See the skill pack for examples and the bundle for setup requirements.
The Engineer archetype — a navigator, not a solver
Choose Engineer for guided repository onboarding and debugging on your machine. It asks you to form a hypothesis and make the change, then helps check the result; it edits or commits only when asked. The bundle includes a terminal view and read-only GitHub access. Configure its starting checkout and GitHub write access when creating it. See the Engineer skill pack for the procedures and coding agents to delegate implementation.
Tiered stores — private by default, share what should be shared
Chats, tasks, and other instance stores are private. Skills and knowledge can optionally use a shared commons: scoped reads and writes private data, shared reads and writes commons, and layered reads both but writes privately.
Use Skills and Knowledge reference for configuration and promotion. Run multiple instances explains the box and instance roots. Share a store only when all participating agents should be able to read it.
The supervisor — agents in the background
Run the fleet as persistent background processes — ADR 0042:
python -m server fleet up [names…] # start agents — all workspaces, or named
python -m server fleet ls # ● running / ○ stopped + port + pid
python -m server fleet down [names…] # stop agentsEach agent is an ordinary headless server (--ui none) on its workspace's port, tracked in a fleet.json registry. Because each agent's chat history is scoped to its own checkpoints, a stopped agent's session resumes when you restart it — and a running one keeps its background work (schedules, an in-flight loop) going while you're elsewhere.
Deploying a team — config-as-code (fleet.autostart)
To restart existing members when the hub boots, set their ids or display names:
fleet:
autostart: [cindi, matt]Alternatively, set PROTOAGENT_FLEET_AUTOSTART=cindi,matt. Already-running members are skipped; missing workspaces and failed starts are logged without blocking boot. This is hub-only and does not create missing members after a volume wipe.
Autostart restores processes. A plugin running a persistent job must also resume its work on boot.
For container deployment, use Docker config seeds. PROTOAGENT_SEED_CONFIG and PROTOAGENT_SEED_SOUL seed the first boot; PROTOAGENT_SEED_MERGE=1 applies later config seeds while preserving operator edits. See Operate a fleet for rollout and recovery.
The unified console — every agent in one UI
Use the topbar to switch agents or open agents in separate windows. Each window keeps its agent's chat, theme, and layout. Opening a stopped local agent resumes it from its checkpoint; New agent opens the archetype picker.
Open Settings → Fleet to create, start, stop, rename, or remove members. Discover finds protoAgents on this machine and your tailnet, and on the LAN when mDNS is enabled. mDNS is off by default; enable mDNS discovery under Network & ports to advertise and browse LAN agents. This does not affect the local roster, which reads your members from disk.
For quick start/stop controls, press ⌘⇧K → Fleet Room. Only other local members have these controls; the host, remote members, and the agent serving your current window do not. See Command palette.
Fleet settings are hub-only. The topbar dropdown's Fleet settings item is enabled on the host window (and on a standalone instance — that's where you create your first member); in a member window it renders disabled with a tooltip pointing you at the host instance. That covers both a member's slug window and a spawned workspace member opened directly on its own port — the member self-reports member: true on its own GET /api/fleet host entry (its instance root carries the workspace.yaml spawn marker). A remote member opened at its own URL stays enabled on purpose: it's an independent instance that may run its own fleet, and registration is one-sided on the hub.
Remote fleet members — the agent there, the UI here
(ADR 0042 §I.) A fleet member doesn't have to be local: register any reachable protoAgent by URL and it becomes a switchable member — a slug window like any peer, with the hub reverse-proxying its console + A2A. The remote runs fully headless; this console is its UI. The end-to-end walkthrough (making the remote reachable, pairing it by code, revoking, the auth badges and delegating through the hub) is Pair a remote fleet member.
On the other machine:
A2A_AUTH_TOKEN=<secret> python -m server --port 7871 --host 0.0.0.0 --ui noneOn this one — Settings → Fleet → Discover → Pair… on the found row (see Pairing below), ➕ Add to this fleet for an open remote with no token, or register manually with a pasted token (the stored token is attached by the proxy; the browser never sees it):
curl -X POST http://127.0.0.1:7871/api/fleet/remotes \
-H 'content-type: application/json' \
-d '{"name": "ava", "url": "http://100.101.189.45:7871", "token": "<secret>"}'Pairing instead of pasting a token (ADR 0113). Rather than handing the hub the remote's shared bearer, have the remote's operator generate a pairing code on it (Settings ▸ Devices) and claim it from the hub:
protoagent fleet pair http://100.101.189.45:7871 <code> [--name ava]
# or: curl -X POST http://127.0.0.1:7871/api/fleet/remotes/pair \
# -H 'content-type: application/json' -d '{"url": "http://100.101.189.45:7871", "code": "<code>"}'In the console (ADR 0113): on the remote, Settings ▸ Devices ▸ Pair an agent shows a code like 7KQ2M-X9D4P, a 5-minute countdown and the addresses it's reachable on (tailnet first). If the remote only listens on localhost, the same "Allow devices on my network" step the phone flow uses comes first. On the hub, Pair… on a discovered row (or Pair by URL…) takes the code; Re-pair on a remote member's row does the same for a member whose token was revoked. The row then shows the token's health: token rejected — re-pair, not paired (no token stored), open — no token needed (the remote answers without one) or a quiet paired. Paired hubs appear in the remote's Devices list badged Agent and are revoked there like any device. Plain http:// to an address that is neither loopback nor tailnet asks you to confirm sending the code and token unencrypted (ADR 0113 D10) — prefer the tailnet address or https://. The Devices section is still behind the settings.devices developer flag until the desktop-app check in ADR 0113 D8.
The hub redeems the code against the remote's POST /api/pairing/claim and stores the per-device token it gets back. The remote lists the hub as <hub name> (fleet hub) in its Devices and can revoke it on its own. What happens next depends on the URL:
- The URL is already a member. Its token is replaced in place: this is the re-pair after a revoke. If the old token still works, the device it was issued for is revoked on the remote, so re-pairing doesn't pile up live operator devices there.
- The URL is new. The member is added, named after the remote's agent card (with
-2,-3… added if that name is taken). An explicit--namethat is already taken is refused before the single-use code is spent.
A wrong or expired code is a 400. A remote that is unreachable, or doesn't reply the way a protoAgent that supports pairing would, is a 502.
Cleartext needs an explicit yes (ADR 0113 D10). A pairing code, and the token it turns into, cross plain http:// without asking only when the address is safe:
- loopback;
- a tailnet:
100.64.0.0/10, Tailscale's IPv6 range, or a*.ts.netMagicDNS name. A tailnet is WireGuard-encrypted underneath.
Any other name is judged by the addresses it resolves to at pairing time; every one of them must be safe. Plain http:// to anything else is refused with a 400 that names the fix: use the remote's tailnet address or https://. To proceed anyway on a network you trust, opt in with allow_insecure: true on the API, or --insecure-http on the CLI (the same flag that allows a plain-http --hub).
The same rule applies when a token is being stored by "Add a remote by URL" or by an edit. Registering an address with no token sends nothing, so it is never gated. This doesn't make LAN pairing safe. It makes it a decision the operator takes knowingly. TLS on the remote is the real fix.
The URL is the agent's base URL: scheme://host[:port]. Scheme and host are lowercased and a default port (:80 / :443) is dropped, so two spellings of one remote are one member. A path, query, fragment or user:pass@ is refused. That includes a phone pairing link (…/app/#pair=…): use the base URL with an agent code instead.
A token never follows a moved URL. If a remote's URL is edited to a different scheme, host or port without a new token in the same edit, the stored token is cleared, and the answer says token_cleared: true. The token was issued by the old host, and the hub won't present it to a different one. Pair again, or pass a token with the edit.
Token health. When a remote has a stored token, the hub checks it with GET /api/devices on the remote, every 30s and at once after an add, edit or pair. It first asks without the token, and reports auth on the member:
auth | Meaning |
|---|---|
ok | The remote requires auth, and the token passes. |
rejected | 401/403 with the token: it was revoked or is wrong. Re-pair. |
open | The remote answered without any token. Its auth is off, so the token can't be verified, and anyone who can reach it can drive it. |
unknown | No verdict yet, or an older remote without that route. |
none | No token is stored. |
Remote members show a remote tag + their URL in the fleet manager; running is a cached reachability probe. You can't start/stop/rename them from here — their deployment owns their lifecycle; Remove only unregisters (the remote agent is untouched). Registering as a member and adding as a delegate_to target compose: the same agent can be both a window you operate and a delegate your agents call.
"Add as delegate" on a remote routes through the hub (ADR 0113 D4). A remote's advertised A2A endpoint (the roster's a2a field, which "Add as delegate" wires) is the hub's own loopback proxy, http://127.0.0.1:<hub-port>/agents/<remote-id>/a2a, not the remote's URL (that stays in url). The delegate carries no token: on loopback it presents the fleet service token, the hub accepts it, and the proxy swaps in the remote's stored token. So the remote's credential lives in exactly one place — this fleet row — and re-pairing or editing its token fixes the window and every delegate at once; it never leaves the hub's machine. A remote with no stored token is proxied with no credential at all (the hub never forwards its fleet token off the box), so a secured one answers 401 and the delegate's error tells you to pair it. Local members can use the same URL (they hold the fleet token too), so it also works as a fleet-shared delegate. In the console, the fleet row's link button writes exactly that URL, so it is enabled only in the hub's window or a local member's (both on the hub's machine); in a remote member's window it is disabled with the reason, since 127.0.0.1 there is the remote itself. The link button on a discovered row pairs first, then links the new member the same way.
Live views (WebSockets) work on a remote too — the terminal, agent_browser's viewport — as long as the remote was registered with a token (ADR 0113 D6, #3648). The hub still never lends that token on its own. A socket that presents your operator bearer (?token=) has it checked at the hub and swapped for the stored one. An open hub (no token of its own) has nothing to check it against, so it never swaps. A ticket-based socket (the ticket is minted over the authenticated HTTP proxy) reaches the remote with no credential attached, and the remote checks the ticket. Any other presented credential is closed with 1008, and so is a browser page on a foreign origin: the console's own origin, the desktop app and A2A_ALLOWED_ORIGINS are let through. A remote registered without a token gets no WebSocket proxying at all, because its sockets would be a blind pipe into an open instance. The hub doesn't read what a plugin sends inside the socket, so remote terminal views need terminal-plugin ≥0.9.2. Older versions sent the console's bearer in-band when minting a ticket failed.
An open hub only proxies a remote for its own console (#3662). On a hub with no token of its own (the desktop default on loopback) every caller is operator, so the hub lends a remote's stored token to whatever reaches /agents/<remote>/…. CORS stops a web page in your browser from reading the answer, not from sending a form POST there, and a DNS-rebinding page (an attacker's name that resolves to 127.0.0.1) is even same-origin with the hub. So for a remote member on an open hub, the proxy refuses with 403 before contacting the remote:
- a request with
Sec-Fetch-Site: cross-site, unless it carries a trustedOrigin, is a GET navigation (a link, the desktop app's plugin-view iframe), is a GET media load (an image, audio, video, subtitle track or font, like the desktop chat's pictures from a remote), or has a trustedReferer; - a request whose
Originis not the hub's own origin, the desktop app (tauri://localhost,http://tauri.localhost) or inA2A_ALLOWED_ORIGINS; - a request (or WebSocket) whose
Hostisn't a name this hub is served under: IP literals,localhost,*.ts.net, this machine's<name>.localmDNS name, a named bind, the hosts ofA2A_ALLOWED_ORIGINS, orPROTOAGENT_TRUSTED_HOSTS. If you front an open hub with a reverse proxy that forwards its own public name, add that name there.
curl, scripts and the delegate_to path send neither header and pass. Local members and the host skip the Origin and Fetch Metadata checks, and a token-gated hub skips all of them. Its credential is a header, never a cookie, so a foreign or rebound page has nothing to attach. The Host check isn't specific to this proxy: an open instance applies it to every path (Security & trust).
Version skew is flagged. The hub console drives a remote's full /api/* by proxy, so a remote on a different protoAgent release is a real compat surface. The reachability probe also reads the remote's app version off its A2A agent card; when it differs from the hub's, the fleet manager shows a warning badge on that member ("remote runs vX.Y.Z, the hub vA.B.C — features may misbehave"). Upgrade the lagging side to clear it.
Fleet diagnostics — let an agent read a member without touching it
(ADR 0071 · #3170.) A managing agent can inspect a fleet member's health without any runtime control: the fleet_diagnostics tool reads a member's recent logs and one exact task by id, and nothing else. It is off by default — turn it on with a single config knob:
tools:
fleet_diagnostics:
enabled: true # default: false — binds the read-only fleet-diagnostics tool(Settings ▸ Tools ▸ Expose fleet diagnostics to the model.) What the tool can and cannot do, by design:
- Read-only, two reads.
read="logs"returns a bounded tail of a member's recent log lines;read="task"returns one exact A2A task by id. There is no path to start/stop a member, resume or answer a task, mutate a checkpoint, prompt a human (HITL), or change any configuration — a mutation request comes back as a structured refusal, never an action. - Roster-only addressing. The target is resolved exclusively through the configured fleet roster (the same host + local-peer + remote members every console surface reads). The agent names a member by display name or id; there is no parameter — and no code path — that accepts a host, port, or URL, so the model can never point it at anything the hub does not already own. An unknown member is a refusal.
- Bounded and secret-redacted, on success and error. Every read is line/field-capped and secret-redacted at the tool's own boundary (defense in depth over the member's own bounding), and a stopped / unreachable / slow member or a missing task id returns a compact structured
{"ok": false, "error": …}rather than a stack trace or an unbounded dump.
Exposing it to a foreign operator-MCP client. The operator-MCP read-onlyprofile lists fleet_diagnostics as a candidate so a foreign client (Claude Desktop, Cursor, an ACP sidecar) can receive this read-only capability. But profile membership never enables the tool by itself — the tools.fleet_diagnostics.enabled gate above remains the sole authority on whether the tool is bound at all. With the gate off, the tool is absent from every surface — the local model's toolset, the resolver, the /api/mcp/exposed discovery route, and the ACP sidecar — regardless of the selected profile.
Fleet-wide reads for the hub agent
(ADR 0135 D8 · #5534.) The same tools.fleet_diagnostics.enabled gate also binds two argument-free, read-only tools on the hub (they are not bound inside a workspace member):
fleet_status— one row per roster member:running,healthy/health,failed_checksandhealth_changed_at(the supervisor's own health record, refreshed on each status read;unknownwhen it has none or the refresh fails),version,model, and counts of pending decisions and waiting tasks.fleet_pending— each member's pending decisions and its tasks in thewaitingstate.
Status uses the supervisor's existing health sweep off the event loop. One failed probe reports health: "failing" (healthy: false, with the run length in failed_checks) for that observation; the member becomes wedged or down only at the supervisor's failure threshold (three checks in a row, or fleet.health.failure_threshold once the health loop has run), the same rule the health loop and the fleet:member_health watch check use, because all three share one set of health records. The timestamp stays unchanged until the health state changes. This read does not restart members or send alerts. The host itself and intentionally stopped members have no supervisor health record.
Members are listed by their unique id, so two members with the same display name stay two rows. A member that cannot be read is reported (reachable: false / status: "unreachable") and the call still answers for the rest; a count that could not be read is null, never 0. Member text is redacted and bounded like fleet_diagnostics output (tool_truncated marks a trim). Neither tool is bound for a federation peer or an unclassified remote caller.
See also
- ADRs: 0040 bundles · 0041 workspaces & tiered stores · 0042 fleet supervisor & unified console · 0072 fleet seed / team-via-config
- Guides: deploy with Docker · delegates · multi-instance scoping · plugins · install & publish plugins · skills · operating a fleet (health, rollout, triage, recovery) · the fleet deck (a terminal for the fleet)