Skip to content

flume

flume takes every launch on a host into one queue, runs each piece of work in a worktree of its own with a fresh agent for each stage, and tidies the place once the work lands.

flume: every launch waits in its stream for room, runs in a place of its own, and landsFive launches come in, each naming its kind, its points and its stream: the change csv-export, 8 points, and the fix parser-tabs, 2 points, in work; the chore bump-deps, 5 points, in personal; the change sso-login, 8 points, in work; and the chore readme-tour, 5 points, in personal. The host runs three agents at once. The stream work, priority 10, runs up to three agents and 13 points in flight, on the pool work, filled first to last; the stream personal, priority 0, runs up to two agents at a pace of 8 points a day, on the pool personal. csv-export, parser-tabs and bump-deps start at once, each in a place of its own, whose stages light in turn with a fresh agent each, on the account work-1, work-2 or personal. sso-login waits for room in work’s queue, short of its points bound, until csv-export’s last stage delivers and its points leave flight; then it starts on work-1. readme-tour waits in personal’s queue, short of its pace, even once personal runs no agent. Each place’s last delivery submits it to the merge queue; sluice tests it as merged and lands it on main, and flume tidies the place. A place’s points, and a stream’s points bound and pace, are decided and wait on their build. flume every launch waits in its stream for room, runs in a place of its own, and lands LAUNCHES THE HOST AND ITS STREAMS PLACES THE MERGE QUEUE csv-export change · 8 points · work parser-tabs fix · 2 points · work bump-deps chore · 5 points · personal sso-login change · 8 points · work readme-tour chore · 5 points · personal Every launch is taken and waits its turn: none is refused for want of room. host 0 agents running of 3, room for 3 1 agent running of 3, room for 2 2 agents running of 3, room for 1 3 agents running of 3, room for 0 2 agents running of 3, room for 1 1 agent running of 3, room for 2 0 agents running of 3, room for 3 1 agent running of 3, room for 2 0 agents running of 3, room for 3 the queue: no place waiting the queue: sso-login the queue: sso-login, then readme-tour the queue: readme-tour stream work priority 10 agents 0 of 3 1 of 3 2 of 3 1 of 3 0 of 3 1 of 3 0 of 3 points 0 of 13 in flight 8 of 13 in flight 10 of 13 in flight 8 of 13 in flight 0 of 13 in flight 8 of 13 in flight 0 of 13 in flight pool work, fill-first waiting for room no place waiting no place waiting sso-login 8 points short of its points bound no place running no place running stream personal priority 0 agents 0 of 2 1 of 2 0 of 2 pace 0 of 8 a day 5 of 8 a day pool personal, least-busy waiting for room no place waiting readme-tour 5 points short of its pace no place running no place running csv-export parser-tabs bump-deps sso-login sso-login readme-tour change--csv-export 8 points construct code verify on work-1 submitted landed change--csv-export tidied fix--parser-tabs 2 points code on work-2 submitted landed fix--parser-tabs tidied chore--bump-deps 5 points code on personal submitted landed chore--bump-deps tidied change--sso-login 8 points construct code verify on work-1 submitted landed change--sso-login tidied sluice tests each change as merged waits on a submission testing parser-tabs waits on a submission testing bump-deps waits on a submission testing csv-export waits on a submission testing sso-login waits on a submission main parser-tabs bump-deps csv-export sso-login 1 A launch names its kind, its points and its stream. 2 It waits its turn by priority until the host, its stream’s bound, points or pace, and its pool have room. 3 Its place runs each stage with a fresh agent; its last delivery submits it. 4 sluice lands it; flume tidies the place. A place’s points, and a stream’s points bound and pace, are decided and wait on their build.
flume: every launch waits in its stream for room, runs in a place of its own, and landsFive launches come in, each naming its kind, its points and its stream: the change csv-export, 8 points, and the fix parser-tabs, 2 points, in work; the chore bump-deps, 5 points, in personal; the change sso-login, 8 points, in work; and the chore readme-tour, 5 points, in personal. The host runs three agents at once. The stream work, priority 10, runs up to three agents and 13 points in flight, on the pool work, filled first to last; the stream personal, priority 0, runs up to two agents at a pace of 8 points a day, on the pool personal. csv-export, parser-tabs and bump-deps start at once, each in a place of its own, whose stages light in turn with a fresh agent each, on the account work-1, work-2 or personal. sso-login waits for room in work’s queue, short of its points bound, until csv-export’s last stage delivers and its points leave flight; then it starts on work-1. readme-tour waits in personal’s queue, short of its pace, even once personal runs no agent. Each place’s last delivery submits it to the merge queue; sluice tests it as merged and lands it on main, and flume tidies the place. A place’s points, and a stream’s points bound and pace, are decided and wait on their build. flume every launch waits in its stream for room LAUNCHES csv-export change · 8 points · work parser-tabs fix · 2 points · work bump-deps chore · 5 points · personal sso-login change · 8 points · work readme-tour chore · 5 points · personal host 0 agents running of 3, room for 3 1 agent running of 3, room for 2 2 agents running of 3, room for 1 3 agents running of 3, room for 0 2 agents running of 3, room for 1 1 agent running of 3, room for 2 0 agents running of 3, room for 3 1 agent running of 3, room for 2 0 agents running of 3, room for 3 the queue: no place waiting the queue: sso-login the queue: sso-login, then readme-tour the queue: readme-tour stream work priority 10 agents 0 of 3 1 of 3 2 of 3 1 of 3 0 of 3 1 of 3 0 of 3 points 0 of 13 in flight 8 of 13 in flight 10 of 13 in flight 8 of 13 in flight 0 of 13 in flight 8 of 13 in flight 0 of 13 in flight pool work, fill-first waiting for room no place waiting no place waiting sso-login 8 points short of its points bound no place running no place running stream personal priority 0 agents 0 of 2 1 of 2 0 of 2 pace 0 of 8 a day 5 of 8 a day pool personal, least-busy waiting for room no place waiting readme-tour 5 points short of its pace no place running no place running csv-export parser-tabs bump-deps sso-login sso-login readme-tour change--csv-export 8 points construct code verify on work-1 submitted landed change--csv-export tidied fix--parser-tabs 2 points code on work-2 submitted landed fix--parser-tabs tidied chore--bump-deps 5 points code on personal submitted landed chore--bump-deps tidied change--sso-login 8 points construct code verify on work-1 submitted landed change--sso-login tidied THE MERGE QUEUE sluice tests each change as merged waits on a submission testing parser-tabs waits on a submission testing bump-deps waits on a submission testing csv-export waits on a submission testing sso-login waits on a submission main parser-tabs bump-deps csv-export sso-login 1 A launch names its kind, its points and its stream. 2 It waits by priority for its stream’s room. 3 Its place runs each stage with a fresh agent. 4 sluice lands it, and flume tidies the place. A place’s points, and a stream’s points bound and pace, are decided and wait on their build.

