Skip to content

Discussion: multi-machine orchestration: shared threads, agents across homes, scheduled work #40

Backlog

Description

@jonleopard

I run Axel on a Mac and on a Linux box, both inside Rex; #38 and #39 came out of that. I've been comparing this setup with T3 Code and Orca, and I want to share where I've landed, so you know what I'm working towards and can tell me where it doesn't fit your plan. Nothing here needs a quick answer.

Your DESIGN.md lists "aggregate their DBs into one dashboard" and "t3code-style delegation" under P2, so I take it some of this is already on your mind; this is the view from someone running two machines today. By "home" I mean what your docs mean: a machine with its own Axel, with its own owner key, agents and threads.

1. What "server" means, and one view of everything

In T3 Code and Orca, a server on each machine owns the work. Per their docs, that is the agent processes, terminals, Git worktrees and stored state. Their apps are clients that connect to one or more servers, which is how you get one list and work that carries on with the laptop closed.

With Rex and Axel that job is split in two:

Job Who does it
Keep programs alive, let a Mac or phone attach Rex server
Threads, agents, history Axel (its database, one process per agent session, no always-on service of its own)

So the equivalent of a "server" is a Rex server plus an Axel home on that machine. That already works well: an Axel home on the Linux box keeps agents going with the laptop closed, and I attach through Rex.

What I don't get is one list of threads across both homes. The options I see, cheapest first:

  • Live with two Rex tabs.
  • A small read-only pane that lists the threads of both machines.
  • The dashboard that aggregates the machines' databases, from your P2. Is that still the plan, and would it cover two homes or only a home and its hosts? I realise "keys never leave home" makes the two-homes case hard.

2. Roles

As I understand it, Axel has no roles. It has agents (a name, a key, a harness and model, a prompt, skills), messaging (send, summoning, the reply returning to the sender) and policy (reach, depth, budget). The orchestration itself is text: my coordinator's prompt and my rules say who delegates to whom. I like that this keeps Axel agnostic about workflow. T3 goes the other way, as far as I can tell from its docs, with a role label on each delegated task.

Two things came out of this:

  • Would an "example team" page in the docs be welcome? One worked setup (a coordinator that delegates, an implementer, two reviewers on a different model family, with --allow and --reach set to match), clearly one option among many.

    For reference, this is the team I run:

    Agent Runs on Job
    coordinator Claude Code Plans, delegates, runs reviews, reports. Read-only. The only agent allowed to message the others (--allow).
    implementer, implementer-fast Antigravity (Gemini, as a custom ACP harness) The single writer in a worktree; the fast one takes fully specified changes.
    reviewer-spec, reviewer-standards Codex (GPT) Independent reviews, one per axis, always on a different model family from the writer.
    scout, researcher, auditor, advisor Gemini, GPT, Claude Read-only helpers: code reconnaissance, research, checking that research, second opinions.

    Everyone except the coordinator has --reach nobody, so work only fans out from one place.

  • A host refuses a job from an agent whose name it already has under another key (conflict: agent name … already exists). So with two homes that each have a reviewer, neither can host the other's. Is that intended?

3. Scheduled and unattended work

What T3 and Orca have and Axel doesn't is scheduled work (T3's schedule_task tool, Orca's orca automations). I don't think this needs an adapter inside Axel. The CLI already has what a trigger needs (axel thread new, axel thread show), and axel mcp lets a bot message agents on an existing thread. So:

  • a systemd timer or cron job for schedules;
  • a chat bot (Hermes or similar) with one small skill for starting work from a phone.

RFD 0002 says always-on needs a supervisor, so I'd rather hear your direction before designing anything. If the answer is "use cron or a bot, here is the CLI", I can write that up as a docs page.

A note on the host add follow-up

In #39 I said axel host add for a host on a different platform was ready to follow. It works in my tests, but I'm holding it until I know how it fits the above, since it builds on the same model.

