herdr-orchestra 6.47.2 → 6.47.3

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,19 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.47.3] - 2026-12-02
6
+
7
+ The shared lead playbooks no longer name any agent. Every lead (Claude Code, Codex, AGY, Pi, OpenCode or any other) reads the same `orch lead plan` and `orch lead run` text, and that text listed every agent's picker tool ("`AskUserQuestion` in Claude Code, `request_user_input` in Codex, `ask_question` in Antigravity…"), one agent's limit ("Claude Code takes 4 at a time"), one agent's error ("Codex's unavailable in Default mode") and "e.g. `ask_question` in Antigravity" for "Keep this team?". Now each agent's tool name and limits come only from the one `QUESTION PICKER` line orch prints for the agent that is running (unchanged since 6.29.0), and the shared text just says "use the picker that line names".
8
+
9
+ Example: an AGY lead running /orch-plan still reads `QUESTION PICKER you are Antigravity: ask step 2a's questions with your built-in ask_question tool…` first, and asks in the same picker as before. A Claude Code lead reads `AskUserQuestion (1 to 4 questions per call…)` there instead of in the shared text.
10
+
11
+ ### Changed
12
+ - `playbooks/plan.md`: step 2a, the no-picker case, step 10 ("command output is folded away", "Keep this team?"), the research helper and `orch lead check` lines name no agent or tool; the picker limit and "saves the file itself" point to the `QUESTION PICKER` line.
13
+ - `playbooks/run.md`: the first line and "Swap a coder" name no agent. `playbooks/onboard.md`: the "name only the agents in this team" example names no agent.
14
+
15
+ ### Tests
16
+ - Section 63: the plan and run playbooks contain no agent name or picker tool name, and Claude Code, AGY, Pi and OpenCode each still get their own picker by name (Codex's on, off and unknown cases were already checked).
17
+
5
18
  ## [6.47.2] - 2026-12-02
6
19
 
7
20
  The reviewer is no longer optional in a full run, and it checks security every time. Before, a milestone was reviewed only when the plan said `Review: yes` (the default was no), a full plan could say `Reviewer: none`, and the review prompt mentioned "security" as one word in a list. Example: a milestone that adds `GET /orders/:id` with no check that the order belongs to the logged-in user could land after a green check, unreviewed, when the lead had marked it `Review: no`.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.47.2
1
+ 6.47.3
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.47.2",
3
+ "version": "6.47.3",
4
4
  "description": "Orchestrate AI coding agents (Claude Code, Codex, OpenCode, Amp, Pi) as one team: a lead plans, coders build, a reviewer checks, you get one PR. Runs in Herdr panes, or in one Pi window with subagents.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -6,7 +6,7 @@ Hard rules:
6
6
  - **Never create a skill whose name an agent already sees** (in the repo or its home folder): `orch onboard skills` lists the repo's.
7
7
  - **No outside skill packs.** Never download, install or suggest one. You only write short skills from this repo's own code.
8
8
  - **Never push to main** or merge a PR, even if the developer asks. Shared setup goes on its own branch with a PR that a person merges.
9
- - **Name only the agents in this team.** WHAT ORCH FOUND lists the agents it checked: the agent you are and the agents open on this repo. Never offer a link, a rule file or a skill for an agent that is not on that list (no "so Antigravity sees ..." on a Codex-only team), and never name one in your questions. Nothing applies to this team: don't ask about it.
9
+ - **Name only the agents in this team.** WHAT ORCH FOUND lists the agents it checked: the agent you are and the agents open on this repo. Never offer a link, a rule file or a skill for an agent that is not on that list (no "so <agent> sees ..." for an agent outside the team), and never name one in your questions. Nothing applies to this team: don't ask about it.
10
10
 
11
11
  ## 1. Look (read-only, a few minutes at most)
12
12
  - Read the rule files listed above, `README`, and 3 to 5 real files that show how this repo works: one page or route, one API handler, one database change or migration, one test. Run `orch onboard skills` to see what the existing skills cover.
package/playbooks/plan.md CHANGED
@@ -1,4 +1,4 @@
1
- You are the LEAD of a Herdr agent team, whatever agent you are (Claude Code, Codex, Amp, OpenCode, Hermes, Antigravity…). The rules are identical for every lead.
1
+ You are the LEAD of a Herdr agent team, whatever agent you are. The rules are identical for every lead.
2
2
  You need only three herdr commands, exactly as written here: `herdr agent list` (the agent panes), `herdr agent rename <pane id> <name>` (give a pane its plan name) and `herdr agent read <name> --source recent-unwrapped --lines 60` (what an agent shows). orch prints any other herdr command you need. Load the `herdr` skill (or run `herdr --skill`) only if one of these fails. The state helper is `orch` (`~/.local/bin/orch`; use the full path if it is not on PATH; run it with no args for usage). `orch agents` lists the agent kinds this machine has and how to launch each one.
3
3
 
4
4
  ## Your role: what and why, never how
@@ -20,7 +20,7 @@ Feature request = the user's message that asked you to run this playbook.
20
20
 
21
21
  ## 1. Preflight (stop and report if any check fails)
22
22
  - **Lines above this playbook about a version.** `UPDATED herdr-orchestra X -> Y`: orch updated itself before this plan; tell the developer in one line and carry on. `herdr-orchestra Y is out (you have X)`: tell the developer once, with the command it names (`orch update`), and carry on with the plan. Never run `orch update` yourself: it is the developer's call. A `WARN auto-update ... failed` line: pass it on and carry on.
23
- - `orch lead check` prints `OK`. If it fails, show the user its message (it says how to fix it), then stop. Do not test `$HERDR_ENV` yourself: some agents (Hermes) run their shell tool outside the pane's environment, so it can be empty inside a real Herdr pane.
23
+ - `orch lead check` prints `OK`. If it fails, show the user its message (it says how to fix it), then stop. Do not test `$HERDR_ENV` yourself: some agents run their shell tool outside the pane's environment, so it can be empty inside a real Herdr pane.
24
24
  - Inside a git repo, and `git status --porcelain` is empty. If not, ask the user to commit or stash first. A folder that is not a git repo but holds the repos the feature needs (for example `frontend/` and `backend/`, each its own git repo) is fine: that is a **workspace** (step 9a); then each of those repos must be clean.
25
25
  - `mkdir -p .orchestrate`.
26
26
 
@@ -33,7 +33,7 @@ Feature request = the user's message that asked you to run this playbook.
33
33
  - Find the **shared hotspot files** this feature will need to change: `package.json`/lockfiles, `pubspec.yaml`, `go.mod`, routes/router, `App.tsx`, nav/menu, global store, `docker-compose.yml`, `Makefile`, shared types.
34
34
  - **The repo's own rules**, when it has them (in `docs/`, or the folder a `Docs:` plan header names): `glossary.md` (the words the project uses for things, and words to avoid), `adr/*.md` (decisions already made, and why), `coding-standards.md`. Use the glossary's words in the plan. Don't plan against a decision record; if the feature needs to change one, that is a question for the developer (step 2a).
35
35
  - Use web docs only for facts the repo can't answer (a library's API, a protocol).
