No description
- Zig 91.1%
- Shell 1.9%
- Python 1.8%
- Objective-C 1.5%
- JavaScript 1.3%
- Other 2.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The stream tab gains a box at the foot (Enter sends, Shift+Enter is a new line) and answers on the ask the agent is waiting on: Allow and Deny for a permission, a button per option for a question. Each is a request to the daemon (cmd.agent.send, cmd.agent.answer), one at a time per agent; nothing is drawn as done until it comes back on the stream, and a refusal is shown in the daemon's words with what was typed kept. The box follows the agent's state and says why when it takes nothing. A long conversation no longer pushes the foot of the tab out of view. The stream tape now allows, answers, denies and sends through the UI, so the test script no longer answers for it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> |
||
| config | ||
| desktop-app | ||
| farmteamd | ||
| vm-launch | ||
| .gitignore | ||
| farmteam-test.toml | ||
| farmteam.toml | ||
| Justfile | ||
| README.adoc | ||
= Farmteam An AI coding-agent harness. Three parts, each with its own build and README: [cols="1,3"] |=== | `desktop-app/` | The desktop application: Zig 0.17, built on our in-tree fork of https://github.com/fizzyedit/fizzy[Fizzy] (`desktop-app/fizzy/`) with our harness, chat, agent and ghostty plugins. See `desktop-app/README.adoc`. | `vm-launch/` | A Go tool that signs in to AWS (SSO device flow, the equivalent of `aws sso login`) and launches, checks and tears down a dev VM in EC2. The Go AWS SDK is why it is Go. The shell script it grew from is kept beside it as `ec2-smoke.sh`. | `config/` | A small Zig package: how `farmteam.toml`, `secrets.toml` and the launch state are found, read and checked. farmteamd, farmteamctl and the desktop app's harness plugin all use it. | `farmteamd/` | The Zig daemon on that VM, and `farmteamctl`, its CLI. It runs coding agents: one headless `claude` per agent in a git worktree, autonomous, committing as it goes; the daemon reports what git says of each branch and does the pushing. Everything goes over plain NATS (`farmteamd/agents.adoc` is the protocol). Built static here, deployed with `just farmteamd::deploy`. Supervising the dev loop's own processes (docker compose, builds, services) is planned and not built. See `farmteamd/README.adoc`. |=== Each part with a Justfile is a just module: `just vm-launch::login`, `just desktop-app::run`, `just --list desktop-app`. At the root: `just build`, `just test` (every part's unit tests) and `just check` (the tests, then farmteamd end to end against a local NATS server and a replayed agent; no VM, no account). == Configuration Nothing is configured through environment variables or `.env` files. There are two files a person edits, and everything else is generated. [cols="2,3"] |=== | `farmteam.toml` (repo root, checked in) | All static configuration, one stanza per component: `[daemon]` (farmteamd on the VM), `[client]` (what farmteamctl and the desktop app connect to), `[desktop]`, `[vm-launch]` (the dev VM). Never a secret. Each program reads only its own stanzas; a setting it does not know inside one is an error that names it. | `~/.config/farmteam/secrets.toml` (mode 0600) | Every secret this machine needs: `[agent.env]` (the Anthropic API key and GitHub token farmteamd gives to agent processes and nothing else), `[linear] api_key` (the desktop app's Tasks view). A program refuses the file if group or other can read it. | `~/.local/state/farmteam/vm.toml` (generated) | The launch state `vm-launch run -keep` writes: the VM's address, login, key path, NATS URL and token. `vm-launch down` removes it. | `farmteam-test.toml` (repo root, checked in) | The schema of `farmteam.toml` with the values tests use: a daemon and client on one machine against a throwaway server (`just farmteamd::run-local`, `ctl-local`), and the tiny instance of the launch smoke test (`just vm-launch::run`). |=== Programs find the config at `--config <path>`, else `$XDG_CONFIG_HOME/farmteam/config.toml`. On the laptop, `just config-link` (once) makes that a symlink to this checkout's `farmteam.toml`; on the VM, `just farmteamd::deploy` ships a copy. Secrets reach the VM at launch (the NATS token, from user-data) and with `just farmteamd::deploy-secrets` (the agents' keys); nothing secret is baked into the image. The order of things, from nothing: ---- just config-link # once per laptop; then write ~/.config/farmteam/secrets.toml just vm-launch::login # AWS SSO just vm-launch::dev # launch the dev image, kept; writes vm.toml just farmteamd::deploy # the daemon and farmteam.toml to the VM just farmteamd::deploy-secrets # the agents' keys to the VM just farmteamd::ctl ping # from the laptop, through [client] just farmteamd::ctl start --repo schematic-api --branch my-task --prompt "..." just farmteamd::ctl agents # what each agent is doing, and what git says of its branch just farmteamd::ctl push <id> # the daemon pushes the agent's branch just vm-launch::down # when done ----