herdr-orchestra 6.35.0 → 6.39.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,21 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.39.0] - 2026-11-28
6
+
7
+ The lead now writes the plan and the team in its chat before it asks "Keep this team?". Before, an Antigravity lead ran `orch plan show` as a command, the agent folded its output away ("ctrl+o to expand"), and the picker came up right after, so you were asked to keep a team you never saw.
8
+
9
+ Example: after `/orch-plan` the lead's chat now has the milestone cards, then the team table (M1 codex-2 gpt-6.2-sol medium, M2 codex-1 gpt-6-luna high, Reviewer gpt-6.2-sol medium), and only then the picker: "Keep this team? (M1 codex-2 gpt-6.2-sol medium; M2 codex-1 gpt-6-luna high; Reviewer reviewer gpt-6.2-sol medium)". Even if the table scrolls away, the question still says who builds what.
10
+
11
+ ### Changed
12
+ - **Plan playbook, step 10:** running `orch plan show` is not showing it. The lead copies the cards and the team table into its own reply (Antigravity, Claude Code, Codex and Pi all fold command output), in this order: cards, team table, question. The quick-run five lines are written in chat too.
13
+ - **`orch plan show`**, before the run starts, ends with the team table and a `SHOW IN CHAT:` line telling the lead to write it all in its reply before asking anything. Once the run has started it is the cards only, as before. In subagent mode there is no team table.
14
+ - **`orch plan team`** ends with an `ASK:` line: the "Keep this team?" question with the whole team in one line, for the lead's picker.
15
+ - Docs: the lead page and the commands page say the same.
16
+
17
+ ### Not checked with the real tool
18
+ Antigravity can't be downloaded where this was built; the order is a playbook rule, tested with simulated agents.
19
+
5
20
  ## [6.35.0] - 2026-11-28
6
21
 
7
22
  Antigravity (`agy`) panes now start on a model the lead chose for the step, taken from the models your agy account really has. Before, orch knew no agy model, so every agy pane started on whatever model was saved last with `/model` (often an old one).
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.35.0
1
+ 6.39.0
Binary file
package/bin/orch CHANGED
@@ -6187,10 +6187,13 @@ def _thinking(mid):
6187
6187
  return (base or "?"), (eff or "default")
6188
6188
 
6189
6189
 
