{"slug": "fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives", "title": "Fleetlayer: Multi-Machine Agent Orchestration and the Missing Primitives", "summary": "A developer built Fleetlayer, a framework for orchestrating Claude Code and Codex agents across multiple machines, adding primitives for cross-machine message routing, shared browser access via a Playwright MCP server, distributed artifact hosting, and per-account usage tracking. The framework uses a hub-and-spoke daemon architecture with per-agent state kept on its host machine, so offline machines make their agents unreachable with no failover or state migration. The developer notes that the MCP server must be network-accessible and that Fleetlayer does not document authentication for it, leaving tunnel security to the user.", "body_md": "Running one Claude Code session on your laptop is straightforward. Running ten agents across three machines, each signed into different accounts, is where the plumbing breaks. Fleetlayer is a framework that addresses the infrastructure gap when you scale agent execution beyond a single host. It provides primitives for cross-machine messaging, shared browser session access, distributed artifact hosting, and account-level usage tracking.\n\nThe core problem: agents on different machines cannot coordinate without custom glue. An agent on your VPS cannot message one on your laptop. A server-side agent cannot control the Chrome instance on your Mac. Artifacts created in one Claude account return \"access denied\" when another session tries to read them. Fleetlayer exposes these as first-class operations.\n\nFleetlayer organizes agents into a **fleet**, a named collection of machines running the Fleetlayer daemon. Each machine hosts one or more agents, identified by a handle like `api@laptop` or `triage@mail`. The daemon maintains a persistent connection to a central coordination service (the architecture suggests a hub-and-spoke model, not peer-to-peer gossip).\n\n**Message routing** works through explicit addressing:\n\n```\nfleetlayer msg send --to api@laptop \"staging deploy is done\"\n```\n\nThis delivers a text payload to the `api@laptop` agent, which is a Claude Code session running on the `laptop` machine. The daemon on `laptop` injects the message into the agent's context, likely as a system message or tool call result.\n\n**State persistence** is handled per-agent. Each agent's session state (conversation history, tool call results, file references) lives on its host machine. The framework does not replicate state across machines. If a machine goes offline, its agents become unreachable until the daemon reconnects. There is no automatic failover or state migration.\n\n**Resource limits** are enforced at the account level, not the fleet level. Fleetlayer tracks usage for each Claude account across all machines. When an account hits its rate limit, all agents using that account stop, regardless of which machine they run on. This is visible in the fleet status output:\n\n```\nlaptop (macbook, online)\n  api@laptop claude working\n  docs@laptop codex idle\nmail (home-server, online)\n  triage@mail claude idle\n```\n\nOne of the more interesting primitives is **shared browser access**. An agent running on a headless VPS can control the Chrome instance on your Mac, signed in with your credentials. This is implemented using the Playwright MCP server.\n\nThe flow:\n\nThis solves the \"artifacts say access denied\" problem. If an agent creates a Claude artifact while signed into account A, another agent can view it by controlling a browser session already signed into account A, even if that browser runs on a different machine.\n\n**Security boundary**: The MCP server must be network-accessible, which means exposing it over a tunnel (WireGuard, Tailscale) or opening a port. Fleetlayer does not document authentication for the MCP connection. You are responsible for securing the tunnel.\n\nFleetlayer provides a local web server for hosting agent-generated artifacts. Agents write HTML, CSS, and JavaScript into a folder structure. The daemon serves these as static sites, accessible at `http://localhost:<port>/<artifact-name>`.\n\n**Cross-account access** is handled by a single sign-in. You authenticate once to the Fleetlayer web UI, and all artifacts from all agents become accessible. This avoids the \"sign in and out of the Claude extension\" problem.\n\n**Deployment shape**: The web server runs on the same machine as the daemon. If you want artifacts accessible from outside your local network, you need a reverse proxy (Caddy, nginx) or a tunnel. The framework does not include built-in TLS or domain management.\n\nThe `fleetlayer fleet` command shows the current state of all machines and agents:\n\n**Usage tracking** is per-account, not per-agent. If you have three agents using the same Claude account, their combined usage counts against the account's limit. The framework surfaces this in the fleet status, so you know when an account is close to exhaustion before a task fails.\n\n**Distributed tracing** is not mentioned. There is no indication of structured logs, trace IDs, or span propagation across machines. If an agent on machine A sends a message that triggers work on machine B, you will need to correlate logs manually.\n\n| Failure Scenario | Behavior | Recovery Mechanism | \n|---|---|---|\n| Machine goes offline | Agents on that machine become unreachable | Manual restart of daemon | \n| Account hits rate limit | All agents using that account stop | Wait for limit reset, visible in fleet status | \n| Message delivery fails | No retry or dead-letter queue mentioned | Likely lost, manual resend required | \n| Browser session expires | Agent cannot complete browser-based tasks | Manual re-authentication in Chrome | \n| Daemon crash | All agents on that machine stop | Systemd or manual restart, no state recovery | \n\nThe framework does not provide automatic retries, circuit breakers, or graceful degradation. If a machine loses network connectivity, its agents are unavailable until the daemon reconnects. If the central coordination service goes down, the entire fleet stops.\n\n``` python\nimport subprocess\n\ndef notify_agent(target_agent: str, message: str):\n    \"\"\"Send a message to an agent on another machine.\"\"\"\n    result = subprocess.run(\n        [\"fleetlayer\", \"msg\", \"send\", \"--to\", target_agent, message],\n        capture_output=True,\n        text=True\n    )\n    if result.returncode != 0:\n        raise RuntimeError(f\"Message delivery failed: {result.stderr}\")\n    return result.stdout\n\n# Example: notify the API agent on the laptop that staging is ready\nnotify_agent(\"api@laptop\", \"staging deploy complete, run smoke tests\")\n```\n\nThis is a thin wrapper around the CLI. The framework does not expose a Python SDK or gRPC API. All orchestration happens through shell commands.\n\n**Installation**: Each machine runs the Fleetlayer daemon as a background service. You configure it with a list of agents (name, type, account) and connection details for the central coordination service.\n\n**Account management**: You sign into each Claude account once per machine. The daemon stores session tokens and refreshes them automatically. If a token expires, you must re-authenticate manually.\n\n**Network topology**: The daemon requires outbound connectivity to the coordination service. If you run agents on a home server behind NAT, you need a tunnel or port forwarding. The framework does not include NAT traversal.\n\n**Cost model**: Fleetlayer is source-available. The coordination service is hosted by the Fleetlayer team. Pricing is not documented on the site. You are responsible for the cost of Claude API usage across all accounts.\n\n**Good fit**:\n\n**Poor fit**:\n\nFleetlayer solves a real coordination problem: making agents on different machines and accounts work together without custom infrastructure. The messaging primitive is useful, and shared browser access is clever. But the framework is early. There is no retry logic, no distributed state management, and no observability beyond a status command. If a machine goes down, you lose all agents on it. If the coordination service goes down, the entire fleet stops.\n\nUse it if you are already running agents on multiple machines and spending time on SSH tunnels and manual message passing. Avoid it if you need production-grade reliability, automatic recovery, or fine-grained resource control. The plumbing is functional but minimal.", "url": "https://wpnews.pro/news/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives", "canonical_source": "https://dev.to/mech_app_ai/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives-31k9", "published_at": "2026-11-28 20:06:17+00:00", "updated_at": "2026-11-28 20:14:50.538164+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "mlops"], "entities": ["Fleetlayer", "Claude Code", "Codex", "Playwright", "Anthropic", "OpenAI"], "also_reported_by": [], "takeaway": "Fleetlayer adds cross-machine agent messaging, shared Playwright MCP browser control, static artifact hosting, and per-account usage tracking, but leaves MCP authentication undocumented and requires you to secure the tunnel yourself.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives", "markdown": "https://wpnews.pro/news/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives.md", "text": "https://wpnews.pro/news/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives.txt", "jsonld": "https://wpnews.pro/news/fleetlayer-multi-machine-agent-orchestration-and-the-missing-primitives.jsonld"}}