herdr-orchestra 6.22.0 → 6.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.24.0] - 2026-11-27
6
+
7
+ Frontend and backend, in one repo or in two. Before, a run belonged to the one git repo you started it in: frontend and backend in separate repos could not be one run, two runs side by side both called their agents `codex-1`, and in a monorepo every milestone waited for the whole repo's tests.
8
+
9
+ Example: `~/work/shop/` holds two git repos, `frontend/` and `backend/`. The lead writes one plan in `~/work/shop/.orchestrate/plan.md` with `Repos: frontend, backend`, M1 (`Repo: backend`, the endpoint) and M2 (`Repo: frontend`, the screen, `Depends on: M1`). The backend coder builds M1 in `backend-wt/backend-claude-1`, it lands on backend's `feature/discounts` after backend's check; then the frontend coder builds M2 in `frontend-wt/frontend-claude-1`, and it lands on frontend's own `feature/discounts`. `orch finish` opens one PR in each repo.
10
+
11
+ ### Added
12
+ - **A workspace of several repos.** A plan whose header says `Repos: frontend, backend` (folders next to `.orchestrate/`, or `web=apps/web`) gives every milestone a `Repo:`. `orch sync` there writes each repo's own plan and syncs it, so each repo is an ordinary run: its own coders and reviewer (named after the repo: `frontend-claude-1`), worktrees, feature branch, check and PR. Per repo, optionally: `Check <repo>:`, `Setup <repo>:`, `Workers <repo>:`, `Reviewer <repo>:`.
13
+ - **Dependencies across repos.** `Depends on: M1` works when M1 is in another repo (the repo's plan shows `backend:M1`). The waiting repo's event manager stays up and says `waiting for another repo: M2 waits for backend M1`; `orch ready` and `orch status` say it too. It gives up after the usual idle time only when the other repo's event manager is not running.
14
+ - **One lead for every repo.** In the workspace folder, milestone commands (`orch dispatch M2`, `orch answer`, `orch set`, `orch approve`, `orch check M1`) go to that milestone's repo, and the others (`orch start`, `status`, `events`, `team up`, `autopilot`, `finish`, `resume`, `stop`) run in every repo. `orch autopilot` there runs every repo's event manager side by side. Inside one repo, orch works on that repo's run only.
15
+ - **A check per side in a monorepo.** `Check frontend: cd frontend && npm test` in the header and `Side: frontend` on a milestone: that milestone is checked in its coder's folder and when it lands with its side's command only. The plan's whole `Check command` still runs on the finished branch (a side's pass is never reused for it).
16
+ - `orch team <kind> --prefix <name>` starts every name of the team with `<name>-`.
17
+
18
+ ### Fixed
19
+ - **Two runs on one machine could send work to the same pane.** herdr finds agents by name, and every run called them `codex-1`, `reviewer`, `lead`. `orch sync` now refuses a name another going run uses (it names that run's folder and suggests `<repo>-codex-1`), and `orch team <kind>` names the team after the repo while another run is going. One lead shared by the repos of a workspace is fine.
20
+
21
+ ### Changed
22
+ - A plan header key may now end in a word with digits, dots or dashes (`Check web-app:`, `Workers api2:`).
23
+
24
+ ### Not yet tried
25
+ - With real agents and real repos: tested with orch's simulated agents (two repos, a dependency across them, both branches and worktrees, the checks per side). Subagent mode (Pi) stays one folder: plan and run it inside one repo.
26
+
27
+ ## [6.23.0] - 2026-11-27
28
+
29
+ Subagent mode now belongs to Pi only. Before, `orch setup --mode subagent` saved one machine-wide `"mode": "subagent"`, so every lead got Pi's subagent steps, even Antigravity, Claude Code or Codex.
30
+
31
+ Example: you turn on subagent mode in Pi, then plan a feature with Antigravity. Before, `orch lead plan` in Antigravity printed `SUBAGENT MODE (Pi, one window)` and told it to skip herdr and use Pi subagents. Now Antigravity gets the normal panes playbook, and Pi still gets subagent mode.
32
+
33
+ ### Fixed
34
+ - **The mode is saved per agent**: `~/.config/herdr-orchestra/config.json` holds `"modes": {"pi": "subagent"}`. Any agent not listed uses panes mode.
35
+ - **Subagent mode is refused for agents that have none.** Only Pi has it today (through pi-subagents), so orch never gives another agent subagent instructions. `orch mode subagent --agent claude` says no. `orch setup --mode subagent` from a plain terminal saves it for Pi.
36
+ - **orch knows which agent is asking**: from `AI_AGENT` (Pi sets `pi`, Claude Code sets `claude-code_...`), then `PI_CODING_AGENT`, `CLAUDECODE`, `CODEX_*` or `OPENCODE`. When it can't tell (for example Antigravity), the agent gets panes. `--agent <kind>` or `ORCH_AGENT=<kind>` says it by hand.
37
+ - **An old Pi run no longer leaks into the next plan.** If the repo's last run was a Pi subagent run, another agent's `orch lead plan` / `orch lead run` still gets panes. `orch sync` gives a new plan subagent mode only when its `Lead:` is Pi and Pi's saved mode is subagent.
38
+ - `orch mode` shows this agent's mode, and the modes saved for other agents (`saved per agent: pi=subagent`).
39
+ - **herdr's sidebar could miss a short review.** The sidebar name (`reviewer · reviewing M2`) was only sent once per event-manager round, so a review that finished quickly never showed up there. Now it is sent as soon as a coder's job or a review starts. This also fixes a test that failed now and then in CI.
40
+
41
+ ### Added
42
+ - `ORCH_MODE=panes|subagent` changes the mode for one command, for example `ORCH_MODE=panes orch lead plan` in Pi. `subagent` works only in Pi.
43
+ - `--agent <kind>` on `orch mode`, `orch setup` and `orch lead plan|run`.
44
+
45
+ ### Changed
46
+ - An old config with `"mode": "subagent"` keeps working: orch reads it as Pi's only. The next `orch mode` or `orch setup --mode` saves it as `"modes": {"pi": "subagent"}` and prints `MOVED`. The Pi extension (`/orch-mode`) reads and writes the new format too.
47
+
48
+ ### Not yet tried
49
+ - With real Pi and Antigravity windows. Tested with orch's simulated agents and the Pi extension test harness. Pi sets `AI_AGENT=pi` and `PI_CODING_AGENT=true` (checked in `@earendil-works/pi-coding-agent`); Antigravity sets no known mark, so it is treated as "not Pi" (panes).
50
+
5
51
  ## [6.22.0] - 2026-11-26
6
52
 
7
53
  The board popup (`prefix+a`) now opens in the repo of the pane you were in. Before, it could answer "This folder is not a git repo with an orch run" even while a run was going.
package/README.md CHANGED
@@ -291,7 +291,7 @@ Runs have two modes. Nothing changes for anyone who never picks the second one.
291
291
  | `panes` (default) | herdr panes, as described above | the event manager; the lead dispatches and pauses |
292
292
  | `subagent` | inside one Pi window, as Pi subagents ([pi-subagents](https://www.npmjs.com/package/@tintinweb/pi-subagents)) | the lead, one milestone at a time |
293
293
 
294
- Switch with `/orch-mode subagent` in Pi; `/orch-mode` alone shows the mode, and Pi's footer shows it too (`orch: subagent`). The choice is saved in `~/.config/herdr-orchestra/config.json`, and a run keeps the mode it was planned in.
294
+ Switch with `/orch-mode subagent` in Pi; `/orch-mode` alone shows the mode, and Pi's footer shows it too (`orch: subagent`). The choice is saved for Pi only, in `~/.config/herdr-orchestra/config.json` (`"modes": {"pi": "subagent"}`): every other agent (Claude Code, Codex, Antigravity, ...) keeps leading in panes mode, because subagent mode exists only for Pi. A run keeps the mode it was planned in. A config from before 6.23.0 with one `"mode": "subagent"` is read as Pi's, and `orch mode` saves it the new way.
295
295
 
296
296
  `/orch-mode subagent` also sets subagent mode up, right there in Pi, with no terminal step: it installs the `orch` command if it is missing or old, writes the coder and reviewer agents, installs pi-subagents, and reloads Pi so the `Agent` tool is ready. It ends with `Done: subagent mode is ready.` `/orch-setup --mode subagent` does the same. From a normal terminal (no Pi open), the same setup is:
297
297
 
@@ -303,7 +303,7 @@ Setup writes `~/.pi/agent/agents/coder.md` and `reviewer.md` (the reviewer canno
303
303
 
304
304
  ```json
305
305
  {
306
- "mode": "subagent",
306
+ "modes": { "pi": "subagent" },
307
307
  "subagent": {
308
308
  "coder": { "model": "anthropic/claude-sonnet-4-5", "thinking": "medium", "max_turns": 80 },
309
309
  "reviewer": { "model": "openai/gpt-5", "thinking": "high" }
@@ -317,6 +317,21 @@ A subagent run: `/orch-plan` as usual (the plan's team is `Workers: coder (pi)`,
317
317
  - **worktree**: each coder works in `../<repo>-wt/<name>`, independent tasks run in parallel, and each task is squash-merged when it passes checks and review. Start each coder inside its own worktree.
318
318
  - **shared**: everyone works in your folder, one milestone at a time. Two agents in one folder would overwrite each other's files and mix their changes, so this is only safe sequentially. Use it when every milestone depends on the previous one.
319
319
 
320
+ ### Frontend and backend
321
+ **One repo (a monorepo).** Each coder gets its own worktree of the whole repo, and every milestone lands on the one feature branch, so you get one PR. When a side has a quicker check of its own, add `Check frontend: cd frontend && npm test` (one line per side) and `Side: frontend` on its milestones: that milestone is checked with its side's command only, and the plan's whole `Check command` still runs on the finished branch.
322
+
323
+ **Separate repos in one folder (a workspace).** Put one plan in the folder that holds them, with `Repos: frontend, backend` in the header and `Repo: backend` on every milestone (per repo, optionally: `Check backend:`, `Setup backend:`, `Workers backend:`, `Reviewer backend:`):
324
+ ```
325
+ ~/work/shop/.orchestrate/plan.md the one plan (Repos: frontend, backend)
326
+ ~/work/shop/backend/ backend repo, on feature/discounts: M1 lands here
327
+ ~/work/shop/backend-wt/backend-claude-1 the backend coder's worktree
328
+ ~/work/shop/frontend/ frontend repo, on its own feature/discounts: M2 lands here
329
+ ~/work/shop/frontend-wt/frontend-claude-1 the frontend coder's worktree
330
+ ```
331
+ `orch sync` in `~/work/shop` writes each repo's own plan, so each repo is an ordinary run with its own coders (named after the repo), worktrees, feature branch, check and PR. `Depends on: M1` works across repos: the frontend's M2 starts when the backend's M1 has landed. One lead stays in the workspace folder: milestone commands (`orch dispatch M2`) go to that milestone's repo, and `orch start`, `status`, `events`, `team up`, `autopilot` and `finish` run in every repo. Inside one repo, orch works on that repo's run only.
332
+
333
+ **Two runs on one machine.** herdr finds agents by name, so `orch sync` refuses a name another going run already uses, and `orch team <kind>` names the team after the repo (`frontend-codex-1`) while another run is going (`--prefix <name>` to choose).
334
+
320
335
  ### Watch a run: browser, board and Herdr's sidebar
321
336
  Three views show a run while it goes; none of them changes it.
322
337
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.22.0
1
+ 6.24.0
Binary file