Skip to content

Agents and automation

Coordinator threads

Long-lived Code threads that start worker threads, keep track of them, and bring their questions back to you.

  • 13 min read
  • 11 sections

Coordinator threads ​

A coordinator is a long-lived Code thread that splits a Project's work into worker threads, starts them, keeps track of them, and brings their questions back to you. You talk to one thread for a line of work instead of keeping many threads in your head.

Choose where to work ​

  • Project conversation is the lasting place for Project-wide direction, assignments, reports, and decisions. Open it from the Code Project or its pinned rail tile. It stays available as tasks finish and has no Mark done action or pull request of its own. See Open a Code Project's conversation.
  • Named coordinator runs one line of work, such as a release, with its own brief, workers, and limits. Use Stop coordinating to end that role. Its workers keep their original ownership.
  • Task thread handles one task. Open it to steer the work, inspect its checkout and evidence, answer requests, and review delivery. It has its own applicable review state and Done.

You can also designate an existing thread as the Project planner. Each worker it proposes waits for your approval, even when the Project uses Start without asking. The Project conversation keeps its own history and follows the Project’s Starting workers setting.

Start a coordinator ​

  • New coordinator: open a Code Project's menu in the sidebar and choose New coordinator. Write your first message as usual; the thread becomes a coordinator before that message is sent. Under the message box, one line shows the level its workers start at and its limits; choose Change… to open Coordinator settings and change them.
  • From an existing thread: right-click the thread in the sidebar, or right-click its pane header, and choose Make coordinator. Its submenu, under Workers start at, asks the level its workers start at.
  • Stop: choose Stop coordinating in the same menus. The thread becomes an ordinary thread again; its workers stay as they are.

A Project can have up to four coordinators by default; change that with Settings › Limits › Coordinators › Coordinators per Project (up to 32). A worker thread can't become a coordinator. The Project's planner thread already counts as a coordinator whose new workers always need your approval.

Every coordinator, the planner included, also gets the Orchestration text you write in Settings → General: how to split work, which provider or model suits which task, how workers report back, and when to stop and ask. It guides the coordinator's choices and grants nothing. Stop coordinating takes it away from the next turn. See Octant instructions.

What a coordinator does ​

  • It directs; its workers do the work. A coordinator's own turn runs at its thread's access mode, like any thread's: at Ask first it asks before an edit or a command, and at Full access it acts without asking. So it can make a small edit itself instead of starting a worker for it. Under Strict it reads and its workers write: its own turns stay read-only, like Plan, at every mode, Full access included. Either way its access mode sets the most its workers may have, and it opens no pull request of its own.
  • It starts workers. Each worker is an ordinary Code thread on its own worktree, with its own branch, review and Done. Its first message is what the coordinator asked it to do, and every approval in it waits for you. A worker never starts at a higher level than its coordinator, unless you fixed the workers' level when you made it a coordinator.
  • It keeps track. Every turn, the coordinator sees which of its workers are working, waiting for you, finished or Done. When a worker finishes or starts waiting for you, an idle coordinator wakes up to look.
  • It talks to workers. The coordinator and its workers leave each other messages. A worker wakes for its own coordinator's messages unless you turn off Wake for coordinator on that worker.

Two threads answering each other stop waking each other after ten rounds, and a thread wakes at most 30 times an hour; change those defaults for every thread under Settings › Limits › Wake-ups and messages. Running a turn yourself starts the count again. A coordinator can have limits of its own; see Set a coordinator's limits.

Choose the level workers start at ​

Workers start at, in the New coordinator draft's Coordinator settings and in the Make coordinator submenu, decides the access mode of every worker the coordinator starts. Both name the choices This thread's level or lower, Ask for approvals, Auto-accept edits and Full access:

  • Workers start at this thread's level or lower (the default): a worker never starts above its coordinator. A coordinator that has read outside content can still start a worker at Full access, and the worker is marked as started from a thread that read outside content. Under Strict such a coordinator never starts a worker at Full access.
  • Workers always start at Ask for approvals, Workers always start at Auto-accept edits, or Workers always start at Full access: every worker starts at exactly that level, also after the coordinator has read outside content. The worker is still marked as started from a thread that read outside content.