Every tool that starts an agent on a piece of work meets the same four failures. The agent starts before it can take a prompt, and the prompt is lost. A pane goes quiet while a test runs, and someone takes the quiet for done. A worktree outlives its work, or a branch goes with its worktree while it still holds commits nobody landed. flume handles all four once, for one place at a time, so your own /launch, a script and any tool that launches work all start it the same way.

One launch, one place

A launch names a repository, a kind, a brief, a name and a base. flume makes a worktree on a branch of its own, cut from the base, and makes it ready by the repository’s own declaration of what a worktree needs.

A fresh agent for each stage

Each stage starts a new agent, in a herdr pane or as a command flume prints. flume sends the stage’s prompt once the agent says it started, and waits for the agent to say it received it.

Ended by its deliverable

A stage ends when its deliverable exists, or when its agent stops short and says what it needs. A quiet pane ends nothing.

Tidied when it is done

Once the work lands or is dropped, flume removes the place it made. It keeps a branch that holds commits its base lacks.

Every launch on a host joins one queue, whoever launched it. A launch names its kind, and may give its points, how much agent work its caller judges it to be, and the stream it runs in. The host’s configuration declares its streams, each with its own bound on agents running, its priority and the pool of accounts its agents run under, all beneath the host’s own bound. A stream may also bound its points in flight, or set a pace, such as 8 points a day, so a side project moves at a steady rate without taking every free agent. Points, the points bound and the pace are decided and wait on their build (roadmap).

A place’s first stage starts only while the host, its stream and an account of its pool have room, and its stream’s points bound and pace leave room for its points. Until then it waits, and status says what it is short of. Waiting places start by their stream’s priority, then their own. flume takes every launch and refuses none for want of room. Agent settings says how to declare streams and pools.

Once its first stage starts, a place runs its kind through on its own. Each stage has a fresh agent, and the next starts once its deliverable exists. Then the merge queue lands the work, and flume tidies the place.

