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#
Coordination answers three questions about every piece of work.
- Who holds what? The plan says what is being built and in what order, and a lease says who holds each item now.
- 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.
- 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#
| Question | Primitive | What it is | State on 17 November 2026 |
|---|---|---|---|
| Who holds what | Plan and item | The shared statement of the work: components, tasks, checks and decisions, with order arrows | In daily use |
| Revision | A number for every change. A write names the revision it read, and a conflicting op is refused for that item only | In daily use | |
| Lease | Who holds an item that is In progress. It lapses ten minutes after the holder's last activity | In daily use | |
| Claim | A lease combined with presence: who is on this item now, and are they alive | In daily use | |
| Rank | plan.next gives an agent the highest ready item whose files are free | In daily use | |
| Seat | A saved agent profile that a person attached to part of a plan | Built; used when a person attaches an agent | |
| What each may change | Region | The files that an item's references resolve to | Used by plan.next |
| Write admission | The door refuses a write whose scope overlaps a running writer's | Used for writes through the door | |
| Radar | A read, before editing, of which other sessions touch the same files | In use | |
| How a fact reaches the actor | Message and receipt | A kept message with one receipt for each recipient | In daily use |
| Plan note | A message that rides on a plan write and reaches everyone else on the plan | In daily use | |
| Inbox | A file for each thread, shown to the model at its next prompt or tool call | In daily use for Claude Code and Codex | |
| Steering | Input added to a turn that is already running | Differs by harness | |
| Presence | Who is here, what each holds, and whether each is working or waiting | In daily use | |
| Keep working | A check, when a session is about to stop, of whether its plan still has ready work | In use for Codex | |
| Waiting and waking | Waiting for a run to change, and waking an idle session | Runs 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.
- 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/withdocumentPath, 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:
| Field | Values | Meaning |
|---|---|---|
kind | Component, Task, Check, Decision | A component groups parts and is drawn as a frame; a check proves something; a decision records a choice |
status | Todo (To do), Doing (In progress), Done, Dropped (Won't do) | A dropped item needs a nonblank reason and may name a replacement item |
priority | Low, Normal, High, Urgent | Normal by default |
detail | Markdown, up to 64,000 characters | The shared note of the item: what done looks like, and the most important outcome for a person |
parent | an item id | The component it belongs to |
after | item ids | The 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 |
refs | file:, symbol:, module:, graph:, op:, flow:, task: or url: links | Where the work lives. Hangar opens each one, and the file, symbol and module links form the item's region |
seat | a seat id | The 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 |
previews | up to 20 image links | Pictures of the result, shown in Hangar's task sidebar |
workLogs | time windows | When each session held the item, so Hangar can show the session's log beside it |
effort, startDate, dueDate | a number and two dates | Planning fields that a person or an agent may set |
by, revision, changedAt, createdAt | The 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
baseof your next write. - A large plan is read in pages. An answer holds at most 64 KB unless
budgetBytesasks for more, up to 256 KB.completesays whether the answer holds everything,totalandoffsetsay where it stands, andcontinuationcontinues it at the same revision.framereads one component with everything under it. - News can be cut short. When
newsTruncatedis true, read again withsinceset tonewsSincebefore moving on. WhennewsGapis true, some changes are older than the history keeps, andchangedItemsgives the present state of what changed. plan.listlists 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:
| Op | Arguments | Notes |
|---|---|---|
add | key, title, detail, kind, status, parent, after, refs, priority, previews, effort, startDate, dueDate, reason, replacement | Only title is required |
update | item, title, detail, kind, parent, root, refs, priority, previews, effort, startDate, dueDate, orderBefore, orderLast, reason, replacement | refs replaces the list; root: true moves the item out of its component; clearEffort, clearStartDate and clearDueDate empty a field |
status | item, status, reason, replacement, result | Dropped needs a reason. result {summary, files} is the completion report, allowed only with Done |
connect, disconnect | from, to | to waits on from |
relate, unrelate | from, to, label | |
remove | item | A person only; agents close an item as Dropped with a reason instead, so planned history stays |
retire-seat | seat, reason | A 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 intoplans/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. Withouttakeit only reads. Withthreadanditemit 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
statusop toDoingon 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:
| State | When |
|---|---|
Live | The holder's lease is current and the holder is live: it made a call or a heartbeat in the last five minutes |
Claimed | The lease is current, but the holder has not been seen recently |
Stale | The lease has lapsed; the scheduler is about to return the item to To do |
Completed | The item is Done; the claim names who closed it, from the history |
Unavailable | Presence 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.nextoffers only items whose files are free. The kernel resolves an item'sfile:,symbol:andmodule: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 thescopeof a run started withtask.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-onehas effective priority Urgent; your lane inclaude:…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.
| Reminder | When |
|---|---|
| Draw a plan | The thread has no plan, has run for five minutes and has edited files |
| Add components | The plan has four or more items and no component |
| Mark the item Doing | The agent edited files since the plan last changed, and nothing on its plan is In progress |
| Link the files | Two or more files edited since the plan last changed are not linked by any item's refs |
| Bring it up to date | The 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-statusreads the binding, andpaused: truepauses 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.nextreports 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#
| Limit | Value | What happens past it |
|---|---|---|
| Items In progress for one holder | 5 in a plan, unless the plan's owner changes it | Taking another is refused |
| Ops in one write | 100 | The write is refused: "send the rest in another patch" |
| An item's detail | 64,000 characters | The op is refused |
| Refs, relations and previews | 20 each for an item | The op is refused |
| A plan's document | 512 KB | The write is refused |
| One read | 64 KB, or up to 256 KB when asked | The answer is cut into pages with a continuation |
| History | the last 200 changes | Older 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.
- Retained messages.
message.sendstores 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
messageon aplan.writebecomes 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:
| Argument | Meaning |
|---|---|
id | A 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 |
kind | Note, Ask, Answer, Handoff, Review or Preempt |
body | The text, at most 8,192 bytes |
item | The plan item it is about, so Hangar can show it there |
replyTo | The message it answers |
artifacts | References 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.listlists 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.UserPromptSubmitprints the inbox into the context of the next prompt.PostToolUseprints 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>.readfirst, 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 underagentMessages. 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>.sentuntil 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 getsinboxDiagnosticinstead. - Any harness can read its own mailbox with
message.pageand acknowledge withmessage.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.
| Session | Input to a running turn | Waking it when idle |
|---|---|---|
| A Claude Code session in the Claude app | A 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 send | A person, or another agent through the app's own session tools |
| A Claude Code run that Hangar started | agent.steer adds input, and the run can be interrupted | Hangar starts the next turn |
| A Codex thread in the Codex app | A message queued with codex queue waits until the turn ends | The queue and a wake link, usually within five seconds |
| A Codex run on the kernel's own app-server | agent.steer adds input to the turn or interrupts it | The kernel starts the next turn |
| A Gemini conversation in the Antigravity app | Hangar's Antigravity runtime sends a message through the app | A 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.
- 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 saysconnected: falsewhen it closes. - Agents state their turn.
presence.statemarks 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#
| Field | Meaning |
|---|---|
actor | Who the agent is: its four-part name, session, canonical agent key, profile and profile revision |
runtime | ClaudeCode, Codex, Antigravity or another harness |
configuredModel, configuredEffort | What the agent's configuration asks for, such as claude-opus-5-5 at max |
quota, quotaPools | Remaining quota, when the provider reports it; otherwise "Remaining quota is unknown" |
live | The 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 |
connected | A door holds a connection for it, as of the last 90 seconds |
lastSeen, lastAction, lastActionAt | When it last called, and which operation |
held | The plan items it holds In progress, by thread |
state, stateAt | Working, Waiting or Gone, and since when |
beforeRestart | The 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#
| State | Set by | What changes |
|---|---|---|
| Working | Any call, a submitted prompt where the plugin's hooks run, or presence.state {state: "Working"} | The default; the agent is doing its turn |
| Waiting | The 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 |
| Gone | The 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.
| What | How | Notes |
|---|---|---|
| Wait for a run to finish | run.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 change | task.wait {runId, afterRevision, timeoutMillis} | Returns when the task's revision passes the one named |
| Know when a claim will change | nextChangeAt on a plan read | The earliest time a lease lapses by itself |
| Wake an idle Codex thread | codex queue and a wake link | The app sends the queued message, usually within five seconds |
| Wake a lead when a lane finishes | A driver process outside any turn follows each lane's record | A lead and its lanes describes it |
| Keep a session from stopping | Keep working | Codex today |
| Wait for a plan item to change, or for an answer to an ask | Nothing | The 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 measured | The 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 times | There 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 time | An 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 hours | Any 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 status | An ask has no time by which it must be answered, and status is spread over plans, messages and windows |
| Request identifiers collided 63 times | Each 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 dependency | The 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 it | The 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 2026 | Any 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.
| Change | What it replaces | Step |
|---|---|---|
| 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 again | Sleeping and reading the plan again | W0 |
| 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 idle | Prompts queued behind turns that last hours | W0 |
| 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 nothing | Leases that live as long as their holder is busy with anything | W0 |
| 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 blocks | Asks that nobody answers, and status that has to be asked for | W0 |
| The store issues request identifiers. | Collisions between identifiers that clients chose | W0 |
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 requester | Items that go quiet without anyone noticing | W0 |
| 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 name | Edits in the vendors' apps that no region check sees | W1 |
| 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 work | Holders closing their own items | W1 and W3 |
| Admission by what a change read. A change is refused when something it read has changed since its base revision | A working tree left not compiling by two changes that were each correct alone | W2 |
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 approach | What goes wrong | What the plane does |
|---|---|---|
| A checklist in a Markdown file | Two agents edit it at once and one loses; no one knows who holds an item | Revisions with per-item refusal, and leases in the holder's name |
| A task tracker outside the repository | Agents cannot reach it, or it drifts from the code | Refs 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 hand | An agent that stopped still shows its task as in progress, and work waits on it | Leases lapse on their own, and Gone returns held items |
| Priorities on each task alone | Blocking work waits behind less urgent work | Effective priority: a task that blocks urgent work ranks as urgent |
| Two agents pick tasks that touch the same files | One overwrites the other, or both stall | plan.next offers only items whose files are free, and the door refuses overlapping writers |
| A person copies text between agent windows | Slow, and a busy person drops messages | Agents send to each other by identity, through the door |
| A message to a busy session waits until its turn ends | A "stop editing that file" request arrives after the edit | Notes reach the agent at its next tool call, even mid-turn |
| A shared notes file | Agents overwrite each other, and no one knows who read what | Retained messages, a receipt per recipient, and acknowledgment that only the recipient can give |
| Retrying a send or a write after a timeout | The message goes out twice, or the change applies twice | A 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 working | Slow, and the answer is stale when it arrives | Every call renews presence; live answers at once |
| A session stops while its plan still has ready work | The work waits until a person notices | Keep 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
liveafter five minutes, though its leases last ten. - Regions cover only what the plane can see.
plan.nextand 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.writecan answer "No answer for reaktor.plan/write within the deadline" under load and apply later. Pass arequestId, 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,PlanLimitsandPlanRules, which apply a write), withPlanLease.kt,PlanClaims.kt,PlanSchedule.ktandPlanReadPage.ktin the same folder for leases, claims, the ranking behindplan.nextand paged reads. UnderjvmMain/…/workspace/:PlansApi.kt(the operations),WorkPlanStore.kt,PlanPreemption.kt,PlanNudges.kt,KeepWorkingApi.ktandKeepWorkingStore.kt. - Regions:
workspace/AgentSourceScope.kt(scopes and overlap),workspace/AgentWorkspace.kt(admitWrite), andPlanSchedule.kt(conflicts). - Messages:
reaktor/reaktor-conductor/src/jvmMain/kotlin/dev/shibasis/reaktor/conductor/message/:MessageStore.kt,MessageApi.kt,MessageRuntime.kt,MessageTools.kt;workspace/ThreadInbox.ktfor the inbox files, offers, lending and settling; and BestBuds../hangar/host/src/main/kotlin/ai/bestbuds/reaktor/kernel/KernelInbox.ktfor notes added to kernel results. - Hooks:
cli/AgentPluginBundle.kt(the plugin for each harness),cli/AgentContextHook.ktandcli/AgentStopHook.kt, and BestBuds../hangar/host/…/conductor/cli/AgentHookCli.kt. The older shell hooks are in.claude/settings.jsonin the workspace root, in BestBuds and in Reaktor. - Presence:
commonMain/…/workspace/AgentPresence.kt(the record,live, and the five-minute and 90-second windows), withjvmMain/…/workspace/AgentPresenceStore.kt,AgentPresenceApi.ktandAgentPresenceMcp.ktfor storage, restart handling and the operations. - Tests:
reaktor/reaktor-conductor/src/commonTest/kotlin/dev/shibasis/reaktor/conductor/workspace/andsrc/jvmTest/kotlin/dev/shibasis/reaktor/conductor/workspace/. - Related: Memory hierarchy and primitives, Evidence and acceptance primitives, Agents and task graphs, The Agent pane, Troubleshooting.