Skip to main content

How My Homelab Agent Fleet Coordinates Work Across Machines

Knowing how the fleet works is not the same as the fleet knowing, and the gap shows up as duplicated work.

Lovell Felix 8 min read

For a while, my agent setup was coordinated in the way a lot of personal systems are coordinated: technically functional, but only because I still held the whole picture in my head.

The Mac was the obvious front door. It ran the orchestrator, answered general requests, and fanned work out to remote agents when a task was a better fit for the homelab. Behind it, I had a small Proxmox fleet doing narrower jobs on a schedule. One agent watched homelab health, certificates, storage, and dotfiles from LXC 246. Another handled backup verification from LXC 247. An ai-hub container on LXC 245 held shared operator tooling like kubectl and Flux access. Everything was reachable, everything was useful, and none of it had a durable shared view of what the others were doing.

That was fine right up until the system started being busy enough that I could not reliably reconstruct its state from memory. Once there were 3 hosts, 8 scheduled jobs, on-demand delegation over A2A, and a general assistant on my laptop trying to make sensible decisions in the middle of all that, "I know how it works" stopped being the same thing as "the fleet knows how it works."

The real coordination problem had nothing to do with intelligence; it came down to inventory, timing, and trust.

The request-and-response side already existed. The Mac orchestrator could delegate over A2A to remote agents when I asked for something specific. If I wanted a backup check, it could talk to the backup agent. If I wanted a quick read on the homelab, it could ask the monitoring side. That part looked like a normal control plane: a central entry point, named remote workers, and a protocol for handing work around.

The part that was missing lived outside that conversation loop. The remote agents were also running their own scheduled work. They had managed jobs that happened at particular times whether or not the Mac had asked for them. From the orchestrator's point of view, that work was almost invisible. It could ask an agent what it knew right now, but it had no shared board showing what that agent usually did, what had already run today, or whether a piece of maintenance was already in flight somewhere else.

That is the kind of gap that stays small until it creates waste. A local assistant proposes a check that already runs remotely every morning. A status summary leaves out the job that actually matters because that job was scheduled, not delegated. You end up with a fleet that can talk across machines but still coordinates like a handful of shell scripts.

I started by writing down the fleet exactly as it existed instead of the way I had been informally describing it. The Mac orchestrator listened on 127.0.0.1:8010. The remote agents on 10.0.10.46 and 10.0.10.47 also served on port 8010. The ai-hub host on 10.0.10.45 was not another assistant persona so much as shared operational ground: common tooling, a place to centralize context, and eventually a place to host a very small write-side service. Those numbers matter because coordination failures are usually embarrassingly concrete. In my case, one of the helper scripts was still checking port 3000 from an older assumption even though the running fleet had standardized on 8010. The system was not confused in an abstract architectural way. It was confused in a one-line, wrong-port way.

There was a second, more interesting mismatch between design and reality. I had documentation describing a lean-ctx team hub pattern that sounded more complete than the installed runtime actually was. In the docs, the idea looked clean: shared task coordination, a team-aware context service, and a central board the agents could all write to and read from. In the installed version of lean-ctx, those exact team APIs were not there. What did exist was a generic HTTP MCP mode and the normal tools I was already using. That forced a useful correction. Instead of waiting for the perfect shared-coordination layer, I built the smallest thing that solved the real problem first.

The first half of the solution was read-side awareness.

I added a single registry file, jarvis/schedules.json, to list every scheduled job across the fleet. It is deliberately plain. Each entry says what host owns the job, what schedule it runs on, what command it executes, and a short summary of why it exists. By the time I wrote it down, the registry covered 8 jobs: 3 local to the Mac and 5 spread across the remote agents. That file became the answer to a question the fleet kept needing to ask in different forms: who runs what, where, and how often?

