BlogField note

The Agentic Mesh: why coordination is the real multiplier

Parallel agents don't become a team by sharing a repository. They need identity, visible ownership, retained messages and stalls you can't miss.

The Canopy team · agents, mesh, engineering

Running more agents is easy. Getting useful parallel work from them is not.

Start four agents in four terminals and the machine looks busy. But each session sees only its own prompt. Two agents edit the same file. A request lands in the wrong terminal. A decision vanishes in scrollback. A blocked agent sits quiet for an hour while every dashboard stays green.

The multiplier isn’t the number of agents. It’s the system between them.

Identity before orchestration

Every coordination feature starts with one question: who is acting?

Canopy gives each terminal its own bridge credential. When a terminal sends a message or places a claim, the sender comes from that credential, not from the request body. It identifies the Canopy terminal, not a model, provider account or person.

That narrow guarantee matters. One terminal can’t claim on another’s behalf and then release it. And Canopy fails closed: it won’t message a shell, a run terminal or a terminal whose role is unknown.

credential-derived identity
terminal 39checkout-flowcredential / 9d38:39
signs
mesh requestfrom_pty = 39body cannot override sender
routes
terminal 47api-contractrole = agent
The terminal credential names the sender; the message body never gets that authority.

Messages need a trail

A terminal write isn’t a coordination record. It’s just bytes.

Canopy’s mesh keeps a local history of recent agent-to-agent messages, each with an ID for retrieval and replies. A message can carry a multiline body, file references, a pointer to the message it answers, and a queryable {kind, id} tag such as a task, PR or attempt.

Tags are metadata, not verified foreign keys. Reply pointers aren’t full threads. A successful write isn’t a read receipt. Honest systems say only what they observed.

The store keeps up to 500 messages for 7 days and survives restarts when local persistence succeeds.

a retained exchange
m41 · checkout-flow

The webhook contract is stable. I left the generated client untouched.

ref / attempt / run_8e2
m42 · replying to m41

Confirmed. I am taking the handler and its tests.

submitted / terminal 47
Messages carry a stable local trail: body, reply pointer, work reference, and submission state.

Shared checkouts need visible ownership

Git reconciles commits well. It doesn’t stop two live agents rewriting the same working-tree file at once.

Canopy uses advisory claims on files and directories: “this terminal is working here.” An overlapping request is refused, and you see who asked, which paths overlapped, and when.

Claims aren’t filesystem locks and don’t block an editor write. They’re signals, tied to the owning terminal’s credential and released when it exits. You see the collision before it becomes a mystery diff.

shared checkout / visible ownership
src/payments/checkout-flow3 files
src/api/webhook.tsapi-contract1 file
overlap refusedmobile-polish requested payment.tsheld by checkout-flow
Claims do not lock the filesystem. They make the collision visible before the edits overlap.

Silence is a state, not success

Canopy watches agent hooks, terminal activity and the running process. Two watchdog rules turn silence into attention:

  • W1: a session that stays unexpectedly quiet for 5 minutes becomes a persistent alert.
  • W2: a detected human block that goes unseen for 2 minutes is escalated.

The watchdog surfaces the stall, classifies it from the evidence, and starts the cheapest safe recovery step. A question that needs a person stays with a person.

Recovery needs portable state

Identity, messages, claims and stall detection make recovery safe to use.

Canopy keeps each task’s goal, acceptance criteria, baseline, evidence and attempts in one durable record. Failures are classed as transient, route, task, human-required or safety stop. Unavailable, unhealthy or out-of-policy routes are excluded before the rest are ranked.

The recovery ladder is short. Retry the same route after a transient failure. Pick another eligible profile or model tier when policy allows. Start a replacement attempt from the saved task. Escalate to a person when switching won’t help.

This only works on an honest foundation. A route switch without a durable task loses the job. A restart without a safe baseline absorbs unrelated edits. An agent’s confidence isn’t verification.

bounded recovery ladder
01detect

heartbeat, lifecycle, provider, and terminal evidence

→
02classify

transient, route, task, human-required, safety stop

→
03recover

retry, eligible profile, model tier, cross-CLI reseed, human

A replacement attempt inherits the task, safe baseline, completed milestones, and required verification.

A mesh is a set of rules

The mesh graph connects lead agents, domains, tasks, attempts, claims, messages, replies, evidence and recovery. PR follow-ups return to the recorded conversation when it can resume, or start a replacement attempt with the PR context.

The goal isn’t to look autonomous. It’s parallel work you can inspect and recover: each agent owns a bounded domain, every job attaches to durable work, and recovery follows evidence, not guesswork.

Explore the mesh that ships today, see the Engineer workspace, or read the Build mode architecture.

← All writing