herdr-orchestra 6.9.0 → 6.11.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 +42 -0
- package/README.md +23 -2
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +963 -6
- package/claude-commands/orch-explain.md +1 -0
- package/claude-commands/orch-plan.md +1 -0
- package/claude-commands/orch-run.md +1 -0
- package/install.sh +1 -1
- package/opencode-commands/orch-explain.md +1 -0
- package/opencode-commands/orch-plan.md +1 -0
- package/opencode-commands/orch-run.md +1 -0
- package/package.json +2 -1
- package/pi/skills/orch-plan/SKILL.md +1 -0
- package/playbooks/plan.md +2 -1
- package/playbooks/run.md +1 -0
- package/playbooks/subagent.md +1 -0
- package/skills/orch-explain/SKILL.md +1 -0
- package/skills/orch-plan/SKILL.md +1 -0
- package/skills/orch-run/SKILL.md +1 -0
- package/view/herdr-plugin/board.sh +8 -0
- package/view/herdr-plugin/herdr-plugin.toml +22 -0
- package/view/herdr-plugin/open.sh +27 -0
- package/view/index.html +330 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.11.0] - 2026-11-25
|
|
6
|
+
|
|
7
|
+
You can now watch a run as a picture: in your browser, in a Herdr pane, and in Herdr's own sidebar. Every view shows each milestone with a one-line description of what it is for, not only its id.
|
|
8
|
+
|
|
9
|
+
Example: run `orch view` and your browser shows the milestones as a graph. `M6 Docs page · Help page that explains the CSV import` is red, and clicking it shows the coder's question and the command `orch answer M6 "..."`. Herdr's sidebar meanwhile reads `codex-1 · M2 building` instead of just `codex-1`.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`orch view`: the run in your browser, live and view only.** The run ring (how many milestones are with the lead, coders, checks, reviewer, or waiting for you), a milestone graph with arrows for "needs this first", coloured by where each milestone is, with its plain description under it. Click a milestone for its question, the exact command to answer it, its steps and files. Also the agents (model, tier, what they hold), time and cost (against the lead's estimates, why a milestone took longer, tokens and cost per model), a replay slider that plays the run back from `events.jsonl`, and an optional browser alert when a milestone starts to need you. It updates by itself (Server-Sent Events) and never writes or locks the run. Listens on 127.0.0.1 only. `orch view --bg`, `stop`, `status`, `--port`, `--no-open`.
|
|
13
|
+
- **Phone view.** On a narrow screen the graph becomes a list and the milestone that needs you sits at the top. `orch view --lan` opens it to your phone on the same Wi-Fi, with a secret token in the link; without the token the page refuses. Off unless you ask.
|
|
14
|
+
- **`orch board`: the same run as text** for a Herdr pane, split or popup: the milestones as a tree with their descriptions, the agents, the last events. Arrow keys pick an agent, Enter jumps to its pane, `w` starts the browser view. `--once` prints it once.
|
|
15
|
+
- **Agent names in Herdr's sidebar.** The event manager tells Herdr what each agent does (`codex-1 · M2 building`, `reviewer · reviewing M7 (round 1)`, `codex-3 · free`) and puts a run line on the Space (`orch: 3/7 landed · 1 needs you`). Display only: Herdr still finds agents by their real name. Sent on a separate thread, only on changes, so it never slows the run (tested with a Herdr that takes 4 seconds per call). Names fade an hour after the last change; `orch finish` gives every agent its own name back. Needs Herdr 0.6.3+ (the extra rows 0.7.4+). `ORCH_SIDEBAR=0` turns it off.
|
|
16
|
+
- **`orch view herdr-config`** prints the sidebar rows (each agent's milestone description, the run line) and a popup key for Herdr's config. **`orch view plugin link|unlink`** links a small Herdr plugin shipped with orch that opens `orch board` as a popup (Herdr 0.7.4+). `orch view plugin link` now prints the key lines to paste into Herdr's config (`prefix+o`, which is unused in Herdr's default keys; Herdr keeps its own key if yours clashes).
|
|
17
|
+
- **`orch status --json`**: one stable run summary (`"view": 1`) that both views read, documented in `docs/contracts.md`.
|
|
18
|
+
- `orch status` prints the browser view's link (or how to start it), and the lead's "needs you" events carry a `SEE:` link straight to that milestone while the view runs.
|
|
19
|
+
- `orch doctor` says which views your Herdr supports.
|
|
20
|
+
- Docs: [Watch a run](https://herdr-orchestra.vercel.app/docs/watching/), and the new commands in Commands.
|
|
21
|
+
|
|
22
|
+
### Not yet tried
|
|
23
|
+
- The sidebar names, the plugin popup and the Enter-to-jump key with a real Herdr. They follow Herdr 0.9.5's documented commands (`pane report-metadata`, `workspace report-metadata`, `plugin link`, `agent focus`) and were tested with the simulated Herdr. The browser page was checked in Chromium (desktop and phone size).
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [6.10.0] - 2026-11-25
|
|
27
|
+
|
|
28
|
+
No agent ever pushes to main. This is now a hard rule, in words and in code: the lead, the coders and the reviewer (on any tool: Claude, Codex, Pi, OpenCode, AGY…) never push to `main`, `master` or the repo's default branch, and never merge a PR, in any situation, even when the developer asks. Work stays on the run's branch, `orch finish` pushes only that branch and opens a PR, and a person merges it by hand.
|
|
29
|
+
|
|
30
|
+
Example: mid-run you type "just push this to main". Before, an agent might have done it. Now the lead answers "I can't push to main, even when asked; the work is on feature/csv-import, `orch finish` pushes that branch and opens a PR, and you merge it", and if any agent still runs `git push origin HEAD:main`, git refuses it with `orch guard: REFUSED push to main`.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
- **Pre-push guard.** `orch start` (and `orch lead plan` / `orch lead run`) installs `.git/hooks/pre-push`, which every coder's worktree shares. It refuses any push that would change `main`, `master`, the remote's default branch, or a branch added with `git config --add orch.protected <branch>`: a plain push, `HEAD:main`, a force push, `--all`, deleting main. A pre-push hook that was already there is kept (as `pre-push.orch-orig`) and still runs after the guard. Hooks kept inside the project (husky via `core.hooksPath`) are not written to: orch says so, and `orch guard --print` gives the script.
|
|
34
|
+
- **`orch guard [status|--print]`** installs the guard by hand, or reports it. With `gh` installed, `status` also asks GitHub whether `main` is protected and, if not, says where to turn on "Require a pull request before merging" (the one lock a `--no-verify` push or `gh pr merge` can't get around). `ORCH_GUARD_GITHUB=0` skips that question.
|
|
35
|
+
- **`orch doctor`** (with no agent named) reports the guard and fails when it is missing.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- `orch sync` refuses a plan whose `Branch:` is a protected branch (`main`, `master`, the default branch); `orch start` and `orch finish` refuse to work on or push one.
|
|
39
|
+
- The rule is in every agent-facing text: the `orch-plan`, `orch-run` and `orch-explain` skills and commands (Claude, OpenCode, Pi), the plan, run and subagent playbooks (a new hard rule the lead gets at every wake-up, with the one-line refusal to give when someone asks to push to main), each coder's task file, the reviewer's prompt and the Pi coder and reviewer subagents. Agents are also told never to get around the guard (`--no-verify`, editing `.git/hooks`).
|
|
40
|
+
|
|
41
|
+
### Not yet tried
|
|
42
|
+
- With real agents. The guard was tested with real git pushes to a local remote (every refused form, worktrees, a kept hook, husky); the agents' refusal is in their instructions and was tested with simulated agents only.
|
|
43
|
+
|
|
5
44
|
## [6.9.0] - 2026-11-25
|
|
6
45
|
|
|
7
46
|
A new skill, `orch-explain`, makes any agent explain a concept, a code flow, a bug fix or an architecture change simply and visually.
|
|
@@ -126,6 +165,7 @@ and the lead's chat shows "Try these by hand before you merge:" with the same tw
|
|
|
126
165
|
|
|
127
166
|
### Changed
|
|
128
167
|
- **ALL_DONE:** the lead now lists the manual checklist items themselves in its chat (it used to give only how many there are), so you can try them before you run `orch finish`. Same in subagent runs.
|
|
168
|
+
|
|
129
169
|
## [6.3.0] - 2026-11-21
|
|
130
170
|
|
|
131
171
|
Moving a milestone away from a coder now really stops that coder. Before, `orch set M7 paused` only typed a STOP note into the coder's pane and marked the coder free at once. An agent in the middle of a step (agy, for example) only reads a typed message after that step, so it kept editing files while `orch status` showed it as free, and it could be handed the next milestone.
|
|
@@ -143,6 +183,7 @@ Moving a milestone away from a coder now really stops that coder. Before, `orch
|
|
|
143
183
|
- **`orch sync` warns when plan.md changed under a running milestone.** A coder works from the task.md it got, which is not rewritten mid-work, so an edit to that milestone's plan text does not reach it by itself. sync now says, for example, `WARN: M7 changed in plan.md, but rs-claude-1 is already working from its old task.md ... orch set M7 paused, then orch dispatch M7`. Answers (`Notes from user`) still reach the coder as before and give no warning.
|
|
144
184
|
- `orch status` says `free, but herdr shows it working` for a coder with no task whose pane is busy.
|
|
145
185
|
- Tests (section 49): the interrupt key before the STOP note; the stopping coder is not free in status, pick, prepare or ready; the event manager presses the key again; it is free once idle; `orch free`; the interrupt keys per kind; team up leaves the lead's pane and its own pane alone; the reviewer starts with `cd` into the repo; whoami and lead run use the plan's lead name; `--help` and `-h` run nothing; the plan-changed warning. Section 44's whoami test now expects the plan's lead name instead of `lead`.
|
|
186
|
+
|
|
146
187
|
## [6.2.1] - 2026-11-21
|
|
147
188
|
|
|
148
189
|
Fixes `/orch-setup` and `/orch-mode` not working in Pi when an older `orch` is already on the machine.
|
|
@@ -355,6 +396,7 @@ Tested with simulated agents and a simulated herdr only. herdr's docs say `pane
|
|
|
355
396
|
|
|
356
397
|
### Added
|
|
357
398
|
- `orch agents check` (and `orch doctor`) report `DUPLICATE` when an agent would see a skill twice, with the two folders, and tell you to run `orch agents sync`.
|
|
399
|
+
|
|
358
400
|
## [5.3.0] - 2026-11-13
|
|
359
401
|
|
|
360
402
|
### Fixed
|
package/README.md
CHANGED
|
@@ -159,6 +159,18 @@ Version choice, first match wins: `--version` flag › `ORCH_VERSION` env › `.
|
|
|
159
159
|
### Git: one branch per run, real commits, one PR
|
|
160
160
|
Planning touches no git at all. `orch start` creates the plan's `Branch:` (`feature/<slug>`) and that is the only branch a run makes: coders work on detached worktrees, and a milestone's work in progress (under review, parked, waiting for a fix) lives in hidden refs under `refs/orch/`, which `git branch` doesn't list and `git push` doesn't send. Each milestone lands as **one commit whose message says what changed** (the coder's `COMMIT:` line, e.g. `feat(api): add categories endpoint`, with a `Milestone: M2` trailer). `Commits: single` in the plan header squashes the run into one commit at finish.
|
|
161
161
|
|
|
162
|
+
### No agent ever pushes to main
|
|
163
|
+
This is a hard rule. No agent of a run (the lead, the coders, the reviewer, on any tool: Claude, Codex, Pi, OpenCode, AGY…) pushes to `main`, `master` or the repo's default branch, or merges a PR, **in any situation, even when you ask it to**. Agents work on the run's branch; `orch finish` pushes only that branch and opens a PR; you merge it by hand.
|
|
164
|
+
|
|
165
|
+
Example: in the middle of a run you type "just push this to main". The lead answers: "I can't push to main, even when asked: that's a hard rule of this setup. The work is on feature/csv-import; `orch finish` pushes that branch and opens a PR, and you merge it yourself."
|
|
166
|
+
|
|
167
|
+
It is kept in three places:
|
|
168
|
+
- **In words:** every skill (`orch-plan`, `orch-run`, `orch-explain`), the lead's playbooks, each coder's task file and the reviewer's prompt say it, and the lead is reminded at every wake-up.
|
|
169
|
+
- **In orch:** `orch sync` refuses a plan whose `Branch:` is `main` or `master`, and `orch start` and `orch finish` refuse to work on or push such a branch.
|
|
170
|
+
- **In git:** `orch start` installs a **pre-push guard** in the repo (`.git/hooks/pre-push`, shared by every coder's worktree). It refuses any push that would change `main`, `master`, the remote's default branch, or a branch you add with `git config --add orch.protected <branch>`: `git push origin main`, `git push origin HEAD:main`, a force push, `--all`, deleting main. A pre-push hook you already had is kept and still runs after it. `orch guard` installs it by hand, `orch guard status` and `orch doctor` say whether it is on. If your repo keeps its hooks inside the project (husky, via `core.hooksPath`), orch doesn't write there: `orch guard --print` gives the script to add yourself.
|
|
171
|
+
|
|
172
|
+
A git hook can be skipped (`git push --no-verify`), and a PR can be merged with `gh pr merge`. The agents are told never to do either, but the lock nobody can skip is on GitHub: **Settings > Rules > Rulesets > New branch ruleset**, target `main`, tick "Require a pull request before merging" and "Block force pushes". `orch guard status` checks it when `gh` is installed and tells you when it is off.
|
|
173
|
+
|
|
162
174
|
A good feature request: Feature · Why · Must · Must not · Already decided · Done when · Mode (`shared` or `worktree`).
|
|
163
175
|
|
|
164
176
|
### Models and tiers
|
|
@@ -304,6 +316,15 @@ A subagent run: `/orch-plan` as usual (the plan's team is `Workers: coder (pi)`,
|
|
|
304
316
|
- **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.
|
|
305
317
|
- **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.
|
|
306
318
|
|
|
319
|
+
### Watch a run: browser, board and Herdr's sidebar
|
|
320
|
+
Three views show a run while it goes; none of them changes it.
|
|
321
|
+
|
|
322
|
+
- **`orch view`** opens the run as a live picture in your browser: the run ring, a milestone graph (arrows = "needs this first", red = needs you) with a one-line description under each milestone, the agents, the details of the milestone you click (with the exact `orch answer` command), time and cost against the estimate, a replay slider, and an optional browser alert when something needs you. `orch view --lan` also opens it to your phone on the same Wi-Fi, behind a secret link. `orch status` and the lead's "needs you" lines print its link while it runs.
|
|
323
|
+
- **`orch board`** draws the same run as text for a Herdr pane; `orch view plugin link` adds a small Herdr plugin that opens it as a popup (Herdr 0.7.4+).
|
|
324
|
+
- **Herdr's sidebar** names each agent by what it does (`codex-1 · M2 building`), set by the event manager on a separate thread, display only (Herdr 0.6.3+; `ORCH_SIDEBAR=0` turns it off). `orch view herdr-config` prints extra sidebar rows.
|
|
325
|
+
|
|
326
|
+
`orch status --json` prints the run summary all three read (see [docs/contracts.md](docs/contracts.md)). More: [Watch a run](https://herdr-orchestra.vercel.app/docs/watching/).
|
|
327
|
+
|
|
307
328
|
### What the event manager handles by itself
|
|
308
329
|
| Situation | Behaviour |
|
|
309
330
|
|---|---|
|
|
@@ -380,9 +401,9 @@ Every status change is written to `.orchestrate/events.jsonl`, and `orch report
|
|
|
380
401
|
Optional plan header lines: `Lead mode: events | off` (default `events` when the plan has a `Lead:` line) · `Scope: warn | strict` · `Risk hold: on | off` · `Budget: 3h` (autopilot stops when its running time is used up) · `Estimate: 1h30m` (the lead's estimate for the feature) · `Setup inputs: <globs>` (which files mean "run setup again"; default: lockfiles and manifests). Per milestone: `Why separate` (why it is its own milestone; needed when the plan has more than one) · `Tier`, `Needs`, `Model why` (see [Models and tiers](#models-and-tiers)) · `Estimate: 40m` (dispatch to landed if nothing goes wrong) · `Parallel: allow` lets it run next to a milestone that shares its `Likely files`.
|
|
381
402
|
|
|
382
403
|
### Commands
|
|
383
|
-
`orch status` · `orch resume` · `orch report` · `orch approve Mn` · `orch models [show|check <id>]` · `orch events [--peek]` · `orch dispatch Mn... [--to <worker>] [--tier <tier>]` · `orch answer Mn [--defer AC2] "<answer>"` · `orch defer Mn AC2 "<reason>"` · `orch fix Mn "<change>" [--to <worker>]` · `orch doctor [kind]` · `orch ready` · `orch autopilot` · `orch lead plan|run|check|whoami` · `orch agents [launch <kind> [--model <id>]|sync|check]` · `orch handoff Mn` · `orch needs-fix Mn` · `orch set M3 pending` · `orch park M2 paused "why"` · `orch cooldown claude-1 60` · `orch bench claude-1 off|on` · `orch stop [--now]` · `orch doctor --crash` · `orch cleanup` · `orch finish [--no-push]` · `orch version` · `orch update [--check] [--version vX.Y.Z]` · `orch config [auto-update on|off]` · `orch mode [panes|subagent]` · `orch setup [--mode panes|subagent]` · `orch check [Mn]` · `orch sub next|done Mn` · `orch` (full help)
|
|
404
|
+
`orch status` · `orch resume` · `orch report` · `orch approve Mn` · `orch models [show|check <id>]` · `orch events [--peek]` · `orch dispatch Mn... [--to <worker>] [--tier <tier>]` · `orch answer Mn [--defer AC2] "<answer>"` · `orch defer Mn AC2 "<reason>"` · `orch fix Mn "<change>" [--to <worker>]` · `orch doctor [kind]` · `orch guard [status|--print]` · `orch ready` · `orch autopilot` · `orch lead plan|run|check|whoami` · `orch agents [launch <kind> [--model <id>]|sync|check]` · `orch handoff Mn` · `orch needs-fix Mn` · `orch set M3 pending` · `orch park M2 paused "why"` · `orch cooldown claude-1 60` · `orch bench claude-1 off|on` · `orch stop [--now]` · `orch doctor --crash` · `orch cleanup` · `orch finish [--no-push]` · `orch version` · `orch update [--check] [--version vX.Y.Z]` · `orch config [auto-update on|off]` · `orch mode [panes|subagent]` · `orch setup [--mode panes|subagent]` · `orch check [Mn]` · `orch sub next|done Mn` · `orch` (full help)
|
|
384
405
|
|
|
385
|
-
Tunables: `ORCH_CODER_BUDGET_MIN` (45) · `ORCH_REVIEW_BUDGET_MIN` (15) · `ORCH_CHECK_TIMEOUT_MIN` (30) · `ORCH_COOLDOWN_MIN` (60) · `ORCH_MAX_TASKS` (unset: no limit) · `ORCH_GONE_COOLDOWN_MIN` (10) · `ORCH_SEND_RETRY_S` (120) · `ORCH_HERDR_TIMEOUT_S` (30) · `ORCH_MAX_LOST` (4) · `ORCH_UNREACHABLE_MIN` (30) · `ORCH_CONFIRM_S` (30) · `ORCH_DOWN_MIN_S` (120: an event manager silent for longer was down, and that time is not counted) · `ORCH_RISK_MAX_LINES` (1500) · `ORCH_LEAD_WAIT_MIN` (15: ready work the lead hasn't dispatched starts by itself) · `ORCH_LEAD_CONFIRM_S` (30: a wake-up the lead did not pick up is sent again, doubling) · `ORCH_LEAD_REWAKE_S` (300) · `ORCH_LEAD_MAX_WAKES` (3) · `ORCH_LEAD_IDLE_MAX_MIN` (720: how long the event manager waits for an answer) · `ORCH_NO_AUTOSTART=1` (the lead's commands never start the event manager)
|
|
406
|
+
Tunables: `ORCH_CODER_BUDGET_MIN` (45) · `ORCH_REVIEW_BUDGET_MIN` (15) · `ORCH_CHECK_TIMEOUT_MIN` (30) · `ORCH_COOLDOWN_MIN` (60) · `ORCH_MAX_TASKS` (unset: no limit) · `ORCH_GONE_COOLDOWN_MIN` (10) · `ORCH_SEND_RETRY_S` (120) · `ORCH_HERDR_TIMEOUT_S` (30) · `ORCH_MAX_LOST` (4) · `ORCH_UNREACHABLE_MIN` (30) · `ORCH_CONFIRM_S` (30) · `ORCH_DOWN_MIN_S` (120: an event manager silent for longer was down, and that time is not counted) · `ORCH_RISK_MAX_LINES` (1500) · `ORCH_LEAD_WAIT_MIN` (15: ready work the lead hasn't dispatched starts by itself) · `ORCH_LEAD_CONFIRM_S` (30: a wake-up the lead did not pick up is sent again, doubling) · `ORCH_LEAD_REWAKE_S` (300) · `ORCH_LEAD_MAX_WAKES` (3) · `ORCH_LEAD_IDLE_MAX_MIN` (720: how long the event manager waits for an answer) · `ORCH_NO_AUTOSTART=1` (the lead's commands never start the event manager) · `ORCH_GUARD_GITHUB=0` (`orch guard status` doesn't ask GitHub whether main is protected)
|
|
386
407
|
|
|
387
408
|
## Develop and release
|
|
388
409
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.11.0
|
|
Binary file
|