Skip to content

Places and herdr

A place is the worktree flume makes for one launch. Every stage of the work runs there, one agent at a time, and flume removes it once the work lands or is dropped. Where the agents run is the host’s choice, and each stream’s: in herdr panes, in Rex blocks, or as commands flume prints. flume open shows a stream’s agents in a window.

flume makes a plain git worktree of the repository, named <kind>--<name>, on the branch <prefix>/<name>, where the prefix is the kind’s. It cuts the branch from the base’s current revision. Where the repository’s sluice policy lands the base on a remote, flume fetches that remote first and cuts the branch from the remote’s revision. Where the policy lands the base locally, it cuts from the local base, where each landing goes. Where no merge queue is bound, or the policy names no table for the base, flume fetches the base from origin and cuts from origin/<base>, so a local copy that lags origin is never read. It cuts from the local base only where the repository has no origin, or origin holds no such branch. A launch whose fetch fails otherwise is refused. flume status says beside each place’s base where its revision was read.

The repository is the directory git finds one in, a clone’s main worktree, or, in a bare layout, project/project.git with its worktrees beside it, the directory project. Every place goes under flume’s own data directory, inside no working tree or directory of the repository, so the repository’s status, its formatters and its other tools never see one: $XDG_DATA_HOME/flume/places/<id>/<kind>--<name>, by default ~/.local/share/flume/places/<id>/, where <id> is the repository’s, the same id its agents’ identities carry. flume status names each place’s location. A place an earlier flume made at <repository>/places/<kind>--<name> stays there until it is tidied, and is named by its kind and name as before.

A repository binds the place tool in its .config/flume.toml:

[profiles]
place = "git-worktree"

git-worktree is the one place profile, and a repository that names none gets it. flume reads the [profiles] table at the default branch, and never guesses a tool from another tool’s files.

A launch is refused whole when anything of it already stands: the place’s directory, its branch, or a live place of the same kind and name. Nothing is left behind by a refused launch.

A place is made ready by its merge queue, as the merge queue makes ready the working copies of its own runs. flume runs no step of its own. With sluice bound, flume runs one command in the new place:

Terminal window
sluice equip <base> --at <revision> --json

<revision> is the base’s revision the launch read, which the place’s branch was cut from. sluice reads .config/sluice.toml at that revision and runs in the place what it runs before a run of its own: the [tests] toolchain the policy names, then, with [tests] runner = "moon", proto install of what the place’s .prototools pins, moon --version and moon setup. It answers each step with whether it passed and what it printed, and stops at the first that fails. Those steps are the place’s readiness. flume keeps nothing a step makes.

sluice equip runs with the host user’s login environment, nothing of the caller’s session, so the sluice it runs is the one that environment’s PATH finds. sluice 0.67.0 is the first with sluice equip. An older one fails the readiness at its one step, sluice equip, with sluice’s words, as does a refusal or an answer flume cannot read.

A step that fails leaves the place made: a fix or a chore starts anyway and its prompt names the failed step, and a change waits with the step in flume status. A retry of that first stage runs sluice equip again at the launch’s revision, so sluice reads the policy as the launch read it and installs what the place holds then, its agent’s commits among them. A repository whose merge queue equips it with no step, or that binds none, is ready at once, and the prompt says it declares no readiness.

flume status gives each step in one line, passed or failed, and under a failed step the last ten lines it printed, its terminal escapes stripped:

Terminal window
$ flume status change--tabs-in-quotes
~/.local/share/flume/places/f5f5e14159a8/change--tabs-in-quotes: change@2 (flume), live
change--tabs-in-quotes · change@2 · construct · not ready
branch change/tabs-in-quotes from main, head 84130b3cd2adae9a0ac2117884849d513da80181
…
readiness toolchain: passed
readiness proto install: passed
readiness moon --version: passed
readiness moon setup: failed
Installing node 22.11.0
Error: node 22.11.0 could not be downloaded: the connection timed out
stage construct: waiting_on_readiness, started 0 times
…
waits on its caller to retry construct (unready) since 1793287734

flume status --json gives what each step printed, its escapes and all, passed or failed.

