herdr-orchestra 6.44.1 → 6.44.2
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 +11 -0
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +55 -12
- package/package.json +1 -1
- package/playbooks/onboard.md +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.44.2] - 2026-11-30
|
|
6
|
+
|
|
7
|
+
Project setup no longer asks about agents you are not using. A Codex lead ran `/orch-plan`, and the setup question offered "add a local link from .agent/skills to .agents/skills so Antigravity sees the repo's skills". Antigravity was installed on the machine, but nobody used it in that project. orch checked every agent installed on the machine, not the agents in this team.
|
|
8
|
+
|
|
9
|
+
Example: Codex leads, and only Codex panes are open on the repo. Before, `orch lead onboard` listed "agy can't see the 2 skill(s) in .agents/skills" and the lead offered an Antigravity link. Now it says "Agents in this team: codex (... left out: agy, claude)", checks only Codex, and when nothing is missing for Codex it doesn't ask at all.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **Project setup checks only the agents in this team.** The team is the agent running the command (the lead) and the agents herdr shows open on this repo or its worktrees. Installed tools that are not in the team (Antigravity, Claude Code, Pi, ...) get no folder-link gap and no `AGENTS.md`/`CLAUDE.md` choice made for them, and are never named in the setup question. When orch can't tell the team (not in herdr, unknown agent), it checks every installed agent, as before.
|
|
13
|
+
- `orch onboard --all` checks every installed agent. `orch onboard link` still checks every installed agent before it links, so a link never makes any agent see a skill twice. `ORCH_ONBOARD_TEAM=codex,claude` names the team by hand.
|
|
14
|
+
- The onboard playbook tells the lead to name only the agents in the team, and its examples no longer assume Codex and AGY.
|
|
15
|
+
|
|
5
16
|
## [6.44.1] - 2026-11-29
|
|
6
17
|
|
|
7
18
|
A held milestone no longer always stops the run for you. orch now has two kinds of hold. The lead may approve the everyday ones itself, after reading the change and giving a reason. The dangerous ones still wait for you, and you can say "approve Mn" in the lead's chat instead of going to a shell.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.44.
|
|
1
|
+
6.44.2
|
|
Binary file
|
package/bin/orch
CHANGED
|
@@ -5240,16 +5240,56 @@ def is_tracked(root, rel):
|
|
|
5240
5240
|
return git("ls-files", "--error-unmatch", "--", rel, cwd=root, check=False).returncode == 0
|
|
5241
5241
|
|
|
5242
5242
|
|
|
5243
|
-
|
|
5243
|
+
AGENT_KIND_NAMES = {"antigravity": "agy", "gemini": "agy", "claude-code": "claude", "claude_code": "claude"}
|
|
5244
|
+
|
|
5245
|
+
|
|
5246
|
+
def onboard_team(root):
|
|
5247
|
+
"""The agent kinds in use for this repo: the lead (the agent running this command) and every herdr pane whose
|
|
5248
|
+
folder is this repo or one of its worktrees. Empty when orch can't tell (no agent mark, not inside herdr)."""
|
|
5249
|
+
kinds = set()
|
|
5250
|
+
with contextlib.suppress(Exception):
|
|
5251
|
+
lk = lead_kind()
|
|
5252
|
+
if lk:
|
|
5253
|
+
kinds.add(lk)
|
|
5254
|
+
if os.environ.get("ORCH_ONBOARD_TEAM") is not None: # tests and scripts: name the team by hand
|
|
5255
|
+
return {k.strip().lower() for k in os.environ["ORCH_ONBOARD_TEAM"].split(",") if k.strip()} | kinds
|
|
5256
|
+
if not (os.environ.get("HERDR_ENV") or os.environ.get("HERDR_PANE_ID")):
|
|
5257
|
+
return kinds
|
|
5258
|
+
common = None
|
|
5259
|
+
with contextlib.suppress(Exception):
|
|
5260
|
+
common = os.path.realpath(git_common_dir(root) or "")
|
|
5261
|
+
with contextlib.suppress(Exception):
|
|
5262
|
+
for p in (herdr_panes() or {}).values():
|
|
5263
|
+
kind = p.get("kind")
|
|
5264
|
+
if not kind:
|
|
5265
|
+
continue
|
|
5266
|
+
for c in p.get("cwds", []):
|
|
5267
|
+
here = _inside(c, root)
|
|
5268
|
+
if not here and common and os.path.isdir(c):
|
|
5269
|
+
gd = git_common_dir(c)
|
|
5270
|
+
here = bool(gd) and os.path.realpath(gd) == common
|
|
5271
|
+
if here:
|
|
5272
|
+
kinds.add(AGENT_KIND_NAMES.get(kind, kind))
|
|
5273
|
+
break
|
|
5274
|
+
return kinds
|
|
5275
|
+
|
|
5276
|
+
|
|
5277
|
+
def onboard_scan(root, reg=None, everyone=False):
|
|
5244
5278
|
"""The whole look at one repo, as a dict (`orch onboard --json`): stack, commands, rule files, skills, what each
|
|
5245
|
-
|
|
5246
|
-
something is missing), quiet (set up or skipped before, or nothing missing).
|
|
5279
|
+
agent in use sees, the gaps, and what to do now: full (no project skills: set it up), gaps (never set up, and
|
|
5280
|
+
something is missing), quiet (set up or skipped before, or nothing missing).
|
|
5281
|
+
Only the agents in use are checked (the lead and the panes open on this repo, see onboard_team): a tool that is
|
|
5282
|
+
installed but not in this team (Antigravity on a Codex-only team) gets no gap and is never named. When orch can't
|
|
5283
|
+
tell the team, or `everyone` (`orch onboard --all`), every installed agent is checked."""
|
|
5247
5284
|
root = Path(root)
|
|
5248
5285
|
reg = reg if reg is not None else (registry(required=False) or {})
|
|
5249
5286
|
stack, cmds, pm = stack_of(root)
|
|
5250
5287
|
rules = rule_files(root)
|
|
5251
5288
|
skills = project_skills(root, reg)
|
|
5252
|
-
|
|
5289
|
+
on_path = {k: v for k, v in reg.items() if shutil.which(v.get("binary", k))}
|
|
5290
|
+
team = set() if everyone else onboard_team(root)
|
|
5291
|
+
installed = {k: v for k, v in on_path.items() if k in team} if team & set(on_path) else on_path
|
|
5292
|
+
left_out = sorted(set(on_path) - set(installed))
|
|
5253
5293
|
agents = {k: agent_project_view(root, k, v, skills) for k, v in sorted(installed.items())}
|
|
5254
5294
|
clashes = clash_skills(skills)
|
|
5255
5295
|
rules_text = ""
|
|
@@ -5290,7 +5330,7 @@ def onboard_scan(root, reg=None):
|
|
|
5290
5330
|
"skills": [{k: s[k] for k in ("name", "description", "path")} for s in skills],
|
|
5291
5331
|
"agents": {k: {"reads": a["reads"], "sees": len(a["skills"]), "twice": a["twice"]} for k, a in agents.items()},
|
|
5292
5332
|
"clash": clashes, "gaps": gaps, "state": st.get("status") or "never", "when": st.get("when"),
|
|
5293
|
-
"decide": decide}
|
|
5333
|
+
"decide": decide, "team": sorted(installed) if left_out else None, "not_in_team": left_out}
|
|
5294
5334
|
|
|
5295
5335
|
|
|
5296
5336
|
def onboard_report_lines(r):
|
|
@@ -5299,6 +5339,9 @@ def onboard_report_lines(r):
|
|
|
5299
5339
|
f"Rule files: {', '.join(r['rules']) or 'none'}",
|
|
5300
5340
|
f"Project skills: {len(r['skills'])}" + (f" ({', '.join(sorted({s['path'].rsplit('/', 1)[0] for s in r['skills']}))})"
|
|
5301
5341
|
if r["skills"] else "")]
|
|
5342
|
+
if r.get("not_in_team"):
|
|
5343
|
+
out.append(f"Agents in this team: {', '.join(r['team'])} (only these are checked and named; installed but not "
|
|
5344
|
+
f"in this team, left out: {', '.join(r['not_in_team'])}; `orch onboard --all` checks them too)")
|
|
5302
5345
|
for k, a in r["agents"].items():
|
|
5303
5346
|
out.append(f" {k} reads {', '.join(a['reads']) or 'no project folder (not known)'}: sees {a['sees']}"
|
|
5304
5347
|
+ (f", TWICE: {', '.join(a['twice'])}" if a["twice"] else ""))
|
|
@@ -5377,7 +5420,7 @@ def onboard_links(root, d):
|
|
|
5377
5420
|
|
|
5378
5421
|
|
|
5379
5422
|
def cmd_onboard(args):
|
|
5380
|
-
"""orch onboard [scan] [--json] | skills [--json] | check | link <folder> <to> | done --mode local|shared [paths]
|
|
5423
|
+
"""orch onboard [scan] [--json] [--all] | skills [--json] | check | link <folder> <to> | done --mode local|shared [paths]
|
|
5381
5424
|
| skip | status."""
|
|
5382
5425
|
args = list(args)
|
|
5383
5426
|
root = onboard_root() or die("not inside a git repository")
|
|
@@ -5385,7 +5428,7 @@ def cmd_onboard(args):
|
|
|
5385
5428
|
rest = args[1:] if args and not args[0].startswith("-") else args
|
|
5386
5429
|
reg = registry(required=False) or {}
|
|
5387
5430
|
if sub == "scan":
|
|
5388
|
-
r = onboard_scan(root, reg)
|
|
5431
|
+
r = onboard_scan(root, reg, everyone="--all" in rest)
|
|
5389
5432
|
if "--json" in rest:
|
|
5390
5433
|
print(json.dumps(r, indent=2))
|
|
5391
5434
|
return
|
|
@@ -5428,7 +5471,7 @@ def cmd_onboard(args):
|
|
|
5428
5471
|
die(f"{link} already exists: orch never replaces a folder (put the skills in one of them by hand)")
|
|
5429
5472
|
lp.parent.mkdir(parents=True, exist_ok=True)
|
|
5430
5473
|
os.symlink(os.path.relpath(tp, lp.parent), lp)
|
|
5431
|
-
twice = {k: a["twice"] for k, a in onboard_scan(root, reg)["agents"].items() if a["twice"]}
|
|
5474
|
+
twice = {k: a["twice"] for k, a in onboard_scan(root, reg, everyone=True)["agents"].items() if a["twice"]}
|
|
5432
5475
|
if twice:
|
|
5433
5476
|
lp.unlink()
|
|
5434
5477
|
die("not linked: then " + "; ".join(f"{k} would see {', '.join(n)} twice" for k, n in twice.items()))
|
|
@@ -10422,8 +10465,9 @@ USAGE = """usage: orch <command> [args]
|
|
|
10422
10465
|
lead run --section <EVENT|ALL_DONE|rules> one part of the run playbook (orch events prints these for you)
|
|
10423
10466
|
lead onboard the setup playbook: set this project up for its agents (rules, skills) with the
|
|
10424
10467
|
developer's tick; `orch lead plan` points the lead to it when a project needs it
|
|
10425
|
-
onboard [--json]
|
|
10426
|
-
|
|
10468
|
+
onboard [--json] [--all] what the project has for its agents: stack, commands, rule files, the skills each
|
|
10469
|
+
agent in this team sees (the lead and the panes open on this repo; --all: every
|
|
10470
|
+
installed agent), and what is missing (no AI, changes nothing)
|
|
10427
10471
|
onboard skills|check|status the project's skills (for a milestone's `Skills:`) / skills an agent sees twice /
|
|
10428
10472
|
what setup did here
|
|
10429
10473
|
onboard link <folder> <to> one folder link so another agent sees the same skills (.agents/skills -> .agent/skills)
|
|
@@ -11808,8 +11852,7 @@ def lead_kind():
|
|
|
11808
11852
|
if not kind and os.environ.get("HERDR_PANE_ID"):
|
|
11809
11853
|
with contextlib.suppress(Exception):
|
|
11810
11854
|
kind = ((herdr_panes() or {}).get(os.environ["HERDR_PANE_ID"]) or {}).get("kind")
|
|
11811
|
-
|
|
11812
|
-
return names.get(kind, kind) if kind else None
|
|
11855
|
+
return AGENT_KIND_NAMES.get(kind, kind) if kind else None
|
|
11813
11856
|
|
|
11814
11857
|
|
|
11815
11858
|
def _ancestor_args():
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.44.
|
|
3
|
+
"version": "6.44.2",
|
|
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/onboard.md
CHANGED
|
@@ -6,6 +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
10
|
|
|
10
11
|
## 1. Look (read-only, a few minutes at most)
|
|
11
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.
|
|
@@ -20,14 +21,14 @@ Make one short list. Each item is a file you would write, and only when somethin
|
|
|
20
21
|
<!-- /orch-onboard -->
|
|
21
22
|
```
|
|
22
23
|
- **A new skill** for a topic this repo does often and no existing skill covers (match on the name and the description: `frontend-developer` already covers Next.js pages, so no "nextjs" skill). Only when the folder list above says **no project skills**, or for a clear gap. Each skill is about THIS repo: real folder names, real commands, the pattern to copy and one example file to look at, at most 80 lines. Example for a Next.js + Supabase repo: `supabase-changes` ("Use when adding or changing a table: migrations live in supabase/migrations, every table gets RLS rules, run `supabase db diff` ..."). Never a general best-practices essay. At most 3 new skills.
|
|
23
|
-
- **A folder link** when an agent can't see the skills (the gap says `<agent> can't see ...`): `orch onboard link <its folder> <folder with the skills>`, for example `orch onboard link .agents/skills .agent/skills`
|
|
24
|
+
- **A folder link** when an agent can't see the skills (the gap says `<agent> can't see ...`): `orch onboard link <its folder> <folder with the skills>`, for example `orch onboard link .agents/skills .agent/skills` when Codex is in the team and the skills are in `.agent/skills`. One copy, no files copied. No `can't see` gap: no link item.
|
|
24
25
|
- **Skills that clash with orch** (the gap lists them): nothing to write. orch tells coders not to use them during a run; the skills stay as they are. Offer it as an item that is ticked by default.
|
|
25
26
|
|
|
26
27
|
Where do the new skills go: in the skill folder the repo already uses (the `Project skills:` line above), else `.agents/skills`. If the team has an agent that doesn't read that folder, add the link item too.
|
|
27
28
|
|
|
28
29
|
## 3. Ask once, in the picker
|
|
29
30
|
Use your question picker (the `QUESTION PICKER` line above names it; chat when there is none) with two questions:
|
|
30
|
-
1. **What should I set up?** Multi-select: each item from step 2 as a short line (`AGENTS.md with npm test / lint / build`, `New skill supabase-changes: how this repo adds tables`, `Link .agents/skills -> .agent/skills so Codex sees your 21 skills
|
|
31
|
+
1. **What should I set up?** Multi-select: each item from step 2 as a short line (`AGENTS.md with npm test / lint / build`, `New skill supabase-changes: how this repo adds tables`, `Link .agents/skills -> .agent/skills so Codex sees your 21 skills` (only when the gap names that agent), `Tell coders to skip 4 skills that clash with orch`). Recommended: all ticked. Plus **Skip: don't set up this project**.
|
|
31
32
|
2. **Where should it go?**
|
|
32
33
|
- **Only for me** (recommended for a company or team repo, or when the repo's remote is not the developer's own): the files stay in this folder, hidden from git on this machine only (`.git/info/exclude`; the repo's `.gitignore` is not touched). Nothing is committed, teammates never see them.
|
|
33
34
|
- **Share with the repo** (recommended for the developer's own project): the files go on branch `orch/onboard` with a PR; the developer merges it.
|