flume: one launch, one place, a fresh agent for each stageThree callers stand at the head of the flume: your session’s /launch, an inbox’s send and a release tool’s fix key. The inbox sends item 7 as a change: the launch names the repository ledger, the kind change, the name csv-export, the base main and the brief, export the ledger as CSV. It runs down the flume into its place, a worktree under flume’s data directory, change--csv-export, on the branch change/csv-export, cut from main, which flume makes ready by the merge queue’s policy. Three stages light in turn, each with a fresh agent in a herdr pane whose prompt the agent’s own hook acknowledges: construct ends when the OpenSpec change is written, code when all five of its tasks are ticked, and verify when the change is archived with its report. flume then submits the branch to main, with no agent; sluice tests main with the change as merged and lands it. flume then tidies the place: the worktree is removed, and the branch with it, since it holds nothing main lacks. flume one launch, one place, a fresh agent for each stage LAUNCHED FROM THE PLACE SLUICE TIDY your session /launch <brief> an inbox sends item 7 as a change a release tool its fix key on a release no launch yet flume launch repository ledger kind change name csv-export base main brief export as CSV csv-export no place yet …/flume/places/3c1e0b9a72d4/change--csv-export on change/csv-export cut from main made ready by the merge queue’s policy toolchain setup construct waits onthe change the changewritten code waits onevery task 5 of 5 tasksticked verify waits onthe archive the changearchived landing waits onthe merge queue landedon main a herdr pane, for each stage’s agent agent 1 · construct a fresh agent prompt sent: construct… prompt received wrote proposal, design, tasks committed openspec/changes/csv-export ended: the change exists agent 2 · code a fresh agent prompt sent: code… prompt received ticking tasks.md as it goes committed the export and its test ended: every task ticked agent 3 · verify a fresh agent prompt sent: verify… prompt received checked the work against the change archived the change with its report ended: the change archived flume · the landing no agent flume: sluice submit main --no-wait sluice tests main + the change landed on main …/flume/places/3c1e0b9a72d4/change--csv-export removed sluice tests a change as merged testing main + csv-export landed on main main when the work lands or is dropped, flume removes the place it made change/csv-export holds nothing main lacks place removed branch removed 1 A launch: a repository, a kind, brief, name, base. 2 flume makes the place and makes it ready. 3 A fresh agent per stage, ended by its deliverable. 4 flume submits; sluice lands the work. 5 flume tidies the place it made.
flume: one launch, one place, a fresh agent for each stageThree callers stand at the head of the flume: your session’s /launch, an inbox’s send and a release tool’s fix key. The inbox sends item 7 as a change: the launch names the repository ledger, the kind change, the name csv-export, the base main and the brief, export the ledger as CSV. It runs down the flume into its place, a worktree under flume’s data directory, change--csv-export, on the branch change/csv-export, cut from main, which flume makes ready by the merge queue’s policy. Three stages light in turn, each with a fresh agent in a herdr pane whose prompt the agent’s own hook acknowledges: construct ends when the OpenSpec change is written, code when all five of its tasks are ticked, and verify when the change is archived with its report. flume then submits the branch to main, with no agent; sluice tests main with the change as merged and lands it. flume then tidies the place: the worktree is removed, and the branch with it, since it holds nothing main lacks. flume one launch, one place, a fresh agent per stage LAUNCHED FROM your session /launch an inbox send a release tool fix key no launch yet flume launch repository ledger kind change name csv-export base main brief item 7, export as CSV csv-export THE PLACE no place yet …/flume/places/3c1e0b9a72d4/change--csv-export on change/csv-export cut from main made ready by the merge queue’s policy ready construct working waits on the change the change written code working waits on every task 5 of 5 tasks ticked verify working waits on the archive the change archived landing working waits on the merge queue landed on main a herdr pane, for each stage’s agent agent 1 · construct a fresh agent prompt sent: construct… prompt received wrote proposal, design, tasks committed openspec/changes/csv-export ended: the change exists agent 2 · code a fresh agent prompt sent: code… prompt received ticking tasks.md as it goes committed the export and its test ended: every task ticked agent 3 · verify a fresh agent prompt sent: verify… prompt received checked the work against the change archived the change with its report ended: the change archived flume · the landing no agent flume: sluice submit main --no-wait sluice tests main + the change landed on main …/flume/places/3c1e0b9a72d4/change--csv-export removed SLUICE sluice tests a change as merged testing main + csv-export landed on main TIDY when the work lands or is dropped, flume removes the place it made change/csv-export holds nothing main lacks place removed · branch removed 1 A launch: repository, kind, brief, name, base. 2 flume makes the place, and makes it ready. 3 A fresh agent per stage, ended by its deliverable. 4 flume submits; sluice lands the work. 5 flume tidies the place it made.
One launch from its caller to its tidied place: the place made ready, each stage a fresh agent whose prompt its own hook acknowledges, ended by its deliverable, then landed by sluice and removed.

In a watermill the flume is the channel that carries water from the pond to the wheel, a measured flow to where it does work. flume carries one piece of work to one worktree, where an agent does it, and sluice gates what lands.

flume runs. A fix, a chore and a change are carried from their launch to their landing through sluice, and their places tidied, with nobody’s word between the stages. A caller’s watch over the host keeps every place moving, and each end reaches whoever waits on it. The host’s queue runs its streams by their bounds and priorities, on pools of accounts; a place’s points, and a stream’s points bound and pace, are decided and wait on their build. Releases for Linux and macOS are on GitHub, and Install and set up says how to start. The roadmap says what is decided and not yet built.