Skip to content
Ming-ResearchPublic

About

An agent harness that runs agents through a defined flow

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

wf-agents

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.md holds 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 to migrations/, 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-agents is the wf-agents command; wf-agents flow page <dir>... serves the owner's flow page for the definitions in these directories, and wf-agents run runs the engine with the owner's pages, on the flows in the directories --flow gives, or, given --program-flow <name> for each, on the flows the program carries, built in from the source it was built from. wf-agents --version says the commit it was built from, as the build was given it in WF_BUILD_COMMIT. Its agents run with the agents' program the installation's settings name, of those the command registers (today only claude, Claude Code's command line, in crates/claude, behind the interface of crates/program), and its acts with git, as the installation's settings say (<data>/install.toml, of which crates/carry/install.sample.toml is 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.toml at 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, in crates/service/tests/trial: wf-agents run --data <an empty directory> --new --flow flow --script script.toml (--new makes the directory's store, and is given only where it holds none); then wf-agents add --title "Greet the user" --flow trial --project script --write "request=Greet the user." and wf-agents resume 1, and wf-agents list or 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 kinds continue-branch=<name>, continue-pull=<number> and no-longer-continues); wf-agents pause --all pauses each work that is going on, together as one batch, and wf-agents resume --all lets on the works that stand paused in a batch; wf-agents pause <work> and add take --why <sentence> and --waits-for <item>, which say why the work is paused and which items it waits for to merge or be cancelled, and wf-agents wait says when each has. Whoever plans the work waits with wf-agents wait for 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 every wait.again_minutes until it is gone; and read the observations with wf-agents observations, the newest first, which leaves out those an item took in unless given --all and takes --tag and --project; they add one with add-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 with change-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 talks lists 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, and wf-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, and wf-agents wait gives 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, with wf-agents remark <work> <question> <version> --text <words> (or --file <file>); wf-agents show <work> questions says each question's remark, and wf-agents wait names the questions whose latest version has none. They read the plan with wf-agents changes --since <mark>, candidates, search <text>, graph <item> (up to what it depends on and down to what depends on it; --up or --down for one), tags and text <item> [<block>], pulls (the pull requests open on each project's host, each with the work that keeps it) and list, 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 show of the work, which gives up to 2,000 characters of each text and the whole with --whole); they change items with wf-agents change --why <sentence> <item>:<kind>[=<value>]..., all or none, or one at a time with set-title, set-level, add-dependency, remove-dependency, tag, untag, cancel and reopen, each with --why. wf-agents system says 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 the wf-agents binary carries: build it with npm ci and npm run build in client/ before building the Rust. npm run build leaves dist/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 workflow build.yml makes it for macOS on arm64 on each push to main, and docs/installing.md says how to install that build.

About

An agent harness that runs agents through a defined flow

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages