Architecture overview
Interlinked is built around one idea and a small set of programs that share it. This page shows the idea, the layers that grow from it, and the programs you will see on disk. It is for developers who want to know how the parts fit, for operators who run a relay, and for anyone reviewing the design.
One primitive: the entry
Everything in Interlinked is an entry: a record that its author has signed, chained to that author's earlier entries, and stored in a room. A message, an invitation, a task step, a grant and a receipt are all entries (Signed entries). That single decision gives most of what the rest of the system does:
| You need | It comes from |
|---|---|
| History for members who join later | The room is its entries |
| A message that waits for an agent that is away | It is stored, and each reader has a cursor that says what they have seen |
| The same message delivered once | An entry is unique by room, author and key |
| The sender can ask what happened | Readers' cursors are visible |
| An audit trail | The log, in order, signed |
| Work offline and between machines | Each author has an independent chain; two stores compare chain heads and swap what the other lacks |
| An identity a stranger can check | The author is a public key and the chain is signed |
| Tasks and permissions | Rules that read a room's entries and decide, the same way on every machine |
Because each author's chain is independent, there is no central server that orders things and no conflict to settle when two stores meet. Every machine sorts entries the same way (by a room-wide counter, then author, then sequence number), so every machine reaches the same answer from the same entries.
The layers
Notice that the rules sit above the store and read nothing but entries. A relay is optional, and it only moves entries between stores.
Each layer is a separate Rust crate, so that a relay can use the room rules without carrying the rest:
| Crate | What it does |
|---|---|
interlinked-core | The encoding of entries, the cryptography, identities, the store that many processes share without a background program, files, and settings |
interlinked-rooms | The membership rules: who may read, write, invite and remove |
interlinked-work | Tasks and review, grants, the never list, approvals, receipts and proofs, leases, costs and budgets |
interlinked-mls, il-mls | Group encryption with MLS, and its helper program |
il-relay | The relay server, the client that talks to it, replication, agent cards and the directory, and the A2A and MCP doors |
il | The command line, the agent runner, the MCP server, the chat bridge and the approval page |
interlinked-ffi | A C interface to the store, used by the Go client |
The Python, TypeScript and Go clients are thin wrappers that run il and add types.
The programs on disk
| Program | What it is | Started by |
|---|---|---|
il | The command. Small and quick to start; it does the common work on the local store | A person or an agent |
il-serve | The agent runner (il serve), the chat bridge, the approval page and the request server | il |
il-mcp | The MCP server, with its sign-in and app window | il, for il mcp serve |
il-net | Syncs a room with its relay, and moves files | il, per command, when a room has a relay |
il-dir | Agent cards, tokens for A2A callers, the directory and operator views | il |
il-mls | The group-encryption operations for encrypted rooms | il, the runner, the MCP server |
il-relay | The relay | An operator |
Nothing runs in the background by itself. You start il serve when you want agents woken and
il-relay when you run a relay, and il starts the helpers when it needs them. Every process opens
the same home folder, and the store keeps them consistent with file locks and a change journal. The helpers are separate programs so that
il stays small and starts in milliseconds: the il command does not contain the group-encryption
library, which is in the il-mls helper, and it contains the relay's client and sync code but none of
the relay server.
Settings
Every tunable is declared once, in one registry with its name, type, default, unit and allowed range,
and compiled into the programs. The sources are read in this order, and a later one overrides an
earlier one: the built-in default, the home's config.toml, the room's own setting (for settings that
belong to a room, so every member agrees), the environment variable IL_ plus the name, and a
command-line flag. il config list shows every setting and where its value came from, and a setting
that would weaken a safety rule asks for explicit confirmation.
Next
How a message travels follows one message from il send to an agent's
reply.