Skip to content

coordinator-mod

A Claude Code mod for the session that runs workflow:coordinator. It shows what the coordinator tracks without anyone asking for the status table: the tasks by state, their pull requests, the open owner questions and the machine's load. It is read-only. Merging, starting, parking and cleaning up stay in the conversation.

It needs Claude Code 2.1.287 or later, the first release that loads mods. The investigation behind it is on the result page of #250.

What it shows

Where What
Band above the prompt coordinator, the tasks counted by state (needs owner, blocked, green, working, merged, done), the open owner questions, the machine line (load against CPUs, free memory, free worker slots and what limits them), stale <n>m when the snapshot is older than five minutes, and a board button
/coordinator-board pane one section per repository, with one row per coordinator: a triangle (▶ closed, ▼ open), its host, its session, how many tasks it holds and the one item that most needs attention. Opening a coordinator lists its workers as rows, each with its own triangle. This coordinator's rows open to the issue, the PR with checks, open threads and merge state, the session state, the worker's memory and the last report, with a link to the PR. Another coordinator's rows open to what its GitHub claim carries (peers): the PR with checks, review and merge state, the branch and since when; its session state and last report stay on its own machine. Then the open owner questions and a link to the Question Board. A desk button next to another coordinator opens the Owner Desk
Toasts a worker reports green or blocked, a PR merges, a worker's session goes away

Links. Every issue or pull request reference the pane draws is a link to GitHub, also inside a task title or a last report: #522 goes to https://github.com/<repo of the snapshot>/issues/522 (GitHub redirects to the pull request when the number is one), owner/repo#522 to that repository. Only a number, and a repository that has the shape of one, build a link; #abc and #12a stay text. Toasts are plain text, since $.ui.toast takes text only.

Open and closed. The state lasts while the session runs, and a new snapshot every 20 seconds does not reset it. In a coordinator session its own coordinator is first and open and the others follow closed; in any other session every coordinator is closed. A phone, or fewer than 60 body columns, draws one line per coordinator with no triangles, as owner-desk does.

The states come from the snapshot:

  • merged: the PR is merged.
  • needs owner: the last report is blocked with owner decision.
  • blocked: any other blocked report, or a blocked session.
  • done: a done_no_pr report, or a session that is gone.
  • green: a green report, or an open PR with passing checks, no open threads and no merge blocker.
  • working: anything else.

Every surface that draws mods draws the band in the coordinator session (see Where it draws); owner-desk already draws one in every session. Only a surface that docks panes (a wide fullscreen terminal, the desktop app) shows the pane beside the transcript.

Where the data comes from

coordinator status, and every poll of coordinator watch, writes <base_dir>/.coordinator/<owner>-<repo>.status.json (mode 0600) next to the coordinator's state file. The mod finds base_dir in the coordinator's config, ~/.config/workflow-coordinator/config.json ($XDG_CONFIG_HOME and WORKFLOW_COORDINATOR_CONFIG are honoured, as coordinator config does). It reads every snapshot in that folder again every 20 seconds. The one whose recorded coordinator is this session, by session id or by folder, is this session's own: it gets the band, the toasts and the first, open row. The coordinator object also carries the machine's short name as host (workflow 0.85.2), which names that row; a snapshot without it says here.

The machine's load and the free worker slots are the machine and slots keys of coordinator status (#251). Until a coordinator writes them, the machine line stays empty.

The other coordinators are the snapshot's peers (#403, workflow 0.48.0): read from the claim and reservation comments on GitHub, at most every five minutes, and drawn as one short line each; the details stay in owner-desk. A snapshot without peers shows this coordinator's tasks only.

Owner Desk. The desk button opens the owner-desk pane when that mod registered. The mod learns it from a plugin.register hook, which fires for each module that joins after this one; when owner-desk is not installed (or loaded first), the button shows one line, /plugin install owner-desk@&lt;owner&gt;, then start a new session, instead of an empty pane.

Access. The mod reads two files and four environment variables (HOME, USERPROFILE, XDG_CONFIG_HOME, WORKFLOW_COORDINATOR_CONFIG). It runs no command, makes no network call, writes no file and holds no token. claude plugin validate plugins/coordinator-mod lists every call it makes.

Where it draws

A mod draws only in a session that runs on the machine in front of you: a terminal, or a local session in Claude Desktop. A Remote Control view of a session (in claude.ai/code, in Claude Desktop, on the phone) shows the transcript but no mod. The headless coordinators on the service host load the mods too, but nobody sees them there.

The /coordinator-board pane opens in every local session on the host, not only in the coordinator's: in another session it shows one section per repository snapshot in the coordinator's .coordinator folder, every coordinator closed. The band and the toasts stay in the coordinator session. To see a headless coordinator's work from another machine, run a local coordinator of the repository there and read its rows, or use owner-desk.

Installation

On a machine that runs a coordinator:

/plugin install coordinator-mod@<owner>

A copy installed through claude.ai is synced to the machine as coordinator-mod@synced and is updated there, not by claude plugin update coordinator-mod@<owner>; update the one you installed.

Then start a new session. /reload-plugins loads it in a terminal session, but it does not work over Remote Control: there, start a new session instead.

Development

claude plugin validate plugins/coordinator-mod --strict
claude plugin test plugins/coordinator-mod

The logic without $ is in hooks/board.ts (plugins/coordinator-mod/hooks/board.ts), and the hooks are in hooks/register.tsx (plugins/coordinator-mod/hooks/register.tsx). The snapshot's type is in types/index.d.ts (plugins/coordinator-mod/types/index.d.ts). claude --plugin-dir plugins/coordinator-mod loads a working copy into one session.

Limits

  • CI validates the manifest, but it does not run claude plugin test. Run the tests yourself before a pull request.
  • Tested in the test kit on the terminal, desktop, vscode and mobile element sets. Over Remote Control it does not draw (see Where it draws).
  • The view is only as fresh as the last watch poll, about a minute. While no watch runs, the band says stale.