Linking

Your agents can work together across all your devices.

Run J5 on more than one machine and link them. Agents on each machine see the others in their address book and message them the way they message the agent next to them, and they can use tools on the other machine at the level you choose.

Different machines can do different things.

Most people already work across a few machines. A link lets each agent reach the colleague that has what it needs, instead of you copying messages between windows. You set it up once, for messages and tools together.

  1. 1

    Agents see where everyone lives

    Each participant shows up with its device's name, so an agent can pick the right one.

  2. 2

    You say what each device is for

    Put it in your own instructions, in whatever words you like.

  3. 3

    Agents never manage connections

    They message each other directly, and J5 delivers.

Your instructions

# Devices

laptop
has Xcode and the iOS simulator; runs the mobile builds
cloud-vm
lots of resources, stays on overnight
home-server
can reach the home network and the NAS

Two ways to get a message across.

When you link two devices, J5 checks how messages can get between them and picks a way that loses none. You can change it before you link. Each direction is set up on its own, so a pair can send directly one way and poll the other.

Direct connection

One device opens a connection to the other and hands each message straight to the agent. It needs the receiving device to be reachable and on.

Polling

Messages wait on the device that can be reached. J5 on the other device fetches them over a connection it opens itself, and hands each to its agent.

When to use each.

Direct connection

When one device can reach the other.

The sending device opens a connection to the receiving one and delivers the message straight to the agent. Delivery is immediate, and nothing is stored in between.

Choose it for devices that are always on and can reach each other: two cloud VMs, or a VM and a home server on Tailscale. If the receiving device is off, the message can't be delivered.

CLOUD VMalways onLOCAL SERVERalways onNETWORKCLOUD VMalways onLOCAL SERVERalways onNETWORK
Polling

When one device cannot reach the other.

The reachable device stores the messages, and the device that can't be reached polls for them over a connection it opens itself. Its own messages and replies still go directly.

Choose it for a laptop behind an office firewall, or any device other machines can't connect to. There's nothing to configure on the firewall or proxy: the laptop only makes ordinary outgoing HTTPS connections.

CLOUD VMalways on, reachableWORK LAPTOPbehind an office firewallFIREWALL · NO INCOMING CONNECTIONS TO LAPTOPCLOUD VMalways on, reachableWORK LAPTOPbehind an office firewallFIREWALL · NO INCOMING CONNECTIONS TO LAPTOP
Polling

When a device comes and goes.

A laptop that sleeps, or a desktop app that's closed, can't take messages even when it could be reached. With polling, its messages wait on the other device and nothing is lost. When it's back, J5 fetches everything that arrived, with each agent's messages in the order it sent them.

Choose it for the desktop app, or any device that isn't always on. If you're not sure, use polling: it works on any network.

CLOUD VMalways onLAPTOPawakeNETWORKASLEEPCLOUD VMalways onLAPTOPawakeNETWORKASLEEP

Tools on the other machine.

A link also lets agents on one machine use tools on the other: read its threads, start work there, hand a task to an agent that lives there. You choose how much, separately for each direction.

  1. 1

    A level for each direction

    Both start at Supervised. Set a direction to Off and agents there can still message, and nothing more.

  2. 2

    Tools take the route messages take

    A machine that can be reached is called directly. A machine that polls keeps a connection open to the other, so the other machine's agents can use tools on it only while it is running.

  3. 3

    Renewed every 30 days

    Tool access runs out after 30 days, and one click renews both directions. Messages keep working in the meantime.

Tools levels
Off
messages only
Read only
read projects and threads
Supervised
start and drive work; asks before commands and file changes
Auto-accept edits
edits go ahead; other actions still ask
Auto
routine actions go ahead where the provider supports it
Full access
commands and edits without prompts

Link your first two devices.

Once J5 is running on both machines and both are added to one J5 window, you link them from there in about a minute. J5 also offers it when you add a machine.

  1. 1

    Open Linked environments

    It's under Settings → Environments → Linked environments. Choose Link.

  2. 2

    Tick the machines to link

    J5 checks which way each one can be reached and says how messages will travel. Choose Change to pick another way.

  3. 3

    Choose what agents may do

    Pick a Tools level for each direction, then choose Link. Each pair says whether it was linked.

Only one machine running J5 so far? Download it for the other, or install the server.