herdr-orchestra 6.34.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 +34 -0
- package/VERSION +1 -1
- package/agents.default.toml +4 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +122 -17
- package/models.default.toml +17 -1
- package/package.json +1 -1
- package/playbooks/plan.md +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
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
|
+
|
|
20
|
+
## [6.35.0] - 2026-11-28
|
|
21
|
+
|
|
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).
|
|
23
|
+
|
|
24
|
+
Example: your account has Gemini 4 Hydrogen. `orch models` asks `agy models` and shows `gemini-3.8-flash@low` (small), `gemini-4-hydrogen@low` (medium) and `gemini-4-hydrogen@high` (high). The lead gives a rename step to the small level and a new API contract to the high one, so `orch team up` opens `agy --mode accept-edits --model gemini-4-hydrogen --effort high` for that coder. When Google adds a newer model, agy lists it and orch uses it the next time: no model name is written in orch.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- **orch asks agy for its models.** New `[discover.agy]` in `models.default.toml` runs `agy models` (cached for 6 hours, like Codex) and fills small with the newest Flash on low thinking, medium with the newest Hydrogen on low, high with the newest Hydrogen on high. Without Hydrogen it falls back to Pro, then Flash. Claude and GPT models inside agy are never put in a level (you can still pick one with `orch plan model`).
|
|
28
|
+
- **agy starts on a model and thinking level.** The agy registry entry has `model_flag = "--model"`, `effort_flag = "--effort {effort}"` and `efforts = ["low", "medium", "high"]`, so `orch agents launch agy --model gemini-4-hydrogen@high`, `orch team agy`, `orch team up` and `orch plan model` work for agy like they do for Codex.
|
|
29
|
+
- **Any tool with a plain model list.** Model discovery now reads a list printed one model per line, not only Codex's JSON: `gemini-3.8-flash-high` (level at the end), `Gemini 3.1 Pro (High)` (level in brackets) or `<id> <description>`. Ids that differ only by level become one model with those levels. A `family` can be a list tried in order, and a model without a ranking is chosen by its highest version number. Add `[discover.<kind>]` in your own `models.toml` for another tool (the docs show OpenCode).
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- A model found for a tool with no shipped entries borrows the ratings of a model of the same level from another tool and says so in `orch models show <id>` (e.g. "Ratings copied from opus").
|
|
33
|
+
|
|
34
|
+
### Not checked with the real tool
|
|
35
|
+
agy's model options come from public agy guides (1.1 to 1.5): the agy download is blocked where this was built. Tests use a fake agy that prints both list formats. If your `agy models` looks different, `orch models` simply shows no agy models and agy panes start as before.
|
|
36
|
+
|
|
37
|
+
### After updating
|
|
38
|
+
Run `orch models` once: you should see agy lines with Hydrogen. If not, run `agy models` yourself and check you are signed in.
|
|
5
39
|
## [6.34.0] - 2026-11-28
|
|
6
40
|
|
|
7
41
|
The summary now shows how many tokens each milestone used, next to the estimate vs actual time. The board and `orch view` show the same numbers, and `orch tokens` prints the table at any time.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.39.0
|
package/agents.default.toml
CHANGED
|
@@ -136,6 +136,9 @@ notes = "Not installed on the machine this was written on: launch flag and skill
|
|
|
136
136
|
[agy]
|
|
137
137
|
binary = "agy"
|
|
138
138
|
launch = "agy --mode accept-edits"
|
|
139
|
+
model_flag = "--model"
|
|
140
|
+
effort_flag = "--effort {effort}"
|
|
141
|
+
efforts = ["low", "medium", "high"]
|
|
139
142
|
herdr_detect = true
|
|
140
143
|
interrupt_keys = ["esc"]
|
|
141
144
|
compact = "/compact"
|
|
@@ -145,7 +148,7 @@ skills_dirs = ["~/.gemini/config/skills"]
|
|
|
145
148
|
invoke = "use the orch-plan skill: <feature>"
|
|
146
149
|
verified = true
|
|
147
150
|
project_skills_reads = [".agent/skills"]
|
|
148
|
-
notes = "Antigravity CLI 1.5: --mode accept-edits|auto|plan and --dangerously-skip-permissions. The binary documents ~/.gemini/config/skills/<name>/SKILL.md as the global skills folder."
|
|
151
|
+
notes = "Antigravity CLI 1.5: --mode accept-edits|auto|plan and --dangerously-skip-permissions. The binary documents ~/.gemini/config/skills/<name>/SKILL.md as the global skills folder. Model and thinking (from public agy guides, 2026-11, not run here): --model <id> and --effort low|medium|high (added in 1.1.5; some guides add xhigh/max for API-key sign-in: add them to efforts in your agents.toml if your agy takes them). `agy models` lists the account's models (see [discover.agy] in models.default.toml)."
|
|
149
152
|
|
|
150
153
|
[pi]
|
|
151
154
|
binary = "pi"
|
|
Binary file
|
package/bin/orch
CHANGED
|
@@ -814,9 +814,59 @@ def split_effort(mid):
|
|
|
814
814
|
return mid, None
|
|
815
815
|
|
|
816
816
|
|
|
817
|
+
EFFORT_ORDER = ("off", "minimal", "low", "medium", "high", "xhigh", "max")
|
|
818
|
+
_EFFORT_TAIL = re.compile(r"^(.+?)[-_ ](minimal|low|medium|high|xhigh|max)$", re.I)
|
|
819
|
+
_NOT_A_MODEL = re.compile(r"(?i)sign[ -]?in|log[ -]?in|please|error|usage:|available models|^warning|\bcli\b|\bversion\b")
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def _slugify(name):
|
|
823
|
+
return re.sub(r"\s+", "-", name.strip()).strip("-").lower()
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
def parse_model_lines(out):
|
|
827
|
+
"""A tool's model list printed as plain text (no JSON), one model per line, as `agy models` does:
|
|
828
|
+
`gemini-3.8-flash-high` (thinking level at the end of the id), `Gemini 3.1 Pro (High)` (level in brackets),
|
|
829
|
+
or `<id> <description>` (two spaces or a tab between). Bullets, headers, empty and sign-in lines are skipped.
|
|
830
|
+
Ids that differ only by thinking level become ONE model with the levels it was listed with, in list order."""
|
|
831
|
+
rows, by = [], {}
|
|
832
|
+
for raw in out.splitlines():
|
|
833
|
+
line = re.sub(r"^\s*(?:[-*\u2022>]|\d+[.)])\s+", "", raw).strip()
|
|
834
|
+
if not line or line.startswith("#") or line.endswith(":") or _NOT_A_MODEL.search(line):
|
|
835
|
+
continue
|
|
836
|
+
cols = re.split(r"\t+|\s{2,}|\s+[\u2014|]\s+", line, maxsplit=1)
|
|
837
|
+
name, desc = cols[0].strip(), (cols[1].strip() if len(cols) > 1 else "")
|
|
838
|
+
eff = None
|
|
839
|
+
m = re.fullmatch(r"(.+?)\s*\(([^()]+)\)", name)
|
|
840
|
+
if m:
|
|
841
|
+
name, tag = m.group(1), m.group(2).strip().lower()
|
|
842
|
+
if tag in EFFORT_ORDER:
|
|
843
|
+
eff = tag
|
|
844
|
+
else:
|
|
845
|
+
desc = (desc + " " + m.group(2)).strip()
|
|
846
|
+
if len(name.split()) > 5:
|
|
847
|
+
continue # a sentence, not a model name
|
|
848
|
+
slug = _slugify(name)
|
|
849
|
+
if not eff:
|
|
850
|
+
t = _EFFORT_TAIL.match(slug)
|
|
851
|
+
if t:
|
|
852
|
+
slug, eff = t.group(1), t.group(2).lower()
|
|
853
|
+
if not re.fullmatch(r"[a-z0-9][a-z0-9._/:+-]*", slug):
|
|
854
|
+
continue
|
|
855
|
+
if slug not in by:
|
|
856
|
+
by[slug] = {"slug": slug, "description": desc, "visibility": None, "upgrade": None, "priority": None,
|
|
857
|
+
"efforts": []}
|
|
858
|
+
rows.append(by[slug])
|
|
859
|
+
if eff and eff not in by[slug]["efforts"]:
|
|
860
|
+
by[slug]["efforts"].append(eff)
|
|
861
|
+
if desc and not by[slug]["description"]:
|
|
862
|
+
by[slug]["description"] = desc
|
|
863
|
+
return rows
|
|
864
|
+
|
|
865
|
+
|
|
817
866
|
def _tool_models(kind, cmd):
|
|
818
|
-
"""The models `cmd` lists ([{slug, description, visibility, upgrade, priority}]), or None.
|
|
819
|
-
|
|
867
|
+
"""The models `cmd` lists ([{slug, description, visibility, upgrade, priority, efforts}]), or None. JSON output
|
|
868
|
+
(`codex debug models`) or a plain list, one model per line (`agy models`, see parse_model_lines). The answer is
|
|
869
|
+
kept for DISCOVER_TTL_S in the share folder; an older answer is used when the command fails now."""
|
|
820
870
|
cache = share_dir() / f"models-{kind}.json"
|
|
821
871
|
try:
|
|
822
872
|
old = json.loads(cache.read_text())
|
|
@@ -827,12 +877,18 @@ def _tool_models(kind, cmd):
|
|
|
827
877
|
models = None
|
|
828
878
|
try:
|
|
829
879
|
r = subprocess.run(shlex.split(cmd), text=True, capture_output=True, timeout=20, stdin=subprocess.DEVNULL)
|
|
830
|
-
out = r.stdout
|
|
831
|
-
data =
|
|
880
|
+
out = r.stdout if r.returncode == 0 else ""
|
|
881
|
+
data = None
|
|
882
|
+
if "{" in out or out.lstrip().startswith("["):
|
|
883
|
+
with contextlib.suppress(ValueError):
|
|
884
|
+
start = min(i for i in (out.find("{"), out.find("[")) if i >= 0)
|
|
885
|
+
data = json.loads(out[start:])
|
|
832
886
|
rows = data.get("models") if isinstance(data, dict) else data
|
|
833
887
|
if isinstance(rows, list):
|
|
834
888
|
models = [{k: m.get(k) for k in ("slug", "description", "visibility", "upgrade", "priority")}
|
|
835
889
|
for m in rows if isinstance(m, dict) and isinstance(m.get("slug"), str)]
|
|
890
|
+
elif out.strip():
|
|
891
|
+
models = parse_model_lines(out)
|
|
836
892
|
except (OSError, ValueError, subprocess.TimeoutExpired):
|
|
837
893
|
models = None
|
|
838
894
|
if not models:
|
|
@@ -843,13 +899,33 @@ def _tool_models(kind, cmd):
|
|
|
843
899
|
return models
|
|
844
900
|
|
|
845
901
|
|
|
902
|
+
def _version_key(slug):
|
|
903
|
+
"""Higher version numbers first: gemini-4-hydrogen before gemini-3.8-flash (sorts as a negative tuple)."""
|
|
904
|
+
m = re.search(r"\d+(?:\.\d+)*", slug)
|
|
905
|
+
return tuple(-int(x) for x in m.group(0).split(".")) if m else (0,)
|
|
906
|
+
|
|
907
|
+
|
|
846
908
|
def newest_of(models, family):
|
|
847
|
-
"""The tool's preferred current model of a family (a word in its id): not hidden, not legacy
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
909
|
+
"""The tool's preferred current model of a family (a word in its id): not hidden, not legacy. A list that ranks
|
|
910
|
+
its models (Codex's priority) decides; else the highest version number in the id, then list order. `family`
|
|
911
|
+
may be a list: the first family the tool has wins (e.g. ["hydrogen", "pro"])."""
|
|
912
|
+
for fam in ([family] if isinstance(family, str) else list(family or [])):
|
|
913
|
+
cands = [(i, m) for i, m in enumerate(models) if str(fam).lower() in re.split(r"[-_.@/:]", m["slug"].lower())
|
|
914
|
+
and m.get("visibility") != "hide" and not m.get("upgrade")
|
|
915
|
+
and not LEGACY_RE.search(m.get("description") or "")]
|
|
916
|
+
prio = lambda m: m["priority"] if isinstance(m.get("priority"), (int, float)) else 1e9
|
|
917
|
+
best = min(cands, key=lambda im: (prio(im[1]), _version_key(im[1]["slug"]), im[0]), default=None)
|
|
918
|
+
if best:
|
|
919
|
+
return best[1]
|
|
920
|
+
return None
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
def nearest_effort(want, listed):
|
|
924
|
+
"""The thinking level to use: `want`, or when the tool listed the model only on other levels, the closest one."""
|
|
925
|
+
if not want or not listed or want in listed:
|
|
926
|
+
return want
|
|
927
|
+
order = {e: i for i, e in enumerate(EFFORT_ORDER)}
|
|
928
|
+
return min(listed, key=lambda e: (abs(order.get(e, 3) - order.get(want, 3)), -order.get(e, 3)))
|
|
853
929
|
|
|
854
930
|
|
|
855
931
|
def discover_models(cat):
|
|
@@ -878,12 +954,23 @@ def discover_models(cat):
|
|
|
878
954
|
m = newest_of(models, want["family"])
|
|
879
955
|
if not m:
|
|
880
956
|
continue
|
|
881
|
-
|
|
882
|
-
|
|
957
|
+
eff = nearest_effort(want.get("effort"), m.get("efforts") or [])
|
|
958
|
+
mid = m["slug"].lower() + (f"@{eff}" if eff else "")
|
|
959
|
+
if mid in made: # the same model and level already fills a lower level: one level per model
|
|
960
|
+
continue
|
|
961
|
+
like = next((x for x in shipped.values() if str(x.get("tier", "")).lower() == level), None)
|
|
962
|
+
src = f"the shipped {level} entry"
|
|
963
|
+
if like is None: # a kind with no shipped entries (agy): borrow the ratings of a model of this level
|
|
964
|
+
other = next(((oid, x) for oid, x in cat["models"].items() if not x.get("found")
|
|
965
|
+
and str(x.get("tier", "")).lower() == level and not x.get("open_weights")), None)
|
|
966
|
+
like, src = (other[1], f"{other[0]} (same level, another tool)") if other else ({}, "nowhere (unrated)")
|
|
967
|
+
like = {k: v for k, v in like.items() if k not in ("context_k", "open_weights")}
|
|
968
|
+
fams = [want["family"]] if isinstance(want["family"], str) else list(want["family"])
|
|
969
|
+
fam = next((f for f in fams if str(f).lower() in re.split(r"[-_.@/:]", m["slug"].lower())), fams[0])
|
|
883
970
|
made[mid] = dict(like, kinds=[kind], tier=level, found=True, evidence=(
|
|
884
|
-
f"found by `{cmd}`: \"{(m.get('description') or '').strip()}\". {level} level = the newest "
|
|
885
|
-
f"{
|
|
886
|
-
+ f" ([discover.{kind}]). Ratings copied from
|
|
971
|
+
f"found by `{cmd}`: \"{(m.get('description') or m['slug']).strip()}\". {level} level = the newest "
|
|
972
|
+
f"{fam} model" + (f" on {eff} thinking" if eff else "")
|
|
973
|
+
+ f" ([discover.{kind}]). Ratings copied from {src}; not benchmarked here."))
|
|
887
974
|
used.add(m["slug"])
|
|
888
975
|
if not made:
|
|
889
976
|
continue
|
|
@@ -6100,10 +6187,13 @@ def _thinking(mid):
|
|
|
6100
6187
|
return (base or "?"), (eff or "default")
|
|
6101
6188
|
|
|
6102
6189
|
|
|
6103
|
-
def cmd_plan_team(st):
|
|
6190
|
+
def cmd_plan_team(st, summary=False):
|
|
6104
6191
|
"""orch plan team -> one row per milestone and one for the reviewer: which coder builds it, on which model and
|
|
6105
|
-
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)."""
|
|
6106
6194
|
if run_mode(st) == "subagent":
|
|
6195
|
+
if summary:
|
|
6196
|
+
return ""
|
|
6107
6197
|
print("SUBAGENT MODE: the subagents run on the models in your orch config (`/orch-mode` in Pi sets them), "
|
|
6108
6198
|
"not on a team of panels, so there is no team table to change here.")
|
|
6109
6199
|
return
|
|
@@ -6122,6 +6212,8 @@ def cmd_plan_team(st):
|
|
|
6122
6212
|
base, eff = _thinking(ri.get("model")) if ri.get("model") else ("?", "?")
|
|
6123
6213
|
rows.append(("Reviewer", "checks the reviewed steps", st["reviewer"], base, eff,
|
|
6124
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)
|
|
6125
6217
|
head = ("Step", "What", "Coder", "Model", "Thinking", "Chosen")
|
|
6126
6218
|
cut = lambda x: x if len(x) <= 30 else x[:29] + "…"
|
|
6127
6219
|
rows = [tuple(cut(str(c)) for c in r) for r in rows]
|
|
@@ -6144,6 +6236,12 @@ def cmd_plan_team(st):
|
|
|
6144
6236
|
if deny:
|
|
6145
6237
|
print(f"Never allowed: {', '.join(deny)}")
|
|
6146
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"])
|
|
6147
6245
|
|
|
6148
6246
|
|
|
6149
6247
|
def _plan_section(lines, tid):
|
|
@@ -6352,6 +6450,13 @@ def cmd_plan(args):
|
|
|
6352
6450
|
print(f"\nWARN no `Plain:` line for {', '.join(missing)}: add one sentence in plain words to each "
|
|
6353
6451
|
f"(what the developer will get, no code words), then `orch sync`.")
|
|
6354
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.")
|
|
6355
6460
|
|
|
6356
6461
|
|
|
6357
6462
|
def cmd_events(args):
|
package/models.default.toml
CHANGED
|
@@ -124,12 +124,28 @@ evidence = "`codex debug models` (codex-cli 0.172, 2026-11): \"Fast, go-to model
|
|
|
124
124
|
[discover.codex]
|
|
125
125
|
# How orch finds Codex's current models: it runs `cmd` (at most every few hours, the answer is cached), skips
|
|
126
126
|
# models Codex hides or calls legacy / previous generation, and takes the newest model of each family (a word in
|
|
127
|
-
# its id). Each level is that model on a thinking level. If the command fails,
|
|
127
|
+
# its id; a list of families is tried in order). Each level is that model on a thinking level. If the command fails,
|
|
128
|
+
# the entries above are used. A tool that prints plain lines instead of JSON works too (see [discover.agy]).
|
|
128
129
|
cmd = "codex debug models"
|
|
129
130
|
small = { family = "luna", effort = "high" }
|
|
130
131
|
medium = { family = "sol", effort = "low" }
|
|
131
132
|
high = { family = "sol", effort = "medium" }
|
|
132
133
|
|
|
134
|
+
# ---------------------------------------------------------------- Antigravity CLI (`agy --model <id> --effort <level>`)
|
|
135
|
+
# No agy model is written here: orch asks agy itself (`agy models`, the models YOUR account can use) and fills each
|
|
136
|
+
# level with the newest model of a family, so a new Gemini is picked up the day agy lists it. The family list is
|
|
137
|
+
# tried in order: Hydrogen when your plan has it, else Pro, else Flash. Claude or GPT models agy offers are never
|
|
138
|
+
# put in a level (you can still pick one with `orch plan model`). If `agy models` fails (not signed in), agy panes
|
|
139
|
+
# start on the model agy has saved (`/model` inside agy), as before.
|
|
140
|
+
[discover.agy]
|
|
141
|
+
cmd = "agy models"
|
|
142
|
+
small = { family = ["flash"], effort = "low" }
|
|
143
|
+
medium = { family = ["hydrogen", "pro", "flash"], effort = "low" }
|
|
144
|
+
high = { family = ["hydrogen", "pro", "flash"], effort = "high" }
|
|
145
|
+
|
|
146
|
+
# Any other tool that can print its models (one per line, or JSON) can be added the same way in your models.toml,
|
|
147
|
+
# e.g. for OpenCode: [discover.opencode] cmd = "opencode models" high = { family = ["sonnet"] }
|
|
148
|
+
|
|
133
149
|
# ---------------------------------------------------------------- open-weight models (optional)
|
|
134
150
|
# These need somewhere to run: a local server (Ollama, LM Studio, vLLM) or a hosted provider. The id is what
|
|
135
151
|
# your agent expects after its model flag (OpenCode: `provider/model`), so copy an entry into models.toml
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.
|
|
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
|
|
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
|
|
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
|
|
333
|
-
1.
|
|
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,
|
|
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."
|