Activity

  1. lgalabru commented on Nov 25, 2026

    @lgalabru
    Owner

    thanks @jonleopard!

    1. hmm good question. I started some research we could use as a base. any thought on this?
    2. Team is a great concept, let's do it. We could also introduce the concept of skills for a team (we currently have user-wide, project-wide, agent-wide).
    3. Scheduled work - let's do it. Agents already have inboxes, we should probably try to leverage this.
  2. jonleopard commented on Nov 25, 2026

    @jonleopard
    ContributorAuthor

    Thanks for merging #39. RFD 0004 is very close to what I was hoping for. Going through your points:

    1. Linked devices

    One thing from my setup: I'm on NetBird with Rex over SSH, not Tailscale. The "who is calling" row relies on built-in Tailscale. Over SSH, server.whoami gives me kind: peer and my Unix account, not a node.

    Rex's remote access docs recommend SSH, and treat other VPNs, NetBird included, as anonymous listeners. They also say this is temporary: "A full authentication and authorization system is planned, including support for existing SSH keys." So I expect the Rex side to get better for setups like mine, but I don't know when.

    As I read the RFD, the network is needed for two things: reaching my own machine for certain when pairing, and delivery afterwards. Device keys do the rest. SSH gives the first through the host key, and so does NetBird, where a peer's address is bound to its key. Could linking depend on "a route I trust to reach my host" rather than on Tailscale's caller identity?

    I can test the rex forward and rex events assumptions on an SSH-only setup and report back. Phase 0 alone would already remove the name clash for me, and my two homes are a ready test case for phase 6.

    2. Team

    Glad it fits. I can start with a docs page for an example team. Team-level skills sounds right. What shape do you have in mind for a team: a named set of agents declared somewhere, or just a convention? I'll follow your lead.

    3. Scheduled work

    Building on inboxes makes sense. Happy to help once you've sketched how a scheduled message should arrive.

    host add across platforms: now that #39 is merged, do you still want that as a PR?

  3. lgalabru commented on Nov 26, 2026

    @lgalabru
    Owner

    @jonleopard thanks, this was very useful. I opened #44 to answer it:

    • Linked devices (RFD 0004): pairing now needs a trusted route to your host, not Tailscale. That can be Rex over Tailscale, an SSH host key, or NetBird/WireGuard plus a short code you compare on both screens. The model changes too: an agent is now a profile, which is yours and synced to all your machines, plus an instance on each machine, which has its own key. So two homes that each run reviewer are running one agent twice, and that removes the name clash.
    • Teams (RFD 0005): a named set of profiles with free-text roles, team skills and team/lead reach.
    • Scheduled work (RFD 0006): a scheduled run is an ordinary inbox message, sent by axel schedule tick from cron for now.

    Would you like to help test this? Your setup (Rex over SSH on NetBird, two homes) is exactly the case we can't reproduce here. In particular:

    1. Check the rex forward and rex -S HOST events assumptions on an SSH-only setup (RFD 0004, open questions).
    2. Try the pairing routes once axel device link exists.
    3. Be the test case for merging two existing homes, the last phase before the optional cold owner key.

    Comments on #44 are welcome too, especially on the profile/instance split before we write the migration.

  4. jonleopard commented on Nov 26, 2026

    @jonleopard
    ContributorAuthor

    Happy to help test all three on my Mac + Linux setup (ssh:// over NetBird, two homes).

    I ran the SSH-only Rex checks from RFD 0004 (Rex 0.1.0-preview.25, API rev 24 on both machines):

    • rex -S <host> api call server.whoami '{}' returns principal.kind: "peer", transport: "unix".
    • rex forward: rex -S <host> forward new -s <session> -L 127.0.0.1:<local>:127.0.0.1:<remote> relays TCP cleanly (~244 ms round-trip, shows active in rex forward ls). rex -S <host> forward open -s <session> --url-only tcp://127.0.0.1:<remote> picks a free local port, prints tcp://localhost:<port> on stdout, and relays TCP cleanly (forward new is silent without -v; both need -s <session> for the tunnel block).
    • rex -S <host> events -s <session> --json: remote OSC 7501 program_status changes arrive live across SSH. Emitting working → done → clear in a remote block streamed session_event → block_event with name: "program_status_changed" (full record: id, state, app, msg) and name: "program_status_removed" (reason: "clear").

    Saw #44 now has the implementation and migrations up too — I tested axel device link and a two-home v12 → v15 merge against 0250f1a and left the findings and feedback on the profile/instance split over on #44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions