herdr-orchestra 6.32.0 → 6.34.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 +52 -0
- package/README.md +13 -3
- package/VERSION +1 -1
- package/agents.default.toml +9 -0
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +1215 -34
- package/claude-commands/orch-onboard.md +6 -0
- package/install.sh +4 -4
- package/opencode-commands/orch-onboard.md +6 -0
- package/package.json +3 -2
- package/playbooks/onboard.md +50 -0
- package/playbooks/plan.md +5 -2
- package/skills/orch-onboard/SKILL.md +7 -0
- package/view/index.html +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.34.0] - 2026-11-28
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Example: at the end of a run the summary has
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
| M1 Goals screen | agy-1 | 182k (in 150k, of which 120k cached; out 32k) | 41k (codex-r) | 223k |
|
|
13
|
+
| M2 Emergency card | codex-2 | 64k (in 58k, of which 40k cached; out 6k) | 22k (codex-r) | 86k |
|
|
14
|
+
| Lead (whole run) | | 120k | | 120k |
|
|
15
|
+
| Total | | | | 431k |
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
"In" is what the agent read (its task, files and own chat), "cached" is the part that was its own chat read again (much cheaper), "out" is what it wrote.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Tokens per milestone** in `summary.md` ("Tokens: per milestone"), `orch report` (`--no-tokens` skips it, `--json` adds `tokens`) and the new `orch tokens [--json]`: coder jobs (fix rounds shown too), review rounds, the lead for the whole run, "Between jobs" (an agent's `/compact` or you typing in its pane) and the total.
|
|
22
|
+
- **Read from each agent's own session log, read only.** Claude Code (`~/.claude/projects`, sub-agent logs included, a reply written twice counted once), Codex (`~/.codex/sessions` rollouts: the job's share of the running total), Pi (`~/.pi/agent/sessions`) and Antigravity (`~/.gemini/antigravity-cli/brain/.../transcript_full.jsonl`). Each tool's own setting is followed (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`, `PI_CODING_AGENT_SESSION_DIR`); compressed Codex logs (`.jsonl.zst`) are read with `zstd` when it is installed. The formats were checked on a real machine (codex-cli 0.167, Claude Code 2.1.332, pi 1.6.1, agy 1.5.19).
|
|
23
|
+
- **Exact split, also for one coder doing several milestones in one chat.** orch finds a job's chat by the exact prompt it typed (unique per job, so coders sharing one folder are told apart) and counts only the replies between that job's start and the agent's next job.
|
|
24
|
+
- **Saved when each job ends.** The event manager reads the tokens about 20 seconds after a job ends and saves them in `state.json`, so they stay after the tool deletes its old logs. A log not found within 10 minutes is marked "not available".
|
|
25
|
+
- **Board and browser view.** Each milestone line shows its tokens (`42k tok`), the board's header the run's total and the lead; in `orch view` each milestone card and its details show them, and the "Time and tokens" card lists the lead and the total.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- **Never a guess.** A job whose log has no token counts (for example agy versions before about October 2026) shows "not available" with the reason, and the total gets a `+`.
|
|
29
|
+
- The coder's result file no longer has a `usage` field: coders can't see their own token counts, and orch now reads them itself. The old money cost line is gone (Codex at work is company-paid, and prices change).
|
|
30
|
+
|
|
31
|
+
### After updating
|
|
32
|
+
Nothing to do. Runs started before 6.34.0 show `-` for jobs that ended before the update.
|
|
33
|
+
## [6.33.0] - 2026-11-28
|
|
34
|
+
|
|
35
|
+
Project setup before the first plan (`orch-onboard`). orch checks what a project has for its agents: the stack, the commands, the rule files and the skills each agent can see. If something is missing, the lead offers it in one list and writes only what you tick.
|
|
36
|
+
|
|
37
|
+
Example: you type `/orch-plan add budget alerts` in rupee-flow. Its 21 skills are in `.agent/skills`, which only AGY reads. Before planning, the lead shows: `[x] Link .agents/skills -> .agent/skills so Codex sees your 21 skills`, `[x] Add the test and lint commands to AGENTS.md`, `[x] Tell coders to skip 4 skills that clash with orch`, and asks **Only for me** or **Share with the repo**. You tick, it sets things up, then it plans budget alerts in the same turn. Next time it says nothing.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- **`orch lead plan` checks the project by itself.** A project with no skills, or one never checked that has a real gap, gets a `PROJECT SETUP` line: the lead runs `orch lead onboard` right after preflight and then plans as usual. A project set up or skipped before gets no line. `ORCH_ONBOARD=0` turns the check off.
|
|
41
|
+
- **`orch lead onboard`** (the `orch-onboard` skill, `/orch-onboard`): what orch found, then the setup playbook. The lead proposes only gaps: an `AGENTS.md` with the commands, up to 3 new short skills about this repo when none covers a topic, a folder link, and the clash note. It asks once with the agent's question picker. Rules: nothing written without a tick, your skills and rule files never edited, no skill pack ever downloaded or suggested, no skill created under a name an agent already sees.
|
|
42
|
+
- **`orch onboard [--json]`**: the look itself, with no AI and no changes. Stack from `package.json`, `pyproject.toml`, `go.mod` and others, commands from scripts and the Makefile, rule files, every project skill, what each installed agent sees, and the gaps. `orch onboard skills` lists the skills with what each is for. `orch onboard check` reports a skill an agent sees twice (in the repo and its home folder, or in two folders it reads).
|
|
43
|
+
- **`orch onboard link <folder> <to>`**: one relative folder link (`.agents/skills -> .agent/skills`) so another agent reads the same skills. It never replaces a folder, and it undoes itself if an agent would then see a skill twice.
|
|
44
|
+
- **`orch onboard done --mode local|shared`**:
|
|
45
|
+
- `local`: new files are hidden from git on this machine only, in `.git/info/exclude`. The repo's `.gitignore` is never touched.
|
|
46
|
+
- `shared`: the files are committed on their own branch, `orch/onboard`, without switching branch or touching your index. orch pushes it and opens a PR, and you merge it.
|
|
47
|
+
- Either way, orch never changes a tracked file quietly. Lines you add to a tracked `AGENTS.md` go between `<!-- orch-onboard -->` marks. In local mode they move to `.orchestrate/onboard-notes.md` and the file goes back to how git has it.
|
|
48
|
+
- `orch onboard skip` stops the offer in that project, and `orch onboard status` shows what was done.
|
|
49
|
+
- **Coders get what stayed on this machine.** When a worktree is made or a milestone starts in it, orch links each hidden file and the folder link into the coder's folder. git there stays clean, and nothing lands in a commit.
|
|
50
|
+
- **`Skills:` per milestone.** The plan playbook lists the project's skills (`PROJECT SKILLS`), and the lead gives each milestone the ones that fit. The coder's task file gets **Skills for this step** (each with what it is for), **Skills orch does for you** (skills like `using-git-worktrees`, `finishing-a-development-branch`, `dispatching-parallel-agents` and `subagent-driven-development` are not to be used in a run, because orch does their job) and **Project notes (orch onboard)**. `task.json` lists `skills`. `orch sync` warns about a `Skills:` name the repo doesn't have, or one that clashes.
|
|
51
|
+
- Agent registry: `project_skills_reads`, the skill folders inside a repo each tool reads: Claude Code `.claude/skills`, Codex and Amp `.agents/skills`, AGY `.agent/skills`, Pi `.pi/skills` and `.agents/skills`, OpenCode `.opencode/skills`, `.claude/skills` and `.agents/skills`. These come from each tool's documentation. They were not tried live with every tool, and Hermes is left out.
|
|
52
|
+
- Site: a new page, "Project setup (orch-onboard)", a how-to answer, and the commands and configuration rows.
|
|
53
|
+
|
|
54
|
+
### After updating
|
|
55
|
+
Nothing to do. `orch update` (or the auto-update) installs the `orch-onboard` skill for every agent. The next `/orch-plan` in each project offers the setup once if the project needs it.
|
|
56
|
+
|
|
5
57
|
## [6.32.0] - 2026-11-28
|
|
6
58
|
|
|
7
59
|
The board key (`prefix+a`) opens the board again. Since 6.22.0 the popup flashed open and closed at once.
|
package/README.md
CHANGED
|
@@ -61,8 +61,8 @@ It installs:
|
|
|
61
61
|
| What | Where |
|
|
62
62
|
|---|---|
|
|
63
63
|
| `orch` CLI (scheduler + autopilot) | `~/.local/bin/orch` |
|
|
64
|
-
| `orch-plan`, `orch-run`, `orch-explain` skills, one copy per agent (an agent never lists them twice) | `~/.agents/skills/` or the agent's own skills folder |
|
|
65
|
-
| `/orch-plan`, `/orch-run`, `/orch-explain` OpenCode commands | `~/.config/opencode/commands/` |
|
|
64
|
+
| `orch-plan`, `orch-run`, `orch-explain`, `orch-onboard` skills, one copy per agent (an agent never lists them twice) | `~/.agents/skills/` or the agent's own skills folder |
|
|
65
|
+
| `/orch-plan`, `/orch-run`, `/orch-explain`, `/orch-onboard` OpenCode commands | `~/.config/opencode/commands/` |
|
|
66
66
|
|
|
67
67
|
Updating replaces the skills, it never adds a second copy: the installer picks one folder per agent and removes orch's older copies from the rest (your own skills are left alone). `orch agents check` says `DUPLICATE` if an agent would still see a skill twice.
|
|
68
68
|
| every installed version, side by side | `~/.local/share/herdr-orchestra/` |
|
|
@@ -201,6 +201,7 @@ Model why: one module, a clear contract, an existing endpoint to copy; no design
|
|
|
201
201
|
- **Policy.** Ultra-premium models (`*fable*`, `*astra*`) are kept out of runs: `orch sync` refuses a plan that names one. Everything else your agents reach is allowed, open-weight models included. Edit `[policy] deny` to change the list.
|
|
202
202
|
- **Checked against reality.** `summary.md` has a table of planned tier against the model that really did each milestone, and `orch report` shows first-pass rate and escalations per model. When a model does worse than its rating, lower the rating.
|
|
203
203
|
- **A role for every coder.** The lead writes `Role:` on each milestone (for UI work, for example, "senior frontend engineer with a designer's eye: matches the existing components, works on a small screen, has loading, empty and error states"). The coder's task file starts with it, so the coder works to that standard.
|
|
204
|
+
- **Tokens per milestone.** Next to the time, the summary, the board and `orch view` show the tokens each milestone used (in, cached, out; coder, review and fix rounds), the lead and the total. orch reads them from each agent's own log (Claude Code, Codex, Pi, agy) when a job ends and saves them. A job whose log has no counts shows "not available", never a guess.
|
|
204
205
|
- **Estimate vs actual time.** The lead writes `Estimate:` for each milestone and for the whole feature. orch measures the real time, and the summary shows both. When something took longer, it lists where the time went and who it waited on (for example "10m claude-1 (sonnet): fix rounds: the check command failed" or "20m developer / lead: paused, waiting for an answer"), only from what orch recorded.
|
|
205
206
|
- **Yours to change.** Add or re-rate models in `~/.config/herdr-orchestra/models.toml` (merged over `models.default.toml`). The default ratings are starting points with their sources, not benchmarks run by this project. A model that is not in the catalog still works; it just has no tier.
|
|
206
207
|
|
|
@@ -227,6 +228,15 @@ The agent whose pane you start the plan playbook in becomes the lead. orch names
|
|
|
227
228
|
| Pi | `/skill:orch-explain <topic>` |
|
|
228
229
|
| any other | "use the orch-explain skill: <topic>" (or just "explain X simply") |
|
|
229
230
|
|
|
231
|
+
### Set a project up for its agents
|
|
232
|
+
The first `/orch-plan` in a project checks what the project has for its agents: the stack, the commands, the rule files and the skills each agent can see. It's plain file reading, with no AI. If something is missing, the lead offers it in one list before it plans, and writes only what you tick:
|
|
233
|
+
|
|
234
|
+
- **No skills yet:** an `AGENTS.md` with your commands, and up to 3 short skills about this repo (real folders and commands, never a downloaded pack).
|
|
235
|
+
- **Skills already there:** only the real gaps. For example, Codex reads `.agents/skills` but your skills are in AGY's `.agent/skills`, so one folder link (`.agents/skills -> .agent/skills`) lets both see the same skills. Or no file names your test command, so it goes in one marked block in `AGENTS.md`. Your own skills are never changed.
|
|
236
|
+
- **Where it goes:** **only for me** (hidden from git on your machine with `.git/info/exclude`, nothing committed) or **share with the repo** (its own branch, `orch/onboard`, and a PR). Coders get the files either way.
|
|
237
|
+
|
|
238
|
+
Skip it once and orch won't ask again in that project. `/orch-onboard` runs it by hand. In a run, each milestone gets a `Skills:` line and the coder's task lists those skills. Skills that do orch's job (their own worktree, merging, helper agents) are named as "don't use in this task". Details: [Project setup](https://herdr-orchestra.vercel.app/docs/project-setup/).
|
|
239
|
+
|
|
230
240
|
The orch-plan and orch-run skills and slash commands are thin wrappers: the playbooks themselves live in `orch` (`orch lead plan`, `orch lead run`), so every agent follows the same, versioned instructions. They are printed in parts so the lead reads only what it needs: `orch lead plan` prints research and the quick-or-full decision, then `orch lead plan quick` (a quick run's rules) or `orch lead plan full` (steps 3 to 10); on a wake-up, `orch events` prints the rules and steps for those events, so the run playbook is read once.
|
|
231
241
|
|
|
232
242
|
### Agent registry
|
|
@@ -416,7 +426,7 @@ The event manager starts in its own systemd scope when it can (`systemd-run --us
|
|
|
416
426
|
### Contracts and reports
|
|
417
427
|
`plan.md` stays the file you edit. From it `orch` generates a `task.json` for each milestone (numbered acceptance criteria `AC1…`, allowed files, interfaces, the commits of its dependencies). Coders answer with a `result-N.json` (status, commit message, files changed, the check they ran, each criterion met or not), and the reviewer with a `review-N.json` (a verdict per criterion plus findings). The old line formats (`COMMIT:`, `QUESTION:`, `BLOCKER:`) still work as a fallback. The shapes are in [docs/contracts.md](docs/contracts.md).
|
|
418
428
|
|
|
419
|
-
Every status change is written to `.orchestrate/events.jsonl`, and `orch report [--json]` shows estimated vs actual time (and why anything took longer), time per milestone, fix/review/conflict rounds, first-pass rate and wasted work, plus how each model did
|
|
429
|
+
Every status change is written to `.orchestrate/events.jsonl`, and `orch report [--json]` shows estimated vs actual time (and why anything took longer), time per milestone, fix/review/conflict rounds, first-pass rate and wasted work, plus how each model did, and tokens per milestone. `orch tokens` prints only the tokens.
|
|
420
430
|
|
|
421
431
|
Optional plan header lines: `Lead mode: events | off` (default `events` when the plan has a `Lead:` line) · `Scope: warn | strict` · `Risk hold: on | off` · `Budget: 3h` (autopilot stops when its running time is used up) · `Estimate: 1h30m` (the lead's estimate for the feature) · `Setup inputs: <globs>` (which files mean "run setup again"; default: lockfiles and manifests). Per milestone: `Why separate` (why it is its own milestone; needed when the plan has more than one) · `Tier`, `Needs`, `Model why` (see [Models and tiers](#models-and-tiers)) · `Estimate: 40m` (dispatch to landed if nothing goes wrong) · `Parallel: allow` lets it run next to a milestone that shares its `Likely files`.
|
|
422
432
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.34.0
|
package/agents.default.toml
CHANGED
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
# `orch agents sync` picks the fewest folders so each installed tool reads exactly ONE copy
|
|
33
33
|
# of each skill (a skill in two folders it reads is listed twice), and removes orch's copies
|
|
34
34
|
# from every other folder
|
|
35
|
+
# project_skills_reads the skill folders INSIDE a repo the tool reads (relative to the repo), e.g. ".agents/skills".
|
|
36
|
+
# `orch onboard` shows which project skills each agent sees, finds one it can't see or sees twice,
|
|
37
|
+
# and links a folder (never copies) so it sees the same ones; unset: not known for that tool
|
|
35
38
|
# commands_dirs slash-command folders the installer may put orch-plan.md / orch-run.md / orch-explain.md into
|
|
36
39
|
# skills_one_wins true when the tool shows a skill once even if two folders it reads have it (its docs
|
|
37
40
|
# say one copy wins); false or unset: it lists both, so orch keeps exactly one copy
|
|
@@ -59,6 +62,7 @@ skills_one_wins = true
|
|
|
59
62
|
old_dirs = ["~/.claude/commands"]
|
|
60
63
|
invoke = "/orch-plan <feature>"
|
|
61
64
|
verified = true
|
|
65
|
+
project_skills_reads = [".claude/skills"]
|
|
62
66
|
notes = "Claude Code 2.1: --permission-mode acceptEdits in --help; ~/.claude/skills present; herdr kind 'claude'. A skill is also a slash command (/orch-plan) and its docs say a skill beats a ~/.claude/commands file of the same name, so no commands copy is installed. review_launch: --disallowedTools is in --help (2.1); the reviewer keeps Write for its review file."
|
|
63
67
|
|
|
64
68
|
[codex]
|
|
@@ -83,6 +87,7 @@ skills_dirs = ["~/.agents/skills", "~/.codex/skills"]
|
|
|
83
87
|
skills_reads = ["~/.agents/skills", "~/.codex/skills"]
|
|
84
88
|
invoke = "$orch-plan <feature> (or: use the orch-plan skill: <feature>)"
|
|
85
89
|
verified = true
|
|
90
|
+
project_skills_reads = [".agents/skills"]
|
|
86
91
|
notes = "codex-cli 0.167: --full-auto is gone; --approve-for-me routes approvals to automatic review in the workspace-write sandbox. Reads ~/.codex/skills and ~/.agents/skills (its docs name ~/.agents/skills as the user folder, and say two skills with the same name both show up, so orch keeps one copy). codex-cli 0.172 (checked with `codex sandbox`): in workspace-write, .git is read-only and connecting to a local socket is refused; sandbox_workspace_write.network_access=true lets the herdr socket through (it also allows the internet) and writable_roots with the repo's .git lets git work. Thinking level: -c model_reasoning_effort=low|medium|high|xhigh|max. `codex debug models` lists the models this Codex has (see [discover.codex] in models.default.toml). codex-cli 0.172 (checked with `codex features list`): default_mode_request_user_input is an 'under development' feature, off by default; -c features.default_mode_request_user_input=true turns it on (request_user_input is refused in `codex exec`)."
|
|
87
92
|
|
|
88
93
|
[amp]
|
|
@@ -96,6 +101,7 @@ skills_reads = ["~/.config/agents/skills", "~/.agents/skills"]
|
|
|
96
101
|
skills_one_wins = true
|
|
97
102
|
invoke = "use the orch-plan skill: <feature>"
|
|
98
103
|
verified = true
|
|
104
|
+
project_skills_reads = [".agents/skills"]
|
|
99
105
|
notes = "No auto-approve CLI flag; set amp.dangerouslyAllowAll or `amp permissions add` rules in its settings. `amp skill list` lists skills."
|
|
100
106
|
|
|
101
107
|
[opencode]
|
|
@@ -113,6 +119,7 @@ commands_reads = ["~/.config/opencode/commands", "~/.config/opencode/command"]
|
|
|
113
119
|
commands_from = "opencode-commands"
|
|
114
120
|
invoke = "/orch-plan <feature>"
|
|
115
121
|
verified = true
|
|
122
|
+
project_skills_reads = [".opencode/skills", ".claude/skills", ".agents/skills"]
|
|
116
123
|
notes = "Reads ~/.agents/skills and ~/.claude/skills, so only its slash commands are installed."
|
|
117
124
|
|
|
118
125
|
[hermes]
|
|
@@ -137,6 +144,7 @@ roles = ["lead", "coder", "reviewer"]
|
|
|
137
144
|
skills_dirs = ["~/.gemini/config/skills"]
|
|
138
145
|
invoke = "use the orch-plan skill: <feature>"
|
|
139
146
|
verified = true
|
|
147
|
+
project_skills_reads = [".agent/skills"]
|
|
140
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."
|
|
141
149
|
|
|
142
150
|
[pi]
|
|
@@ -150,4 +158,5 @@ skills_dirs = ["~/.agents/skills"]
|
|
|
150
158
|
skills_reads = ["~/.pi/agent/skills", "~/.agents/skills"]
|
|
151
159
|
invoke = "/skill:orch-plan <feature>"
|
|
152
160
|
verified = false
|
|
161
|
+
project_skills_reads = [".pi/skills", ".agents/skills"]
|
|
153
162
|
notes = "Pi (pi.dev, npm @earendil-works/pi-coding-agent 1.6): `pi install npm:herdr-orchestra` adds the orch skills and the orch-mode extension (/orch-mode, /orch-setup). Pi also reads ~/.agents/skills, so it may warn once that orch-plan / orch-run are found twice; it keeps the first copy. Docs list `--model`; herdr detection of Pi is unverified, so orch relies on the done file in panes mode. Subagent mode (one Pi window): `/orch-mode subagent` in Pi sets it up (or `orch setup --mode subagent` in a terminal)."
|
|
Binary file
|