herdr-orchestra 6.34.0 → 6.35.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 +19 -0
- package/VERSION +1 -1
- package/agents.default.toml +4 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +102 -15
- package/models.default.toml +17 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.35.0] - 2026-11-28
|
|
6
|
+
|
|
7
|
+
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).
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **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`).
|
|
13
|
+
- **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.
|
|
14
|
+
- **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).
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- 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").
|
|
18
|
+
|
|
19
|
+
### Not checked with the real tool
|
|
20
|
+
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.
|
|
21
|
+
|
|
22
|
+
### After updating
|
|
23
|
+
Run `orch models` once: you should see agy lines with Hydrogen. If not, run `agy models` yourself and check you are signed in.
|
|
5
24
|
## [6.34.0] - 2026-11-28
|
|
6
25
|
|
|
7
26
|
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.35.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
|
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.35.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": {
|