The host’s configuration names the multiplexer every stream’s agents run in, and a stream may name its own over it:

~/.config/flume/config.toml
[host]
multiplexer = "herdr"

terminal = "herdr", the word written before multiplexer, reads the same. With none, or multiplexer = "printed", flume prints each agent’s command, cd into the place and the program with its environment and prompt, for you to run. It can send nothing into a pane it does not hold, so it cannot deliver a message or a notice, or keep an agent open for its answer. Ends stay pending until flume wait or flume inbox collects them, and the place moves on at each command of flume’s that acts, or at a caller’s watch (keeping watch over the host).

Under herdr 0.9.5 or later, flume opens each agent in a pane itself, sends its prompts, reads its state, and delivers ends to the panes of the recipients. Under Rex 0.1.0-preview.14 or later it does the same in blocks of Rex servers of its own (places under Rex).

A stream’s multiplexer stands over the host’s, so you can try a setup on one stream while the others run as they did:

[host]
multiplexer = "herdr"
[streams.trial]
multiplexer = "printed"

Each start reads its stream’s multiplexer and records it, and its agent stays in the one it opened in: flume sends to it, reads it and ends it there. Change a stream’s multiplexer while a place runs and its live agent stays where it is, its next stage opening in the new one; flume tidies that place in both. A recipient’s notice goes to the multiplexer that holds a session of the recipient’s name. Status gives each agent’s multiplexer and each stream’s, with where each came from.

The local layer, config.local.toml, may set a stream’s multiplexer, so you can try one on your own host without changing the managed file. A stream whose multiplexer names no profile flume carries refuses its own launches and starts, naming the name and the profiles there are, and every other stream runs. No multiplexer decides whether a command settles the places where something is pending first: the host’s watch does (keeping watch over the host).

