Local and LAN messaging for Pi agents.
PI//LINK gives separate Pi agents a lightweight way to talk to each other without merging their sessions or adding an orchestration layer.
PI//LINK is a Pi extension. You need the Pi agent installed before using it.
One Pi agent is useful. Two Pi agents become more useful when they can actually talk to each other.
PI//LINK adds a peer-to-peer communication layer for Pi agents. Instead of forcing every task through one shared session, agents can stay in their own workspaces and pass messages across a small local or LAN network.
A prod agent can ask a dev agent for implementation help. A dev agent can send status, context, or review notes back. The message appears inside the receiving agent's own active Pi session, so communication feels native to the agent workflow instead of external to it.
PI//LINK does not create a hierarchy. There is no orchestrator and no parent/child chain. It is two Pi agents talking directly, with the user still in control of when either agent continues.
In this demo, the left terminal is the dev agent and the right terminal is the prod agent. The prod agent is prompted to say hi to the dev agent, PI//LINK sends the message through the local network, and the dev agent receives it as an inbound message injected into its own active Pi session.
Pi Agent A <-> PI//LINK Server <-> Pi Agent BArchitecture image placeholder: local/LAN Pi agents connected through the PI//LINK HTTP/SSE server.
Agents register with a PI//LINK server, discover peers in the same network, and send messages over HTTP. Live delivery uses Server-Sent Events, so receiving agents can see inbound messages as they arrive.
The server keeps state in memory for now. Networks are runtime sessions, not permanent rooms.
| Mode | Status | Behavior |
|---|---|---|
local |
Working now | Uses http://127.0.0.1:3007. Setup can start the managed local server automatically. |
lan |
Working now | Connects to a server URL on a trusted local network. PI//LINK never auto-starts a server in LAN mode. |
remote |
Future update | Planned for hosted or Tailscale-backed workflows. Not implemented yet. |
Install and verify the Pi agent first. PI//LINK runs inside Pi; it is not a standalone chat client.
Clone the repository and install dependencies:
git clone git@github.com:harvszxst/pi-link.git
cd pi-link
bun install
bun run checkStart Pi with the extension from this checkout:
pi -e ./extensions/pi-link.tsInside Pi, run:
/pilink setup
/pilink agents
/pilink sendTerminal screenshot placeholder:
/pilink setup,/pilink agents, and/pilink sendflow.
For the first agent, choose local mode and create network. For the second agent, choose local mode and join network with the same network name.
In local mode, setup can start the managed PI//LINK server automatically. In LAN mode, provide the server URL for an already-running PI//LINK server on your trusted local network.
PI//LINK is intended to become a normal installable Pi extension in a future release. After packaging and extension integration are complete, the intended flow is:
piThen inside Pi:
/pilink setupNo install command is documented for this path yet because packaged Pi extension distribution is still future work.
/pilink setup
/pilink agents
/pilink send
/pilink inbox
/pilink status
/pilink server start
/pilink server stop
/pilink doctorPI//LINK currently uses one-time runtime networks.
/pilink setupcreates or joins the current network.- The host is the agent that chooses
create network. - Members are agents that choose
join network. - If the host quits Pi, that network is no longer available.
- Members receive a warning and sending is blocked until they start or join a new network.
- Runtime state such as agent IDs, session IDs, SSE status, and connection status is not persisted.
Saved config stores preferences only.
- A reviewer agent sends feedback to an implementation agent.
- A gatekeeper agent receives summaries from development agents.
- Multiple local agents coordinate without a full orchestration system.
- LAN-connected machines test agent collaboration on a trusted network.
- Requires the Pi agent.
- Local and LAN modes are available now; remote mode is not implemented yet.
- Server state is in memory only.
- No authentication or encryption yet.
- No persisted network/session restore yet.
- Not intended as a production orchestration platform yet.
- Packaged Pi extension installation is future work.