A registry alone is static, so I paired it with a read-only status board, jarvis/scripts/fleet-status.sh. That script merges the declared schedule with live data from each host. It checks /health, reads /v1/managed-agents where available, and degrades cleanly when something is down instead of turning the whole board into noise. That detail matters in a homelab. If one container is restarting, or a host is briefly unavailable, I still want the rest of the fleet board to be useful. Reliability in a small system usually comes down to refusing to let one missing piece erase the picture.

Then I wired that board into the places where decisions were actually being made. The Mac orchestrator prompt and the Pi personal-assistant prompt both got explicit instructions to consult the shared schedule and fleet board before inventing new work or summarizing existing work. That changed the system more than any model swap would have. The agents did not become smarter in the abstract. They became less likely to step on each other because they had one place to look before acting.

I also added a morning briefing routine on the Mac that pulls together local signals like calendar, weather, repository state, and GitHub context, then ends with the fleet board. The daily brief stopped being only about me and my laptop. It became a compact operational digest of the environment the assistants were participating in.

That took care of the read path, which was the most urgent part. I still wanted a minimal write path so scheduled jobs could leave behind a durable trace.

The answer there was not a queueing system or a database. It was a tiny append-only ledger service on the ai-hub host. I wrote a small Python HTTP server with a /health endpoint, a POST /runs endpoint for jobs to report their outcome, and a GET /runs endpoint for anyone who wants the recent board. It uses bearer auth, fails closed if someone tries to bind it off loopback without a token, and trims its own JSONL log so it stays small. A shell client reports success or failure at the end of each job and never breaks the calling job if the ledger itself is unavailable.

That is not glamorous infrastructure, but it fits the shape of the problem. A scheduled backup verification job does not need a distributed systems paper. It needs one line saying it ran at a certain time on a certain host and ended in a certain state. When the board shows the newest runs first, the orchestrator can answer ordinary operational questions with less guesswork. I can also answer them with less guesswork, which is the more honest benchmark.

A2A still matters in this design, but it settles into the role it is good at. I use A2A for live delegation between named agents. If one machine should do a piece of work now, A2A is the conversation channel. I use local managed-agent schedules as the fleet's time-based task queues. If a host should do something every morning or every few hours, that belongs to the scheduler close to the work. I use the hub for shared context and fleet memory. If everyone needs to agree on what exists and what happened recently, that belongs on common ground.

That separation sounds obvious when written down, but it took a little trial and error to get there. My first instinct was to look for a single mechanism that would make the whole fleet feel unified. What actually worked better was a smaller set of boundaries. Delegation handles requests. Schedules handle recurring work. The hub handles shared awareness. The interfaces between those three are more important than making them look like one subsystem.

Running this in a homelab helped because the blast radius was small enough to let me notice the awkward parts early. When documentation claimed a coordination feature that the installed runtime did not really have, I could correct course without a production migration. When a port assumption drifted from 3000 to 8010, I could trace the error quickly. When I found an A2A auth token sitting in tracked config, I could move it into a local vault and add rotation tooling before that pattern spread further. The lessons are ordinary operational lessons, which is exactly why they were worth learning in a smaller environment.

The main one is that multi-agent coordination gets better when you stop asking every protocol to do every job. A2A does not need to be a schedule registry. A schedule registry does not need to behave like a task broker. Shared context does not need to pretend it is full orchestration. Once each piece had one clear responsibility, the fleet became easier to reason about across machines.

I still think about the setup as a homelab, not a platform. The scale is small enough that a handful of files and scripts can go a long way if they are explicit. The Mac remains the natural front door. The remote agents still own their narrow domains. The hub is still just one LXC container with the boring responsibility of remembering what the rest of the fleet needs to know. That is enough coordination for the system I actually run.

The useful change wasn't adding more agents; it was making the work they already did visible to one another in a form simple enough to survive real use.

About the author

Lovell Felix

Infrastructure and reliability engineer working on Linux platforms, configuration delivery, and deployment safety at fleet scale.

More notes