Agent settings
Each agent flume starts runs with six settings and its program’s own
settings, resolved at its start from eight layers, and under an account
of a pool when the host names one. The account gives the agent its
environment. flume status gives each setting of the current agent
with the layer it came from, and the account with what chose it.
The settings
Section titled “The settings”| Setting | What it is |
|---|---|
program |
the agent program: claude, or a path to Claude Code |
model |
the model, passed as --model |
effort |
how hard the model works on each turn, in its program’s own word, passed as --effort (the effort) |
instructions |
text appended to the agent’s system prompt, written to a file of the start’s own and passed as --append-system-prompt-file, so it may hold newlines |
beside |
a pane the agent’s pane opens beside, under herdr |
mode |
how far the agent may act in its place without asking a person: one of flume’s four modes, or a table of programs (the mode) |
keep_open |
how long the agent is kept open for an answer once it stops short needing one, as <n>, <n>s, <n>m or <n>h (how long an agent is kept open) |
hibernate_after |
how long a conversation whose kind hibernates it may idle before flume hibernates it, in the same form (how long a conversation idles) |
programs |
each program’s own settings, in that program’s words: a settings file and keys given inline (a program’s own settings) |
program defaults to claude, and keep_open and hibernate_after
to 1h. Every other setting is empty unless a layer gives it.
The eight layers
Section titled “The eight layers”Each setting comes from the first of these layers that gives it:
| Layer | Status names it | Where it is written |
|---|---|---|
| the launch | launch |
flume launch --agent [<stage>.]<field>=<value> |
| the host, for a repository | host-repository |
the host’s [repos."<repository>".kinds.<kind>.agents], then its [repos."<repository>".agents] for every kind |
| the host, for a kind | host-kind |
the host’s [kinds.<kind>.agents] |
| the host, for a stream | host-stream |
the host’s [agents.streams.<stream>], for the place’s stream |
| the host, for every agent | host |
the host’s [agents] |
| the repository | repository |
the repository’s [kinds.<kind>.agents], for a kind it does not declare, then its [agents] for every kind |
| the kind | kind |
the kind’s own agents table and its stage’s agent table |
| flume’s default | default |
the program claude, a keep_open of 1h and a hibernate_after of 1h, and nothing else |
Within a layer, a stage’s own setting, in a further .stages.<stage>
table, or --agent <stage>.<field>=<value> at the launch, comes before
one given for every stage. In the kind’s layer, a stage’s own agent
table comes before the kind’s agents table. In a repository’s two
layers, the tables for one kind come before the table for every kind.
Each setting is taken whole from the first layer that gives it, and a
program’s own settings key by key (key by key).
The host’s layers give model, effort, instructions, mode,
keep_open, hibernate_after and programs, and never a program, since the host chooses a program by the accounts
it pools. flume reads no other key of a host’s kind tables. Its tables
for a stream, for every agent and for all of a repository’s kinds name
no stage, since a stage’s name is its kind’s. Each refuses a program,
an env, a beside or a stages table, naming the table and the key
(what refuses).
beside comes only from the launch and the kind, since where a pane
opens is the caller’s to say or the kind’s to need. No layer gives an
environment: an agent’s environment is its account’s (the
environment).
The host’s layers come before the repository’s and the kind’s, so a
host that gives a setting has the last word on its agents. Among them,
the tables for a repository and for a kind name the work and where it
lands. A stream’s names the share of the host the work runs in, and
[agents] names nothing, so those two come after. A host that wants
one repository to differ from its default gives that repository’s
table.
When each layer is read
Section titled “When each layer is read”The host’s layers are read from its configuration as it stands at each
agent’s start, and so is every file they name. Change a model in the
host’s file and retry a stage, and the next agent runs on the new model,
with no new launch. A mode, a keep_open, a hibernate_after or a
program’s own setting changed the same way reaches the next agent’s
start the same way, a resume’s among them, and
an agent already started keeps its own. Every other layer is
what the launch read: a place keeps its launch’s settings, its
repository’s and its kind’s for its whole life. It keeps every file
they name as the launch read it too.
At the launch
Section titled “At the launch”flume launch --kind change --name csv-export --brief "Export the ledger as CSV." \ --agent model=sonnet \ --agent verify.model=opus \ --agent code.instructions="Run the tests before every commit." \ --agent code.mode=edits \ --agent code.programs.claude.settings.tui=fullscreenThe field is one of program, model, effort, instructions,
beside, session, mode, keep_open, hibernate_after and
programs, with an optional stage before it. A
setting for a stage the kind does not hold refuses the launch, naming
the stage, and so does a field that is none of these.
mode=<mode> gives one of flume’s four modes. mode.<program>=<value>
gives one entry of a table of programs, and several such entries build
one table: --agent mode.claude=auto. A mode word and a table for the
same stage, or for every stage, refuse the launch naming both, since a
mode is one word or one table.
keep_open=<time> gives how long the agent is kept open for an answer,
as <n>, <n>s, <n>m or <n>h: --agent keep_open=3h for an
answer you know comes late, --agent construct.keep_open=0 for a stage
whose answer you’d rather a fresh agent take. Any other value refuses
the launch, and so does keep_open.<program>, since it is one time for
every program.
hibernate_after=<time> gives how long a conversation whose kind
hibernates it may idle before flume hibernates it, in the same form:
--agent talk.hibernate_after=20m, or --agent hibernate_after=0 for a
conversation that should idle in its pane all day. Any other value
refuses the launch, and so does hibernate_after.<program>.
programs.<program>.settings.<key>=<value> gives one of a program’s
own settings (a program’s own settings).
Its value is read as JSON where it parses as JSON, and as the text
written otherwise: tui=fullscreen gives a string, and
statusLine={"type":"command","command":"line"} a table. Several build
one entry. A key is given whole by its top-level name, so a nested one,
as permissions.allow, refuses the launch, and so does one key given
twice for one stage. programs.<program>.file=<path> names a settings
file, relative to the command’s working directory, read once at the
launch.
On the host
Section titled “On the host”The host’s configuration, ~/.config/flume/config.toml, gives
settings to a kind in every repository, and to a kind in one
repository. This host runs every change on opus and every fix on
sonnet, and tells one repository’s fixes how to run its tests:
[kinds.change.agents]model = "opus"
[kinds.fix.agents]model = "sonnet"
[repos."acme/acme".kinds.fix.agents]instructions = "This repository's tests need the database: run them with `just test`."A repository’s key is its address, <owner>/<name> as its clone’s
origin remote gives it on its forge, matched exactly: a clone whose
origin is git@github.com:acme/acme.git is acme/acme. A clone with
no origin on a forge goes by its folder, with a leading ~ read as your
home. Where the configuration has a table
under a repository’s address, that table is the repository’s whole, and
a table under its folder is not read for it
(a repository’s name).
Settings for a kind or a stage the place does not run are
ignored. Each agent runs under whichever account its stage’s pool
gives.
The host also gives settings to every agent it runs, by [agents], to
every agent of one stream, by [agents.streams.<stream>], and to every
kind in one repository, by [repos."<repository>".agents]:
[agents]model = "haiku"
[agents.streams.personal]model = "sonnet"
[repos."acme/acme".agents]instructions = "Every commit in this repository names its ticket."With the tables above, an agent of any kind the host names no model for
runs on haiku, or on sonnet in the personal stream. Every change
still runs on opus and every fix on sonnet, since the host’s table for
a kind comes before its table for a stream. Every agent of every kind
in acme gets acme’s instructions, but a fix there, whose own table for
acme comes first, gets that table’s instructions in their place. A
stream’s table names a stream the host declares, or default, and one
naming another refuses the configuration.
Two layers
Section titled “Two layers”The host’s configuration is two files read as one. config.toml is
the managed layer, written by whoever manages the host.
config.local.toml beside it is the local layer, yours or a control
plane’s. flume reads it over the managed one key by key at each
command: a key it sets replaces the managed one’s, and an agents
table’s mode table is taken whole. flume writes neither file.
The local layer sets only what runs the host’s work from hour to hour:
- a stream’s
agents,priority,sessionandmultiplexer, thesessionit names for a kind or a kind’s stage, and its labels’owedandreserved; - the
streamand thelabela repository’s kind, a repository or a kind is given; - every agents table of the host’s,
[agents],[agents.streams.<stream>],[kinds.<kind>.agents],[repos."<repository>".agents]and[repos."<repository>".kinds.<kind>.agents], with their stages’. Each setting of one is a key of its own, and so is each of a program’s own settings and each program’sfile. So the local layer replaces one own setting, or names another file, and keeps the managed layer’s other keys.
The accounts, the pools, a stream’s pool, view, terminal_app and
title, and [host] are the managed layer’s alone. A local
file that sets any of them, or that is not TOML, is not taken at all.
flume then reads the managed layer alone, and status names each key the
file may not set, or its fault, until you mend it. The local layer may name a stream the managed one
does not, and that stream’s places take [host] pool.
The managed layer may pin a key the local layer could set, by pin
under [host]:
[host]pin = ["streams.work.agents"]
[streams.work]agents = 6pool = "work"[streams.work]agents = 3priority = 30The local priority is taken, and work ranks at 30. Its agents are
passed over, so work keeps six, and status names the key with its
pin. A pin names a key or a table of keys, as "streams.work" does.
A pin that names neither makes the managed file refuse. Status gives
every value of the configuration with the layer it came from, and an
account’s variables by name and <set>.
In the repository
Section titled “In the repository”A repository gives settings in its .config/flume.toml, in the kind’s
own declaration or, for a kind it does not declare, in a table that
holds only agents:
[kinds.change.agents.stages.verify]model = "opus"instructions = "Check every scenario of the change's specs, not only its tasks."A declaration gives no environment: an env in any agents table of a
repository’s file or a launch’s declaration refuses the launch, naming
the field. What a host’s agents run under is that host’s to say. A
keep_open or a hibernate_after refuses the launch the same way
(how long an agent is kept open).
The repository’s [agents], flume’s own table beside [profiles] and
no part of any kind, gives settings to every agent of every kind the
repository runs, its own kinds and flume’s:
[agents]model = "sonnet"
[kinds.change.agents.stages.verify]model = "opus"Here every agent working in the repository runs on sonnet but a
change’s verify, which runs on opus, since the repository’s table for a
kind comes before its table for every kind. [agents] gives program,
model, effort, instructions, mode and programs, and comes before a kind
the repository declares, as the repository’s layer comes before the
kind’s. A repository whose own kind should differ on a key leaves the
key out of [agents] and gives it in each kind’s table. A stages, a
streams, an env, a keep_open, a hibernate_after or a beside
in [agents] refuses the launch, naming the field. A launch’s declaration is not read for it.
How long an agent is kept open
Section titled “How long an agent is kept open”keep_open is how long an agent that stops short needing an answer is
kept open for it (the agent kept
open). An answer
within that time goes into the session of the agent that asked, which
keeps what it had read and its prompt cache, and its stage carries on
there. Past it, flume ends the agent, freeing its room and its account,
and a later answer starts a fresh agent with the question and the
answer. flume’s own hour is about as long as an account’s prompt cache
lives.
It is <n>, <n>s, <n>m or <n>h, as 90s, 10m or 2h. 0
keeps no agent open: the first settle after its stop-short lets it go,
and flume ends it once quiet. Only the launch and the host’s agents
tables give it, a stage’s own first in each, as for every other
setting:
[agents.streams.work]keep_open = "10m"
[kinds.change.agents.stages.verify]keep_open = "2h"Here every agent in the work stream is kept open ten minutes, but a
change’s verify two hours, since the host’s table for a kind comes
before its table for a stream. Every other agent gets flume’s hour.
What an asking agent holds while it is kept open is the host’s: the
host’s room, its stream’s and its account’s, traded against how long
the account’s prompt cache lives. Every host that runs a repository
shares its file, and a kind travels between hosts, so neither can know
it. A keep_open in any agents table of a repository’s
.config/flume.toml or of a kind’s declaration refuses the launch,
naming the table and the field, as
kinds.change.agents.keep_open: how long an agent is kept open for an answer is the host's or the launch's to give, and no declaration gives one.
It is one time for every program and passed to none, so a table of
programs refuses the host’s configuration, or the launch, naming the
table and keep_open. Each start resolves it and keeps it, so a host
that changes keep_open changes it from the next start on. Status
gives it with its layer, as keep_open = 1h (from default).
An agent is kept open only where its multiplexer can type words into a running agent: under herdr, and never under the printed command (places and herdr).
Where the stage’s kind hibernates it, an agent kept open whose time
passes is hibernated rather than let go: flume ends it once quiet and
keeps its session, and its answer, by a message or a retry with words,
resumes that session with the question and the answer
(flume hibernate and resume).
How long a conversation idles
Section titled “How long a conversation idles”hibernate_after is how long a conversation whose kind hibernates it
may be quiet before flume hibernates it. Its quiet runs from flume’s
first reading of it quiet, asking no one, with no work of its own
running and no message being handed to it, and starts again whenever
a reading finds otherwise, and at the settle its own quiet starts, since
a turn ended then. Once it has been quiet that long, a settle ends the
agent and keeps its session, freeing the host’s room and the account.
A message, flume resume or an answer resumes it in its own session,
which carries what it had read. flume’s own hour is about as long as an
account’s prompt cache lives, past which a resumed session pays the
same as a fresh one.
It is <n>, <n>s, <n>m or <n>h, 0 hibernating no conversation
on its idling, and only the launch and the host’s agents tables give
it, a stage’s own first in each, as keep_open:
[kinds.research.agents]hibernate_after = "20m"A hibernate_after in any agents table of a repository’s
.config/flume.toml or of a kind’s declaration refuses the launch,
naming the table and the field. It is one time for every program, and
a table of programs refuses the host’s configuration or the launch.
Each start resolves it and keeps it, a resume’s among them, and status
gives it with its layer, as hibernates once idle 1h (from default).
The effort
Section titled “The effort”effort says how hard the agent’s model works on each turn. It is one
word, its program’s own, given in any layer beside the model and taken
whole from the first layer that gives it, a stage’s own before every
stage’s. flume has no scale of its own and maps no word from one
program to another. A table, a number or any other value refuses its
table, naming it and effort.
Claude Code takes the five words of the release flume pins, low,
medium, high, xhigh and max, each passed as --effort <word>.
Its agent profile refuses every other word, med and ultracode among
them, which Claude Code reads as other words. Claude Code itself starts
at its default with a warning on a word it does not know. So a word
flume passed unchecked could run an agent at a level other than the one
status names.
A kind’s effort and a launch’s
Section titled “A kind’s effort and a launch’s”A repository’s kind runs every stage at xhigh:
# the repository's .config/flume.toml[kinds.bump.agents]effort = "xhigh"Its launch gives the review max:
flume launch --kind bump --name parser --brief "Bump the parser." \ --agent review.effort=maxThe code stage’s agent starts with --effort xhigh, status naming
kind as where it came from. The review’s starts with --effort max,
from launch, since the launch comes before the kind. A host that
gives an effort in its own tables has the last word over both, as it
has over a model.
Give it in the layers, not the account
Section titled “Give it in the layers, not the account”Claude Code reads CLAUDE_CODE_EFFORT_LEVEL from its environment over
--effort. An account whose env sets it runs every agent under that
account at its level, whatever the layers give. flume neither refuses
nor removes it, since an account’s environment is the account’s to
give. Status says on the agent’s line that the account’s variable
outranks the effort passed, naming the variable and never its value.
Give an agent’s effort in flume’s layers, beside its model, rather than
in an account’s env. One table then says both, a stage or a stream
can differ from the rest, and status names the layer each came from.
Claude Code’s own effortLevel setting is the effort’s too. A layer’s
settings that writes it is refused, and a named file’s is left out,
each naming flume’s effort as its owner (keys another setting
owns). effortLevel takes no max, while
--effort takes all five. maxEffortLevel stays Claude Code’s own: it
caps flume’s effort as it caps a person’s pick. The model caps it too:
Claude Code runs xhigh or max at high on a model that offers
neither, and status names the word passed.
No effort
Section titled “No effort”Where no layer gives an effort, flume passes none, and the account’s
own configuration decides: its effortLevel, else the model’s default.
A host and a repository that say nothing change nothing.
When an effort refuses
Section titled “When an effort refuses”A launch is refused, before it makes anything, where a stage’s agent resolves to a word its profile does not take. The refusal names the stage, the effort as written, its layer and the program, and then the words the program takes:
the stage `code`'s effort `med`, from the layer `host-kind`, cannot run on `claude`: `med` is no effort claude takes: low, medium, high, xhigh or maxA host’s table changed after the launch leaves the stage refused at its next start in the same words, starting no agent until a retry. Every other program’s agent profile names no way to give an effort until its way is built and checked against the release flume pins, so an effort for a stage that runs one refuses it, naming the program.
The mode
Section titled “The mode”mode says how far a stage’s agent may act in its place without asking
a person. It is one of flume’s four modes, which mean the same on every
program:
| Mode | The agent |
|---|---|
plan |
reads the place and changes nothing in it |
ask |
reads without asking, and asks a person before each change to a file and each command that is not a read |
edits |
changes files in its place without asking, and asks before any command that reaches beyond them |
full |
acts without asking |
Each program’s agent profile maps each mode to the one setting of its
program that means it, never a wider or a narrower one, and refuses a
mode its program has no setting for. Claude Code’s are its
--permission-mode choices:
| Mode | Passed to Claude Code as |
|---|---|
plan |
--permission-mode plan |
ask |
--permission-mode manual |
edits |
--permission-mode acceptEdits |
full |
--permission-mode bypassPermissions |
plan suits a conversation, whose agent plans with you and asks in its
pane to leave plan mode, which you answer there. A launch that gives
plan to any other stage is refused, naming the stage and its
deliverable, since an agent in plan mode could not write it.
A host’s mode over a repository’s
Section titled “A host’s mode over a repository’s”A host that sets its agents’ reach states the mode in its own layers,
which come before a repository’s and a kind’s. This host runs every fix
in edits, whatever a repository asks:
# the host's ~/.config/flume/config.toml[kinds.fix.agents]mode = "edits"# the repository's .config/flume.toml[kinds.fix.agents]mode = "full"A fix’s agent here starts in edits, passed to Claude Code as
--permission-mode acceptEdits, and status names host-kind as where
its mode came from.
A program’s own value
Section titled “A program’s own value”In place of one of the four, a layer may give a table of programs, each entry one of the four or a value of that program’s own:
[kinds.review.agents]mode = { claude = "auto" }The table is taken whole from its layer, and the agent’s entry is its
program’s. A program the table names no entry for refuses the stage:
the mode never passes to a later layer. Claude Code’s own values are the
--permission-mode choices of the release flume pins: acceptEdits,
auto, bypassPermissions, manual, dontAsk and plan, each passed
as written. A program’s own value given bare, as mode = "auto", is
refused where it is read, naming it: give it under its program’s name.
flume’s own kinds
Section titled “flume’s own kinds”The newest versions of flume’s own kinds, change@4, change@5,
chore@2 and fix@2, give each stage’s agent full in the kind’s
layer, the last of the eight. So an agent of a bare change, chore or fix acts without
asking wherever no other layer gives a mode, passed to Claude Code as
--permission-mode bypassPermissions. A host that wants their agents to
reach less states the mode in its own layers, which come first:
# the host's ~/.config/flume/config.toml[agents]mode = "edits"Claude Code warns before an account’s first session in
bypassPermissions, and flume never answers that warning
(what a mode leaves to you): accept it
once for each account before these kinds run. Their earlier versions,
change@1 to change@3, chore@1 and fix@1, give no mode, and a
launch or a lock that names one runs it so.
A person’s own words for every agent, a way of working each agent
follows whatever its kind, go in the host’s [agents] instructions,
never in a table for one kind. flume’s own kinds declare no label, so a
host that wants one for them gives it (labels).
No mode
Section titled “No mode”Where no layer gives a mode, flume passes none, and the account’s own
configuration of its program decides, as it decides everything else
flume does not give. A host and a repository that say nothing change
nothing, but for the newest of flume’s own kinds, which give full
(flume’s own kinds).
What refuses
Section titled “What refuses”A launch is refused where a stage’s agent resolves to a mode its profile cannot run, or to a table that names no entry for its program. The refusal names the mode as written, the program, the stage and the layer. A host’s table changed after the launch leaves the stage refused at its start in the same words, starting no agent until a retry.
What a mode leaves to you
Section titled “What a mode leaves to you”flume answers no question an agent puts, in any mode. An agent in ask
or edits that asks a person waits asking until someone answers it in
its pane, and status says it is asking, so keep those modes for work
someone watches. Claude Code warns before an account’s first session in
bypassPermissions, and flume never answers that warning either:
accept it once yourself under the account, as
CLAUDE_CONFIG_DIR=~/.claude-work-1 claude --permission-mode bypassPermissions, before its agents run full.
A program’s own settings
Section titled “A program’s own settings”An agent program has settings of its own beyond the six flume gives,
such as Claude Code’s status line, its renderer, its hooks and its
tools’ permissions. Every layer may give them, under programs, a
table of programs. Each entry is named for a program, and gives that
program’s file, a settings file in the program’s own words, its
settings, keys as the program spells them, or both:
[agents.programs.claude]file = "~/.config/agent-launcher/claude-settings.json"
[agents.programs.claude.settings]tui = "fullscreen"statusLine = { type = "command", command = "~/.config/flume/status-line.sh" }Any other key of an entry refuses its table, naming the key and saying
a program’s own settings go under settings. A program’s keys sit one
level down, so none collides with file. A program’s name is the last
part of the path a stage’s program names, claude for Claude Code.
Only the entry for the agent’s program reaches the agent, so an entry
for another program never reaches Claude Code, and flume translates
nothing from one program’s words to another’s.
TOML’s strings, numbers, booleans, arrays and tables are held as JSON. A TOML date or time refuses its table, naming the key: give it as a string.
A file a layer names
Section titled “A file a layer names”file names a file whose top level is a table of the program’s
settings, read as JSON where its name ends .json and as TOML where it
ends .toml. Its keys lie beneath the entry’s settings: a key
settings gives is taken from settings, and every other key as the
file gives it. A file that cannot be read, does not parse or holds no
table at its top, and a name that ends in neither, refuse its table,
naming the file.
So a host hands its agents the file its people’s sessions get, with a status line of its own over the file’s:
[agents.programs.claude]file = "~/.config/agent-launcher/claude-settings.json"settings = { statusLine = { type = "command", command = "~/.config/flume/status-line.sh" } }where the file gives:
{ "tui": "fullscreen", "statusLine": { "type": "command", "command": "~/.config/agent-launcher/status-line.sh" }, "hooks": { "Notification": [{ "hooks": [{ "type": "command", "command": "notify-send 'Claude Code'" }] }] }, "env": { "EDITOR": "hx" }, "permissions": { "allow": ["Bash(git log:*)"], "defaultMode": "bypassPermissions" }, "skipDangerousModePermissionPrompt": true}Every agent on this host gets tui, hooks and permissions from the
file, and statusLine from settings. It gets permissions without
its defaultMode, and no env or skipDangerousModePermissionPrompt,
since other settings own those (keys another setting
owns). flume never passes a named file to
its program as it stands: it passes the keys the layers resolved, in a
file of the start’s own.
Within a layer that names stages, a stage’s table, its settings over
its file, comes before the table for every stage, its settings over
its file. In a repository’s two layers, a kind’s table comes before the
table for every kind. So a stage’s file comes before every stage’s
inline keys.
Where a file is read
Section titled “Where a file is read”| Layer | file names |
When it is read |
|---|---|---|
| the host’s, each of its tables | a file on the host: absolute, under ~/ as your home, or relative to the configuration’s own folder, ~/.config/flume/ |
with the host’s configuration, at each start |
| the repository’s, for one kind and for every kind | a file of the repository, relative to .config/, the folder of .config/flume.toml |
at the launch, at the revision the launch read, as a kind’s prompts are |
| the kind’s declaration | a file beside it, relative to the declaration’s own folder | at the launch, as its prompts are: at the revision for a repository’s kind, from disk for a launch’s |
| the launch | a file on the host, relative to the command’s working directory, or absolute | at the launch |
A repository’s or a kind’s file outside its repository, by .., an
absolute path or a link, refuses the launch. flume reads no $VAR in a
path. A file read at the launch is kept as read, so a commit that
changes it reaches the next launch, never a place already running. A
host’s file is read again at each start, so a host that changes the
file its people get changes its next agent’s.
A file that moves. A host’s file may be a link, which flume reads where it leads. Where the file a host’s people get moves, as one a system’s rebuild writes at a new path each time, name a link at a path that stays. Have whatever writes the file point the link at it. Each start then reads the file the link names at that start.
Key by key
Section titled “Key by key”Each top-level key of a program’s settings is one setting, taken whole
from the first layer that gives it, and within a layer from its
settings before its file. flume never merges two layers’ values of
one key. With the host above, a stream’s table:
[agents.streams.personal.programs.claude.settings]statusLine = { type = "command", command = "~/.config/flume/status-line-personal.sh" }tui = "default"gives an agent in personal the stream’s statusLine and tui, and
the file’s hooks and permissions. An agent of any other stream gets
the file’s tui and the host’s status line.
A layer that changes part of a key’s value restates the whole key. A
stream that keeps the file’s permissions and allows one more command
gives permissions whole:
[agents.streams.personal.programs.claude.settings]permissions = { allow = ["Bash(git log:*)", "Bash(cargo test:*)"] }No layer removes a key a layer beneath gives, since TOML has no null:
a layer replaces it. A host that names its people’s file and wants none
of its hooks for its agents gives an empty table, which replaces the
file’s hooks whole:
[agents.programs.claude]file = "~/.config/agent-launcher/claude-settings.json"settings = { hooks = {} }Nothing given, nothing passed
Section titled “Nothing given, nothing passed”Where no layer gives the agent’s program a key, flume passes it nothing and writes no file, and the account’s own configuration decides, as it decides everything else flume does not give. A host and a repository that say nothing change nothing.
Where the layers give keys, the program lays them over its account’s
own configuration and the repository’s as it lays its own sources.
Claude Code takes them by --settings <file>: flume writes the agent’s
resolved keys as one JSON object to own-settings.json, in the start’s
own folder, readable by your user alone, and names it (the Claude Code
plugin).
Claude Code reads that file after the user’s, the project’s and the
local settings and merges it over them. A key flume passes replaces a
value beneath it, merges into a table beneath it key by key, and joins
a list beneath it with the duplicates dropped. Every key flume does not
pass stays as the account or the repository gives it.
Keys another setting owns
Section titled “Keys another setting owns”Claude Code’s agent profile reserves the keys of its settings that another of flume’s settings, the account or a person owns:
| Key | Owned by |
|---|---|
env |
the account’s env, which is an agent’s whole environment (the environment) |
model |
flume’s model |
effortLevel |
flume’s effort (the effort) |
permissions.defaultMode |
flume’s mode (the mode) |
apiKeyHelper, awsAuthRefresh, awsCredentialExport, gcpAuthRefresh, otelHeadersHelper, forceLoginMethod, forceLoginOrgUUID |
the account’s sign-in |
disableAllHooks |
flume’s plugin, whose hooks say an agent started and received its prompt |
skipDangerousModePermissionPrompt, skipAutoPermissionPrompt |
a person, who alone accepts the warning each records |
flume treats a reserved key one of two ways:
- Written in a table’s
settingsor given at the launch, it refuses the launch, or at a later start the stage, naming the key, the program, the layer and its owner. Give it in the setting that owns it. - Given by a named file, it is left out, unread, and status names it
with its file, its layer and its owner. flume takes
permissions.defaultModeout ofpermissionsand keeps the rest ofpermissionsas the file gives it. So a people’s file that gives an environment, a mode and an acceptance can still be named whole.
The environment a people’s file gives reaches an agent only through
its account’s env, where status names each variable and never its
value. Every other key is taken as written, statusLine, tui,
hooks and attribution among them. A hook a layer gives runs beside
the hooks of flume’s plugin, as one of the account’s own does. So a
hook that denies a tool or blocks a stop does so in flume’s agents too.
No credential
Section titled “No credential”A credential goes in the account’s env, where status names it and
never shows it, and the program reads it from its environment. flume
checks every string of a program’s own settings, at any depth, inline
or from a file, once the reserved keys are out of the files and before
anything holds it. It refuses a string, naming its key’s path, its
layer and its file and never its value, that:
- opens with a token’s prefix, such as
ghp_,github_pat_,glpat-,sk-,xoxb-,AKIAorhf_, followed by sixteen or more letters, digits,_or-; - holds a private key’s opening,
-----BEGINandPRIVATE KEY-----; - is a JSON web token;
- holds, outside any
$VARor${VAR}, a run of 32 or more letters, digits,_and-that mixes upper case, lower case and digits; - is the value of a key named as a secret, such as
token,secret,password,apiKeyorAuthorization, and is not empty and names no variable.
So headers = { Authorization = "Bearer ${API_TOKEN}" } is taken as
written, and the program, or the shell it runs a command in, reads the
variable, while Bearer abc there is refused. flume reads no ~ and
no $VAR inside a value. The check reads shapes: a short password of
no known shape passes it, so keep every credential in the account’s
env. A long identifier mixing cases and digits in a command is
refused too. Move it into a script the command runs.
Other programs
Section titled “Other programs”Claude Code’s is the one agent profile that takes a program’s own settings. Every other program’s profile refuses them until its way of taking them is built and checked against the release flume pins. A stage that runs another program with own settings for it is refused, naming the program and the key. An entry for a program no stage runs refuses nothing but a value shaped as a credential, and reaches no agent.
Refusals
Section titled “Refusals”The launch checks every layer’s own settings before it makes anything, and refuses whole, where:
- a table or a file cannot be read: the host’s configuration then refuses every launch and start, and a repository’s or a launch’s declaration cannot be read;
- a table’s
settingsor the launch gives a reserved key; - a string is shaped as a credential;
- the agent’s profile cannot take the keys resolved for its program.
At each later start, flume checks the host’s tables and files as they stand then. One changed after the launch leaves the stage refused in the same words, starting no agent until a retry. Each refusal names the key, the program, the stage or the table, the layer and the file it came from, and never a value:
`programs.claude.settings.apiKeyHelper`, which the layer `host` gives for every agent, is a key `claude`'s agent profile reserves for the account's sign-in: it is given there, and never among a program's own settingsWhat status gives
Section titled “What status gives”Status gives each of the current agent’s own settings as
programs.<program>.settings.<key>, with its layer and the file it
came from. A value too long for its line prints as {…} or […], and
the JSON form gives it whole. Under them it names each file a layer
named for the agent’s program, with the keys left out of it and their
owners. Then it says how the profile passed the settings, and that the
program does not read them back. A fix in work on the host above,
whose work stream gives its own status line, reads:
agent flume:f5f5e14159a8:fix--the-parser-reads-tabs:code:1 (claude) on the account work-1 of work (from the strategy): working in the session work, the stream's name env.CLAUDE_CONFIG_DIR = <set> (from account) keep_open = 1h (from default) program = claude (from default) programs.claude.settings.hooks = {…} (from host, the file /home/you/.config/agent-launcher/claude-settings.json) programs.claude.settings.permissions = {…} (from host, the file /home/you/.config/agent-launcher/claude-settings.json) programs.claude.settings.statusLine = {…} (from host-stream) programs.claude.settings.tui = "fullscreen" (from host, the file /home/you/.config/agent-launcher/claude-settings.json) the file /home/you/.config/agent-launcher/claude-settings.json (from host) env left out, owned by the account's `env` permissions.defaultMode left out, owned by flume's `mode` skipDangerousModePermissionPrompt left out, owned by a person, who alone accepts the warning it records own settings passed as --settings /home/you/.local/state/flume/places/home%you%.local%share%flume%places%f5f5e14159a8%fix--the-parser-reads-tabs/claude/flume:f5f5e14159a8:fix--the-parser-reads-tabs:code:1/own-settings.json own settings not read backAn agent no layer gives its program’s own settings shows none of these lines.
What a commit says about who made it
Section titled “What a commit says about who made it”Claude Code adds a Co-Authored-By trailer to each commit it makes and
a Generated with Claude Code line to each pull request it writes,
unless its attribution setting says otherwise. Some projects refuse a
pull request that carries such a line. attribution is one of Claude
Code’s own settings, given, checked and passed as every other is.
A host whose fork of another project must carry no tagline says so for every kind and every stage run there, in its table for the repository:
[repos."acme/upstream-fork".agents.programs.claude.settings]attribution = { commit = "", pr = "", sessionUrl = false }A repository of the host’s own that wants its own words gives them in
its .config/flume.toml, for every kind run in it, and the words
travel with it to every host that runs it:
[agents.programs.claude.settings]attribution = { commit = "Assisted-by: Claude Code", pr = "" }A repository that neither names keeps its account’s attribution:
Claude Code writes what the account’s settings.json says, else its
own lines. Status names programs.claude.settings.attribution with
host-repository for the fork and repository for the repository
that gives its own.
Why a fork’s word is the host’s. A fork’s own .config/flume.toml
would travel in the pull request the other project reviews. The host’s
table for the repository says it on the host alone. Of the host’s
tables, only its table for one of that repository’s kinds comes first,
so the fork carries no tagline whatever the host gives every agent. A
repository’s own [agents] stands only where no host table gives
attribution.
Why both texts. attribution is taken whole, and Claude Code fills
a text it leaves out with its own. attribution = { commit = "" }
alone hides the commit’s trailer and leaves the pull request’s line to
the account’s settings or Claude Code’s own. Give both texts empty for
none, and sessionUrl = false, which keeps a session started from the
web or by Remote Control from adding its link. Claude Code 2.1.322 also
reads attribution = false as all three, but earlier releases refuse
it, so give the table.
What no layer gives. A commit’s signature, its author and its committer are the host’s git’s: git signs a commit and names its author as the host’s git configuration says. What the merge queue writes when it lands the work is the merge queue’s own.
Streams
Section titled “Streams”A host runs its places in streams. Each stream has its own bound on
agents running, its own priority and its own pool of accounts, all
under the host’s bound. The stream default always stands: it holds
every place nothing names a stream for, under the host’s bound alone
unless a [streams.default] table gives it one of its own.
[host]agents = 8
[streams.work]agents = 5priority = 10pool = "work"
[streams.personal]agents = 3pool = "personal"
[pools.work]strategy = "fill-first"accounts = [ { name = "work-1", program = "claude", env = { CLAUDE_CONFIG_DIR = "~/.claude-work-1" }, agents = 4 }, { name = "work-2", program = "claude", env = { CLAUDE_CONFIG_DIR = "~/.claude-work-2" } },]
[pools.personal]strategy = "least-busy"accounts = [{ name = "personal", program = "claude", env = { CLAUDE_CONFIG_DIR = "~/.claude-personal" } }]
[repos."acme/acme"]stream = "work"This host runs acme’s places in work, up to five of its eight agents,
ahead of personal’s. They run on work-1 until it runs four, is spent
or is past ninety percent of a window its reading gives, and then on
work-2.
A place’s stream
Section titled “A place’s stream”A place’s stream is fixed at its launch, from the first of:
| Source | Status names it |
|---|---|
flume launch --stream <stream> |
launch |
| the stream of the intent’s affinity (affinity) | intent |
stream in the host’s [repos."<repository>".kinds.<kind>] |
host-repository-kind |
stream in the host’s [repos."<repository>"] |
host-repository |
stream in the host’s [kinds.<kind>] |
host-kind |
default |
default |
A launch whose stream the host does not declare is refused, naming the
stream, with nothing made. A role’s run runs in its address’s stream,
east for east/ops (roles and wake).
The queue across streams
Section titled “The queue across streams”A stage starts only while the host, its stream and an account of its pool all have room. Waiting stages start by their stream’s priority, then their place’s priority, then the order they came to wait. A settle passes over a stream at its bound, or one whose pool has no usable account. Its stages keep their order and start first once it has room, and they never hold the host’s room from another stream’s stages. flume ends no agent to make room.
A stream’s sessions
Section titled “A stream’s sessions”Under herdr, a stream’s agents open in herdr sessions of the stream’s.
Its own is the one its session names, else the one named by the
stream’s name. The default stream’s own is flume’s session, flume,
unless [streams.default] names one. A stream may also name, for a
kind, a session of its own for that kind’s agents, and, for one stage
of a kind, one for that stage’s agents. So a host keeps a stream’s
research apart from the rest of its work:
[streams.work]agents = 5
[streams.work.kinds.research]session = "work-design"
[streams.work.kinds.release.stages.review]session = "work-review"At each start, an agent opens in the first of:
| Where | Status names it |
|---|---|
beside a pane its settings name, by beside, in whatever session that pane is |
beside the pane |
the session the launch names, --agent <stage>.session=<name> before --agent session=<name> |
launch |
| the session its stream names for its kind’s stage | stream-stage |
| the session its stream names for its kind | stream-kind |
the stream’s own session |
stream |
| the session named by the stream’s name | stream-name |
flume’s own session, for default naming none |
own |
Here a research place’s agents open in work-design, a release’s
review agent in work-review, the release’s other agents in work,
and every other place’s agents in work. A kind is named as
[kinds.<kind>] names it, whatever source and version it resolves to,
and a stage by its name in that kind. A kind’s session takes every
stage of the kind but one its own table names.
These tables are the stream’s word, not one of the six layers: no agents table, repository’s file or kind gives a session, and nothing names one for a repository, a label or a stage of every kind. They are read at each start, the local layer over the managed one, so a change takes the next start and an agent stays where it opened. A table for a kind or a stage the place does not run is ignored. A misspelt kind’s table opens nothing apart, and status, which gives each stream’s sessions with the kinds and stages it names them for, shows the name as written.
A place whose agents open apart keeps its stream. They count in its bound and the host’s, take its pool’s accounts and take their label’s share, wherever they open.
A start that reads one of these tables is refused, its stage waiting for a retry once the file is mended, where:
- the table holds any key but
sessionand, for a kind,stages. Only the starts of that kind, or that stage, on that stream are refused; - the session it names is one another stream’s agents open in by that
stream’s word: its own, or one it names for a kind or a stage. A
session a stream names apart is that stream’s alone, so
flume openfinds it in one stream’s view. A stream may name its own session for a kind.
The refusal names the table’s key, or both streams:
streams.work.kinds.research.pool: a stream's table for a kind holds the session its agents open in and its stages' tables aloneA stage waiting for room whose table comes to refuse is refused at the next settle, ahead of the room.
A stream’s multiplexer and view
Section titled “A stream’s multiplexer and view”Beside its session, a stream names the multiplexer its agents run in,
and how flume open shows them: its view, its terminal app and its
window’s title. Each of the first three is the stream’s, else the
host’s, else the default:
[host]multiplexer = "herdr"terminal_app = "ghostty"
[streams.work]session = "office"title = "Work Agents"
[streams.trial]multiplexer = "printed"| Key | Neither names one | Status names it |
|---|---|---|
multiplexer |
the printed command | stream, host or neither |
view |
terminal, a window of a terminal app |
stream, host or neither |
terminal_app |
the printed line, no window | stream, host or neither |
title, on a stream alone |
the stream’s name | stream or stream-name |
Here work’s agents open in herdr’s session office, and flume open office opens a Ghostty window titled Work Agents on it. trial’s
agents run as commands flume prints, while every other stream runs
under herdr. A stream’s multiplexer is read at each start, as its
session is, and an agent stays in the one it opened in. No launch,
kind, repository or label names a multiplexer: the stream is where you
try one. The local layer may set a stream’s multiplexer, as it sets
its session; its view, terminal_app and title are the managed
layer’s. Seeing a stream’s agents
says what each view and terminal app does.
Labels
Section titled “Labels”A place’s label gives it a share of its stream’s agents, and nothing
else. A stream says how many of its agents a label is owed, and how
many of those are reserved for it alone, each a whole number of
agents from 0, 0 where left out:
[streams.work]agents = 5
[streams.work.labels.operation]owed = 2reserved = 1
[streams.work.labels.construction]owed = 2
[kinds.fix]label = "construction"
[repos."acme/acme".kinds.deploy]label = "operation"Within its stream, a stage of a label running fewer agents than it is owed starts before every stage of a label running what it is owed or more, whatever their priorities. An agent a label is owed and does not use is lent while it has nothing waiting, and is its own again at the next agent to end. An agent a label holds reserved and does not use stays empty for its own next stage and is never lent: no stage of another label, and no stage of no label, starts in it. A label holds reserved no more than it is owed. flume ends no agent for what a label is owed.
Take work above with no operation place waiting. Four construction
places run, and a research place of no label waits, since the one
agent left is held reserved for operation. An operation place launched
then starts at once in it. A second operation place waits until the
next agent ends, then starts before the research place and every
construction place waiting, whatever their priorities, and no agent
running is ended for it.
A place’s label is read at each start, from the first of:
| Source | Status names it |
|---|---|
label in the host’s [repos."<repository>".kinds.<kind>] |
host-repository-kind |
label in the host’s [kinds.<kind>] |
host-kind |
An agent counts toward the label it started under until it ends, so a
label changed while it runs takes the place’s next start. A label is
one word of letters, digits, - and _. flume’s own kinds declare
none.
A stream holds what its labels are owed only where it states a bound,
and in one that states none status says what they are owed is passed
over. A stream starts no stage while its labels are owed more together
than its bound, a label holds more reserved than it is owed, or a
label’s table holds any key but owed and reserved, reserve and
keep_free among them. Each of its starts is refused, naming the
stream and why, until the configuration is mended and the stage
retried (what refuses). A label has no pool, account or bound of its own: those
are its stream’s.
Pools of accounts
Section titled “Pools of accounts”A pool, [pools.<pool>], lists accounts in order. Each account is a
name, the program it runs, an env that is its agents’
environment, and an optional agents, the bound on agents running
under it. It names nothing for its reading, which its program reports
(an account’s reading). A stage’s pool is its stream’s pool,
else the host’s [host] pool. With no pool named anywhere, flume
chooses no account, and agents run under the login environment alone.
An account is usable for a start while it is unspent, is not past its pool’s threshold (a threshold) and is under its own bound, and runs the stage’s program. At each start flume chooses an account under the host’s room lock, so two starts never take one account’s last room:
strategy |
The account chosen |
|---|---|
fill-first |
the first usable account in the pool’s order |
least-busy |
the usable account running the fewest of flume’s agents, equals in the pool’s order |
most-left |
the usable account with the most of its allowance left by a fresh reading, then each with no fresh reading. Equals go by the fewest of flume’s agents running, then the pool’s order |
The intent’s account for the stage’s program comes first while it is
usable (affinity). With no
usable account the stage waits for room, and status names the pool and
the soonest time an account of it is back, neither spent nor past its
threshold. least-busy counts flume’s own agents alone, and not the
sessions you run yourself under an account. A reading counts all the
account has used, your own sessions’ use among it.
Sign each account’s configuration home in once, by running
CLAUDE_CONFIG_DIR=~/.claude-work-1 claude yourself, since flume
answers no sign-in on an agent’s behalf.
An account’s reading
Section titled “An account’s reading”flume asks no one how much of an account’s allowance is left. An
account’s reading is the usage windows its agent program last
reported for it in a session flume started: for each window, how much
of it is used and when it resets. Claude Code reports its windows to its
plugins as each response comes back, and in every session flume starts,
flume’s plugin passes each report to flume hook usage (Claude
Code). flume keeps it as the reading
of the account that session runs under, in the account’s own document
beside its spent time (state),
with when flume took it and from which agent’s session. An account
names nothing for it:
[pools.work]strategy = "most-left"accounts = [ { name = "work-1", program = "claude", env = { CLAUDE_CONFIG_DIR = "~/.claude-work-1" } }, { name = "work-2", program = "claude", env = { CLAUDE_CONFIG_DIR = "~/.claude-work-2" } },]- A window goes by the name its program gives it: Claude Code’s
five_hourandseven_day, and a gateway’sspend_limit. Its use is the share of the window used, from 0 to 100, and a spend limit past 100 reads as 100. - A reading is fresh for fifteen minutes from when flume took it, by the host’s clock. A window whose reset has passed reads as nothing used.
- A report taken no later than the reading the document holds changes nothing, so two sessions on one account never turn its reading back.
- flume fetches nothing, asks no agent program or its maker what an account has left, reads no account’s sign-in, and reads no file your host writes for it.
An account flume runs no agent on keeps its last reading as it ages: it
goes stale after fifteen minutes, but a window it gives past the
threshold holds the account until that window resets (a
threshold). An account no session of flume’s has
reported for has no reading, and status says no session flume started has reported its windows. An account whose program’s profile gives no
windows has none either, and status says its program's profile gives no windows. Neither refuses a start or fails a settle. An account
signed in with a key rather than a subscription reports no windows, so
it has no reading.
What an account has left is the least any of its windows leaves:
40% of its 5-hour window used and 80% of its 7-day window leave it 20.
Take a most-left pool over work-1 with that reading, work-2 whose
reading gives 60% and 30%, and work-3, for which no session has
reported. A first
place starts on work-2, which has 40 left to work-1’s 20, and a second
place of another intent starts there too while the reading stands.
Once work-2’s reading is twenty minutes old with none newer, the next
place starts on work-1, the one account with a fresh reading. Once
work-1 is spent, the next starts on work-3, which runs fewer of flume’s
agents than work-2. A pool with no fresh reading anywhere chooses as
least-busy does.
A reading moves only when a session flume started on the account
reports its windows, so every start between two reports goes to the
account with most left, up to its own
agents. An intent keeps its agents on one account in any case
(affinity), and the
threshold stops new work on an account once a reading shows it near
its limit.
A threshold
Section titled “A threshold”A pool’s threshold is a whole percentage of a window, 90 where the
pool states none:
[pools.work]strategy = "fill-first"threshold = 85An account whose reading gives any of its windows used to the threshold
or past it is past its threshold. It takes no new start, under any
strategy or by the intent’s affinity, until that window resets. So
under fill-first and least-busy too, an account near its limit
takes no new work wherever it gives a reading. A window’s use only
grows until it resets, so an account stays past its threshold until the
window’s resets_at, however old the reading. A window that names no
reset holds the account only while the reading is fresh.
Its agents running work on where they are: flume ends and moves none of them for the threshold. One whose turn stops at the account’s usage limit moves as a spent account’s agent does (a spent account). An intent whose account is past its threshold moves to another account of the program, never back, and status says which window held the account and until when.
A reading neither shortens nor lengthens a spent account’s pause. An account spent until 15:00 stays spent until then, though a reading at 14:00 gives it 10% used, and flume records no account spent from a reading. Each holds the account on its own, so it takes a start again only once its pause has passed and no window holds it past its threshold. A threshold leaves the last of each window unspent: set it higher, up to 100, to spend more of each before new work moves on.
A pool that cannot run a stage
Section titled “A pool that cannot run a stage”A stage waits for room only while its pool holds an account of its program that is spent, past its threshold or at its bound. Only then can a reset or an agent’s end make room for it. A pool that holds no account of the program the stage’s layers resolve refuses the stage, naming the stage, the pool and the program:
the stage code's agent runs claude, and the pool personal holds no account of claude, so no room it gives could start it (145)flume reads the pool at the launch, from the host’s configuration as it
stands then, and refuses the launch with nothing made. It reads the pool
again at each later start. So where you take a pool’s last account of a
program away after the launch, the stage of that program is refused
when it comes to start. A stage already waiting for room is refused at
the next settle, whatever room the host has. A stage so refused
starts no agent, and its place waits for your retry: put an account of
the program back in the pool, then run flume retry <place>.
The environment
Section titled “The environment”An agent’s environment is your login environment with its account’s
env over it, and nothing else gives one: not the launch, not the
host’s agents tables, not the repository or the kind. Nor do a
program’s own settings: flume refuses or leaves out their env (keys
another setting owns). A launch from a
session signed in to another account changes nothing, since the agent’s
environment never comes from the launching session.
In an account’s env, a leading ~ is your home and $VAR or
${VAR} is a variable of your login environment, read at each start. A
variable your login environment lacks refuses that start, naming it and
the account. Status names each variable and never shows its value.
The agent starts with:
HOME,USER,LOGNAME,SHELL,TMPDIRandLANGas they stand for your user, and thePATHyour login shell sets;- its account’s
env, where it runs under an account; - flume’s own
FLUME_AGENT,FLUME_SECRET,FLUME_PLACEandFLUME_STAGE(the Claude Code plugin).
A pane’s shell reads no startup files. 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.
A spent account
Section titled “A spent account”When an agent’s turn fails at its account’s usage limit, flume records
the account spent until the reset the limit’s words name, or for an
hour where they name none. It reads Claude Code’s own words, as the
Claude Code release flume pins writes them. A reset within a day is a
time of day, as in You've hit your session limit · resets 5pm (America/New_York). A later one is a date and a time, as in You've hit your weekly limit · resets Nov 8 at 12am (America/New_York), with the
year after the day where it is not this year’s. A limit on a budget
names its plan limit’s reset, your weekly limit resets Nov 8 at 12am (America/New_York). Each is read in the zone the words name. The record
is a document of the host’s own, so every flume process on the host
skips the account until then.
Where the words name a reset in a form flume does not read, the account is spent for an hour, as where they name none, and status gives the words beside the account’s spent time, so a person can see what flume could not read.
Once the spent agent is quiet, flume ends it and starts its stage again on the account its pool chooses, or the stage waits for one. No caller’s word is needed, and the start counts as no send-back. Other agents on the spent account work on until their own turn fails. flume asks no one whether a limit has reset: the next settle after the reset finds the account usable.
The conversation carried
Section titled “The conversation carried”The start after a spent agent goes on with that agent’s own conversation where the agent program can carry it to the account chosen. Claude Code carries it when the chosen account’s configuration home reaches the transcript the spent agent wrote (the Claude Code plugin). flume then starts the agent in that session, and its prompt is flume’s words alone, with the way to stop short:
Your last turn stopped at your account's usage limit. This session now goes on under an account of the pool, with its conversation as it stood: carry on from where you stopped.The carried start is a start like any other, with its own identity, secret and record, and its record names the session it resumes. flume takes its agent as the stage’s only once the agent says it started in that session (the start check). A pool of one account carries its agent’s conversation across the account’s own reset, since its home holds the transcript.
Where the conversation cannot go to the account chosen, the start is afresh. The fresh agent’s prompt says, in flume’s own words, that the earlier agent stopped at its account’s usage limit and that what it committed and left is in the place. The agent reads only that.
A retry of a conversation reported lost carries it too. A stage a
kind declares a conversation (kinds) is lost
when its agent stops with nothing delivered: its pane was closed, or
the host or the terminal restarted. flume retry <place> --stage <stage> then goes on with the lost agent’s own session. Its start takes the
account the lost start ran under first, while that account is usable,
of the stage’s program and in the stream’s pool, since that account
holds the conversation; that choice moves no intent’s affinity.
Otherwise it takes the account any start would take, by the intent’s
affinity or the pool’s strategy, and carries where that account
reaches the conversation. A stream with no pool carries where the
login environment’s configuration home reaches it.
Status names the account (its conversation's) where it came from the
conversation. The carried agent’s prompt is flume’s words, then the
retry’s --words, then the way to stop short:
Your session was lost and goes on here, with its conversation as it stood. Anything you had running then has stopped: read the place again before you carry on.No carried start opens while a process runs its conversation, after a spent agent or a lost one. A person may have resumed the session by hand, in a pane of their own, or the terminal may have brought the lost agent back in its pane. flume adopts, ends and sends nothing to that process, and the stage waits as for room, never stalled, until a settle reads that no process runs the session. Where flume cannot read whether one does, the stage waits the same way, and status says what could not be read. Claude Code’s profile reads it from the program’s own record of its running sessions, in every configuration home the host declares for it, and from the host’s processes. On a program whose profile reads no running session, a lost conversation’s retry keeps waiting, since flume never reads that no process runs it, and status says so.
Where the conversation cannot be carried, the stage starts afresh, and status says why. Its transcript is gone, the lost agent never said it started, so no configuration home is known to hold it, or no account the start takes reaches it. The fresh agent’s prompt puts flume’s words before the retry’s:
The stage's earlier agent was lost, and its conversation could not be carried, so this agent starts the stage afresh. What it committed is on the place's branch and what it left is in the place: read them and carry the stage on from there.Only the start after a spent agent and a lost conversation’s retry carry a conversation. Any other retry, a lost stage that is not a conversation among them, a fix round, a later stage and the start after an agent a caller ended start afresh. A construction stage’s work is what its place holds, and its lost agent stopped at no turn’s end.
A carried start may not begin: its agent stops before it says it started, says nothing by the stage’s limit, never receives its prompt, or comes up in another session. flume then sends it nothing more, ends it once it is quiet, and starts the stage afresh at once, with no caller’s word and no send-back counted.
Sharing one projects folder
Section titled “Sharing one projects folder”flume copies, links and writes nothing in an account’s configuration
home. Whether a conversation can go from one account to another is
yours to set up, once, with a link. Claude Code keeps each session’s
transcript under its configuration home’s projects folder, so
accounts that share one projects folder reach each other’s
conversations. To let work-2 carry on what work-1 began, move any
projects folder of work-2’s aside, then link it to work-1’s:
mv ~/.claude-work-2/projects ~/.claude-work-2/projects.beforeln -s ~/.claude-work-1/projects ~/.claude-work-2/projectsLink each further account of the pool the same way. The link carries
both ways: an agent that began under work-2 carries on under work-1
as well.
The link shares everything Claude Code keeps under projects: every
session’s transcript under those accounts, your own sessions among them,
and what it keeps of each project there, its memory of each project
among it. Accounts you keep apart for a reason stay apart only while
their projects folders do. A pool whose homes share nothing works as
before: each spent agent’s stage starts afresh, and status says why.
An intent keeps an account per program
Section titled “An intent keeps an account per program”An intent is the work a place serves: the name flume launch --intent <name> gives, else the place’s repository and base. It keeps
one stream, which a later place of the intent takes. For each program
its agents run, it keeps the account the first of them on that program
started on. Its agents on that program keep to that account while it is
usable, so they read what they share from its prompt cache. An intent
whose stages run two programs keeps one account for each.
A start takes the intent’s account for its stage’s program. It leaves every other program’s account as it was, so a start on one program is no move of the intent, even while another program’s account is spent or at its bound. The account for a program moves to another account of that program when it is spent, past its threshold or at its bound, and it never moves back to an account it left. flume drops the intent an hour after its last place is gone. Status lists each move with the program whose account moved and its reason, and says that the agents after it start without the earlier account’s cache.
An intent an earlier release recorded holds one account. flume reads it as the account for the program the host’s configuration gives that account, and keeps the stream alone where the pool no longer declares the account.
The start check
Section titled “The start check”At each start flume records what the agent is to run under: its
program, its account, and a digest of each variable of its account’s
environment and of FLUME_AGENT, FLUME_PLACE and FLUME_STAGE.
Where a layer gives a mode, the record holds it as passed. The
start’s secret keys each digest, so the record holds no value and
tests no guess. PATH, SHELL and the rest of the login environment
are not in it. Nor is a credential the agent program keeps from the
programs it starts, its hooks among them: Claude Code keeps
CLAUDE_CODE_OAUTH_TOKEN and its other tokens to itself, so an
account’s token reaches the agent and is never compared.
The agent’s SessionStart hook compares its own program and environment
with the record before it says the agent started, and, where the record
names a session the start resumes, the session it runs in. A pane
brought back without its environment, a program started again by hand,
another claude found earlier on PATH, or a carried start that came
up in another conversation then differs. The hook acks nothing,
records what differed by name, and starts a settle. flume takes that
agent as no stage’s agent: it sends it no prompt, ends it once it is
quiet, and starts the stage afresh under its settings. A second
difference in a row, or an agent still not quiet at the stage’s limit,
ends the stage never begun, naming the variables.
Claude Code names the mode a session runs in only with a prompt, so its
mode is compared at the start’s first prompt. The plugin’s
UserPromptSubmit hook compares the session’s mode with the one its start
passed, Claude Code’s default read as manual. Where the account’s
configuration disables the mode asked, Claude Code begins in another,
and the hook then blocks the prompt, so the agent takes no turn, and
records both modes. flume treats that start as it treats a variable
that differed: it ends the agent once quiet and starts the stage
afresh. A second start in another mode ends the stage never begun,
naming the mode asked and the mode it began in. Once a start’s first
prompt is taken, its session’s mode is its own. A later prompt, and a
session resumed or compacted, compare none, so a mode you move in the
pane stops nothing. Where a program’s profile cannot read its mode
back, the start records the mode passed and compares none, and status
says the mode was not read back.
Status lists each such start with each variable’s name, whether the program differed and the modes asked and begun, never a value.
What status shows
Section titled “What status shows” stream work (from host-repository), label construction (from host-kind), intent of /home/you/src/acme on main agent flume:f5f5e14159a8:fix--the-parser-reads-tabs:code:1 (claude) on the account work-1 of work (from the strategy): working, in the mode edits (from host-kind) passed as acceptEdits, at the effort high (from host-kind) passed as high, not read back in the session work, the stream's name its terminal herdr, the host's effort = high (from host-kind) env.CLAUDE_CONFIG_DIR = <set> (from account) keep_open = 1h (from default) mode = edits (from host-kind) model = sonnet (from host-kind) program = claude (from default)A place gives its stream and its label, each with where it came from,
and its intent. Its current agent gives the session and the
multiplexer it opened in, each with where it came from. An agent that
opened in a session its stream names for its kind or its stage says
which, as in the session work-design (stream work, kind research) or
(stream work, stage release.review). Its
current agent gives its account, with from saying whether the
intent’s affinity for the agent’s program or the pool’s strategy chose
it, and each variable env.<NAME> from account as <set>, and its
mode with the value passed and whether it was read back. Its effort
gives the word passed, which nothing reads back, and the account’s
variable that outranks it where its account’s env names one (give it
in the layers), and its
keep_open gives its time with its layer. It gives its
program’s own settings, each with its layer and its file (what status
gives). The place lists its moves and each start
in unsettled.
A change whose code started on work-2 once the intent’s account for
claude, work-1, was spent runs its verify on work-2 from the
affinity:
agent flume:f5f5e14159a8:change--csv-export:verify:1 (claude) on the account work-2 of work (from the affinity for claude): working env.CLAUDE_CONFIG_DIR = <set> (from account) keep_open = 1h (from default) program = claude (from default) moved: the intent moved for claude from work-1 to work-2 at 1793291334, work-1 spent, its agents after starting without work-1's cacheA stage its pool cannot run reads refused on its line, with the
refusal’s words after refused: (a pool that cannot run a
stage).
The agent of a start after a spent agent says whether it carries that agent’s conversation, and the stage’s move says whether the conversation went with it. Where it stayed behind, the agent’s line says why, naming the variable and never a path:
agent flume:f5f5e14159a8:fix--the-parser-reads-tabs:code:2 (claude) on the account work-2 of work (from the strategy): working env.CLAUDE_CONFIG_DIR = <set> (from account) keep_open = 1h (from default) program = claude (from default) starts afresh after start 1: the chosen account's configuration home (`CLAUDE_CONFIG_DIR`) does not reach its conversation: its `projects` folder is not the stopped account's moved: code moved from work-1 to work-2 at 1793291334, work-1 spent, its conversation stayed behind, its agents after starting without work-1's cacheWhere it went, the agent’s line reads carries the conversation of start 1 and the move its conversation with it. A carried start that
did not begin is listed with what happened, carried and not begun: code's start 2 at 1793291340: the start that carried its conversation ended before it said it started, and its stage started afresh.
The host gives its streams and its pools. Each stream gives its
running agents, bound, room, queue, session, multiplexer, view,
terminal app, title and labels, and each session it names for its
kinds and stages, with the kinds and the <kind>.<stage>s it names it
for and the layer each came from. Each pool gives its strategy and
threshold, and each account with its agents running, bound, spent time,
reading, and what holds it past its threshold (a pool’s
accounts). A stream gives each
label as label <name>: owed <n>, reserved <m>, with its agents
running and its stages waiting, and a stage waiting gives its label. A
stream that states no bound says what its labels are owed is passed over: it states no bound. A stream whose labels or
multiplexer refuse its starts says it starts no stage: with why, and
one whose terminal app names no profile says it opens no view:, its
stages starting as before. A table for a kind or a stage that refuses
the starts that read it says it starts no stage that reads <table>:
with the refusal (a stream’s sessions). Then comes the
local layer, with each value it set and each key passed over with its
pin, or, where it was not taken, each key it may not set or its fault:
stream work, priority 30: 5 agents running of 5, room for 0 its agents open in the session work, the stream's name it names the session work-design for the kind research (from managed) it names the session work-review for the stage release.review (from local) multiplexer herdr (the host's), view terminal (the default), terminal app ghostty (the host's), title "Work Agents" (the stream's title) label construction: owed 2, reserved 0, 4 agents running, 0 waiting label operation: owed 2, reserved 1, 1 agents running, 1 waiting waiting for room: /home/you/.local/share/flume/places/f5f5e14159a8/deploy--rollout's code in work as operation, priority 0, short of the stream work's room, at its bound of 5 the host's local layer is taken, setting: streams.work.kinds.release.stages.review.session = "work-review" streams.work.priority = 30 streams.work.agents passed over: the managed layer pins streams.work.agentsA pool’s accounts and their readings
Section titled “A pool’s accounts and their readings”A pool gives its strategy and its threshold, then each account with its
configuration home and its reading under it. The home is the folder
its program keeps its settings in under that account, Claude Code’s
CLAUDE_CONFIG_DIR, read against your login environment as a start
reads the account’s env; an account whose env gives none shows
none, and one whose value names a variable your login environment
lacks says no configuration home: and why. A reading gives each
window’s use and reset, then when flume took it and from which agent,
stale where it is no longer fresh. An account with no reading says
no reading: and why. An account past its threshold says which window
holds it and until when. Status gives no path but each account’s
configuration home.
pool work, most-left, threshold 90%: work-1 (claude): 2 agents running of 4 configuration home /home/op/.claude-work-1 five_hour 93% (resets 1793304000) · seven_day 55% (resets 1793520000) · taken at 1793291300 from flume:b3e4c15d5ebe:fix--parser:code:1 past its threshold in five_hour until 1793304000 work-2 (claude): 1 agents running, no bound of its own configuration home /home/op/.claude-work-2 five_hour 40% (resets 1793304000) · seven_day 35% (resets 1793520000) · stale, taken at 1793290280 from flume:b3e4c15d5ebe:fix--lexer:code:1 work-3 (claude): 0 agents running, no bound of its own no reading: no session flume started has reported its windowsA move off an account past its threshold names the window and its reset:
moved: the intent moved for claude from work-1 to work-2 at 1793291334, work-1 past its threshold in five_hour until 1793304000, its agents after starting without work-1's cacheA stage waiting for an account of its pool names the soonest time an
account of the pool is back, neither spent nor past its threshold:
short of a usable account of the pool work, the soonest back at 1793304000.
The state reference lists the JSON fields.