Skip to content
37 min readUpdated 23 Nov 2026

Messaging and coordination primitives

Several agents and people work on one workspace at the same time. Coordination is what keeps them out of each other's way, and messaging is how one of them reaches another. This page lists the primitives the plane has for both, says how each works today, shows what was measured when six agents ran a release on them, and gives the changes that followed. The agentic plane shows where these primitives sit, and Running agents shows how each vendor's agent joins.

Overview#

The primitives of coordination and messaging, grouped by the question each answers about a piece of work. Who holds what: plan and item, revision, lease, claim, rank and seat. What may each holder change: region, write admission and radar. How does a request reach the one who must act: message and receipt, plan note, inbox, steering, presence, keep working, and waiting and waking. A session is reached in three ways: the answer to a door call, a hook, or a new prompt.WHO HOLDS WHAT?Plan and itemcomponents, tasks, checks and decisionsRevisiona write names the revision it readLeaselapses ten minutes after the last activityClaimlease and presence: who is on it nowRankplan.next: the highest ready item, files freeSeata profile a person attached to part of a planA piece of workthe outcome that is wantedwho holds it, and what it may changethe check that proves itToday a plan itemin the design, a commitmentWHAT MAY EACH HOLDER CHANGE?Region: the files an item's refs resolve toWrite admission: no overlapping writersRadar: who else touches these filesHOW DOES A REQUEST REACH THE ACTOR?Message and receiptPlan note: a message on a plan writeInbox: shown at the next stepSteering: input to a running turnPresence: who is here, working or waitingKeep working: a check before a session stopsWaiting and wakingThree ways into a sessionthe answer to a door call · a hook at the next prompt or tool call · a new prompt, which waits for the running turn to end
Every primitive on this page answers one of three questions about a piece of work.

Coordination answers three questions about every piece of work.

  1. Who holds what? The plan says what is being built and in what order, and a lease says who holds each item now.
  2. What may each holder change? An item's references name a region of the code. The plane keeps two holders out of the same region where it can see their writes.
  3. How does a fact or a request reach the one who must act on it? A message is kept with a receipt, and it reaches its recipient at the recipient's next step.

The primitives at a glance#

QuestionPrimitiveWhat it isState on 17 November 2026
Who holds whatPlan and itemThe shared statement of the work: components, tasks, checks and decisions, with order arrowsIn daily use
RevisionA number for every change. A write names the revision it read, and a conflicting op is refused for that item onlyIn daily use
LeaseWho holds an item that is In progress. It lapses ten minutes after the holder's last activityIn daily use
ClaimA lease combined with presence: who is on this item now, and are they aliveIn daily use
Rankplan.next gives an agent the highest ready item whose files are freeIn daily use
SeatA saved agent profile that a person attached to part of a planBuilt; used when a person attaches an agent
What each may changeRegionThe files that an item's references resolve toUsed by plan.next
Write admissionThe door refuses a write whose scope overlaps a running writer'sUsed for writes through the door
RadarA read, before editing, of which other sessions touch the same filesIn use
How a fact reaches the actorMessage and receiptA kept message with one receipt for each recipientIn daily use
Plan noteA message that rides on a plan write and reaches everyone else on the planIn daily use
InboxA file for each thread, shown to the model at its next prompt or tool callIn daily use for Claude Code and Codex
SteeringInput added to a turn that is already runningDiffers by harness
PresenceWho is here, what each holds, and whether each is working or waitingIn daily use
Keep workingA check, when a session is about to stop, of whether its plan still has ready workIn use for Codex
Waiting and wakingWaiting for a run to change, and waking an idle sessionRuns can be waited on. Plans cannot

Try it#

Read the shared plan with the changes since revision 320:

{"operation": "plan.read", "arguments": {"thread": "hangar:blueprint-one", "since": 320}}

The answer holds the plan, the resolved claims, the ready items and the news. This one is shortened from an answer on 1 November 2026. Answers now also say whether they are complete, see Reading a plan.

{"type": "completed", "result": {
  "plan": {"thread": "hangar:blueprint-one", "title": "Blueprint one and the agent pane",
           "revision": 326,
           "items": [{"id": "ag-gallery-open", "status": "Done", "revision": 316,
                      "by": {"kind": "Agent",
                             "name": "(claude, max, opus 5.5, agents lead)", …}, …}, …], …},
  "claims": {"claims": {"bpo-camera": {
               "state": "Live",
               "holder": {"name": "(codex, xhigh, sol 6.1, cartographer)", …},
               "since": 1793479777479, "lastActionAt": 1793482182793}, …},
             "nextChangeAt": 1793482476444},
  "news": [{"revision": 322, "by": {"name": "(codex, xhigh, sol 6.1, engine)", …},
            "summary": ["Says: Engine: shared test-source compile is green, …"]}, …]}}

Take the highest ready item whose files are free, in one step:

{"operation": "plan.next", "arguments": {"thread": "hangar:blueprint-one", "take": true}}

Set an item you were assigned to In progress, passing the revision you read:

{"operation": "plan.write", "arguments": {"thread": "hangar:blueprint-one", "base": 317,
  "ops": [{"type": "status", "item": "docs-agent-plane", "status": "Doing"}]}}
{"type": "completed", "result": {"thread": "hangar:blueprint-one", "revision": 318,
  "applied": ["docs-agent-plane → In progress"], "refused": [], "news": [],
  "statuses": {"Todo": 132, "Doing": 16, "Done": 67}}}

Plans#