6190
- def cmd_plan_team(st):
6190
+ def cmd_plan_team(st, summary=False):
6191
6191
  """orch plan team -> one row per milestone and one for the reviewer: which coder builds it, on which model and
6192
- thinking level, and whether the developer locked it. Then what can be picked instead."""
6192
+ thinking level, and whether the developer locked it. Then what can be picked instead, and the "Keep this team?"
6193
+ question with the team in one line. summary=True returns only that line (no printing)."""
6193
6194
  if run_mode(st) == "subagent":
6195
+ if summary:
6196
+ return ""
6194
6197
  print("SUBAGENT MODE: the subagents run on the models in your orch config (`/orch-mode` in Pi sets them), "
6195
6198
  "not on a team of panels, so there is no team table to change here.")
6196
6199
  return
@@ -6209,6 +6212,8 @@ def cmd_plan_team(st):
6209
6212
  base, eff = _thinking(ri.get("model")) if ri.get("model") else ("?", "?")
6210
6213
  rows.append(("Reviewer", "checks the reviewed steps", st["reviewer"], base, eff,
6211
6214
  "" if ri.get("model") else "model not written in the plan"))
6215
+ if summary:
6216
+ return "; ".join(f"{r[0]} {r[2]} {r[3]}" + (f" {r[4]}" if r[4] not in ("", "?", "-") else "") for r in rows)
6212
6217
  head = ("Step", "What", "Coder", "Model", "Thinking", "Chosen")
6213
6218
  cut = lambda x: x if len(x) <= 30 else x[:29] + "…"
6214
6219
  rows = [tuple(cut(str(c)) for c in r) for r in rows]
@@ -6231,6 +6236,12 @@ def cmd_plan_team(st):
6231
6236
  if deny:
6232
6237
  print(f"Never allowed: {', '.join(deny)}")
6233
6238
  print("Change one: orch plan model <Mn|reviewer> <model>@<thinking> (`auto` gives a step back to its level)")
6239
+ print(f"ASK: Keep this team? ({cmd_plan_team(st, summary=True)}) (the question for your picker, with the team "
6240
+ f"in it, after the plan cards and this table are in your chat)")
6241
+
6242
+
6243
+ def plan_not_started(st):
6244
+ return all(st["tasks"][t]["status"] in ("pending", "needs-answer", "skipped") for t in st["order"])
6234
6245
 
6235
6246
 
6236
6247
  def _plan_section(lines, tid):
@@ -6439,6 +6450,13 @@ def cmd_plan(args):
6439
6450
  print(f"\nWARN no `Plain:` line for {', '.join(missing)}: add one sentence in plain words to each "
6440
6451
  f"(what the developer will get, no code words), then `orch sync`.")
6441
6452
  print("\nEvery detail (files, criteria, models, notes) stays in .orchestrate/plan.md.")
6453
+ if plan_not_started(st):
6454
+ if run_mode(st) != "subagent":
6455
+ print()
6456
+ cmd_plan_team(st)
6457
+ print("\nSHOW IN CHAT: the developer does not see this output: your tool folds command output away (Antigravity, "
6458
+ "Claude Code, Codex, Pi). Write these cards" + ("" if run_mode(st) == "subagent" else " and the team table")
6459
+ + " in your own reply, as they are, before you ask anything or say go.")
6442
6460
 
6443
6461
 
6444
6462
  def cmd_events(args):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.35.0",
3
+ "version": "6.39.0",
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": {
package/playbooks/plan.md CHANGED
@@ -73,7 +73,7 @@ If any is false, use the full process: run `orch lead plan full` and follow its
73
73
  - **Fields:** only `Tier`, `Estimate`, `Likely files`, `Goal`, `Acceptance criteria` and the `Context` facts the coder needs to find their way (plus `Skills:` when a project skill fits). Leave out `Feature breakdown`, `Why separate`, `Needs`, `Model why`, `Role`, `Interfaces` (none) and `Prefer` unless one really helps. A backend change gets an acceptance criterion a test can prove (e.g. "GET /orders returns `createdAt` as ISO 8601; a test covers it").
74
74
  - **Header:** `Mode: quick`, your `Quick because:` line, `Isolation: shared`, `Setup command: none` (shared mode uses your folder as it is), the `Check command`, `Estimate` = the milestone's.
75
75
  - **Don't run the check yourself.** The event manager runs it before any work starts and tells you if it is already red (then handle it as in `orch lead run`, "Red baseline").
76
- - Write the plan (format below), run `orch sync` and fix every ERROR, then show the developer five lines at most: the changes (one per line), the coder and model, the estimate and your `Quick because:`. Then let the developer choose the models (the block "Let the developer choose the models" below), and when they keep the team, say "Say **go**, or **full** if you want the normal process." **STOP** and wait for go, as in a full plan: the developer sees the short plan before anything changes.
76
+ - Write the plan (format below), run `orch sync` and fix every ERROR, then write the developer five lines at most in your chat as text (a command's output is folded away, so it doesn't count): the changes (one per line), the coder and model, the estimate and your `Quick because:`. Then let the developer choose the models (the block "Let the developer choose the models" below), and when they keep the team, say "Say **go**, or **full** if you want the normal process." **STOP** and wait for go, as in a full plan: the developer sees the short plan before anything changes.
77
77
 
78
78
  ```
79
79
  # Plan: <short title>
@@ -323,17 +323,17 @@ Rules for every milestone:
323
323
 
324
324
  ## 10. Validate and show the plan
325
325
  - 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.
326
- - Run `orch plan show` and give the developer its cards as they 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:
326
+ - 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:
327
327
  - 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);
328
328
  - the research facts that shaped the plan, the answers from step 2a and where they went, and all open questions;
329
329
  - which milestones are hard to undo and why (the cards say so), and the new glossary words.
330
330
  Keep code words (file names, functions, endpoints) out of what you write here: they are in plan.md for whoever wants them.
331
331
  <!-- quick: Let the developer choose the models (from step 10) -->
332
- **Let the developer choose the models.** Only now, after the developer has seen the whole plan in your chat; never while you are still researching or planning.
333
- 1. Run `orch plan team` and show its table as it is: 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.
334
- 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): "Keep this team?" 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.
332
+ **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.
333
+ 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.
334
+ 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.
335
335
  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.
336
- 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, show the table and ask "Keep this team?" again, until they keep it.
336
+ 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.
337
337
  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).
338
338
  <!-- /quick -->
339
339
  - Then say: "Plan written to .orchestrate/plan.md. Edit it if you like: untick `[x]` to skip a milestone, change `Tier` / `Depends on` / `Prefer`, tell me another model for a step or the reviewer (for example "M3 use luna high"), answer open questions under 'Notes from user' and set 'Open questions: - none'. Say **go** (or `/orch-run`, "use the orch-run skill", "Run `orch lead run` and follow it") and I will start the run: I dispatch the milestones, the event manager runs them, and I come back when one finishes, asks a question or needs a decision."