ProductsAgent interface

Agent Collective

Your agent sessions, talking to each other.

Peer messaging between omp and pi sessions on one machine. Every running session sees the others by callsign and can ask one what it knows. A CLI and a Tern block show the whole collective and send from outside any session.

Star on GitHub

Also for pi, and a Tern block beside your agent panes.

Agent Collective: one session asks another whether a migration landed and gets the answer.
peers · peer_send

Ask one session to talk to another.

Say “ask @be-audio whether the migration landed” and it does: peers finds the exact callsign, and peer_send puts a real prompt in that session. Its reply arrives back here.

An idle peer wakes into a turn. A busy omp peer receives the message as an aside, which does not interrupt its running tool batch; a busy pi peer is steered.

you
ask @be-audio whether the migration landed

agent
peers filter="audio"
  → find the exact callsign
peer_send to="be-audio" message="…"
  → a real prompt in that session

peer message from be-audio
  its reply arrives here
/collective

See who's online, without spending a turn.

/collective opens a panel along the bottom of the screen, over the editor, with the transcript still visible above it: one row per session. tab switches to full screen, with contacts, others and offline callsigns in sections and a detail column.

enter opens the thread with that peer: every message both ways, each tagged with what happened to it, and a composer. It reads the collective from disk every 2 s; opening it costs no model turn.

collective · default

contacts
be-audio       idle         be-audio/

others
be-audio-002   working      be-audio/
web-app-001    quiet 12m    web-app/

offline
be-audio-003   offline 2h   be-audio/

↑↓ select · enter thread · / filter
c contacts · y copy callsign
tab full screen · esc close
Callsigns

An address that stays put.

Unnamed sessions are numbered by directory: the first in be-audio/ is be-audio-001, the next be-audio-002. /rename or /callsign chooses one.

A callsign belongs to its session, not its process. When a session exits its callsign stays reserved for 7 days: a message to it is answered “offline” instead of reaching someone else, and resuming the session takes it back. No two sessions in a collective ever share one.

~/work/be-audio

start    be-audio-001  be-audio-002
         be-audio-003
close    be-audio-002
         reserved for its session, 7 days
start    be-audio-004
resume   be-audio-002
         takes it back

/rename be-audio
  saved as the session title
/callsign be-audio
  callsign only

Three rules

Quiet until asked.

01

Scoped by omp profile

Sessions started with omp --profile <name> form their own collective; they never see sessions in the default profile, and vice versa. pi has no profiles, so pi sessions join default.

02

Silent

Starting or closing a session notifies nobody. Nothing is added to prompts. A session finds out who is online only when it asks (peers, /collective).

03

Need-to-know

A session's contacts are the peers it has messaged or heard from. Only those show in its footer chip, and they are remembered per session across resume.

CLI · Tern block

Send from outside any session.

The agent-collective CLI lists the collective, sends a message and reads a session's thread. It runs under node ≥ 22 or bun. send delivers as a person, not a session: the peer is told the message came from the user and to answer in its own pane.

The Tern block puts the same list beside your agent panes: who is working, idle, quiet, waiting for input or offline, a thread view, a composer that sends through the CLI, and Go to pane.

$ agent-collective list
    [--profile P] [--json]

$ agent-collective send
    [--profile P] [--from LABEL]
    <callsign> <message…>

$ agent-collective thread
    [--profile P] --session <id>
    [--peer <callsign>] [--json]

exit codes
0  delivered
2  unknown or offline callsign
1  any other failure

How it works

Files and sockets on your machine.

Same machine only

Each process writes a record (0600) under ~/.agent-collective/<profile>/ and listens on a Unix socket beside it. No heartbeat loop; no process reads another's record until a tool asks.

Per-session state

Callsign, /callsign override and contacts per session, plus its last 500 messages: time, peer, direction, hop, outcome, text.

Chains stop at 4 hops

Every message carries its distance from the human prompt that started the chain; past the limit, delivery is refused with an explicit error. Mutual wake is a loop (A wakes B, B's turn wakes A) that no transport-level guard would catch.

Bursts become one wake

Messages from one peer arriving within 400 ms are delivered as a single numbered batch, so N messages cost one turn rather than N.

Install

omp, pi and Tern.

Restart each session you want reachable: extensions load at session start.

omp extension

omp plugin install @horizonloop/agent-collective

Once per extra profile:

omp --profile <name> plugin install @horizonloop/agent-collective

pi extension

pi install npm:@horizonloop/agent-collective

pi has no profiles, so pi sessions join the default collective.

Tern block

tern plugin install github.com/horizon-loop/agent-collective/tern

The block runs the agent-collective CLI, so agent-collective itself must be installed. It runs the CLI with bun or Node 22.18+. Open it from the command palette (⌘K) → New Collective block.

Install it one way only. Two copies loaded in one process means two nodes per session: two records and two sockets.

Open source · MIT

Building something for agents?

Agent Collective is a HorizonLoop project.