flume’s herdr plugin: every place in flight, a place’s pane and status, and the keysA herdr window. Its sidebar lists every place in flight with its kind, its stage and its agent’s state: change/csv-export in code, its tasks ticking from 3 of 6 to 6 of 6 before it moves on to verify; fix/bump-mise in sluice, which lands, is tidied and leaves the list; fix/flaky-test, whose code stage ended short; review/parquet, a review waiting on you; and fix/lint-config, working. Beside the selected place’s pane, its status gives the kind, the stage, the agent’s state, the deliverable and the submission. The message key sends check fields with commas too to change/csv-export: flume holds it while the agent works and sends it once the agent waits, and it reaches the transcript. The open key shows fix/flaky-test, whose agent stopped short asking which CSV its test should read and is kept open for the answer; the retry key hands that agent the words use fixtures/small.csv, and it carries the stage on in the same session. The open key shows fix/lint-config, whose agent rewrote the wrong files and waits; the stop key ends it, and the stage waits; the retry key starts it again with a fresh agent and the words one root eslint.config.js. herdr · flume’s plugin IN FLIGHT change/csv-export change · code · working change · verify · working change · verify · waiting change · verify · working 3/6 4/6 5/6 6/6 fix/bump-mise fix · submit · in sluice landed tidied: place and branch gone fix/flaky-test fix · code · ended short fix · code · working review/parquet review · waiting on you fix/lint-config fix · code · working fix · code · waiting fix · code · stopped fix · code · agent 2 · working change/csv-export fix/flaky-test fix/lint-config change/csv-export agent 2 · code · tasks.md read the ledger’s rows write rows as CSV quote fields with commas stream large ledgers add the export command test a round trip agent 3 · verify · a fresh agent prompt in its transcript checking the code against the change, task by task your message, in its transcript checking fields with commas message change/csv-export check fields with commas too held: the agent is working sent: the agent is waiting agent 1 · code · kept open stopped short, in its words: the test reads a CSV fixture that is not in the repository. Which one should it read? retry fix/flaky-test, with words use fixtures/small.csv agent 1 · code · same session your answer, received reading fixtures/small.csv the test passes agent 1 · code · waiting rewrote .eslintrc in packages/api; 11 to go agent 1 · code stopped: agent 1 ended the stage waits for a retry retry fix/lint-config, with words one root eslint.config.js agent 2 · code · a fresh agent prompt and your words, received writing eslint.config.js removing 12 .eslintrc files flume status kind change stage code agent working deliverable tasks ticked, not all submission none yet kind change stage verify agent working deliverable no report yet submission none yet kind change stage verify agent waiting deliverable no report yet submission none yet kind change stage verify agent working deliverable no report yet submission none yet kind fix stage code, ended short agent waiting deliverable no commit yet submission none yet kind fix stage code, answered agent working deliverable no commit yet submission none yet kind fix stage code agent waiting deliverable no commit yet submission none yet kind fix stage code, waits on a retry agent stopped deliverable no commit yet submission none yet kind fix stage code, started 2 times agent working deliverable no commit yet submission none yet KEYS open open message message stop stop retry retry a place’s pane, beside its status
flume’s herdr plugin: every place in flight, a place’s pane and status, and the keysA herdr window. Its sidebar lists every place in flight with its kind, its stage and its agent’s state: change/csv-export in code, its tasks ticking from 3 of 6 to 6 of 6 before it moves on to verify; fix/bump-mise in sluice, which lands, is tidied and leaves the list; fix/flaky-test, whose code stage ended short; review/parquet, a review waiting on you; and fix/lint-config, working. Beside the selected place’s pane, its status gives the kind, the stage, the agent’s state, the deliverable and the submission. The message key sends check fields with commas too to change/csv-export: flume holds it while the agent works and sends it once the agent waits, and it reaches the transcript. The open key shows fix/flaky-test, whose agent stopped short asking which CSV its test should read and is kept open for the answer; the retry key hands that agent the words use fixtures/small.csv, and it carries the stage on in the same session. The open key shows fix/lint-config, whose agent rewrote the wrong files and waits; the stop key ends it, and the stage waits; the retry key starts it again with a fresh agent and the words one root eslint.config.js. herdr · flume’s plugin IN FLIGHT change/csv-export change · code · working change · verify · working change · verify · waiting change · verify · working 3/6 4/6 5/6 6/6 fix/bump-mise fix · submit · in sluice landed tidied: place and branch gone fix/flaky-test fix · code · ended short fix · code · working review/parquet review · waiting on you fix/lint-config fix · code · working fix · code · waiting fix · code · stopped fix · code · agent 2 · working change/csv-export fix/flaky-test fix/lint-config change/csv-export agent 2 · code · tasks.md read the ledger’s rows write rows as CSV quote fields with commas stream large ledgers add the export command test a round trip agent 3 · verify · a fresh agent prompt in its transcript checking the code against the change, task by task your message, in its transcript checking fields with commas message change/csv-export check fields with commas too held: the agent is working sent: the agent is waiting agent 1 · code · kept open stopped short, in its words: the test reads a CSV fixture that is not in the repository. Which one should it read? retry fix/flaky-test, with words use fixtures/small.csv agent 1 · code · same session your answer, received reading fixtures/small.csv the test passes agent 1 · code · waiting rewrote .eslintrc in packages/api; 11 to go agent 1 · code stopped: agent 1 ended the stage waits for a retry retry fix/lint-config, with words one root eslint.config.js agent 2 · code · a fresh agent prompt and your words, received writing eslint.config.js removing 12 .eslintrc files flume status kind change stage code agent working deliverable tasks ticked, not all submission none yet kind change stage verify agent working deliverable no report yet submission none yet kind change stage verify agent waiting deliverable no report yet submission none yet kind change stage verify agent working deliverable no report yet submission none yet kind fix stage code, ended short agent waiting deliverable no commit yet submission none yet kind fix stage code, answered agent working deliverable no commit yet submission none yet kind fix stage code agent waiting deliverable no commit yet submission none yet kind fix stage code, waits on a retry agent stopped deliverable no commit yet submission none yet kind fix stage code, started 2 times agent working deliverable no commit yet submission none yet KEYS open open message message stop stop retry retry
A message waits while its agent works and reaches it once the agent waits. retry with your words hands an answer to the agent kept open for it, which carries its stage on; stop ends an agent that went the wrong way, and a retry starts its stage again with a fresh agent.