The choice is made once, when the thread becomes a coordinator. It cannot be changed later and ends with Stop coordinating. You can change a worker's own mode after it starts, as on any thread.

Set a coordinator's limits ​

A coordinator has three limits. In the New coordinator draft, choose Change… under the message box; each limit has a stepper that starts at its default:

LimitWhat it limitsDefaultRange
Check-ins an hourHow often the coordinator, and each of its workers, wakes for a message301–600
Back-and-forthsHow many times two threads answer each other before they stop waking each other101–100
New workers an hourHow many workers the coordinator starts or proposes in an hour601–600

To change them on a running coordinator, choose Coordinator limits… in its sidebar row menu or pane header menu, change the numbers and choose Save. A limit left at its default goes back to the default. Only you set them, at a window on this computer or through the server from a device you paired yourself (recorded as that device); an agent cannot. The paired phone and browser have no Coordinator limits… screen yet. They apply to the coordinator and to its workers while it coordinates, end with Stop coordinating, and every other thread, a worker whose coordinator stopped included, uses the defaults. The Project's planner thread has no limits or Done when condition of its own and does not offer Coordinator limits… or the header Done when button.

Set a "done when" condition ​

You can give a running coordinator a host-checked Done when condition so Octant keeps checking concrete milestones and wakes the coordinator while anything remains unmet.

