Install and set up
flume is one binary, flume, for Linux and macOS. It needs git on the
PATH, Claude Code for the agents it starts, and, to open them in panes
of their own, herdr 0.9.5 or later. Without herdr, flume prints each
stage’s command for you to run.
Install from the releases
Section titled “Install from the releases”Each release on
GitHub is tagged
v<version> and carries one archive per platform, each holding the
flume binary:
| Platform | Archive |
|---|---|
| Linux, x86-64 | flume-x86_64-linux.tar.gz |
| Linux, ARM64 | flume-aarch64-linux.tar.gz |
| macOS, Apple silicon | flume-aarch64-darwin.tar.gz |
The Linux builds are static, so they run on any distribution. Unpack
the archive into a folder on your PATH:
version=v0.1.0curl -fsSL "https://github.com/boomdrivedev/flume/releases/download/$version/flume-aarch64-darwin.tar.gz" | tar -xz -C ~/.local/bin flumeflume --versionA release comes out of every landing on main whose commits call for a
new version, and its notes list those commits.
Install with Nix
Section titled “Install with Nix”The repository is also a flake. It gives the flume package for each
platform above, built from the tagged tree, and a module for nix-darwin
and NixOS that installs flume and writes its host’s configuration from
your Nix configuration. Take the flake at a release’s tag:
{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flume = { url = "github:boomdrivedev/flume/v<version>"; inputs.nixpkgs.follows = "nixpkgs"; }; };}Import flume.darwinModules.default on nix-darwin, or
flume.nixosModules.default on NixOS, and set services.flume:
{ imports = [ flume.darwinModules.default ];
services.flume = { enable = true; settings = { host = { agents = 4; multiplexer = "herdr"; }; pools.work = { strategy = "fill-first"; accounts = [ { name = "work"; program = "claude"; env.CLAUDE_CONFIG_DIR = "$HOME/.claude-work"; } ]; }; }; };}settings is the host’s configuration, each key named as the
configuration reference names it. A
key the module does not know passes to the file as you write it, and
flume reads it as it reads any key of the file. On nix-darwin the file
is the primary user’s; on NixOS, services.flume.user names the user.
Each activation links that user’s ~/.config/flume/config.toml to the
file the module writes into the Nix store. A file already there that is
no link moves aside once, to config.toml.before-nix. The module never
writes config.local.toml, so the local layer stays yours.
Every user on the host can read the Nix store, so settings holds no
credential. A value shaped as one fails the evaluation, naming its key.
Name a variable of your login environment in its place, as $NAME,
which flume reads at each agent’s start. With
services.flume.package = null the module writes the file and installs
no flume.
Declare each source of kinds the host keeps under
services.flume.sources, each key named as
the source’s file
names it:
{ services.flume.sources.acme = { kinds_dir = "~/.local/share/flume/kinds/acme"; roles = "~/.local/state/acme/flume/roles.toml"; };}Each activation links ~/.config/flume/sources/<source>.toml for each
source to the file the module writes for it into the Nix store. A file
already there that is no link moves aside once, to
<source>.toml.before-nix. A source you stop declaring loses the
module’s link at the next activation. The module removes only its own
links, so a source you write by hand, or one another program writes,
stays as it stands. A source’s name flume would refuse fails the
evaluation, as a credential in a source does. The roles file a source
names and the packages in its kinds_dir belong to the source’s own
tool, and the module never writes them.
The host’s configuration
Section titled “The host’s configuration”flume reads one file on the host, $XDG_CONFIG_HOME/flume/config.toml,
~/.config/flume/config.toml by default, at each agent’s start. Every
part of it is optional:
[host]# The bound on agents running at once, every caller's counted together;# with none, every stage starts at once.agents = 4# Where agents run: "herdr", or "printed" for a command flume prints.terminal = "herdr"flume keeps its state under $XDG_STATE_HOME/flume,
~/.local/state/flume by default: one document per place, gone when the
place is tidied. Nothing of flume’s is written into a repository.
Agents’ settings and roles
Section titled “Agents’ settings and roles”The same file gives each kind’s agents their model and instructions. It declares the streams the host runs its places in and the pools of accounts its agents run under. A source of kinds the host declares beside it may declare the roles it answers on those streams, each a recipient flume launches a run for. Agent settings and roles and wake say how, and the configuration reference lists every key.
The herdr plugin
Section titled “The herdr plugin”Install it at the tag of the flume you run, so the plugin and the binary are one version:
herdr plugin install boomdrivedev/flume/plugins/herdr --ref v<version>It needs flume and jq on the PATH herdr’s server runs with, and
terminal = "herdr" under [host]. It keeps no process and runs no
settle. It brings:
- a startup, run by herdr once as each server starts, which writes
down what herdr’s configuration lacks for the plugin, for
flume statusto give, and exits; - a row on each agent’s sidebar entry, the short form of its
place’s line, such as
code 1/2 · run 1 · tasks 2/5 · working, one of the clues flume shows at the settles that change it. Each workspace’s row counts its places running, asking, waiting on their caller and stalled; - a popup of every place in flight, each by its line, such as
fix--the-parser-reads-tabs · fix@1 · code · run 1 · working, read fromflume status --jsonwhen you open it and after each key that acts. A key there opens a place’s tab, messages its agent, stops it or retries its stage, each through flume’s own commands.
Places move when their agents go quiet and at each command of flume’s
that acts. A caller keeps watch over the host with
flume settle --every, so every place, one whose submission waits on
the merge queue among them, moves within its bound; while none does,
flume runs attended, as
keeping watch over the host
says.
The plugin changes none of herdr’s configuration, and herdr’s plugins
declare no keys. The popup opens only from a key you bind, with an
entry of your own in herdr’s config.toml:
[[keys.command]]key = "prefix+f"type = "plugin_action"command = "agentplot.flume.places"description = "flume: places in flight"The sidebar’s rows are yours to add too, as
setting up herdr
shows. Until herdr’s configuration holds the entry and the rows,
flume status names what it lacks under the line naming the host’s
watch.
The Claude Code plugin
Section titled “The Claude Code plugin”flume writes its plugin itself, for each agent it starts, and hands it
to the agent with --plugin-dir, so an agent’s hooks always match the
binary that started it. Nothing needs installing for that. The plugin
also pins the place’s line under each agent’s prompt, as
the status line says.
For /launch and status in your own sessions, add flume’s marketplace
and install the plugin from it:
/plugin marketplace add boomdrivedev/flume#release/plugin install flume@flumeThe marketplace is read at the release branch, which each release
moves to the commit its tag names, so the plugin there carries the
release’s version, as the herdr plugin does at the tag. To take a new
release, update the marketplace, then the plugin:
/plugin marketplace update flume/plugin update flume@flume/launch <brief> then chooses a kind and a name with you and runs
flume launch. The plugin also serves flume status over MCP. In a
session flume did not start, its hooks do nothing but SessionStart,
which gives the session what waits on it.
The repository
Section titled “The repository”flume’s own kinds all land, so a repository binds the merge queue they
land through, and for a change the change tool, in its
.config/flume.toml:
[profiles]place = "git-worktree"change = "openspec"merge_queue = "sluice"A launch of a kind that lands, in a repository that binds no merge queue, is refused. The binding is read at the repository’s default branch. Launching a fix goes on from here.
A pane’s shell reads no startup files, so flume hands the agent your
login environment. Text beyond ASCII in a prompt reaches the agent whole
only when that environment sets a UTF-8 locale, such as
LANG=en_US.UTF-8.