36
- - If your tool has a read-only research helper (for example Claude Code's Explore agent), use it for wide searches across many files and keep only the facts it reports: your own context stays small for planning.
36
+ - If your tool has a read-only research helper (a search or explore subagent), use it for wide searches across many files and keep only the facts it reports: your own context stays small for planning.
37
37
  - Keep notes short: you'll put the relevant facts into each milestone's **Context**. List anything you could not determine as a question; never assume.
38
38
 
39
39
  ## 2a. Ask before you plan
@@ -41,9 +41,9 @@ A wrong guess in the plan is the most expensive mistake in a run: every coder bu
41
41
  - From your research, list what the code, the docs and the request do NOT settle: business rules ("can a discount bring the total to zero?"), data shapes nobody has defined, auth or security trade-offs, which of two existing patterns to follow, a change to a decision record. Not questions the code answers: look those up yourself.
42
42
  - **Nothing to ask?** Go straight on to step 2b. Don't invent questions.
43
43
  - **Something to ask?** Use the **native question rule**: put all the questions in front of the developer at once, each with 2 or 3 concrete choices and your own suggestion and why (from what you found).
44
- 1. **You have a question picker: use it.** The `QUESTION PICKER` line at the top of this playbook names yours: `AskUserQuestion` in Claude Code, `request_user_input` in Codex (only when its picker is turned on; orch turns it on for a Codex lead it opens), `ask_question` in Antigravity (the tool `/grill-me` uses), `orch_ask` in Pi (from orch's Pi package), `question` in OpenCode. Never write the choices as plain text when you have a picker: the developer then has to type `1 a, 2 b` instead of clicking. Choices `(a)`, `(b)`, `(c)`, your suggestion marked recommended (or labelled `(recommended)`), a custom answer allowed. A picker that takes fewer questions than you have (Claude Code takes 4 at a time): ask in two rounds. When the answers come back, write the questions with their choices and the answers under `## Answers` in `.orchestrate/questions.md` (`orch_ask` saves the file itself), then go straight on: no extra message, no waiting.
44
+ 1. **You have a question picker: use it.** The `QUESTION PICKER` line at the top of this playbook names yours: the exact tool, how many questions and choices it takes, and what to do when it is off. Never write the choices as plain text when you have a picker: the developer then has to type `1 a, 2 b` instead of clicking. Choices `(a)`, `(b)`, `(c)`, your suggestion marked recommended (or labelled `(recommended)`), a custom answer allowed. A picker that takes fewer questions than you have (the `QUESTION PICKER` line gives its limit): ask in two rounds. When the answers come back, write the questions with their choices and the answers under `## Answers` in `.orchestrate/questions.md` (skip this when the `QUESTION PICKER` line says your picker saves the file itself), then go straight on: no extra message, no waiting.
45
45
  2. **The developer closed the picker without answering** (Escape, `cancelled`): don't guess and don't plan. Say "Planning is paused until you answer these. Say when you are ready, or answer in chat." and **STOP**.
46
- 3. **No picker, or it can't show here** (the `QUESTION PICKER` line says OFF, headless, `no_ui`, the tool is missing or refused, e.g. Codex's "unavailable in Default mode"): write the questions to `.orchestrate/questions.md` and show the developer the same text, **all in one message**: one line each, numbered. End with: "Answer by number (for example `1 a, 2 both, 3 no`). I write the plan after your answers; nothing runs until you say go." Then **STOP** and wait.
46
+ 3. **No picker, or it can't show here** (the `QUESTION PICKER` line says OFF, headless, `no_ui`, the tool is missing or refused, e.g. an "unavailable" error): write the questions to `.orchestrate/questions.md` and show the developer the same text, **all in one message**: one line each, numbered. End with: "Answer by number (for example `1 a, 2 both, 3 no`). I write the plan after your answers; nothing runs until you say go." Then **STOP** and wait.
47
47
  Example (the chat form; a picker shows the same question and choices, one at a time):
48
48
  ```
49
49
  Before I plan, 3 questions:
@@ -326,7 +326,7 @@ Rules for every milestone:
326
326
 
327
327
  ## 10. Validate and show the plan
328
328
  - Run `orch sync`. Fix every ERROR. Fix or consciously accept every WARN: a word the glossary says to avoid, a new word or decision record no milestone writes down, missing dependency reasons, hotspot files in parallel milestones, "how" in a milestone, overlap, a milestone without `Why separate` or `Estimate`, independent milestones in shared mode, coders left idle by a fully sequential plan, a tier no coder reaches, a model outside the catalog.
329
- - Run `orch plan show` and write its cards in your own chat reply, as they are. **Running the command is not showing it**: Antigravity, Claude Code, Codex and Pi fold command output away, so the developer sees only what you write as text. The cards are each milestone in plain words, what it waits for and why, who builds it on which model, how long, and the order. Fix every `WARN no Plain: line` first. Then add, in plain words too:
329
+ - Run `orch plan show` and write its cards in your own chat reply, as they are. **Running the command is not showing it**: agents fold command output away, so the developer sees only what you write as text. The cards are each milestone in plain words, what it waits for and why, who builds it on which model, how long, and the order. Fix every `WARN no Plain: line` first. Then add, in plain words too:
330
330
  - the estimate for the whole feature, and for each milestone its tier and `Model why` (who builds it on which model comes next, in the team table);
331
331
  - the research facts that shaped the plan, the answers from step 2a and where they went, and all open questions;
332
332
  - which milestones are hard to undo and why (the cards say so), and the new glossary words.
@@ -334,7 +334,7 @@ Rules for every milestone:
334
334
  <!-- quick: Let the developer choose the models (from step 10) -->
335
335
  **Let the developer choose the models.** Only now, after the plan cards and everything above (in a quick run, its five lines) are written in your chat as text; never while you are still researching or planning, and never in the same breath as running the commands. Order: plan cards, then the team table, then the question; the "Plan written…" lines below come once they keep the team.
336
336
  1. Write the team table in your chat as it is (`orch plan show` prints it under the cards; `orch plan team` prints it alone): each milestone and the reviewer, its coder, model and thinking level, and whether the developer chose it. When it prints `SUBAGENT MODE`, skip this block.
337
- 2. Ask one question, in your question picker when you have one (the tool the `QUESTION PICKER` line at the top of `orch lead plan` named, e.g. `ask_question` in Antigravity): the `ASK:` line of the table, "Keep this team? (M1 codex-2 gpt-6.2-sol medium; …; Reviewer reviewer gpt-6.2-sol medium)", so the team is in the question even if your text above it scrolls away, with (a) Keep it (recommended), (b) Change a step, (c) Change the reviewer. No picker, or it can't show here: after the table write "Type **ok** to keep it, or what to change, for example `M3 sol low` or `reviewer luna high`." and **STOP** until they answer.
337
+ 2. Ask one question, in your question picker when you have one (the tool the `QUESTION PICKER` line at the top of `orch lead plan` named): the `ASK:` line of the table, "Keep this team? (M1 codex-2 gpt-6.2-sol medium; …; Reviewer reviewer gpt-6.2-sol medium)", so the team is in the question even if your text above it scrolls away, with (a) Keep it (recommended), (b) Change a step, (c) Change the reviewer. No picker, or it can't show here: after the table write "Type **ok** to keep it, or what to change, for example `M3 sol low` or `reviewer luna high`." and **STOP** until they answer.
338
338
  3. Change a step: ask one question at a time, each in the picker: "Which step?" (the milestones), then "Which model?" (the models on the table's `You can pick` line), then "Which thinking?" (its thinking levels). Change the reviewer: the same, without "Which step?". Never offer a model the `Never allowed` line names. Then run `orch plan model <Mn> <model>@<thinking>` (or `orch plan model reviewer <model>@<thinking>`). A typed answer means the same: in `M3 sol low`, `sol` is the model on the `You can pick` line whose name has that word (`gpt-6.2-sol`), so run `orch plan model M3 gpt-6.2-sol@low`. When a word fits two models or none, ask which one.
339
339
  4. Tell the developer in one line what the command said (the step is locked to that model; a new coder joins when no coder ran it, and `orch team up` opens its panel when the run starts), then run `orch plan team` again, write the new table in your chat and ask its `ASK:` question again, until they keep it.
340
340
  The developer's choice is a lock: orch gives that step only to a coder on that model, and you never change it yourself (no `--to` a coder on another model, no `--tier`, no `orch escalate` for it: orch refuses them). Only the developer changes it, now or later in the run (`orch lead run` says how).
package/playbooks/run.md CHANGED
@@ -1,4 +1,4 @@
1
- You are the LEAD, whatever agent you are (Claude Code, Codex, Amp, OpenCode, Hermes, Antigravity…). All bookkeeping goes through `orch` (`~/.local/bin/orch` — use the full path if `orch` is not on PATH). Trust its output over your memory: it owns task states, who is free, sentinel files, branches and merges.
1
+ You are the LEAD, whatever agent you are. All bookkeeping goes through `orch` (`~/.local/bin/orch` — use the full path if `orch` is not on PATH). Trust its output over your memory: it owns task states, who is free, sentinel files, branches and merges.
2
2
  Extra user input = whatever the user wrote alongside asking you to run this playbook (a go-ahead, answers, overrides, or nothing).
3
3
 
4
4
  ## How a run works: you decide, the event manager does
@@ -75,7 +75,7 @@ If you changed plan.md by hand, run `orch sync` (it works once the event manager
75
75
 
76
76
  **The developer says "stop sending work to <coder>"** (for example, no Claude today): run `orch bench <worker> off "<their reason>"`. It holds until `orch bench <worker> on`, across restarts, `orch sync` and `orch resume`; a usage-limit bench does not. Tell the developer what it still holds (`orch status`). Never try to keep a coder out by remembering it yourself.
77
77
 
78
- **Swap a coder** (for example, AGY instead of OpenCode): `orch stop` (the event manager finishes its current step and exits; nothing is lost), change `Workers:` in plan.md, `orch sync`, `orch team up`, check that `orch status` shows the new worker as `herdr=ok`, then `orch resume`. Never kill the event manager by hand.
78
+ **Swap a coder** (one agent kind for another): `orch stop` (the event manager finishes its current step and exits; nothing is lost), change `Workers:` in plan.md, `orch sync`, `orch team up`, check that `orch status` shows the new worker as `herdr=ok`, then `orch resume`. Never kill the event manager by hand.
79
79
 
80
80
  **The developer picks another model** for a milestone or the reviewer (for example "M3 use luna high"): run `orch plan model M3 gpt-6-luna@high` (the model's full name from `orch plan team`; `orch plan model reviewer ...` for the reviewer; `auto` gives a milestone back to its level) and tell the developer in one line what it printed. Do exactly what its `NEW` and `NOTE` lines say (`orch start` then `orch team up` for a new coder; pause and dispatch again to move a milestone that is being built now). A milestone the developer locked to a model (`Model:` in plan.md, "locked by you" in `orch plan team`) only ever goes to a coder on that model: never move it to another model yourself, only when they ask.
81
81