flume keeps each stream’s agents in herdr sessions of the stream’s. Its own is the one its session names, else the one named by the stream’s name, and every agent of the stream opens there but those of a kind or a stage the stream names a session of its own for (a session for a kind or a stage). So flume open work, or herdr --session work, shows the work stream’s agents in its own session (seeing a stream’s agents). The default stream’s agents run in flume’s own session, flume, unless [streams.default] names another. A launch’s --agent session=<name> opens its place’s agents in that session whatever their stream (a stream’s sessions). flume starts a session’s server, headless, the first time an agent opens in it. Where herdr does not take a session’s name, the start is refused in herdr’s words. In each session:

  • A workspace per repository and base, labelled <repository> <base> from the repository’s directory name, such as acme main. flume opens it the first time a place on that base starts in that session, so a base whose places run in two streams has a workspace in each.
  • A tab per place, <kind>--<name>, in its base’s workspace.
  • A pane per agent in the place’s tab. flume starts each agent with herdr’s agent start, with the agent’s environment set on the pane, so nothing is typed into a shell. The pane’s shell reads no startup file, so nothing in your shell’s files reorders the pane’s PATH. flume starts the agent once that shell has come to its prompt, which on a loaded host can be some seconds after the pane opens. A start whose shell and agent aren’t both up within two minutes ends never begun, with the pane’s screen in flume status. The command that opened the agent, a launch, a retry or a settle, sends it its prompt once the agent has said it started and waits. The settles that follow read whether it was received. Until that command’s open is done, nothing else is sent to the agent.

Each agent carries a herdr name made from its identity, at most 32 characters and ending in a digest of it. flume holds a pane by its id and server, and finds it again by that name when the id no longer answers, as after you move the pane to another workspace.

flume answers one question on an agent’s behalf: whether it may work in the place’s folder, which Claude Code asks in a folder new to it. A permission prompt, a sign-in, a first run’s setup and a repository’s MCP servers’ approval are left for a person. While the agent shows one, its start stays starting and flume status says the place waits on a person to answer the agent’s dialog, with the dialog’s words, for as long as it shows. Once you answer it in the pane, the agent starts and takes its prompt. flume also checks the program in the pane’s foreground. When it is not the one the settings name, such as a claude your shell found earlier on the PATH, flume closes the pane and refuses the start, naming what ran.

An agent’s beside setting opens its pane as a split beside another pane instead, named by its label or id on flume’s server, or as herdr:<pane>@<socket>, in whatever session that pane is. A conversation stage uses it to open beside the caller’s own pane.

Every herdr call flume makes runs under a bound, ten seconds where the call states none, with the calling session’s HERDR_* variables stripped and the recorded server’s socket passed. A call that does not answer in time reads as unknown, never as an answer.

An agent that stops short needing an answer stays in its pane, kept open for the answer for its keep_open, an hour by default (the agent kept open). A retry with words, or a message, to its place is typed into that pane as a message is: once the agent waits, its input cleared first, read back as received or typed once more. The agent reads the question and the answer and carries its stage on in the same session, with everything it had read. Once its time passes, it stops or its account is spent, a settle lets it go and closes its pane once it is quiet, never forced. An agent herdr brought back in a conversation’s pane after a restart is left as it stands.

Under the printed command flume can type nothing into the session you ran, so it keeps no agent open. A stage that stops short waits on a retry, which starts a fresh agent with the question and the answer once the session you ran has ended.

A stream may open one kind’s agents, or one stage’s, in a session of their own beside the stream’s, so you find them apart from its other work:

[streams.work.kinds.research]
session = "work-design"
[streams.work.kinds.release.stages.review]
session = "work-review"

Here a research place’s agents open in herdr’s session work-design, a release’s review agent in work-review, and its other agents and every other place’s in work. Each such session is a server of its own, started headless the first time an agent opens in it, and laid out as every session is: a workspace per repository and base, a tab per place. A release place has a tab in work and one in work-review. Its review agent ends with its stage, and its tidy closes its tab in each session, and each base’s workspace once it holds no tab of a live place and nothing flume did not make.

