S1 idle-capacity: the lazy-coordinator sense (card 20261122160543-4df00c21).
Coordinators never sit back (axiom 20261003154522-36473755). A coordinator pane that has been at rest for more than :idle-ms (10 min), with no working ling under it in the sixth-sense pulse while its board still holds open todo or doing cards, is spare capacity. This namespace says so:
:idle-capacity {:tmux-coordinator id :tmux-idle-ms n :tmux-live-lings n :tmux-open-cards n}
It never fires for a pane a human is busy with: a pane whose prompt holds
text (:input) or whose session is :waiting on a dialog is not idle
(compact/human-guard, the S3 human-draft guard), and the idle clock
restarts there.
A coordinator is matched by its Claude Code SESSION ID, never by pane id:
tmux reuses pane ids, so a new session in an old pane starts a fresh clock.
Its coordinator ids are the ones bb-mcp stamps (coordinator:<first 8 hex of the session id>, or coordinator:<pid> on an older launcher).
Strata:
Promote coordinator-ids / quiet? / working? / step pure over the ports
Port {:pulse :open-cards :now-ms} see Ports
Boundary default-ports soft-resolved hosts
One firing per idle spell: the pane must work again (or a human touch it) before it can fire again. Pulse and board are read only for a pane already past the threshold, and at most once per :recheck-ms while it stays there.
S1 idle-capacity: the lazy-coordinator sense (card 20261122160543-4df00c21).
Coordinators never sit back (axiom 20261003154522-36473755). A coordinator
pane that has been at rest for more than :idle-ms (10 min), with no
working ling under it in the sixth-sense pulse while its board still holds
open todo or doing cards, is spare capacity. This namespace says so:
:idle-capacity {:tmux-coordinator id :tmux-idle-ms n
:tmux-live-lings n :tmux-open-cards n}
It never fires for a pane a human is busy with: a pane whose prompt holds
text (:input) or whose session is :waiting on a dialog is not idle
(`compact/human-guard`, the S3 human-draft guard), and the idle clock
restarts there.
A coordinator is matched by its Claude Code SESSION ID, never by pane id:
tmux reuses pane ids, so a new session in an old pane starts a fresh clock.
Its coordinator ids are the ones bb-mcp stamps (`coordinator:<first 8 hex of
the session id>`, or `coordinator:<pid>` on an older launcher).
Strata:
Promote coordinator-ids / quiet? / working? / step pure over the ports
Port {:pulse :open-cards :now-ms} see `Ports`
Boundary default-ports soft-resolved hosts
One firing per idle spell: the pane must work again (or a human touch it)
before it can fire again. Pulse and board are read only for a pane already
past the threshold, and at most once per :recheck-ms while it stays there.(check {:keys [pulse open-cards]} row)The verdict on coordinator ROW, past the idle threshold, through PORTS: {:fire {...}} nothing works under it and its board is open {:busy-lings n|:unknown} lings are working, or the pulse is unreadable {:board counts} the board holds no open card, or is unreadable
The verdict on coordinator ROW, past the idle threshold, through PORTS:
{:fire {...}} nothing works under it and its board is open
{:busy-lings n|:unknown} lings are working, or the pulse is unreadable
{:board counts} the board holds no open card, or is unreadable(coordinator-ids row)The coordinator ids the session of ROW answers to: coordinator:<first 8 hex of its session id> (bb-mcp's token, scripts/session-id.sh), then
coordinator:<pid>. Empty without a session id: an unjoined pane is
nobody's coordinator.
The coordinator ids the session of ROW answers to: `coordinator:<first 8 hex of its session id>` (bb-mcp's token, scripts/session-id.sh), then `coordinator:<pid>`. Empty without a session id: an unjoined pane is nobody's coordinator.
(default-ports)(default-ports resolve-fn)The ports a running watcher uses when it is given none.
The ports a running watcher uses when it is given none.
(event-data row)The shout data an :idle-capacity event adds to its pane's row data.
The shout data an :idle-capacity event adds to its pane's row data.
(ling-beat? beat)Is pulse row BEAT a ling? The pane watcher's own shouts (agent
tmux:<pane name>) beat the pulse too, under the watcher's parent; they
are panes, not lings.
Is pulse row BEAT a ling? The pane watcher's own shouts (agent `tmux:<pane name>`) beat the pulse too, under the watcher's parent; they are panes, not lings.
Pulse states of a ling that is alive but does no work for its coordinator: it waits on it (ask, blocked) or has stopped making progress.
Pulse states of a ling that is alive but does no work for its coordinator: it waits on it (ask, blocked) or has stopped making progress.
(open-cards-port resolve-fn)An :open-cards port over the host's kanban summary of the project the pane's cwd belongs to. nil off-host, for a pane outside any project, or when the board cannot be read.
An :open-cards port over the host's kanban summary of the project the pane's cwd belongs to. nil off-host, for a pane outside any project, or when the board cannot be read.
(open-count counts)Open cards of a board count map {:todo n :doing n}: todo plus doing.
Open cards of a board count map {:todo n :doing n}: todo plus doing.
The ports. Each value is a fn: :pulse ([coordinator-id ...]) -> [{"agent" "state" ...} ...], the live lings whose parent is one of the ids; nil when the pulse cannot be read (then nothing fires: zero lings is not proven) :open-cards (pane-row) -> {:todo n :doing n}, the board of the pane's project; nil when it cannot be read :now-ms () -> epoch ms
The ports. Each value is a fn:
:pulse ([coordinator-id ...]) -> [{"agent" "state" ...} ...], the
live lings whose parent is one of the ids; nil when the
pulse cannot be read (then nothing fires: zero lings is
not proven)
:open-cards (pane-row) -> {:todo n :doing n}, the board of the pane's
project; nil when it cannot be read
:now-ms () -> epoch ms(pulse-port resolve-fn)A :pulse port over sixth-sense's pulse (resolved by RESOLVE-FN): the live
beats under each coordinator id, read through a receptor on that parent.
Answers nil (unreadable, so nothing fires) when sixth-sense is absent.
A :pulse port over sixth-sense's `pulse` (resolved by RESOLVE-FN): the live beats under each coordinator id, read through a receptor on that parent. Answers nil (unreadable, so nothing fires) when sixth-sense is absent.
(quiet? row)Is ROW's pane at rest with nobody's hand on it? Idle (compact/idle?) and
no human guard (compact/human-guard: no draft at the prompt, no open
dialog, not :waiting).
Is ROW's pane at rest with nobody's hand on it? Idle (`compact/idle?`) and no human guard (`compact/human-guard`: no draft at the prompt, no open dialog, not :waiting).
(step ports states rows now opts)All coordinator panes: STATES (session id -> state) and ROWS now -> {:states :events}. Only Claude panes joined to a session count, and they are keyed by session id, so a reused pane id is a new coordinator. A session no longer on screen is forgotten. OPTS :exclude (refs) drops panes.
All coordinator panes: STATES (session id -> state) and ROWS now ->
{:states :events}. Only Claude panes joined to a session count, and they
are keyed by session id, so a reused pane id is a new coordinator. A
session no longer on screen is forgotten. OPTS :exclude (refs) drops panes.(working? beat)Is pulse row BEAT a ling at work?
Is pulse row BEAT a ling at work?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |