gunk-dev/the-valley

README.md

source6a7605f70901main's published tip history
2.6 KiB · Rendered
1# flow
2
3flow is the agent-run client that `valley flow` runs. You talk to an interactive coordinator (Claude
4Code, Codex or agy) in a session flow starts. When work can run in parallel, you or the coordinator
5launch autonomous agents, each in its own git worktree and its own window of a detached tmux
6session. flow records every run, formats its output, and finalizes what it pushed. It follows the
7result through GitHub's review and CI or a valley's change states, dispatches fix runs where it can,
8and reports events a coordinator can wait on. Approval stays with the operator.
9
10## Install
11
12`valley flow` runs a separate program, `valley-flow`, installed with its package; without it on
13`PATH`, `valley flow` prints one line and exits 127. This repository's flake offers the client as
14two packages of one program, `klaus` and `valley-flow`, for `x86_64-linux` and `aarch64-darwin`.
15Install `klaus`, the one self-update builds, from your own repository URL, for example:
16
17```bash
18nix profile add 'git+ssh://git@valley-host/~/the-valley#klaus'
19```
20
21In a checkout, `nix build .#klaus` builds it. `valley flow --version` prints
22`valley flow version <v>`, where `<v>` is `0.1.0-<short commit>`, `0.1.0-<short commit>-dirty` for a
23tree with uncommitted changes, or `0.1.0-unknown` when nix knows no commit. A host can follow a
24branch with [`valley flow self-update`](./docs/guide.md#keeping-flow-up-to-date).
25
26```bash
27valley flow # resume the latest coordinator session or start one
28valley flow new # start a fresh coordinator session
29valley flow launch --prompt-file brief.md # launch an agent run
30valley flow dashboard # follow runs, changes and jobs
31```
32
33## Runtime prerequisites
34
35The package supplies none of the programs flow runs; they come from `PATH`:
36
37- `git` 2.30 or later, `tmux` (sessions run inside tmux) and `bash`;
38- at least one authenticated agent CLI: `claude`, `codex` or `agy`;
39- `valley` to run `valley flow` (and for repositories that deliver to a valley), and `gh` for
40 repositories on GitHub;
41- `nix` for `valley flow self-update`, the default formatter and nix dev shells;
42- `ssh` and `rsync` for runs on a sandbox host;
43- `ps` and `lsof` where there is no `/proc`, as on macOS, which ships both.
44
45## Documentation
46
47- [Guide](./docs/guide.md): setup and everyday journeys.
48- [Reference](./docs/reference.md): commands, configuration, files, events and constraints.
49- [Design](./docs/design.md): how runs, the pipeline and valley delivery work, and the trust
50 boundaries.
51- [Development](./docs/development.md): building and testing flow.
52- The repository's rules: [AGENTS.md](../AGENTS.md).