Choose Done when in the coordinator's pane header (beside Workers, showing how many items are active) or Coordinator limits… in its menu to view, add, remove, or clear (Clear all) conditions alongside its limits, then choose Save. One coordinator holds up to 16 unique conditions from a closed set:

  • Pull request merged — a GitHub repository (owner/name) and pull request number.
  • Required checks green — a GitHub repository (owner/name) and pull request number.
  • Thread Done — an active non-coordinator Code thread in the same Project (excluding the Project's planner), met when the thread is marked Done or has fresh read-only Git or pull-request delivery evidence.

Only you can set, edit, or clear a condition, from a window on this computer or through the server from a device you paired yourself; agents, routines, hub-introduced devices, and agent grants are refused. Stop coordinating clears the condition along with the coordinator role. The Project's planner thread does not support Done when conditions and does not show the Done when button in its header.

  • Bounded checks with backoff. While any item is unmet, the host checks on a per-coordinator schedule starting at 30 seconds and backing off up to 15 minutes while the same items stay unmet (resetting to 30 seconds whenever the unmet set changes). Multiple conditions on the same pull request share one read-only check.
  • Wakes under existing bounds, never starts workers. Each unmet check wakes the coordinator through its ordinary wake path and limits (check-ins an hour, back-and-forths, one turn at a time, and the thread's wake switch), naming only the unmet items as host facts — never pull request titles, comments, check logs, or agent-written thread titles, so checking does not mark the coordinator as having read outside content. The host never starts or proposes workers itself.
  • Stops once met and survives restarts. Checking stops as soon as every item holds, or when you clear the condition, stop coordinating, or archive the coordinator. An unmet condition survives a restart of Octant (and any recovered wake re-checks live so a stale wake drops if the condition now holds), while a condition that already held stays satisfied across restarts unless you edit or set it again.

Your questions come to the coordinator ​

A worker's approvals and questions appear in its coordinator's composer, naming the worker, with Open worker to jump to it. The composer shows one at a time, with a choice between them.

Each one also shows as its own row at the end of the coordinator's transcript, oldest first. The row names the worker (select the name to open it) and offers the same answers as the composer, so you can answer every waiting worker from the coordinator's view.

You answer in the row, in the composer, or in the worker; it is the same request, so answering it in one place settles it everywhere. A row stays after its request is settled until you close the view, and says what you chose there, or that it is no longer waiting when it was answered elsewhere or its turn ended. The last 12 settled rows stay. In Needs you, a worker's row says which coordinator it belongs to. The coordinator itself never answers a worker's approval or question for you.

Choose whether coordinators may start workers on their own ​

Settings › Code › Coordinators › Starting workers:

  • Start without asking (the default): a coordinator starts workers itself.
  • Propose for approval: each new worker waits for you. It shows as a card above the coordinator's composer, and in the Project overview, with Review and approve and Decline. The review opens with the provider, model and access level the coordinator asked for, and never offers a higher level. A phone or browser you paired yourself shows Approve and start and Decline on each pending worker: approving starts it exactly as the coordinator asked (a new worktree from the coordinator's base branch, on the provider and model the proposal names, at the requested level), and choosing anything else needs the review at a window. A device you did not pair yourself sees them read-only, with Approve at a window on this computer.

A Code Project can choose differently in its overview (Use Settings, Start without asking or Propose for approval). Open workers per coordinator (1–16, default 6) limits how many unfinished workers one coordinator may have; a coordinator can also start at most 60 workers an hour unless you set another number, and that count holds across a restart of Octant.

Wake when a message arrives ​

Any Code or Work thread can have Wake when a message arrives turned on from its row menu; it is off by default. Then a message from another thread of the same mode in the Project starts a turn on it when it is idle, at the thread's own level, with every approval waiting for you. Work threads cannot be coordinators. Making a thread a coordinator turns this on for it. You set these switches from a window on the computer running Octant. A device you paired yourself can also set them, and make a thread a coordinator or stop it coordinating, choose its workers' level and change its limits, through the server, each change recorded as that device; the paired phone and browser do not show these coordinator controls yet. An owner device a hub introduced can also read and change them from its owner access screen: choose the Code thread, press Read wake switches, then turn Wake when a message arrives (and, on a worker, Wake for coordinator) on or off. Each change asks you to unlock again. Any other hub-introduced device can't change them.

Where coordinators appear ​

A coordinator's workers live inside it.

  • In the coordinator: choose Workers in its header (beside Done when, except on the Project's planner) to see them in groups: Needs you, Working, In review, Done, and Settled (settled without being done). Each worker also shows as a card in the conversation, at the point where it started, with its live state. Click a worker to open it. Back to coordinator returns you.
  • Sidebar. When Show workers is off, each named coordinator in the Project's Coordinators section shows how many of its workers are working and how many need you. For workers started from the Project conversation, look for those counts on the Project row when sidebar status indicators are enabled.
  • Board: coordinators never appear as cards, and by default neither do their workers.
  • Needs you: a worker's requests always appear there, naming the worker and, after "via", its coordinator.

To list workers in the sidebar (folded under their coordinator) or on the board (with Filters › Coordinator), turn on Settings › Code › Coordinators › Show workers, or choose it for one Project in its overview. Workers listed outside their coordinator carry a smaller version of the coordinator mark.

How a coordinator picks a worker's model ​

Each worker takes its model from the model roles in Settings, or from the Project's own choice for a role. You do not pick a model per worker, and the coordinator does not either unless it has a reason.

  • By size. A quick task uses Quick edit, a normal one Builder, and a hard one Hard problems. A review uses Reviewer, on another provider than the worker it reviews when one is available. A retry never goes to a lower role.
  • Main model first. The worker starts on the role's main model. A model is skipped when its provider is signed out, at a usage limit, or down for the last 5 minutes, when the Project does not allow it, or when its tools are not verified. The next model in the list is used, and the worker row says "fallback: …" with the reason.
  • Borrowing the next tier. When every model in a role is skipped, the role borrows the next one up (Quick edit, then Builder, then Hard problems). The row says why. When nothing is left, the start is refused.
  • A choice by the coordinator. The coordinator may name a role or a model from the roles' lists, never one outside them. You see its reason on the worker row, which says "chosen: …".
  • Ask before using. When a role has Ask before using, a start on it becomes a card above the composer instead of a worker, even under Start without asking. The card names the role, model and reason, and offers Use Builder instead beside approve and decline.

When a running worker's model stops ​

If a worker's model stops on a usage limit or an outage, the worker carries on with the next model of its role, where the role's Continue on the fallback if the model stops box is on (it is on by default). The transcript, the worker row and the coordinator all say what happened. The worker walks the list once and never goes back.

This applies only to workers a coordinator started on a model its roles chose. It never moves a thread you started, a worker whose model you changed, or a worker in a role with Ask before using. With no model left, or the box off, the worker pauses and shows under Needs you.

A coordinator starts full threads; for short sub-tasks inside one thread, its agent uses subagents.

Octant documentation · local-first by design