The place keeps its stream wherever its agents open: they count in work’s bound and the host’s, take accounts from work’s pool and take their label’s share. A stream’s sessions gives the order an agent’s session is read in, and what refuses a start.

A stream whose multiplexer is rex runs its agents in Rex, as one under herdr runs them in herdr:

[streams.trial]
multiplexer = "rex"

flume runs Rex servers of its own, one for each of the stream’s sessions, and never the server the Rex app runs for you. The server of the session work listens at <state>/terminal/rex/work.sock, by default ~/.local/state/flume/terminal/rex/work.sock, and keeps its state in work.state beside it; flume’s own session is flume. flume starts a session’s server the first time an agent opens in it, with none of the sessions it saved, and never stops one. flume refuses a session’s name that would make its socket’s path longer than the 104 bytes macOS allows a socket, or that holds a /, naming it. In each server:

  • A Rex session per repository and base, labelled <repository> <base>, as herdr’s workspace is, then <repository> <base> · <count> with the count of the base’s places, 1 running · 0 asking · 0 waiting on caller · 0 stalled.
  • A window per place, <kind>--<name>, in its base’s Rex session, then <kind>--<name> · <line> with the place’s short line, code 1/2 · run 1 · tasks 2/5 · working. A second agent of the place splits its window.
  • A block per agent, labelled with a name made from its identity. A script of the start’s own starts the program and removes itself, so none of the agent’s variables stands in any process’s arguments. A block keeps that name.

flume labels a window and a Rex session again at each settle that changes the place’s line or its base’s count, each label cut to the 128 characters Rex holds. A label is for you to read: flume finds a window and a Rex session by its id, whatever its label says.

Rex reads an agent’s state from the program’s own reports, Program Status, which Claude Code gives it. A program that reports none can’t run under Rex, and flume refuses its start, naming the program. A start whose program reports nothing within two minutes, or exits first, ends never begun, with the block’s screen in flume status. flume answers the folder-trust question from the screen as it does under herdr, and checks that the block runs the program the settings name.

A prompt, a message or a notice is typed into a block only while it waits, its held input cleared with ctrl+c first; a block at work is typed nothing, and a later settle hands it what is pending once it waits. A recipient in a Rex block is named rex:<block>@<socket>, the name a command run in that block gives its own session, from Rex’s REX_BLOCK and REX_SERVER.

Every Rex call flume makes runs under a bound, ten seconds where the call states none, with your session’s REX_* variables stripped. It passes --autostart=false and the session’s socket, so no call starts a server of Rex’s choosing. flume closes a place’s window once the place goes, and its base’s Rex session once nothing of a live place and nothing you opened is in it.

Rex has no terminal client, so a Rex stream’s session is shown in the Rex app. Give the stream view = "app":

[streams.trial]
multiplexer = "rex"
view = "app"

flume open trial then brings the newest Rex session flume made in trial’s server to the front of the Rex app. The app shows a server only once you add its socket under the app’s Remote Hosts, which flume can’t do for you, and takes flume’s word only while its Remote Control setting is on. Until you add the socket, flume open refuses, naming it; while Remote Control is off, it refuses in Rex’s words. A Rex stream whose view is terminal refuses its open, saying Rex has no terminal client.

flume open <session> shows a stream’s agents one session at a time, by the session’s name, and flume open the default stream’s own session. What you open is a session, never a stream. A stream’s own session bears the stream’s name where the stream names none, so you open it by that name. A stream whose session names its own, as session = "desk", is opened by that name, flume open desk. A session a stream names for a kind or a stage is opened by its name too. flume shows it in its stream’s view, else the host’s:

[host]
multiplexer = "herdr"
terminal_app = "ghostty"
[streams.work]
title = "Work Agents"
[streams.work.kinds.research]
session = "work-design"
[streams.office]
terminal_app = "terminal"
title = "Office Agents"

Here flume open work opens a Ghostty window titled Work Agents running herdr session attach work, flume open work-design one titled work-design running herdr session attach work-design, and flume open office a Terminal.app window titled Office Agents on the session office. Under herdr, flume names the herdr it runs by its full path, so the window runs the same release whatever its own PATH. A session not yet running is started headless first, before any of its places has an agent, and stays running as every session’s server does.