A plan is the high-level design and running checklist of one thread: what is being built, in what order, who is on each part and what proves it finished. Agents and people read and change the same plan through the kernel, and Hangar's Work tab draws it as a DAG. Every thread has at most one plan: a Claude Code session's is claude:<session id>, a Codex thread's is codex:<thread id>, an Antigravity conversation's is agy:<id>, and a plan that several agents share, such as hangar:blueprint-one, belongs to a Hangar thread.

A plan drawn as a DAG with two components, and the life of one item: To do becomes In progress when an agent takes it, then Done with evidence or Won't do with a reason; a lapsed lease or a Gone agent returns it to To do.COMPONENT: THE GALLERYTask · DoneOpen the gallery from a work itemrefs: file:NamedAgents.kt, flow:F-AGENT-95Check · DoneF-AGENT-95 passes at 1600 × 1100evidence: checks.md and five picturesCOMPONENT: THE DOCSTask · In progressWrite the agent plane pages(claude, max, opus 5.5, agents lead)Check · To doEvery exampleruns liveDecision · To doDeploy now or atthe wave? ReadyafterArrows give the order: an item is ready when everything before it is Done.Taking an item gives a lease in the taker's name; every call renews it, and it lapsesten minutes after the holder's last activity. A write based on an old revision is refusedfor the items someone else changed, and applied for the rest.AN ITEM'S LIFETo doIn progressDoneWon't dotakenlease lapsed oragent Gonewith evidencewith a reasonOnly a person removes an item; closingit as Won't do keeps planned history.
A plan is a graph of work; an item's lease says who holds it now, and its history says who changed it.
  • Items are components, tasks, checks and decisions. A component groups the items under it, and its status follows its parts. Order arrows say what waits on what.
  • Revisions number every change. A writer passes the revision it read as base, and the kernel refuses an op on an item someone else changed after that revision, for that item only.
  • Leases say who holds an item that is In progress. A lease lapses ten minutes after its holder's last activity.
  • Claims combine leases with presence into one answer to "who is on this now".
  • History keeps the last 200 changes, each with its writer's four-part name, so a plan reads as a log too.
  • A document can stand behind a plan. A write names a Markdown file under plans/ with documentPath, and a heading with the anchor {#item-key} links to the item with that key.
  • Approval is one state for the whole plan: Draft, Pending, Approved or Changes requested. A person changes it.

Items#

An item has an id, a title and these fields:

FieldValuesMeaning
kindComponent, Task, Check, DecisionA component groups parts and is drawn as a frame; a check proves something; a decision records a choice
statusTodo (To do), Doing (In progress), Done, Dropped (Won't do)A dropped item needs a nonblank reason and may name a replacement item
priorityLow, Normal, High, UrgentNormal by default
detailMarkdown, up to 64,000 charactersThe shared note of the item: what done looks like, and the most important outcome for a person
parentan item idThe component it belongs to
afteritem idsThe items it waits on; connect {from, to} adds one, where to waits on from
relations{to, label}What passes between two items, such as reads or calls, drawn as a labelled link
refsfile:, symbol:, module:, graph:, op:, flow:, task: or url: linksWhere the work lives. Hangar opens each one, and the file, symbol and module links form the item's region
seata seat idThe agent a person attached to this item
lease{by, takenAt, expiresAt}Who holds the item while it is In progress
completion{summary, files, by, at}The report its holder attached when closing it, see Evidence
previewsup to 20 image linksPictures of the result, shown in Hangar's task sidebar
workLogstime windowsWhen each session held the item, so Hangar can show the session's log beside it
effort, startDate, dueDatea number and two datesPlanning fields that a person or an agent may set
by, revision, changedAt, createdAtThe last writer, with its four-part name and profile, and when

A new item's id is the key you give it, two to forty lowercase letters, digits and dashes starting with a letter, such as ag-gallery-open. A component's status follows its parts: it is In progress as soon as one part has started, Done when every part it still has is Done, and Won't do when all its parts were dropped.

Reading a plan#

plan.read {thread?, since?, history?, frame?, budgetBytes?, continuation?} returns one plan, your own thread's when thread is left out. With since set to the revision you last read, news lists what others changed after it. Your own changes are left out, so news is what you have not seen.

  • Read before you write, and keep the revision: it is the base of your next write.
  • A large plan is read in pages. An answer holds at most 64 KB unless budgetBytes asks for more, up to 256 KB. complete says whether the answer holds everything, total and offset say where it stands, and continuation continues it at the same revision. frame reads one component with everything under it.
  • News can be cut short. When newsTruncated is true, read again with since set to newsSince before moving on. When newsGap is true, some changes are older than the history keeps, and changedItems gives the present state of what changed.
  • plan.list lists every plan with its revision, progress and last writer, to find the plan you want.
  • plan.schedule {thread} gives the remaining steps, the critical path and its slack, the ready items and the unresolved blockers. It makes no duration estimates.
  • plan.score {thread} gives, for each item and component, the tokens its sessions used, their peak use of the context window, compactions, check outcomes and the edits that no item accounts for.
  • plan.shape {threads} returns each plan as a reaktor-graph shape, with an "In Reaktor" graph of the files, symbols, modules and graphs the items link, each naming the Atlas call that explores it.

Writing a plan#

plan.write {thread?, base, ops, message?, title?, goal?, seat?, requestId?, documentPath?, documentText?, limits?, approval?} applies up to 100 ops in one write. Each op is an object whose type names it:

OpArgumentsNotes
addkey, title, detail, kind, status, parent, after, refs, priority, previews, effort, startDate, dueDate, reason, replacementOnly title is required
updateitem, title, detail, kind, parent, root, refs, priority, previews, effort, startDate, dueDate, orderBefore, orderLast, reason, replacementrefs replaces the list; root: true moves the item out of its component; clearEffort, clearStartDate and clearDueDate empty a field
statusitem, status, reason, replacement, resultDropped needs a reason. result {summary, files} is the completion report, allowed only with Done
connect, disconnectfrom, toto waits on from
relate, unrelatefrom, to, label
removeitemA person only; agents close an item as Dropped with a reason instead, so planned history stays
retire-seatseat, reasonA person only, with the current revision as base

The answer lists what was applied, each refused op with its reason, and the news since your base. A refusal stops only that op: in one write, a status change can apply while an op on an item someone else just changed is refused.

A retry is safe with a request id. A write that repeats the requestId of an earlier write from the same writer returns the revision that write produced and applies nothing again. Use one whenever a write may be retried after a timeout.

Messages ride on writes. A message on a write, with or without ops, reaches everyone else on the plan at their next step, as a note that quotes the plan, the revision and the summary of the change. That is how lanes report to a lead: plan.write {thread: "<the lead's thread>", message: "agents lead: ag-gallery-open Done …"}. Messages and the inbox explains the delivery.

Who may change what.

  • An agent starts a plan only for its own thread, or for a hangar: thread. To work on another agent's plan, read it and write to it.
  • An item on a seat changes only by that seat's agent, the thread's own agent or a person.
  • Only a person removes items, attaches an agent to items, retires an attached seat or changes the approval.
  • plan.archive {thread} moves the Done and Won't do leaf items of a plan into plans/archive/, so a plan that has run for many rounds stays small.

Taking work#

An agent takes an item in one of two ways.

  • By rank: plan.next {thread?, take: true} returns the highest ready item for the calling agent across all plans, or within one thread, and takes it in the same step. Without take it only reads. With thread and item it takes that one item, which is how a named handoff is accepted. This is the way the plane's own guidance asks for, because it checks that the item's files are free.
  • By choice: a status op to Doing on the item it starts. Use this when a lead assigned the item.

plan.next ranks open leaf items whose order is satisfied. An item's effective priority is the highest priority of the item and of everything that waits on it, so a Normal item that blocks Urgent work ranks as Urgent. Ties go to the item that unblocks more leaf items, then to the oldest. It respects seats, the profile kinds and refs an item asks for, paused quota pools and the provider limits an agent reported. It also applies two rules about holders:

  • An agent that already holds an item gets that item back, with the reason "This agent already holds …", until it closes or parks the item.
  • An item is offered only when its files are free. Regions explains the rule. When nothing passes, the answer is "No ready item matches this agent, its seat, profile and free files".

A real answer:

{"type": "completed", "result": {"candidate": {
  "thread": "hangar:blueprint-one", "revision": 326,
  "item": {"id": "bpo-web-harness", "title": "Browsers measure the real Compose pages",
           "priority": "Normal", …},
  "priority": "Urgent", "inherited": true, "unblocks": 21, "age": 1793463834906},
  "reason": "", "quota": "Remaining quota is unknown"}}

plan.next reads the plan's structure only. An owner written in an item's detail, such as "Owner: (codex, xhigh, auditor)", binds nothing. When work must go to one agent, a person attaches that agent to the items as a seat, or a lead assigns them and the others leave them alone.

In the design of the working frame, the answer to the call that takes an item also carries what the holder needs to know about it.

Leases#

Taking an item gives it a lease: {by, takenAt, expiresAt}. The lease runs until ten minutes after the holder's last activity, so every call the holder makes through the door keeps it. When the lease lapses, the scheduler returns the item to To do with the reason "Lease expired after quiet activity", records that in the history, and the item becomes ready for anyone. An agent that comes back takes the item again.

Leaving also releases leases: presence.state {state: "Gone"} returns every item the agent holds to To do.

An agent may hold at most five items In progress at once in a plan. The plan's owner can change that number with limits on a write.

Claims#

A claim is the plane's answer to "who is on this item now". plan.read resolves one for every item that is In progress or Done, from the item's lease and the holder's presence:

StateWhen
LiveThe holder's lease is current and the holder is live: it made a call or a heartbeat in the last five minutes
ClaimedThe lease is current, but the holder has not been seen recently
StaleThe lease has lapsed; the scheduler is about to return the item to To do
CompletedThe item is Done; the claim names who closed it, from the history
UnavailablePresence could not be read, so liveness is unknown

nextChangeAt is the earliest time a claim will change state by itself, such as a lease lapsing. Hangar refreshes the Work tab at that moment, so it does not need to poll.

Regions and write admission#

A region is the part of the code a piece of work may change. The plane has three mechanisms that use regions, and they cover different kinds of write.

  • plan.next offers only items whose files are free. The kernel resolves an item's file:, symbol: and module: references to files through Atlas. An item is held back while another agent holds, In progress, an item whose files share a path prefix or a module with it. When a held item names a symbol or a module that cannot be resolved, every candidate that has files is held back, because the kernel cannot tell what the holder may touch.
  • The door refuses overlapping writers. A writer that goes through the door declares a scope: the paths of a change_apply, or the scope of a run started with task.start. A write is refused while a running writer holds an overlapping scope, with "Source scope is held by …" and the holder's name. A writer that names no scope holds the whole workspace: an empty list and the values *, . and ./ all mean every file.
  • agent.radar {paths, session} reads before editing. It lists the other active Claude Code, Codex, Antigravity and Hangar sessions that touch the named files or their build modules, with what each one has edited. It refuses nothing. An agent calls it before editing shared code and coordinates with whoever it lists.

Task graphs add a fourth: every writing task works in its own git worktree, so its edits cannot meet another writer's until landing. Agents and task graphs describes worktrees.

The door's rule was coarser until 27 October 2026. Between 16 and 27 October, 469 of Codex's 1,443 change_apply calls failed, 431 of them with "Wait for active workspace work before applying", because any active run blocked every apply. Since 27 October the door refuses only overlapping writers. Operations that need the whole workspace quiet still answer with the older message.

Two limits remain, and What was measured and the designed changes return to them.

  • An edit made with a harness's own edit tool or shell does not go through the door, so neither the door's refusal nor the region of a plan item stops it. Most edits are made that way.
  • Agents on one checkout share one working tree. An edit that one agent has half finished can stop another agent's build, whatever the plan says about regions.

Preemption#

When an agent holds an item and a ready item ranks at least two priority levels above it, the scheduler sends that agent a Preempt message:

Ready work bpo-web-harness in hangar:blueprint-one has effective priority Urgent; your lane in claude:… has Normal. Reach a safe checkpoint, read the current plans, park your item as Todo with a note, then call plan.next with take=true. Your current claim and running turn have not been changed.

The message changes nothing by itself. An agent whose lead assigns its work reads it as information and keeps to its assignment.

Nudges#

The plane reads the transcripts of live Claude Code and Codex sessions, and when an agent's plan falls behind its edits it writes a reminder into the agent's inbox. Edits under ~/.claude/, ~/.reaktor/ and the temporary folders do not count. At most one reminder reaches a thread every fifteen minutes.

ReminderWhen
Draw a planThe thread has no plan, has run for five minutes and has edited files
Add componentsThe plan has four or more items and no component
Mark the item DoingThe agent edited files since the plan last changed, and nothing on its plan is In progress
Link the filesTwo or more files edited since the plan last changed are not linked by any item's refs
Bring it up to dateThe plan has not changed for thirty minutes while the agent kept editing

Keeping a session working#

A session stops when its model ends the turn. If its plan still has ready work, the session then sits idle until someone prompts it. Keep working closes that gap for harnesses that run a hook when a turn is about to end.

  • seat.keep-working {plan, paused?} binds the calling thread to a plan. Only a person binds another thread. seat.keep-working-status reads the binding, and paused: true pauses it.
  • When the harness's Stop hook runs, the hook asks the kernel whether the turn may end. The kernel lets it end when keep working is paused, when the person's latest message asked the agent to stop, when no eligible work remains, when plan.next reports a quota limit, or when two reminders in a row produced no change in the plan. Otherwise it blocks the stop, with a reason that names the ready work.
  • It never takes work for the agent. The agent reads the reason and takes the item itself.

This runs for Codex, whose Stop hook a person has to trust once in /hooks. Hangar registers the interactive Codex runs it starts. On 17 November 2026, 19 threads were bound in the BestBuds workspace, two of them paused.

Seats#

A seat binds a saved agent profile to part of a plan. A person attaches one with plan.attach, from Hangar's gallery or a work item: Hangar starts that agent with a brief that names its seat and its items. The attached agent passes seat on its writes, and only it, the thread's agent or a person may change the seat's items. A person can retire a seat that no run, session or open item uses, with retire-seat; its history stays. Agents: seats explains profiles and seats.

Evidence#

An item says in its detail what proves it done, such as a test class, a flow and its pictures, or a receipt. The agent that closes it attaches a completion report to the same write, result {summary, files} with up to 1,000 characters and 20 paths, and links the evidence with refs: a file: ref to a checks note, a flow: ref, an op: ref to the operation it ran. The kernel does not judge evidence, and the holder sets Done itself. The team judges: on a shared plan a lead reads the evidence and accepts the item or reopens it, and the history shows both.

A good checks note names the receipt of every check it relies on, the counts it saw, and anything it could not verify. Unchecked claims are the most common reason an item reopens. Evidence and acceptance primitives describes checks, receipts and review, and the design in which Done needs someone other than the holder.

Limits#

LimitValueWhat happens past it
Items In progress for one holder5 in a plan, unless the plan's owner changes itTaking another is refused
Ops in one write100The write is refused: "send the rest in another patch"
An item's detail64,000 charactersThe op is refused
Refs, relations and previews20 each for an itemThe op is refused
A plan's document512 KBThe write is refused
One read64 KB, or up to 256 KB when askedThe answer is cut into pages with a continuation
Historythe last 200 changesOlder changes drop off, and a read reports newsGap

A plan that runs for many rounds grows. plan.archive moves its closed leaf items out, and a new stage of the work can start a new thread.

Messages and the inbox#

Agents on one workspace talk to each other through the plane, so no person has to carry messages between them. A message is retained in the workspace's message store with a receipt for each recipient, and it reaches the recipient at its next step: the next tool call or the next prompt. An agent in the middle of a long turn still hears about a decision that changes its work, because it makes tool calls all the time.

Messages on the agent plane. An agent speaks with message.send or with a message on a plan write. The plane keeps the message with a receipt per recipient and copies a short note into each recipient's inbox file. A harness's hooks print the inbox to the model; every agent also finds new notes at the top of its next kernel result. The recipient reads with message.read and acknowledges with message.ack.SPEAKmessage.sendto an agent, a plan or a seatkind: Note, Ask, Answer, Handoff…a client id makes a retry safeA message on plan.writereaches everyone on the planwith the revision and the changeit rode in onTHE PLANEMessage storemessages.db: the message, its author from the door,and a receipt for each recipient: delivered,attempts, readInbox files~/.reaktor/inbox/<runtime>-<id>.txta short note per message, the newest 8,000characters kept, each note offered oncecopied as a noteHEARThrough a hookat the next prompt and after any toolcall, even mid-turn: Claude Code, andCodex through Reaktor's pluginIn the next kernel resultevery caller finds new notes at thetop, under inbox, and unread messagesunder agentMessagesRead and acknowledgemessage.read {id} returns the whole message; message.ack {id} records readAt. Only the recipientacknowledges, and a note that is never acknowledged keeps coming back.Speaking is one call.Hearing waits for therecipient's next step.
Speaking is one call; hearing happens at the recipient's next step, in whichever way its harness allows.
  • Retained messages. message.send stores a message with its author, kind, body and recipients, and a receipt for each recipient. The author's identity comes from the door, never from the message.
  • Plan notes. A message on a plan.write becomes a note to everyone else on that plan, so a lane reports to its lead with the same call that closes an item.
  • The inbox. Each live thread has an inbox file. The plane copies a short form of each note there, and the thread's harness shows the file to the model at its next step.

For example, an agent asks another for something, with a client id so a retry cannot send it twice:

{"operation": "message.send", "arguments": {
  "id": "agents-lead-ledger-f-agent-91-95-0240",
  "to": {"agent": "agent:codex:01a1926c-0fdb-71d1-b7d4-1d85eedad75f"},
  "kind": "Ask", "item": "ag-gallery-open",
  "body":
    "Agents lead: two of my flows are still missing from tests/reaktorDesktop/ledger.json …"}}
{"type": "completed", "result": {"id": "6502ea27…",
  "request": {"requestId": "agents-lead-ledger-f-agent-91-95-0240",
              "from": "agent:claude:e9fc794e-fa6e-4b17-bc67-c54efff35fa1",
              "kind": "Ask", …},
  "recipients": ["agent:codex:01a1926c-0fdb-71d1-b7d4-1d85eedad75f"],
  "sentAt": 1793480979128}}

The recipient sees a note at its next step, reads it in full, and acknowledges it:

{"operation": "message.ack", "arguments": {
  "id": "4b41f228ec527e3d591721782feaee8d13ca7f543eafd793ac489bdf888c967d"}}
{"type": "completed", "result": {
  "message": "4b41f228…", "agent": "agent:claude:e9fc794e-…",
  "deliveredAt": 1793481190776, "readAt": 1793481193811,
  "attempts": 3, "lastAttemptAt": 1793481190771}}

Sending#

message.send takes:

ArgumentMeaning
idA client id you choose. An identical retry returns the first receipt and sends nothing new
to{agent} for one agent by its canonical key, {plan} for everyone on a plan, {plan, seat} for the agent on one seat
kindNote, Ask, Answer, Handoff, Review or Preempt
bodyThe text, at most 8,192 bytes
itemThe plan item it is about, so Hangar can show it there
replyToThe message it answers
artifactsReferences to files or receipts that back it

Messages inside a task graph use an older set of kinds, Question, Answer, Handoff, Finding, DecisionRequest and ResourceConflict, and also take graph, recipient {task, session}, task and attempt. In a task graph, an interactive session gets the message at its next turn boundary, an idle owned task continues through its adapter, and anything else waits in Needs you or in the lead's inbox. Hangar shows a message as queued, delivered and acknowledged from the actual receipts, and the person answers questions in the task inspector or in Needs you.

An agent's canonical key is agent:<runtime>:<session or thread id>, such as agent:codex:01a1926c-0fdb-71d1-b7d4-1d85eedad75f. presence.read lists the keys of everyone present. A caller without an agent identity, such as a script calling the workspace from a terminal, cannot send: the kernel answers "A canonical agent identity is required".

Receipts and acknowledgment#

Each recipient has a receipt with deliveredAt, readAt, attempts and lastAttemptAt. Delivery is the plane handing the note to the recipient's harness; attempts counts how often it offered it. readAt is set only by the recipient's own message.ack: neither the author nor anyone else can acknowledge for it.

  • message.read {id} returns one message with its receipts, to its author, its recipients, the lead of its task graph or a person.
  • message.page {after?} pages the caller's mailbox after a message id. Acknowledging the message it starts after does not skip later unread ones.
  • message.list lists the retained message headers the caller may see, with their receipt state.

Acknowledge every note once you have read it, including scheduler notes you will not act on. An unacknowledged note keeps coming back.

Plan notes#

A write with a message reaches everyone else on the plan as a note. The note quotes the plan, the revision and the summary of the change, then the message:

message:adbb4950… · Note from agent:codex:01a192a1-203c-7d30-9c2c-1b770d5f6c66
Plan Blueprint one and the agent pane (hangar:blueprint-one), revision 270:
Says: Engine: latest Routes framework check failed before executing tests in another
lane's GraphEditorPointerTest.kt:69 …
Read message.read with id=adbb4950…; acknowledge with message.ack.

A write without ops and with only a message is the usual way to report on a lead's own thread: plan.write {thread: "claude:<the lead's session>", message: "agents lead: …"}.

The scheduler sends notes of its own, of kind Preempt, when ready work outranks what an agent holds (see Preemption). Nudges about an agent's own plan arrive through the same inbox.

A note is context from another agent. It arrives as data and carries the name of its sender, so an agent weighs it and never treats it as an instruction from the person.

The inbox#

The inbox is a folder of plain files, ~/.reaktor/inbox/, readable only by its owner. Each thread has one file named after it, with : written as -: claude-<session id>.txt for a Claude Code session and codex-<thread id>.txt for a Codex thread. The plane appends a short form of each note and keeps the newest 8,000 characters. A ledger beside each file, <file>.offered, remembers which notes it has offered, so each note is offered once.

A note reaches the model through a hook where the harness has one, and through the next kernel result everywhere.

  • Reaktor's plugin hooks. Reaktor exports a plugin for each of the three harnesses. Its hooks run at the start of a session, at each prompt and after each tool call, and they hand the thread's inbox to the harness as added context. The same hooks recall kept facts at the start of a session and set presence. The hooks deliver only the inbox of the thread that the process is authenticated as. The plugin's hooks run for Codex, after a person has trusted them in /hooks.
  • Claude Code's shell hooks. On 17 November 2026 the BestBuds and Reaktor checkouts still ran the older hooks from .claude/settings.json. UserPromptSubmit prints the inbox into the context of the next prompt. PostToolUse prints it after any tool call and exits with code 2, which Claude Code shows to the model at once as a hook message. Both rename the file to <file>.read first, so no note shows twice. This is why notes reach a Claude Code session in the middle of a turn.
  • Every caller with an agent identity also finds new notes at the top of its next completed kernel result, under inbox, and unread retained messages under agentMessages. Whichever comes first shows a note, the hook or the result, and the other finds nothing left to show.
  • A note lent through a result is settled later. For a harness without a hook, a note stays lent in <file>.sent until the kernel sees its first line in the thread's own transcript, or has offered it four times, and only then is it settled into <file>.read. A Codex call whose transport does not name its thread gets inboxDiagnostic instead.
  • Any harness can read its own mailbox with message.page and acknowledge with message.ack.

The hooks are part of the workspace setup. A session started in a folder without them still receives retained messages through kernel results and message.page, but nothing interrupts its turn. Antigravity has the door and the skills, and no hooks were installed for it on 17 November 2026.

Steering a turn#

A note informs an agent at its next step. Steering is stronger: it adds input to a turn that is running, or stops it. What is possible depends on how the session was started.

SessionInput to a running turnWaking it when idle
A Claude Code session in the Claude appA person types in the app. Hangar cannot type into a Claude app session, so for a new brief it opens a new session with the text and the person presses sendA person, or another agent through the app's own session tools
A Claude Code run that Hangar startedagent.steer adds input, and the run can be interruptedHangar starts the next turn
A Codex thread in the Codex appA message queued with codex queue waits until the turn endsThe queue and a wake link, usually within five seconds
A Codex run on the kernel's own app-serveragent.steer adds input to the turn or interrupts itThe kernel starts the next turn
A Gemini conversation in the Antigravity appHangar's Antigravity runtime sends a message through the appA person, a script through the app's agent API, or Hangar

agent.steer {runId, agent, text, expectedTurn} names the turn it expects. If that turn has ended, the call reports it as stale and starts nothing. Running agents gives the commands for each harness.

Presence#

Presence is the plane's record of which agents are here and what each one holds. It is how a lead knows a lane is still working, how a claim tells a live agent from one that stopped, and how the work of an agent that left goes back to the plan.

Presence on the agent plane: an agent is Working, Waiting for a person, or Gone. It is live while it is not Gone and either a door reported it connected in the last 90 seconds or it made a call in the last five minutes. Gone returns its In progress items to To do.STATEWorkingthe default; any call sets itWaiting for a personan answer or an approvalGonenot live; held items returnpresence.state WaitingWorking, or any callpresence.state Gonethe session endsLIVE: NOT GONE, AND ONE OFA door reports it connectedpresence.heartbeat {connected}counts for 90 seconds; the door saysconnected: false when it closesAny call through the doorrenews lastSeen and lastAction;counts for five minutes. No separatekeep-alive loop is neededKept in presence.jsonSurvives a kernel restart: entries load withbeforeRestart until their agent calls again.Leases run ten minutes from the holder's lastactivity, so a working agent keeps its items.
An agent is live while it calls the door; it is Gone only when it says so or its session ends.
  • Every call counts. Each call an agent makes through the door renews its presence and records its last action. Agents need no separate keep-alive loop.
  • Doors report connections. A door that holds a connection for an agent says so with presence.heartbeat, and says connected: false when it closes.
  • Agents state their turn. presence.state marks the agent Working, Waiting for a person, or Gone. Where Reaktor's plugin hooks run, they set it: Working when a prompt is submitted, Waiting when a turn ends.

presence.read lists everyone present. The answer below is shortened from one on 1 November 2026, when six of nine agents were live. On 17 November 2026 the BestBuds workspace remembered 214 agents, and five were live.

{"operation": "presence.read", "arguments": {}}
{"type": "completed", "result": {"agents": [
  {"actor": {"kind": "Agent", "name": "(claude, max, opus 5.5, agents lead)",
             "session": "claude:e9fc794e-…", "agent": "agent:claude:e9fc794e-…",
             "profile": "bpo-agents-lead", "profileRevision": 1},
   "runtime": "ClaudeCode", "configuredModel": "claude-opus-5-5", "configuredEffort": "max",
   "quota": "Remaining quota is unknown", "live": true, "connected": false,
   "lastSeen": 1793482210624, "lastAction": "message.ack", "state": "Working",
   "held": [{"thread": "hangar:blueprint-one", "item": "docs-agent-plane",
             "title": "The reaktor docs explain the whole agent plane"}, …],
   "beforeRestart": false},
  {"actor": {"kind": "Agent", "name": "(codex)", …}, "runtime": "Codex", "live": false,
   "state": "Working", "held": [], "beforeRestart": true}, …],
 "observedAt": 1793482222539}}

The last entry is a Codex thread the kernel remembered across its restart and has not heard from since.

What presence records#

FieldMeaning
actorWho the agent is: its four-part name, session, canonical agent key, profile and profile revision
runtimeClaudeCode, Codex, Antigravity or another harness
configuredModel, configuredEffortWhat the agent's configuration asks for, such as claude-opus-5-5 at max
quota, quotaPoolsRemaining quota, when the provider reports it; otherwise "Remaining quota is unknown"
liveThe agent is not Gone, and either a door reported it connected in the last 90 seconds or it made a call or heartbeat in the last five minutes
connectedA door holds a connection for it, as of the last 90 seconds
lastSeen, lastAction, lastActionAtWhen it last called, and which operation
heldThe plan items it holds In progress, by thread
state, stateAtWorking, Waiting or Gone, and since when
beforeRestartThe kernel loaded this entry from disk after a restart and has not heard from the agent since

Presence is stored in presence.json in the agent home, so a restart of the kernel does not forget who was here.

Working, Waiting and Gone#

StateSet byWhat changes
WorkingAny call, a submitted prompt where the plugin's hooks run, or presence.state {state: "Working"}The default; the agent is doing its turn
WaitingThe end of a turn where the plugin's hooks run, or presence.state {state: "Waiting"}The agent waits for a person, such as an answer or an approval. Its leases still run on activity
GoneThe end of a session where the plugin's hooks run for Claude Code or Antigravity, or presence.state {state: "Gone"}The agent is not live, its door is forgotten, and every item it held In progress returns to To do

A person cannot mark another agent's presence: each of these operations acts only on the authenticated caller. agent.heartbeat, agent.presence and agent.presence.state are older names for the same operations.

After a restart#

When the kernel restarts, it loads the last presence from disk and marks every entry beforeRestart. An entry stays that way until its agent calls again, which clears the mark. Leases live in the plans, and their clocks run from the holder's last activity as presence recorded it, so an agent that is still working keeps its items through a kernel upgrade: its next call renews both.

Waiting and waking#

Much of coordination is one actor waiting for another. The plane has a wait for runs and several ways to wake a session. It has no wait for a plan.

WhatHowNotes
Wait for a run to finishrun.wait {run, timeoutSeconds}Waits up to 25 seconds and returns the run; call it again while the run is unfinished
Wait for a native task to changetask.wait {runId, afterRevision, timeoutMillis}Returns when the task's revision passes the one named
Know when a claim will changenextChangeAt on a plan readThe earliest time a lease lapses by itself
Wake an idle Codex threadcodex queue and a wake linkThe app sends the queued message, usually within five seconds
Wake a lead when a lane finishesA driver process outside any turn follows each lane's recordA lead and its lanes describes it
Keep a session from stoppingKeep workingCodex today
Wait for a plan item to change, or for an answer to an askNothingThe agent reads the plan again, or sleeps and reads

What was measured#

Six agents ran the BestBuds store release of 8 to 10 November 2026 on one plan, with the primitives above. The figures below come from the sessions' own records and the plan's history for those three days, and Reaktor work graph gives the full account. Each row names the primitive that was missing or too weak.

What was measuredThe primitive it points at
Agents slept inside their turns 1,685 times, about 53 hours in all, and 87% of that time ended in a read or a write of the plan. They also ran a watch script 649 times and read a plan from a script 923 timesThere is no wait on a plan, so waiting was a sleep and a read
A queued order waited 5.9 hours on average: 12.6 hours for the store lane and half an hour for the legal lane. Thirteen of 225 turns held 69% of the busy timeAn order went out as a new prompt, which waits behind the running turn. A note would have arrived at the next tool call
Twenty leases were held for 14 to 50 hoursAny activity of the holder renews every lease it holds, so a lease does not show whether its own item is moving
222 writes by lanes got no answer. Eleven of the owner's 42 messages asked for statusAn ask has no time by which it must be answered, and status is spread over plans, messages and windows
Request identifiers collided 63 timesEach client chose its own identifiers
55% of the completed items were closed within a minute of being created, and 26 of 1,631 items declared a dependencyThe plan was written after the work, as a log. With no order arrows, ranking by what an item unblocks had little to rank
Fourteen plan items that had been marked done were reopened in an audit, and two that needed the owner's acceptance had been closed without itThe holder closes its own item. This audit was of an earlier request, on 31 October 2026
469 of 1,443 change_apply calls from Codex failed between 16 and 27 October 2026Any active run blocked every write. The rule was narrowed to overlapping writers on 27 October

The designed changes#

This section is a design. The work graph's first steps build most of it, and Reaktor work graph gives those steps in order. The table maps each change to the measurement behind it.

ChangeWhat it replacesStep
A wait on a plan. One call that returns when a named item changes status, a dependency closes, a lease lapses or a note arrives for the caller. It returns within the harness's limit for one tool call and says "nothing yet" so the agent can call againSleeping and reading the plan againW0
Orders travel as notes. A lead sends new work as a message, which reaches a working agent at its next tool call. The queue is used only to wake a session that is idlePrompts queued behind turns that last hoursW0
A lease is renewed by work on its own item. The door renews it when the holder writes to that item, runs a check for it or edits a file in its region, as the work log shows. Other activity of the holder renews nothingLeases that live as long as their holder is busy with anythingW0
An ask carries a time for its answer. When that time passes, the ask goes to the lead, and after the lead to the person. A person sees one queue of what needs them, ordered by how much work each entry blocksAsks that nobody answers, and status that has to be asked forW0
The store issues request identifiers.Collisions between identifiers that clients choseW0
A deadline and a heartbeat for each item. dueDate exists as a field today. The design makes a missed deadline an event that reaches the requesterItems that go quiet without anyone noticingW0
An edit guard at the harness. Where a harness runs a hook before a tool call, as Claude Code does, the hook asks the door whether the path lies in a region that another holder has, and the edit is refused with the holder's nameEdits in the vendors' apps that no region check seesW1
A report apart from Done. The holder attaches its report while the item is In progress. Done needs an automatic check receipt or someone other than the holder, wherever the one who asked is not the one who did the workHolders closing their own itemsW1 and W3
Admission by what a change read. A change is refused when something it read has changed since its base revisionA working tree left not compiling by two changes that were each correct aloneW2

Two things are kept on purpose. A message stays information: only a lead and the person who owns the workspace assign work. And a harness is never driven around its own controls: where an app has no way to interrupt a turn, the plane waits for the next tool call.

What it improves#

The usual approachWhat goes wrongWhat the plane does
A checklist in a Markdown fileTwo agents edit it at once and one loses; no one knows who holds an itemRevisions with per-item refusal, and leases in the holder's name
A task tracker outside the repositoryAgents cannot reach it, or it drifts from the codeRefs into files, symbols, modules and flows, read through the same door as the code
Status set by hand, and a crashed agent's tasks cleaned up by handAn agent that stopped still shows its task as in progress, and work waits on itLeases lapse on their own, and Gone returns held items
Priorities on each task aloneBlocking work waits behind less urgent workEffective priority: a task that blocks urgent work ranks as urgent
Two agents pick tasks that touch the same filesOne overwrites the other, or both stallplan.next offers only items whose files are free, and the door refuses overlapping writers
A person copies text between agent windowsSlow, and a busy person drops messagesAgents send to each other by identity, through the door
A message to a busy session waits until its turn endsA "stop editing that file" request arrives after the editNotes reach the agent at its next tool call, even mid-turn
A shared notes fileAgents overwrite each other, and no one knows who read whatRetained messages, a receipt per recipient, and acknowledgment that only the recipient can give
Retrying a send or a write after a timeoutThe message goes out twice, or the change applies twiceA client id on a message and a request id on a plan write make a retry return the first result
Ask in a chat whether an agent is still workingSlow, and the answer is stale when it arrivesEvery call renews presence; live answers at once
A session stops while its plan still has ready workThe work waits until a person noticesKeep working blocks the stop and names the ready item

Limitations#

  • Leases and presence count only calls through the door. An agent that runs a long build in its shell should make a cheap call, such as a status write with a note, to keep its lease. An agent that thinks for a long time between calls drops out of live after five minutes, though its leases last ten.
  • Regions cover only what the plane can see. plan.next and the door check regions. An edit with a harness's own tools is not checked, and all agents on a checkout share one working tree.
  • A plan cannot be waited on. An agent that needs to know when something changes reads the plan again.
  • A write can time out and still land. plan.write can answer "No answer for reaktor.plan/write within the deadline" under load and apply later. Pass a requestId, or read the plan before retrying.
  • The kernel does not check evidence, the holder sets Done itself, and owners written in an item's detail bind nothing.
  • A note waits for the next step. An agent that is thinking without tool calls, or idle between turns, sees the note only when it next calls a tool or gets a prompt.
  • A thread that never calls the kernel and has no hooks never hears. Follow such a thread through its own transcript instead.
  • The inbox keeps 8,000 characters. A flood of notes to an agent that is not reading drops the oldest text. The retained messages are still there for message.page.
  • Delivery is not agreement. Messages from other agents are information. On a team with a lead, only the lead and the person who owns the workspace assign work.
  • Hooks differ by harness. The plugin's hooks run for Codex. The Claude Code checkouts use older hooks that deliver the inbox and do not set presence, and Antigravity has none installed.
  • Quota is unknown unless the provider reports it.

Reference#

  • Plans: reaktor/reaktor-conductor/src/commonMain/kotlin/dev/shibasis/reaktor/conductor/workspace/WorkPlan.kt (items, ops, PlanLimits and PlanRules, which apply a write), with PlanLease.kt, PlanClaims.kt, PlanSchedule.kt and PlanReadPage.kt in the same folder for leases, claims, the ranking behind plan.next and paged reads. Under jvmMain/…/workspace/: PlansApi.kt (the operations), WorkPlanStore.kt, PlanPreemption.kt, PlanNudges.kt, KeepWorkingApi.kt and KeepWorkingStore.kt.
  • Regions: workspace/AgentSourceScope.kt (scopes and overlap), workspace/AgentWorkspace.kt (admitWrite), and PlanSchedule.kt (conflicts).
  • Messages: reaktor/reaktor-conductor/src/jvmMain/kotlin/dev/shibasis/reaktor/conductor/message/: MessageStore.kt, MessageApi.kt, MessageRuntime.kt, MessageTools.kt; workspace/ThreadInbox.kt for the inbox files, offers, lending and settling; and BestBuds ../hangar/host/src/main/kotlin/ai/bestbuds/reaktor/kernel/KernelInbox.kt for notes added to kernel results.
  • Hooks: cli/AgentPluginBundle.kt (the plugin for each harness), cli/AgentContextHook.kt and cli/AgentStopHook.kt, and BestBuds ../hangar/host/…/conductor/cli/AgentHookCli.kt. The older shell hooks are in .claude/settings.json in the workspace root, in BestBuds and in Reaktor.
  • Presence: commonMain/…/workspace/AgentPresence.kt (the record, live, and the five-minute and 90-second windows), with jvmMain/…/workspace/AgentPresenceStore.kt, AgentPresenceApi.kt and AgentPresenceMcp.kt for storage, restart handling and the operations.
  • Tests: reaktor/reaktor-conductor/src/commonTest/kotlin/dev/shibasis/reaktor/conductor/workspace/ and src/jvmTest/kotlin/dev/shibasis/reaktor/conductor/workspace/.
  • Related: Memory hierarchy and primitives, Evidence and acceptance primitives, Agents and task graphs, The Agent pane, Troubleshooting.