wf-agents runs coding agents through a defined flow.
design/: the design tree. flow/agents/tree_rules.md says how it is read and changed;constitution.mdholds what wf-agents is for and its lasting values;principles/holds the rules whatever is made later must follow;decisions/holds what one thing does and why, where the code does not show the why;docs/holds the designs that hold only as a whole, which may be ahead of the code.research/: what a work's research made for its problem beside the tests: data, code, probes and notes, with what was measured and how to measure it again.runner/: what is installed on a machine of self-hosted runners that measurements run on: the gate that keeps its other jobs off while a measurement times, which docs/installing.md says how to install.db/: the engine's database schema (schema.sql) and its migrations; a change of the schema adds a migration tomigrations/, named by the minute it was written and what it does. The build lists the directory by name, and the store runs the ones a database has not done in that order, so no list or number is edited.crates/: the engine's Rust crates.crates/wf-agentsis thewf-agentscommand;wf-agents flow page <dir>...serves the owner's flow page for the definitions in these directories, andwf-agents runruns the engine with the owner's pages, on the flows in the directories--flowgives, or, given--program-flow <name>for each, on the flows the program carries, built in from the source it was built from.wf-agents --versionsays the commit it was built from, as the build was given it inWF_BUILD_COMMIT. Its agents run with the agents' program the installation's settings name, of those the command registers (today onlyclaude, Claude Code's command line, incrates/claude, behind the interface ofcrates/program), and its acts with git, as the installation's settings say (<data>/install.toml, of whichcrates/carry/install.sample.tomlis a sample: what is of one machine, such as the repositories, the tokens and the runners); what is a project's own (its files, tests, workflows, heavy and lock commands, the command that checks it where its repository is the host, and how its pull requests are merged) is its declaration,wf-agents.tomlat the root of its repository, of which this repository's own is the example; a project whose declaration cannot be read is held, and the others go on. Given--script, they follow the script instead. To try it on the trial flow with a script, incrates/service/tests/trial:wf-agents run --data <an empty directory> --new --flow flow --script script.toml(--newmakes the directory's store, and is given only where it holds none); thenwf-agents add --title "Greet the user" --flow trial --project script --write "request=Greet the user."andwf-agents resume 1, andwf-agents listor the pages to follow it; a work starts from the head of main, or from the head of a branch or a pull request its item continues (wf-agents add ... --continue-branch <name>or--continue-pull <number>, changed until the work's branch is made with the kindscontinue-branch=<name>,continue-pull=<number>andno-longer-continues);wf-agents pause --allpauses each work that is going on, together as one batch, andwf-agents resume --alllets on the works that stand paused in a batch;wf-agents pause <work>andaddtake--why <sentence>and--waits-for <item>, which say why the work is paused and which items it waits for to merge or be cancelled, andwf-agents waitsays when each has. Whoever plans the work waits withwf-agents waitfor what needs them, each answer ending with the mark to give the next: what came since the mark at once, and everything that stands to be handled again everywait.again_minutesuntil it is gone; and read the observations withwf-agents observations, the newest first, which leaves out those an item took in unless given--alland takes--tagand--project; they add one withadd-observation, naming the project it is of and the project that reported it, and give each a title and tags, delete it or have an item take it in withchange-observations --why <sentence> <observation>:<kind>[=<value>]..., all or none. Each item has a talk between the owner and the architect that no agent is given:wf-agents talkslists the items the owner follows that have one, the items whose owner's words are unanswered first (--project,--from,--limit),wf-agents talk <item>reads one, each message cut at 2,000 characters unless given--whole, andwf-agents talk-say <item> --after <message> --text <words>says something in it as having read up to that message, which is new to the owner in an item they follow; the owner's words follow the item, andwf-agents waitgives them until they are answered. On a question put to the owner, the architect writes a remark that the owner reads on the question's card and no agent is given, withwf-agents remark <work> <question> <version> --text <words>(or--file <file>);wf-agents show <work> questionssays each question's remark, andwf-agents waitnames the questions whose latest version has none. They read the plan withwf-agents changes --since <mark>,candidates,search <text>,graph <item>(up to what it depends on and down to what depends on it;--upor--downfor one),tagsandtext <item> [<block>],pulls(the pull requests open on each project's host, each with the work that keeps it) andlist, which opens with how many items of each project are in each state, leaves out what merged or was cancelled unless given--all, gives the items of one project with--project, and gives of each line's free text only its first line, cut, and says where more is (wf-agents showof the work, which gives up to 2,000 characters of each text and the whole with--whole); they change items withwf-agents change --why <sentence> <item>:<kind>[=<value>]..., all or none, or one at a time withset-title,set-level,add-dependency,remove-dependency,tag,untag,cancelandreopen, each with--why.wf-agents systemsays how the system ran over the last days: what went past the lines of its history, and what is under way against its own.client/: the owner's page, which thewf-agentsbinary carries: build it withnpm ciandnpm run buildinclient/before building the Rust.npm run buildleavesdist/source.sha256, the files it read and their hashes, and the Rust build refuses a page that is not made from the sources it finds. The program an installation runs is not built that way on its machine: the workflowbuild.ymlmakes it for macOS on arm64 on each push tomain, and docs/installing.md says how to install that build.