A name no stream’s word gives is refused before the multiplexer or a window is asked anything, naming each stream’s sessions, so a mistyped name starts no stray session:

Terminal window
$ flume open work-desing
refused: no stream's word gives a session work-desing; each stream's sessions: the stream default gives the terminal's own, opened by no name; the stream office gives office; the stream work gives work and work-design

A stream’s name that is not one of its sessions’ is refused the same way, naming the session it does give. A session two streams’ words give, as two streams naming one session, is refused naming both, and a launch’s session, which no stream’s word gives, is not opened.

A stream’s view is terminal unless the stream or the host names app. The view terminal is a window of a terminal app running the multiplexer’s attach. The view app is the multiplexer’s own app, which titles its own window and needs no terminal app. herdr has no app of its own: the app of the same name runs on herdr-core, a backend with sessions of its own. So a stream under herdr whose view is app refuses its open, saying so. Rex has no terminal client, so a stream under Rex is opened in the Rex app (places under Rex).

  • ghostty, Ghostty. On macOS flume runs open -na Ghostty.app with the window’s title and the command, waiting up to ten seconds for it. Elsewhere it starts ghostty --title=<title> -e <command> apart from itself, under your login environment, and does not wait on it. Ghostty keeps the title it was given whatever the program inside sets. An open that cannot find Ghostty refuses in its words. Checked against Ghostty 1.4.0.

  • terminal, Terminal.app, on macOS alone. flume asks Terminal through osascript to run the command in a new window and give its tab a custom title, waiting up to ten seconds. The first time, macOS asks you to let the program running flume control Terminal; an open you have not allowed is refused in osascript’s words, and the next opens once you allow it. Terminal shows the custom title beside what your Terminal profile adds there, such as the process or the window’s size. It types the command into the window’s shell, so a variable the command needs shows its value there. Checked against Terminal 2.15 on macOS 27.

  • printed, where neither the stream nor the host names a terminal app. flume opens no window and prints the command on the answer’s last line, after run: :

    Terminal window
    $ flume open work
    the terminal app printed opens no window; run this line to show herdr's session work (the stream's name) titled "Work Agents" (the stream's title):
    stream work, multiplexer herdr (the host's), view terminal (the default), terminal app printed (the default)
    its command /usr/local/bin/herdr session attach work
    run: /usr/local/bin/herdr session attach work

    You run the line, or a launcher of your own takes what follows run: and runs it. A variable the command needs prints as <name>=<set>, never its value.

A window on a stream’s own session carries its stream’s title, else the stream’s name. A window on a session the stream names for a kind or a stage carries the session’s name, so it files apart from the stream’s own. A window manager that places windows by a rule on their title files each window where you keep it. Match the stream’s title within the whole title, since Terminal.app may add to it.

flume keeps nothing of a window. Each asking opens a window of its own, so a key bound to flume open work opens one each press; finding the one already open is your window manager’s. flume opens a window only at your asking, never at a launch, a settle or a start, and never raises or closes one.

flume’s herdr plugin shows flume’s places in herdr: a popup of every place, and the rows flume gives the sidebar. It keeps no process and runs no settle. Install it at the tag of the flume you run, so the plugin and the binary are one version:

Terminal window
herdr plugin install boomdrivedev/flume/plugins/herdr --ref v<version>

It needs flume and jq on the PATH herdr’s server runs with, and herdr as the host’s multiplexer or a stream’s. It brings:

  • Nothing between herdr’s start and your asking. No process of the plugin’s runs, no flume settle and no flume status on a timer. Places move when their agents go quiet, at each settle of a caller keeping watch over the host, and at each command of flume’s that acts (keeping watch over the host).

  • A startup that herdr runs once for each server as it starts. It reads herdr’s configuration file, writes down what that file lacks for the plugin, which flume status gives while that server runs, and exits. Where an earlier release of the plugin left its watch running on that server, the startup ends it.

  • Display clues, which flume shows at each settle that changes one: each agent’s pane titled <stage> · <state> and named <kind>--<name>, and each base’s workspace given the token flume, a count of its places: 1 running · 0 asking · 1 waiting on caller · 0 stalled. They show what status says, and nothing flume decides reads them back.

  • A sidebar row on each agent’s entry, the $flume token: the short form of its place’s line, less the place’s name and kind, which the entry already shows. That is the stage with a repeating stage’s group, how many times it started, the change’s tasks ticked and the place’s state, as in code 1/2 · run 1 · tasks 2/5 · working. It is one of flume’s clues, shown at the settles that change it.

  • A popup of every place in flight, agentplot.flume.places. It reads flume status --json when you open it and again after each key that acts, and never on a timer, and shows each place’s number and its line, the words its agents’ status line gives, with its location beneath:

    ▶ 1 fix--the-parser-reads-tabs · fix@1 · code · run 1 · working
    ~/.local/share/flume/places/f5f5e14159a8/fix--the-parser-reads-tabs

    The chosen place is marked ▶. Each key acts at once, with no Enter: the arrow keys or j and k move the choice, and 1 to 9 choose the place so numbered. o opens its tab, m messages its agent the words you give, s stops its agent and r retries its stage; the words, and whether to force, are asked for as a line, ended by Enter. q or Escape closes the popup. Each key runs one flume command or focuses the tab, and none types into an agent’s pane.

The rows and the popup work out nothing of their own: flume’s settles show the rows, and the popup copies the lines status gives.

The plugin keeps no watch and decides nothing of how flume runs. A caller keeps watch over the host by running

Terminal window
flume settle --every <time>

on that bound, from a timer of the host’s or whatever else keeps time there. Each run settles the places where something is pending, an agent in them or none, and steps each open submission’s base, so a place whose submission waits on the merge queue moves on within the bound. Something is pending on a place while a change that calls flume nothing may have moved it: a stage of it runs, its submission is in flight, a time it waits on has come, or an end of it waits to be handed on, among others. A place that waits only on an answer, its caller’s word or a drop is not read: neither its merge queue, herdr nor its agent. flume reads what is pending from what it holds, and the run names none of it. flume settle naming no place and stating no bound still settles every place, when you ask it to.

While a run’s settle runs, and until twice its bound has passed since it ended, flume runs unattended: its commands leave the settling to the watch. A run whose command died before its settle ended keeps watch until twice its bound after it began. While none keeps watch, flume runs attended: every command of flume’s that acts settles the places where something is pending first. The places then move at your commands and at their agents’ quiet, and what no agent’s quiet reports, an agent killed with no word or a submission the merge queue decided, waits for your next command that acts. flume status says which under the host’s part:

Terminal window
$ flume status
…
a caller keeps watch: the places where something is pending settle every 2m, last at 1793287734

The plugin changes none of herdr’s configuration. Add the popup’s key and the sidebar’s rows yourself, to the file herdr reads, or to whatever writes it: the file HERDR_CONFIG_PATH names, else $XDG_CONFIG_HOME/herdr/config.toml, else ~/.config/herdr/config.toml.

The popup’s key. herdr’s plugins declare no keys, so a key reaches the popup only through an entry of your own. Add this one, or bind another key the same way:

[[keys.command]]
key = "prefix+f"
type = "plugin_action"
command = "agentplot.flume.places"
description = "flume: places in flight"

prefix+f is free among herdr’s own keys.

The sidebar’s rows. The rows below are herdr’s own plus flume’s:

[ui.sidebar.agents]
rows = [
["state_icon", "machine", "workspace", "tab"],
["agent"],
["$flume"],
]
[ui.sidebar.spaces]
rows = [
["state_icon", "workspace", "$flume"],
["branch", "git_status"],
]

If you have rows of your own, add only the $flume entries. The pane titles show wherever herdr shows a pane; the rows show only where your sidebar names $flume.

What flume status says is missing. Until herdr’s file holds the entry and the rows, flume status, of one place or of every place, names what the file lacks under the line naming the host’s watch, in words you can act on:

Terminal window
$ flume status
…
no caller keeps watch: the places where something is pending settle at each command of flume's that acts
herdr's configuration, ~/.config/herdr/config.toml, binds no key to flume's places: add a [[keys.command]] entry with key = "prefix+f", type = "plugin_action", command = "agentplot.flume.places", description = "flume: places in flight", as the README of flume's herdr plugin gives it

flume status --json gives the same words in the host’s terminal_setup. flume says them only when asked: no notice, no herdr notification. The startup reads the file by its lines and parses no TOML, so an entry written as an inline table may read as missing. Nothing flume decides reads the words. herdr runs the startup as its server starts, so a change to the file shows in flume status once herdr starts again.

The plugin keeps what herdr’s configuration lacks, setup.json, with its server’s socket, and the startup’s log, startup.log, under $XDG_STATE_HOME/herdr/plugins/agentplot.flume, one directory per herdr server. flume gives a server’s words while the socket it names is present.

Tidying: flume removes only places it made, and keeps a branch that holds commits main lacksflume looks at three worktrees in turn. fix/bump-mise landed, and its commits are on main: flume removes the place and the branch. change/parquet was dropped holding two commits main lacks: flume removes the place and keeps the branch, and names it. A worktree called spike was made by hand: flume did not make it, and leaves it alone. landed ledger/places/fix--bump-mise main fix/bump-mise what does it hold that main lacks? its commits are on main git cherry main the worktree removed place removed branch removed dropped ledger/places/change--parquet main change/parquet what does it hold that main lacks? 2 commits main lacks git cherry main the worktree removed place removed branch kept, and named made by hand ledger/spike main spike did flume make it? flume did not make it the worktree left alone
Tidying: flume removes only places it made, and keeps a branch that holds commits main lacksflume looks at three worktrees in turn. fix/bump-mise landed, and its commits are on main: flume removes the place and the branch. change/parquet was dropped holding two commits main lacks: flume removes the place and keeps the branch, and names it. A worktree called spike was made by hand: flume did not make it, and leaves it alone. landed ledger/places/fix--bump-mise main fix/bump-mise what does it hold that main lacks? its commits are on main git cherry main the worktree removed place removed branch removed dropped ledger/places/change--parquet main change/parquet what does it hold that main lacks? 2 commits main lacks git cherry main the worktree removed place removed branch kept, and named made by hand ledger/spike main spike did flume make it? flume did not make it the worktree left alone
flume removes the landed fix's place and branch, removes the dropped change's place and keeps its branch, and leaves a worktree made by hand alone.

A settle tidies a place once its work is over, landed, dropped or done, and its agent has stopped. flume tidy does the same at once, for one place or all. flume:

  1. runs the teardown the merge queue’s policy gives, sluice release for sluice, in the place;

  2. removes the worktree with git worktree remove, never forced, so a place holding uncommitted or unignored work, or a lock, stays and flume names what holds it. Once git lets the place go, flume removes whatever still stands in its folder, such as the state a development shell wrote there as the worktree went, and then the repository’s folder under places/ once it holds no place. Where git worktree remove fails having let the place go, flume keeps the place with git’s words and removes what is left of its folder at the next settle, since what made git fail may still be writing there. It removes a folder so only where the folder is in a places/ folder flume makes places in and holds nothing of another repository’s;

  3. removes the branch only when git cherry against the base finds no commit the base lacks, judged against the remote’s copy of the base where it lands on one. A branch with commits not landed stays, and flume names it once:

    removed ~/.local/share/flume/places/f5f5e14159a8/chore--tidy-the-readme
    kept the branch chore/tidy-the-readme of ~/.local/share/flume/places/f5f5e14159a8/chore--tidy-the-readme, 1 commits not landed
  4. closes the place’s tab in each multiplexer its agents opened in, under herdr in each session it has a tab in. It closes its base’s workspace there once that holds no tab of a live place and no pane flume did not open. A workspace where you opened a pane of your own stays open, and status names it under the host’s terminal_kept, or that multiplexer’s kept in terminals.

flume removes nothing it did not make: no worktree made by hand, no repository’s main worktree, and no herdr workspace, tab or pane of yours. Its record of the place goes last, kept apart only while an end of it is still pending for a recipient.