llm-orchestrator 1.6.0 → 1.7.1
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/.claude-plugin/plugin.json +1 -1
- package/README.md +137 -680
- package/SKILL.md +23 -3
- package/adapters/agents.mjs +13 -0
- package/adapters/commands.mjs +13 -0
- package/adapters/hooks.mjs +15 -7
- package/agents/code-simplifier.md +1 -0
- package/agents/orchestrator.md +1 -1
- package/agents/route-data-flow-tracer.md +1 -0
- package/bin/dispatch.mjs +181 -0
- package/bin/doctor.mjs +5 -2
- package/bin/gate.mjs +2 -1
- package/bin/llm-orchestrator.mjs +9 -1
- package/bin/tools.mjs +84 -0
- package/commands/task.md +13 -0
- package/docs/REFERENCE.md +628 -0
- package/lib/first-run.mjs +30 -3
- package/lib/flow-gate.mjs +319 -9
- package/lib/tool-use.mjs +348 -0
- package/package.json +2 -1
- package/policies/capabilities.md +65 -4
- package/policies/dispatch.md +20 -0
- package/policies/learning.md +3 -0
- package/registries/agent-roles.json +1 -1
- package/registries/core-profile.json +255 -46
- package/registries/preferred-tools.json +9 -3
- package/registries/tool-use.json +230 -0
- package/schemas/flow-ledger.schema.json +35 -0
package/README.md
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
<!-- llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving -->
|
|
2
2
|
# llm-orchestrator
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
So I built LLM Orchestrator.
|
|
4
|
+
Give your AI coding agent the habits of a good engineering team.
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
You write one line. The agent works out what kind of task it is, plans it, splits it across
|
|
7
|
+
specialist subagents, gives each part to the cheapest model that can do it well, checks the work at
|
|
8
|
+
every step, and says "done" only when the tests prove it.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
→ gives each part to the cheapest model that can do it
|
|
15
|
-
|
|
16
|
-
→ gates each phase
|
|
17
|
-
|
|
18
|
-
→ verifies the result before claiming it’s done
|
|
19
|
-
|
|
20
|
-
→ keeps what the expensive model worked out, so the cheap one handles it next time
|
|
10
|
+
```
|
|
11
|
+
/task "users can't reset their password from the mobile app"
|
|
12
|
+
```
|
|
21
13
|
|
|
22
|
-
|
|
14
|
+
- **You stop babysitting.** One line in, a reviewed and tested result out.
|
|
15
|
+
- **You pay for the work, not for the biggest model.** Each part runs on the cheapest model that
|
|
16
|
+
clears its risk level. The top-tier model is called only for hard decisions, and never for more
|
|
17
|
+
than 10% of the work.
|
|
18
|
+
- **It gets cheaper the more you use it.** When a top-tier model solves a hard problem, the solution
|
|
19
|
+
is saved as a short checklist. Next time, an everyday model follows the checklist.
|
|
20
|
+
- **It works where you already work.** Claude Code, Codex, OpenCode and Kilo, with models from 11
|
|
21
|
+
providers.
|
|
23
22
|
|
|
24
23
|
## License
|
|
25
24
|
|
|
@@ -27,153 +26,127 @@ Built for the kind of tasks where one agent and one context window simply aren
|
|
|
27
26
|
|
|
28
27
|
Copyright (c) 2026 Bogdan-Gabriel Torcescu — https://www.linkedin.com/in/bogdantorcescu/
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
## The problem it solves
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
prompts, runs them, reviews the result, proves it works, and stops. You are not in the loop for any
|
|
34
|
-
of the steps in between.
|
|
31
|
+
AI coding agents are fast, and they have four bad habits. This package replaces each one.
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
| Without it | With it |
|
|
34
|
+
|---|---|
|
|
35
|
+
| The agent starts editing before it understands the task. | It classifies the task first (bug, feature, incident, refactor, investigation, review, deploy, config or research) and follows that task's own plan. |
|
|
36
|
+
| One long session does everything on the most expensive model. | The work is split into parts. A small part goes to a small model; a risky part gets a stronger model and a stricter reviewer. |
|
|
37
|
+
| Every session starts from zero. | Decisions, evidence and lessons go into memory. A new session, or one that lost its context, picks up where the last one stopped. |
|
|
38
|
+
| "Done" means "I think it works". | Seven checkpoints, in order. A failing test exists before the fix. Done needs fresh test output, not the agent's own summary. |
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Think of a building site. Nobody gives the whole house to one worker. A site manager reads the plans,
|
|
41
|
+
sends the electrician to the wiring and the apprentice to carry bricks, checks each stage, and calls
|
|
42
|
+
in the senior engineer only for the hard decisions. llm-orchestrator is that site manager for your
|
|
43
|
+
AI agents.
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|---|---|
|
|
44
|
-
| **Classifies** | Bug, feature, incident, refactor, investigation, review, deploy, config or research — each has its own workflow, gates and evidence rules. |
|
|
45
|
-
| **Reads your project** | Languages, frameworks, test and build commands, CI, plus any rules you wrote in `AGENTS.md`. Your rules tighten the defaults; they never get silently dropped. |
|
|
46
|
-
| **Builds a flow** | Phases, parallel groups, dependencies — each shard with its own scope, owner, acceptance conditions and iteration budget. |
|
|
47
|
-
| **Writes the prompts** | Each subagent gets a dispatch contract: the facts that shard needs, the tools it may use, what it must produce. Not a copy of the whole conversation. |
|
|
48
|
-
| **Picks a model per shard** | Cheap model for the mechanical shard, a strong one with high thinking for the hard shard — decided per shard at dispatch time against live pricing, not once for the whole task. |
|
|
49
|
-
| **Asks a bigger model only at a decision** | A hard plan, a design choice, a diagnosis that will not converge: the top-tier model is consulted once, as an advisor, and the everyday model does the work. Top-tier use is capped at 10% of dispatches. |
|
|
50
|
-
| **Keeps what it learned** | The advisor's answer is saved as a short strategy card. The next task of that kind gets the card, on the everyday model. |
|
|
51
|
-
| **Runs them in parallel** | Clean sessions, disjoint file ownership, so two agents cannot fight over the same file. |
|
|
52
|
-
| **Gates every phase** | `G0` plan approved → `G1` evidence complete → `G2` hypothesis valid → `G3` a test that actually fails → `G4` suite green → `G5` independent review passed → `G6` verified on the real surfaces. A phase does not start until the gate before it resolves. |
|
|
53
|
-
| **Proves it, then stops** | Completion claims need evidence: fresh local test output, not a subagent's summary. Then it checkpoints what it learned and cleans up its branches and worktrees. |
|
|
54
|
-
|
|
55
|
-
You get back a result that has been reviewed and verified, plus a written trail of what was decided
|
|
56
|
-
and why. If something is missing — a tool it needs, an ambiguous requirement — it says so up front
|
|
57
|
-
and asks you once, batched, instead of guessing or quietly doing less.
|
|
58
|
-
|
|
59
|
-
The rest of the command set:
|
|
45
|
+
## What you get
|
|
60
46
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/task-status # where the active work stands
|
|
65
|
-
/task-verify # re-run verification against acceptance evidence
|
|
66
|
-
/task-cancel # stop cleanly
|
|
67
|
-
/orchestrate # load the entrypoint without starting a task
|
|
47
|
+
**The right specialist for each part.** 16 roles, from a read-only code explorer to a database
|
|
48
|
+
migration author, a payment webhook specialist and an independent reviewer. Harder tasks fan out
|
|
49
|
+
wider: 2 agents for a moderate task, up to 4 for a critical one.
|
|
68
50
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
```
|
|
51
|
+
**Cost-effective by default.** Before every subagent starts, one command (`dispatch`) picks its
|
|
52
|
+
model tier, thinking level and model: the cheapest that clears the risk level of that part. It also
|
|
53
|
+
checks whether a saved checklist already covers this kind of work, and records the dispatch against
|
|
54
|
+
the 10% cap for top-tier models. Risk raises the reviewer, not the builder: a one-line change to a
|
|
55
|
+
refund rule is built cheaply and reviewed by a senior model.
|
|
75
56
|
|
|
76
|
-
|
|
57
|
+
**Top-tier models as consultants.** A frontier model (such as Fable or Astra) is asked for advice at a
|
|
58
|
+
plan, a design, a diagnosis or a synthesis. It answers in one short note; the everyday model does the
|
|
59
|
+
work.
|
|
77
60
|
|
|
78
|
-
|
|
79
|
-
|
|
61
|
+
**It learns from every expensive answer.** That note is saved as a strategy card: when this
|
|
62
|
+
situation appears, do these steps, avoid these traps, check this. The next similar task gets the card
|
|
63
|
+
on a cheap model. Cards earn trust on real work: three passes promote one, two failures retire it.
|
|
64
|
+
Learning never runs a task twice to compare, so it costs no extra calls.
|
|
80
65
|
|
|
81
|
-
|
|
66
|
+
**Memory that survives a closed laptop.** The plan, the evidence, each checkpoint and each decision
|
|
67
|
+
are written down as the task moves.
|
|
82
68
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
69
|
+
**It keeps itself on track.** Hooks in your IDE notice when the agent skips the plan, forgets a tool
|
|
70
|
+
it should use, or stops on "next, I'll…" while the task is still open, and send one short reminder.
|
|
71
|
+
Where reminders were ignored in real sessions, the rule is enforced instead: a subagent does not start
|
|
72
|
+
until `dispatch` has chosen its model, a run does not open until the skill is loaded, files are not
|
|
73
|
+
changed with no run open or while a mandatory tool is being ignored, and a run does not close
|
|
74
|
+
without its checks and, after a top-tier answer, its strategy card. Cost control is not something you have to ask for.
|
|
86
75
|
|
|
87
|
-
|
|
88
|
-
It
|
|
89
|
-
|
|
90
|
-
say so.
|
|
76
|
+
**It adapts to your project.** It reads your languages, frameworks, test commands and the rules in
|
|
77
|
+
your `AGENTS.md`. It tells the agent which MCP servers and skills your project has, so it uses yours
|
|
78
|
+
instead of a generic one.
|
|
91
79
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
building. And what the consultant decided is written down as a one-page checklist. The next time
|
|
95
|
-
the same kind of job comes up, the regular team follows the checklist and the consultant is not
|
|
96
|
-
called.
|
|
80
|
+
**On everywhere, once.** Install it once and it engages in every project you open. A project that
|
|
81
|
+
does not want it adds an empty `.orchestrator-off` file.
|
|
97
82
|
|
|
98
|
-
|
|
83
|
+
**Safe to try.** Every install is a dry run until you add `--apply`. Uninstall removes only the files
|
|
84
|
+
it wrote.
|
|
99
85
|
|
|
100
|
-
|
|
101
|
-
|---|---|
|
|
102
|
-
| **To stop babysitting** | One line in, a reviewed and verified result out. It plans, writes the subagent prompts, runs them in parallel and proves the work. When it needs you, it asks once, with all its questions together. If the agent ends its turn on "next, I'll…" while the task is still open, a hook sends it back to work (Claude Code and Codex). |
|
|
103
|
-
| **The right specialist on each part** | 16 roles, from a read-only code explorer to a database-migration author, a payment-webhook specialist and an independent reviewer. 9 kinds of task (bug, feature, incident, refactor, investigation, review, deploy, config, research), each with its own flow. Harder work fans out wider: 2 agents for a moderate task, 3 for a complex one, 4 for a critical one. |
|
|
104
|
-
| **A bill that matches the work** | Four model tiers and six thinking levels. Each part goes to the cheapest model that does it reliably, at the lowest thinking level that is enough. Risk raises the level of the reviewer and leaves the builder's alone: a one-line change to a refund rule is built cheaply and reviewed by a senior model. The registry carries 33 models from 11 providers with dated list prices, and routing follows the models your IDE actually exposes. |
|
|
105
|
-
| **Top-tier models used like consultants** | The frontier model advises at a plan, a design, a diagnosis or a synthesis, and the everyday model executes. The package counts every dispatch and holds frontier use to 10% of the last 100, with at most 3% spent on trying a small task on a big model to see whether it finds a different direction. |
|
|
106
|
-
| **A team that learns** | Each consult leaves a strategy card: when this situation appears, do this, then check that. One expensive run teaches the cheap model that kind of task. Cards earn trust on real work: three passes promote one, two failures retire it. Nothing is re-run for comparison, so learning costs no extra calls. |
|
|
107
|
-
| **Work that survives a closed laptop** | State is written to memory as the task moves: the plan, the evidence, each gate, what was decided and why. A new session resumes from that record. After a context compaction the open task is restated to the model. |
|
|
108
|
-
| **Text that does not read like a machine wrote it** | When a task writes or edits text for people — a landing page, an email, a store listing, release notes — it uses a copywriting skill by design: it works out whether you want new text, a rewrite or a one-line fix, keeps your voice and your language, and refuses to invent numbers or customers. Interface strings stay with the UI design skill. |
|
|
109
|
-
| **"Done" that means done** | Seven gates, in order. A failing test exists before the fix. Money, auth, migrations and 18 other risk areas get an independent reviewer that never shares the builder's history. Completion needs fresh test output, not an agent's summary. |
|
|
110
|
-
| **It switched on by default** | Install it once and it engages in every project you open. A project that does not want it says so with one empty file, `.orchestrator-off`. |
|
|
111
|
-
| **One way of working across tools** | Claude Code, Codex, OpenCode and Kilo run the same flow, rendered into each one's own commands and agents. |
|
|
112
|
-
| **A safe first try** | Every install is a dry run until you add `--apply`. Uninstall removes only the files the package wrote. No tool call is ever blocked. |
|
|
113
|
-
|
|
114
|
-
### What it does not do
|
|
86
|
+
## The tools it brings in
|
|
115
87
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
- A strategy card is checked by the next real task, so a bad card is found at its second use. Cards
|
|
119
|
-
are short, one per dispatch, and retired after two failures for that reason.
|
|
120
|
-
- Models released after the benchmark snapshot have prices and no measured score. They are placed by
|
|
121
|
-
list price and are kept out of critical review seats until they are measured.
|
|
122
|
-
- On OpenCode and Kilo the turn-end continuation is not available, and the headless advisor command
|
|
123
|
-
is unverified.
|
|
88
|
+
Each task type has tools that make it better. The orchestrator knows which ones fit, reminds the
|
|
89
|
+
agent to use them, and tells you when one is missing, with the exact install command.
|
|
124
90
|
|
|
125
|
-
|
|
91
|
+
| Tool | What it adds | When |
|
|
92
|
+
|---|---|---|
|
|
93
|
+
| [Superpowers](https://github.com/obra/superpowers) | Proven workflows: brainstorm before building, test first, debug by evidence, verify before "done". | Every task |
|
|
94
|
+
| [MemPalace](https://github.com/MemPalace/mempalace) | Long-term memory across sessions and projects. | Every task |
|
|
95
|
+
| Sequential Thinking | Short, written decision checkpoints for planning and diagnosis. | Every task that is not trivial |
|
|
96
|
+
| [Caveman](https://github.com/JuliusBrussee/caveman) | Short, complete messages between agents. Fewer tokens, same facts. | Every task |
|
|
97
|
+
| RTK | Compresses shell output before the model reads it. | Every shell command |
|
|
98
|
+
| [Context7](https://context7.com) | Current documentation for the exact library version you use. | Any code that uses a library |
|
|
99
|
+
| [Exa](https://exa.ai) | Web search with sources, for anything recent or external. | Any external fact, every research task |
|
|
100
|
+
| [Serena](https://oraios.github.io/serena) | Finds and edits code by symbol: a definition, every caller, a rename across files. Reads far less to find the same thing. | Any task on code |
|
|
101
|
+
| [Impeccable](https://impeccable.style) | A design pass before building and a polish pass before review. | Any UI work |
|
|
102
|
+
| [Copywriting skills](https://github.com/coreyhaines31/marketingskills) | Clear text for people, with no invented claims. | Copy, emails, docs, release notes |
|
|
103
|
+
| Playwright | Reproduces and confirms a UI bug in a real browser. | UI bugs |
|
|
104
|
+
|
|
105
|
+
A tool you do not want is skipped with one command, `llm-orchestrator tools skip <tool>`. The work
|
|
106
|
+
continues and every report says what was skipped. Install routes and the rules behind each reminder
|
|
107
|
+
are in the [reference](docs/REFERENCE.md#the-8-mandatory-core-tools).
|
|
126
108
|
|
|
127
|
-
|
|
109
|
+
## How it works
|
|
128
110
|
|
|
129
|
-
|
|
111
|
+
1. **Classify.** Which of nine task types is this? Each has its own plan and checkpoints.
|
|
112
|
+
2. **Plan.** Split the work into parts with clear owners, so no two agents edit the same file.
|
|
113
|
+
3. **Route.** For each part: model, thinking level, a saved strategy card if one exists, and the
|
|
114
|
+
budget check.
|
|
115
|
+
4. **Build and check.** Seven checkpoints, from "plan approved" to "verified on the real system".
|
|
116
|
+
An independent reviewer checks anything that touches money, auth, data migrations or security.
|
|
117
|
+
5. **Prove and remember.** Fresh test output, then a memory checkpoint and a strategy card if a
|
|
118
|
+
top-tier model helped.
|
|
130
119
|
|
|
131
|
-
|
|
120
|
+
What one routing decision looks like:
|
|
132
121
|
|
|
122
|
+
```text
|
|
123
|
+
dispatch: S T2 — claude-sonnet-5-5 (effort medium), role backend-fixer
|
|
124
|
+
why: default routing (standard_implementation) → S T2; agent default for backend-fixer → S T2
|
|
125
|
+
learning: normal — no stored strategy and no trigger for the advisor; run as routed
|
|
126
|
+
budget: recorded as task; frontier 0 in window (0.0% of cap 10%)
|
|
127
|
+
next: pass the model and the thinking level in the dispatch itself; a subagent does not inherit them
|
|
133
128
|
```
|
|
134
|
-
/plugin marketplace add tbogdan/llm-orchestrator
|
|
135
|
-
/plugin install llm-orchestrator@tbogdan
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
That registers the `orchestrate-core` skill straight from this repository, and `/plugin update
|
|
139
|
-
llm-orchestrator@tbogdan` keeps it current. The plugin also ships the native commands (`/task`,
|
|
140
|
-
`/task-plan`, `/task-status`, `/task-cancel`, `/task-verify`, `/incident-*`, `/orchestrate`),
|
|
141
|
-
namespaced by the plugin as `/llm-orchestrator:task` and so on; the bare `/task` works too while no
|
|
142
|
-
other command claims the name — but a CLI install (below) also writes a project
|
|
143
|
-
`.claude/commands/task.md`, and once both are present the bare `/task` resolves ambiguously between
|
|
144
|
-
them, so pick one install path, or always use the namespaced `/llm-orchestrator:task`. It does not
|
|
145
|
-
write project files. If you also want `.claude/commands/*.md`, the per-role agent files under
|
|
146
|
-
`.claude/agents/` (one per role in `registries/agent-roles.json`, written only with
|
|
147
|
-
`--with-agents`) and the `@AGENTS.md` line in `CLAUDE.md`, run the CLI install below with
|
|
148
|
-
`--harness claude`.
|
|
149
129
|
|
|
150
|
-
|
|
130
|
+
## Quick start
|
|
151
131
|
|
|
152
|
-
|
|
132
|
+
**Claude Code.** Type these two in any session:
|
|
153
133
|
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
npx llm-orchestrator install --project /path/to/app --harness opencode --apply
|
|
158
|
-
npx llm-orchestrator install --project /path/to/app --harness kilo --apply
|
|
159
|
-
npx llm-orchestrator install --project /path/to/app --harness claude --apply
|
|
160
|
-
npx llm-orchestrator doctor --project /path/to/app --harness <harness>
|
|
134
|
+
```
|
|
135
|
+
/plugin marketplace add tbogdan/llm-orchestrator
|
|
136
|
+
/plugin install llm-orchestrator@tbogdan
|
|
161
137
|
```
|
|
162
138
|
|
|
163
|
-
|
|
164
|
-
`llm-orchestrator ...` directly.
|
|
139
|
+
Keep it current with `/plugin update llm-orchestrator@tbogdan`.
|
|
165
140
|
|
|
166
|
-
|
|
141
|
+
**Codex, OpenCode, Kilo (and Claude Code project files).** Node 22+:
|
|
167
142
|
|
|
168
143
|
```sh
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
144
|
+
npx llm-orchestrator init --project /path/to/app # read-only: what is missing
|
|
145
|
+
npx llm-orchestrator install --global --harness codex,opencode,kilo --apply # once, for every project
|
|
146
|
+
npx llm-orchestrator install --project /path/to/app --harness codex --apply # or one project
|
|
147
|
+
npx llm-orchestrator doctor --project /path/to/app --harness codex # check it
|
|
173
148
|
```
|
|
174
149
|
|
|
175
|
-
### Which one to use
|
|
176
|
-
|
|
177
150
|
| Harness | Fastest install | What it gives you | Reload |
|
|
178
151
|
| --- | --- | --- | --- |
|
|
179
152
|
| Claude Code | `/plugin install llm-orchestrator@tbogdan` | the `orchestrate-core` skill, `/llm-orchestrator:task` and the other commands, the role agents | new session |
|
|
@@ -182,561 +155,45 @@ node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness>
|
|
|
182
155
|
| OpenCode | `npx llm-orchestrator install --harness opencode --apply` | `.opencode/command(s)/*.md`, skill | restart `opencode` |
|
|
183
156
|
| Kilo | `npx llm-orchestrator install --harness kilo --apply` | `.kilo/command(s)/*.md`, skill | restart Kilo |
|
|
184
157
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
## Let an agent install it for you
|
|
188
|
-
|
|
189
|
-
Paste the block below into any capable coding agent (Claude Code, Codex, OpenCode, Kilo). It
|
|
190
|
-
installs the orchestrator itself without asking, then **stops and asks you once** before touching
|
|
191
|
-
anything else — installing third-party tools on someone's machine is not a decision an agent gets to
|
|
192
|
-
make silently.
|
|
193
|
-
|
|
194
|
-
````text
|
|
195
|
-
Install llm-orchestrator in this project, then report back.
|
|
196
|
-
|
|
197
|
-
STEP 1 — install the orchestrator (do this without asking):
|
|
198
|
-
- On Claude Code: run `/plugin marketplace add tbogdan/llm-orchestrator` then
|
|
199
|
-
`/plugin install llm-orchestrator@tbogdan`.
|
|
200
|
-
- On any other harness, or if you also want the project files (commands, agent, AGENTS.md
|
|
201
|
-
bindings): run `npx llm-orchestrator install --project . --harness <harness> --apply`,
|
|
202
|
-
where <harness> is one of codex | claude | opencode | kilo.
|
|
203
|
-
|
|
204
|
-
STEP 2 — find the gaps (read-only, writes nothing):
|
|
205
|
-
Run `npx llm-orchestrator init --project .`
|
|
206
|
-
It prints each of the 8 mandatory core tools as [present] or [missing], with the exact
|
|
207
|
-
install command for each missing one, and whether AGENTS.md has the orchestration
|
|
208
|
-
bindings section.
|
|
209
|
-
|
|
210
|
-
STEP 3 — ASK ME BEFORE INSTALLING ANYTHING ELSE. Do not skip this step.
|
|
211
|
-
Use your harness's native question mechanism (AskUserQuestion on Claude Code,
|
|
212
|
-
request_user_input on Codex, question on OpenCode, ask_followup_question on Kilo).
|
|
213
|
-
Ask once, batched, and include in the question:
|
|
214
|
-
- the list of missing tools,
|
|
215
|
-
- the exact command you would run for each,
|
|
216
|
-
- that `brew install rtk` needs Homebrew and that the `/plugin` lines only work on
|
|
217
|
-
Claude Code,
|
|
218
|
-
- that declining is fine: the core still runs, in declared degraded mode.
|
|
219
|
-
Then install exactly the ones I approve, and nothing I did not approve.
|
|
220
|
-
|
|
221
|
-
STEP 4 — verify and report:
|
|
222
|
-
Run `npx llm-orchestrator doctor --project . --harness <harness>` and show me the output.
|
|
223
|
-
Tell me plainly which tools are still missing and which gates are therefore degraded.
|
|
224
|
-
Do not claim the install succeeded without showing the doctor output.
|
|
225
|
-
````
|
|
226
|
-
|
|
227
|
-
The same shape works as a standing instruction in `AGENTS.md`/`CLAUDE.md` if you want new sessions
|
|
228
|
-
to self-install. Keep step 3 intact if you do — an agent that installs MCP servers and Homebrew
|
|
229
|
-
formulae unprompted is a worse problem than a missing gate.
|
|
230
|
-
|
|
231
|
-
## Why
|
|
232
|
-
|
|
233
|
-
Ask an agent to fix a bug and you usually get one long session: it reads a bit, guesses, edits,
|
|
234
|
-
declares victory, and you find out later that nothing was verified. Ask it to parallelize and you
|
|
235
|
-
spend your afternoon writing subagent prompts by hand, then merging the mess when two of them edited
|
|
236
|
-
the same file.
|
|
237
|
-
|
|
238
|
-
The work that makes the difference is the same every time — classify the task, gather evidence
|
|
239
|
-
before theorizing, write a failing test first, split what can run in parallel, keep agents out of
|
|
240
|
-
each other's files, review independently, verify before claiming done, record what was learned. It
|
|
241
|
-
is mechanical, and nobody wants to re-type it into every prompt.
|
|
242
|
-
|
|
243
|
-
`llm-orchestrator` makes that flow the default. It ships as a skill your agent must load before it
|
|
244
|
-
does anything, so the process runs whether or not you remembered to ask for it, and it is written
|
|
245
|
-
once in portable form instead of being copy-pasted and left to drift across every project's
|
|
246
|
-
`AGENTS.md` and every harness's config.
|
|
247
|
-
|
|
248
|
-
## How it works
|
|
249
|
-
|
|
250
|
-
1. **Discover** — `lib/project-discovery.mjs` reads the project (languages, frameworks, domains, commands, and any `## Orchestration bindings (project)` section in AGENTS.md) into a `ProjectProfile`.
|
|
251
|
-
2. **Inventory** — the running session reports which tools/MCPs/skills it actually has, with permission and evidence, into a `ToolInventory`. Nothing is inferred from config files; only live, observed access counts.
|
|
252
|
-
3. **Resolve** — `lib/capability-resolver.mjs` combines the task, the project profile, the tool inventory, the registries (`registries/*.json`) and any explicit user decisions into a `CapabilityPlan`: which capabilities are mandatory/required/optional, which concrete tool binds each one, what's missing, and whether the plan is running in declared degraded mode.
|
|
253
|
-
4. **Dispatch** — `lib/dispatch-contract.mjs` narrows that plan into a `DispatchContract` for each bounded subagent shard: only the facts, bindings and acceptance conditions that shard needs.
|
|
254
|
-
5. **Render** — `adapters/*` turn the plan into native artifacts per harness (Codex prompts/AGENTS.md, Claude Code commands/agents/skills, OpenCode/Kilo commands/agents), installed atomically and idempotently by `lib/installation.mjs`.
|
|
255
|
-
|
|
256
|
-
### Obligation levels
|
|
257
|
-
|
|
258
|
-
- **Mandatory** — skipping it makes the work invalid, not merely worse. It is a gate. If it cannot run, the orchestrator states the gap *first*, recommends installation once (exact command), and only after an explicit user refusal continues in **declared degraded mode** — every plan, handoff and final report carries a `degraded:` line naming the missing item. Silent fallback is a violation.
|
|
259
|
-
- **Optional** — used when its stated trigger holds. Judgment call, but the trigger is not.
|
|
260
|
-
- **Available** — exists, costs nothing to ignore, reach for it when it fits.
|
|
261
|
-
|
|
262
|
-
### The 8 mandatory core tools
|
|
263
|
-
|
|
264
|
-
These apply to every task, everywhere, regardless of harness (see `registries/core-profile.json`):
|
|
265
|
-
|
|
266
|
-
| # | Capability | Preferred implementation | Why it's a gate |
|
|
267
|
-
|---|---|---|---|
|
|
268
|
-
| 1 | `orchestration.bootstrap` | using-superpowers | The orchestration entrypoint must load before any planning or execution. |
|
|
269
|
-
| 2 | `memory.recall` | mempalace | Prior session/task memory must be recalled before planning. |
|
|
270
|
-
| 3 | `memory.checkpoint` | mempalace | A memory checkpoint is required at session end and after any non-obvious finding. |
|
|
271
|
-
| 4 | `reasoning.checkpoints` | sequential-thinking | Nontrivial planning/diagnosis needs recorded evidence checkpoints. |
|
|
272
|
-
| 5 | `communication.concise` | caveman | Concise, complete contracts, not padded prose. |
|
|
273
|
-
| 6 | `shell.rtk` | rtk | Shell phases run through the configured output-reduction wrapper without changing command semantics. |
|
|
274
|
-
| 7 | `docs.current` | context7 | Version-sensitive or uncertain library/platform work needs current, versioned documentation — even for familiar libraries. |
|
|
275
|
-
| 8 | `research.retrieve` | exa (exa-search) | External/current facts, vendor behavior not in local docs, research-type tasks, and any claim about versions/prices/APIs need retrieved sources, not recalled ones. |
|
|
276
|
-
|
|
277
|
-
Four more gates are equally mandatory, at their own trigger rather than on every turn: `verification.checks` (verification-before-completion, before any completion claim), `skill.check` (before any action, check whether a skill already covers it), `tool.discovery` (search before declaring a tool absent), and `user.native_question` (every question to the user goes through the harness's native mechanism, batched into one question — `AskUserQuestion` on Claude Code, `request_user_input` / `update_plan` on Codex, `question` on OpenCode, `ask_followup_question` on Kilo; see `policies/questions.md`).
|
|
278
|
-
|
|
279
|
-
One more is mandatory by domain — `D1`, `ui.design_system` → [Impeccable](https://impeccable.style) (`impeccable`, Apache-2.0; `registries/core-profile.json` order 13, `domain_conditional: true`). It applies to every task whose pre-evaluation domain is `FRONTEND`, or that creates, changes, reviews or audits UI or visual design: `/impeccable shape` (or `critique`) before building — `/impeccable init` first when the project has no `PRODUCT.md` — and `/impeccable audit` + `/impeccable polish` before G5; each `workflows/<type>.md` names the command for each phase. `ui-ux-pro-max`, `frontend-design`, `design-system`, `ui-styling` and `web-design-guidelines` stay available as complements — they never substitute for it silently, and the resolver will not bind them in its place. A missing Impeccable follows the same portability rule as the core tools: gap declared first, install recommended once, degraded only after an explicit refusal.
|
|
280
|
-
|
|
281
|
-
#### Installing the core tools
|
|
282
|
-
|
|
283
|
-
`llm-orchestrator init` reports which of these are missing and prints the matching command. The
|
|
284
|
-
routes below are the ones it prints — each was checked against the published source, because three
|
|
285
|
-
of them are not what the obvious guess would be: `rtk` on crates.io is an unrelated "Rust Type Kit",
|
|
286
|
-
and `mempalace-mcp` and `superpowers` are binaries their plugin ships rather than npm packages you
|
|
287
|
-
can `npx`.
|
|
288
|
-
|
|
289
|
-
| Capability | Tool | Install |
|
|
290
|
-
|---|---|---|
|
|
291
|
-
| `orchestration.bootstrap`, `skill.check`, `verification.checks` | using-superpowers | `/plugin marketplace add anthropics/claude-plugins-official` then `/plugin install superpowers@claude-plugins-official` |
|
|
292
|
-
| `memory.recall`, `memory.checkpoint` | mempalace | `/plugin marketplace add MemPalace/mempalace` then `/plugin install mempalace@mempalace` |
|
|
293
|
-
| `reasoning.checkpoints` | sequential-thinking | `claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking` |
|
|
294
|
-
| `communication.concise` | caveman | `/plugin marketplace add JuliusBrussee/caveman` then `/plugin install caveman@caveman` |
|
|
295
|
-
| `shell.rtk` | rtk | `brew install rtk` (Homebrew core; **not** `cargo install rtk`) |
|
|
296
|
-
| `docs.current` | context7 | `claude mcp add context7 -- npx -y @upstash/context7-mcp` |
|
|
297
|
-
| `research.retrieve` | exa | `claude mcp add exa -- npx -y exa-mcp-server` |
|
|
298
|
-
| `tool.discovery` | harness-native tool search | built in, nothing to install |
|
|
299
|
-
| `content.copywriting` (text written for people; recommended, never blocking) | copywriting + copy-editing | `npx skills add coreyhaines31/marketingskills` (MIT; the whole pack, for the harnesses it detects — also offered as a Claude Code and Codex plugin marketplace). Complement for README and release-note prose: `npx skills add blader/humanizer` (MIT) |
|
|
300
|
-
| `ui.design_system` (frontend/UI tasks) | impeccable | `npx impeccable install` from the project root (detects Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Copilot, … and installs into each; refresh with `npx impeccable update`), or on Claude Code `/plugin marketplace add pbakaus/impeccable` then `/plugin install impeccable@impeccable` (skill id `impeccable:impeccable`). A harness the installer does not detect (Kilo is not in its published list) is a declared gap. Start a new project with `/impeccable init` |
|
|
301
|
-
|
|
302
|
-
The `/plugin ...` lines are Claude Code commands, typed in a session. The `claude mcp add ...` lines
|
|
303
|
-
are shell commands; on Codex, OpenCode or Kilo, register the same MCP server through that harness's
|
|
304
|
-
own config instead — the server package and arguments are identical.
|
|
305
|
-
|
|
306
|
-
Every one of these is optional in the sense that the core still runs without it — but it then runs
|
|
307
|
-
in **declared degraded mode**, and every plan and report says so. That is the design, not a
|
|
308
|
-
workaround.
|
|
309
|
-
|
|
310
|
-
`init` reports a missing `impeccable` on a project whose discovery finds a UI framework (the `frontend` domain: Vue, Nuxt, React, Next, Svelte, Angular, Solid, Preact, Astro, Lit). `doctor` reports it, with the install hint, when the task it is asked about triggers it — `doctor --task feature --domain FRONTEND`, or a UI signal such as `--signals web-ui`.
|
|
311
|
-
|
|
312
|
-
The first eight rows of the core table above are `registries/core-profile.json` orders 1–8, in that order. The same eight, in the same order, appear in `SKILL.md`, `policies/capabilities.md` and the `task` command checklist, and `lib/first-run.mjs` checks exactly these for presence — `tests/coherence.test.mjs` fails if any of those six lists drifts.
|
|
313
|
-
|
|
314
|
-
### Registries
|
|
315
|
-
|
|
316
|
-
- `registries/capabilities.json` — the full capability vocabulary.
|
|
317
|
-
- `registries/core-profile.json` — the always-on mandatory/required core.
|
|
318
|
-
- `registries/task-mappings.json` — per-task-type (feature, bug, incident, refactor, investigation, review, deployment, config, research...) mandatory/optional/available obligations.
|
|
319
|
-
- `registries/preferred-tools.json` — concrete tool bindings (MCP, skill, CLI, workflow, native fallback, agent role) per capability, with install hints.
|
|
320
|
-
- `registries/agent-roles.json` — the specialist agent roster, their capabilities/skills/MCPs, and the RO/RW/ORCHESTRATOR permission profiles.
|
|
321
|
-
- `registries/learning.json` — the frontier cap and exploration share, when the advisor is consulted, and the shape and lifecycle of strategy cards.
|
|
322
|
-
|
|
323
|
-
Project-specific bindings live in the consuming project's `AGENTS.md`, under `## Orchestration bindings (project)`; they can only **add or tighten** obligations, never loosen a core mandatory one.
|
|
324
|
-
|
|
325
|
-
## Install for your IDE
|
|
326
|
-
|
|
327
|
-
Dry runs by default — inspect conflicts, then repeat with `--apply`. Existing user-owned files are never silently overwritten.
|
|
328
|
-
|
|
329
|
-
```sh
|
|
330
|
-
npx llm-orchestrator install --project /path/to/app --harness codex
|
|
331
|
-
npx llm-orchestrator install --project /path/to/app --harness claude-code
|
|
332
|
-
npx llm-orchestrator install --project /path/to/app --harness opencode
|
|
333
|
-
npx llm-orchestrator install --project /path/to/app --harness kilo
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
`npx llm-orchestrator` (or the bare `llm-orchestrator` after `npm install -g llm-orchestrator`) is
|
|
337
|
-
the entry point. From a clone the same commands are `node bin/llm-orchestrator.mjs ...`; every
|
|
338
|
-
example below spells the clone form, and the npm form is identical minus the `node bin/…` prefix.
|
|
339
|
-
`node bin/install.mjs ...` (same options) still works underneath it.
|
|
158
|
+
Prefer to let your agent do it? The [reference](docs/REFERENCE.md#let-an-agent-install-it-for-you)
|
|
159
|
+
has a prompt that installs the orchestrator and asks you once before installing anything else.
|
|
340
160
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
`--package-root <dir>` (where the package's own files are read from) and `--state-root <dir>` (where the installation manifest is kept; defaults to `$XDG_STATE_HOME/portable-orchestrator` or `~/.local/state/portable-orchestrator`) exist on `install`, `uninstall` and `init` for testing and for non-standard layouts — you normally leave both alone.
|
|
344
|
-
|
|
345
|
-
Multiple harnesses may share one explicitly enabled skill root using a comma-separated `--harness` value; when you don't pass `--skills-root` in that case it defaults to the shared `~/.agents/skills`, and *you* must ensure every selected harness is actually pointed at that root (see "Several harnesses at once" below). Add `--with-agents` to also render one agent file per role in `registries/agent-roles.json` under the per-harness agent directory (`.claude/agents/`, `.opencode/agent/`, `.kilo/agent/`; no-op for Codex). Add `--link-claude` to have the installer create the `~/.claude/skills/orchestrate-core -> <skills-root>/orchestrate-core` symlink itself when Claude is one of several harnesses sharing a non-default root (idempotent; it never replaces a real directory). Restart/reload a session whose skill catalog is cached.
|
|
346
|
-
|
|
347
|
-
Each rendered agent carries native frontmatter for its harness: Claude Code gets `disallowedTools: Write, Edit, NotebookEdit` on an edit-denied role (read-only roles and the orchestrator); OpenCode and Kilo get `mode: subagent` (`primary` for the orchestrator) and `permission: edit: deny` on the same roles. Edit denial does not sandbox shell writes: it removes the edit tools only, and read-only roles keep Bash for inspection; the rendered Permissions section tells them never to write through the shell, and a hard boundary needs the harness's own shell permissions. On OpenCode and Kilo, the rendered `general.md` and `explore.md` share their names with the built-in `general` and `explore` subagents and replace their prompts project-wide. That is intended: the role ids are what the flow gate classifies dispatches by, and the replacements stay bounded (`general`, RW within its owned files) or read-only (`explore`).
|
|
348
|
-
|
|
349
|
-
**Install once, for every project — `--global`.** A project install steers one project. `--global`
|
|
350
|
-
takes no `--project`: it writes to the harness's own user-scope configuration, so orchestrate-core
|
|
351
|
-
engages in every project you open with that harness, with nothing to add per project.
|
|
352
|
-
|
|
353
|
-
```sh
|
|
354
|
-
npx llm-orchestrator install --global --harness codex # dry run: prints the plan
|
|
355
|
-
npx llm-orchestrator install --global --harness codex --apply
|
|
356
|
-
npx llm-orchestrator uninstall --global --harness codex --apply # that harness only
|
|
357
|
-
npx llm-orchestrator uninstall --global --apply # everything a global install wrote
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
| Harness | What `--global` writes (relative to your home directory) |
|
|
361
|
-
| --- | --- |
|
|
362
|
-
| Codex | a managed span in `.codex/AGENTS.md`; marked flow-hook groups merged into `.codex/hooks.json` (trust them once in `/hooks`). `CODEX_HOME` replaces `.codex` when set |
|
|
363
|
-
| Claude Code | a managed span in `.claude/CLAUDE.md`; marked flow-hook groups merged into `.claude/settings.json` — skipped, and listed under `skipped`, when the llm-orchestrator plugin is enabled, because the plugin already ships those hooks and both would fire |
|
|
364
|
-
| OpenCode | a managed span in `.config/opencode/AGENTS.md`; the flow plugin at `.config/opencode/plugins/orchestrate-flow.js`. `XDG_CONFIG_HOME` replaces `.config` when set, for Kilo too |
|
|
365
|
-
| Kilo | a managed span in `.config/kilo/AGENTS.md` (created when absent); no hooks — no user-scope plugin directory is verified for Kilo, so the plan lists it under `skipped` and a project install adds them per project |
|
|
366
|
-
|
|
367
|
-
The runtime is copied to the skills root as usual, since the hooks call it. Everything written is
|
|
368
|
-
delimited and recorded in one manifest per home directory, which also records the skills root: a
|
|
369
|
-
second run changes nothing, a later run with more harnesses extends the same install (and keeps
|
|
370
|
-
that skills root unless you pass `--skills-root`), and `uninstall --global` removes exactly those
|
|
371
|
-
spans, hook groups and files — for the harnesses named, or all of them when `--harness` is omitted
|
|
372
|
-
— leaving the rest of each file byte for byte. The runtime copy under the skills root stays, as on a project uninstall
|
|
373
|
-
(`retained_shared_runtime` lists it), because other installs may share it. A file this package did not write is never replaced — an existing
|
|
374
|
-
`orchestrate-flow.js` of your own, or a hooks file that is not plain JSON, is reported under
|
|
375
|
-
`conflicts`, and `conflict_reasons` says why for each path. A harness in conflict is skipped whole
|
|
376
|
-
and listed under `skipped`; the harnesses without one are applied (`applied_harnesses`), and the
|
|
377
|
-
exit status is non-zero only when nothing could be applied. Move the file away and run the command
|
|
378
|
-
again to add the skipped harness. `--no-flow-hooks` installs the instruction spans alone, but it
|
|
379
|
-
applies to the whole install, not to one harness. A symbolic link of your own (a dotfile manager's
|
|
380
|
-
`~/.claude`, a linked `CLAUDE.md`) is written through, never replaced, as long as it resolves to a
|
|
381
|
-
regular file or directory inside the install root; one that leaves it is a conflict. A global
|
|
382
|
-
install only writes inside the home directory, so a `CODEX_HOME` or `XDG_CONFIG_HOME` outside it
|
|
383
|
-
skips that harness. `--home <dir>` says where user scope is (default: your home directory) and rebases the
|
|
384
|
-
default skills, state and Codex prompts roots under it — for tests and non-standard layouts; with
|
|
385
|
-
it, `CODEX_HOME` and `XDG_CONFIG_HOME` are ignored.
|
|
386
|
-
|
|
387
|
-
A project opts out of a global install — and of the Claude Code plugin — with any one of: a
|
|
388
|
-
`.orchestrator-off` file in its root, a line `orchestrate-core: off` in its `AGENTS.md` or
|
|
389
|
-
`CLAUDE.md`, or `LLM_ORCHESTRATOR_OFF=1` in the environment (see "Flow adherence").
|
|
390
|
-
|
|
391
|
-
### Step by step
|
|
392
|
-
|
|
393
|
-
Same five steps for every harness; only the skills root and the reload differ.
|
|
394
|
-
|
|
395
|
-
1. **Get the package** (Node 22+) — either straight from npm:
|
|
396
|
-
```sh
|
|
397
|
-
npx llm-orchestrator --help # or: npm install -g llm-orchestrator
|
|
398
|
-
```
|
|
399
|
-
or from a clone, when you want to read or pin the source:
|
|
400
|
-
```sh
|
|
401
|
-
git clone https://github.com/tbogdan/llm-orchestrator.git
|
|
402
|
-
cd llm-orchestrator && npm test
|
|
403
|
-
```
|
|
404
|
-
2. **Dry run** against your application — nothing is written, conflicts are listed:
|
|
405
|
-
```sh
|
|
406
|
-
node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness>
|
|
407
|
-
```
|
|
408
|
-
3. **Apply** the same command with `--apply`. Re-running is idempotent; a file you edited by hand is reported as a conflict, never overwritten.
|
|
409
|
-
4. **Add project bindings** to `/path/to/app/AGENTS.md` (template below, or run `init --apply` to append it automatically when the section is missing). `install` reports `bindings.present` and, when false, the exact `init --apply` command. The core reads this section on every task; without it the core still runs with its generic matrix.
|
|
410
|
-
5. **Verify and reload**: `node bin/llm-orchestrator.mjs doctor --project /path/to/app --harness <harness>` must list every mandatory core tool as `present` (or as a declared gap with an install hint). Then reload the harness session so the skill catalog is refreshed.
|
|
411
|
-
|
|
412
|
-
`node bin/llm-orchestrator.mjs init --project /path/to/app` runs steps 2, 4 (report only) and 5 together, before you commit to a harness — it proposes `--harness` from what it detects, shows the same dry-run plan, and lists exactly which of the 8 mandatory tools are missing with an install command for each.
|
|
413
|
-
|
|
414
|
-
| Harness | `--harness` | `--skills-root` | Where things land | Reload |
|
|
415
|
-
| --- | --- | --- | --- | --- |
|
|
416
|
-
| Codex | `codex` | `~/.agents/skills` (default) | `AGENTS.md` span, `.agents/skills/orchestrate/SKILL.md`, `~/.codex/prompts/*.md` | new Codex session |
|
|
417
|
-
| Claude / Claude Code | `claude` | `~/.claude/skills` (or symlink it to `~/.agents/skills/orchestrate-core`) | `.claude/commands/*.md`, `CLAUDE.md` gets `@AGENTS.md`, `--with-agents` → one agent file per role under `.claude/agents/` | `/reload` or new session |
|
|
418
|
-
| OpenCode | `opencode` | `~/.config/opencode/skills` | `.opencode/commands/*.md`, `--with-agents` → one agent file per role under `.opencode/agent/` | restart `opencode` |
|
|
419
|
-
| Kilo | `kilo` | `~/.kilo/skills` | `.kilo/commands/*.md`, `--with-agents` → one agent file per role under `.kilo/agent/` | restart Kilo / `kilo debug skill --pure` to confirm discovery |
|
|
420
|
-
|
|
421
|
-
Several harnesses at once: `--harness codex,claude,opencode,kilo --skills-root ~/.agents/skills`, then make sure each IDE is pointed at that root (Claude Code accepts a personal skill-folder symlink; OpenCode and Kilo need the root enabled in their config).
|
|
422
|
-
|
|
423
|
-
#### Project bindings template (paste into AGENTS.md)
|
|
424
|
-
|
|
425
|
-
```markdown
|
|
426
|
-
## Orchestration bindings (project)
|
|
427
|
-
|
|
428
|
-
Generic rules live in `orchestrate-core`; this section only adds or tightens.
|
|
429
|
-
|
|
430
|
-
**Mandatory on every task (project):**
|
|
431
|
-
|
|
432
|
-
| What | When |
|
|
433
|
-
|---|---|
|
|
434
|
-
| `<your compat / schema / lint check command>` | any API or schema change |
|
|
435
|
-
|
|
436
|
-
**MCP servers confirmed live:** `context7`, `mempalace`, `<your MCPs>`. If a call fails, say the server is unreachable — never silently fall back.
|
|
437
|
-
|
|
438
|
-
**Per task type (Mandatory | Optional (trigger) | Available):**
|
|
439
|
-
|
|
440
|
-
| Task type | Mandatory | Optional | Available |
|
|
441
|
-
|---|---|---|---|
|
|
442
|
-
| FEATURE | failing test first | `context7` (any library API) | … |
|
|
443
|
-
| BUG_FIX | reproduce before fixing | `playwright` (UI-visible) | … |
|
|
444
|
-
|
|
445
|
-
**Risk floors (override upward only):** `<area>` → implementation `<tier>`, independent review `<tier>`.
|
|
446
|
-
|
|
447
|
-
**Agent defaults:** `<role>` → `<tier>` (W T0–T1 / S T2 / S T3 / X T3 …).
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
### Per-harness notes
|
|
451
|
-
|
|
452
|
-
- **Codex** reads `AGENTS.md` plus `.agents/skills/*/SKILL.md`; custom prompts install to `~/.codex/prompts/*.md` (or `--codex-prompts-root <dir>`); subagents dispatch via `spawn_agent`, plans via `update_plan`.
|
|
453
|
-
- **Claude Code** installs `.claude/commands/*.md`, `.claude/agents/*.md` (with `--with-agents`), `.claude/skills/*/SKILL.md`, and adds `@AGENTS.md` to `CLAUDE.md`; subagents dispatch via the Agent tool.
|
|
454
|
-
- **OpenCode** installs `.opencode/command(s)/*.md`, `.opencode/agent/*.md` (with `--with-agents`), skills under `~/.config/opencode/skills`; subagents dispatch via the task tool. Sequential Thinking's permission key is `sequentialthinking_sequentialthinking`.
|
|
455
|
-
- **Kilo** installs `.kilo/command(s)/*.md`, `.kilo/agent/*.md` (with `--with-agents`), skills under `~/.kilo/skills`/`.kilo/skills`; Agent Manager worktrees live under `.kilo/worktrees/`. Same Sequential Thinking permission key as OpenCode.
|
|
456
|
-
|
|
457
|
-
### Flow adherence
|
|
458
|
-
|
|
459
|
-
Agents tend to skip a mandatory skill out of habit — they see a quick lookup, reach for `grep` or
|
|
460
|
-
`ssh`, and never classify or plan. The installer adds small hooks that steer instead of relying on
|
|
461
|
-
more instructions:
|
|
462
|
-
|
|
463
|
-
- When the main agent starts working on a prompt with no orchestrate-core run open, the model gets
|
|
464
|
-
one sentence (`additionalContext`, invisible in your conversation) pointing it back at the flow:
|
|
465
|
-
classify, then `llm-orchestrator run start --type <TYPE>`, or declare the task trivial with
|
|
466
|
-
`llm-orchestrator run start --trivial "<reason>"`. Once per prompt, never for subagents, never for
|
|
467
|
-
reading the orchestration instructions.
|
|
468
|
-
- The first prompt of a session gets one more sentence, once per session: orchestrate-core is
|
|
469
|
-
mandatory here, load the skill (Claude Code: the Skill tool, `orchestrate-core` or the plugin's
|
|
470
|
-
`llm-orchestrator:orchestrate-core`; elsewhere the installed skill or the bridge), classify, open a
|
|
471
|
-
run — and how a project opts out. It arrives on `SessionStart` or `UserPromptSubmit`, whichever
|
|
472
|
-
fires first, and never again once the skill was loaded in the session. Until then the work
|
|
473
|
-
reminder above also says to load the skill first.
|
|
474
|
-
- **No tool call is ever blocked.** The handler (`llm-orchestrator gate`) has no deny path, fails
|
|
475
|
-
open on any error, and is wrapped so a missing runtime is a silent no-op.
|
|
476
|
-
- **One thing is decided, at the end of a turn.** When a typed run is still open and the model's
|
|
477
|
-
last message announces more work instead of doing it ("Next, I'll…", "I will now…"), the `Stop`
|
|
478
|
-
hook answers `decision: "block"` with one sentence: continue, or ask the user explicitly, or
|
|
479
|
-
verify and close the run. It never fires when the message ends with a question to you, when the
|
|
480
|
-
model says it is waiting on background work or the harness reports background tasks, for a
|
|
481
|
-
subagent, for a trivial run or with no run open. At most two continuations per prompt. Only the
|
|
482
|
-
end of the message is classified and nothing of it is stored; the audit counts
|
|
483
|
-
`forced_continues`. The allowance is restored by a tool call, so only a model that keeps talking
|
|
484
|
-
without working is bounded; work that waits for your approval ("once you approve…") and quoted or
|
|
485
|
-
code text never count. `LLM_ORCHESTRATOR_NO_CONTINUE=1` switches it off. Claude Code and Codex honour
|
|
486
|
-
it; OpenCode and Kilo have no documented way to continue a turn, so there it is not sent.
|
|
487
|
-
- Each project keeps a ledger in `.orchestrator-run/` (self-gitignored): ids, task types, counts
|
|
488
|
-
and timestamps only — never prompts, tool inputs or file contents. `doctor` reports it under
|
|
489
|
-
`flow.adherence`: runs, trivial declarations, tasks that skipped the flow, runs started outside
|
|
490
|
-
it, runs opened without a PlanShard count, runs that planned several shards but started no
|
|
491
|
-
subagents, and runs still open.
|
|
492
|
-
- Trivial is the narrow exception — a one-line change such as a typo or a version bump. A run
|
|
493
|
-
declared trivial that then edits a second file, touches tests, queries a live source twice, or keeps
|
|
494
|
-
working past eight calls (an investigation is not trivial) gets one reminder to reopen it as
|
|
495
|
-
a typed run, and counts as `trivial_overreach` in the audit. Trivial runs close at the end of the
|
|
496
|
-
turn (`Stop` hook), so single-prompt sessions still reach the history. Typed runs stay open across
|
|
497
|
-
turns and close when the session ends (`SessionEnd`), so an unclosed run is never lost.
|
|
498
|
-
- Subagents are counted once each: resuming one (SendMessage) is not a new dispatch. Each is also
|
|
499
|
-
classified by its agent type — one of the orchestrator's roles, or a generic agent such as
|
|
500
|
-
`general-purpose` — and the dispatch reminder names the roles of the task's flow. The audit
|
|
501
|
-
reports `role_dispatches`, `generic_dispatches` and `runs_without_roles`. The Claude Code plugin
|
|
502
|
-
ships the roles as agents (`llm-orchestrator:<role>`), so they are available without a project
|
|
503
|
-
install.
|
|
504
|
-
- A run opened with two or more shards whose main thread keeps doing the work — two work calls per planned shard (one per shard in incident, investigation and research flows, whose reads *are* the shards, with one firmer follow-up if the first reminder is ignored and the evidence is live — `ssh`, remote databases, cluster/cloud CLIs, HTTP; a few small local files are fine read inline), no
|
|
505
|
-
subagent started — gets one more sentence: dispatch the independent shards (searching for the
|
|
506
|
-
Agent tool if it is deferred), or declare the chain inline with
|
|
507
|
-
`run start --type <T> --shards <n> --inline "stateful:<what>"`. Work is inline only while it holds
|
|
508
|
-
live state a subagent cannot inherit (a browser mid-flow, an interactive shell); independent reads
|
|
509
|
-
are never inline. The audit adds `inline_declared`, `inline_after_nudge` (an `--inline` declared only
|
|
510
|
-
after a dispatch reminder — a retroactive justification) and `below_fan_out` (incident, investigation
|
|
511
|
-
or research runs opened with fewer than two shards).
|
|
512
|
-
- Once the entrypoint is loaded, read-only discovery (reading files, `grep`, `git status`, tool
|
|
513
|
-
version checks) before `run start` is SKILL.md steps 2–3, not a deviation. An edit, a write, a
|
|
514
|
-
dispatch or any other shell command before the run is.
|
|
515
|
-
- Every project is steered unless it opts out. The hooks of a global install or of the Claude Code
|
|
516
|
-
plugin fire everywhere, so no per-project install or instruction line is needed. A project says no
|
|
517
|
-
with a `.orchestrator-off` file in its root, a line `orchestrate-core: off` in its `AGENTS.md` or
|
|
518
|
-
`CLAUDE.md`, or `LLM_ORCHESTRATOR_OFF=1` in the environment; it then gets no reminders and no
|
|
519
|
-
`.orchestrator-run/` directory, even if a run is started. Outside a project — no `.git`,
|
|
520
|
-
`AGENTS.md`, `CLAUDE.md` or ledger, or your home directory itself — the hooks stay silent until a
|
|
521
|
-
run is started there. `doctor` reports which applies under `flow.engagement`: `global`,
|
|
522
|
-
`per_project`, `opted_out` or `none`. It also lists under `flow.hooks.double_firing` the case
|
|
523
|
-
where the Claude Code plugin is enabled and a settings copy of the hooks exists as well.
|
|
524
|
-
- After a compaction or a resumed session (`SessionStart` with source `compact` or `resume`) an
|
|
525
|
-
open run is restated to the model — its type and how many planned shards were dispatched — so
|
|
526
|
-
the flow continues instead of being re-planned or forgotten.
|
|
527
|
-
- A run command counts only where the shell would run it. Text that merely contains one — a
|
|
528
|
-
`grep` pattern, a commit message, a comment, a heredoc body — never opens or closes a run.
|
|
529
|
-
- The project is the repository: a session started in a subdirectory shares the ledger and the
|
|
530
|
-
opt-out of the repository root.
|
|
531
|
-
- A shell command that carries several run commands (`… run close; … run start --type <T>`) applies
|
|
532
|
-
them in order: the last one is the state the session is left in.
|
|
533
|
-
|
|
534
|
-
| Harness | Where the hooks live |
|
|
535
|
-
| --- | --- |
|
|
536
|
-
| Claude Code (plugin) | the plugin's own `hooks/hooks.json` — active on `/plugin install` |
|
|
537
|
-
| Claude Code (CLI install) | marked entries merged into `.claude/settings.json`; the rest of the file is untouched. Skipped, and listed under `skipped`, when the plugin is enabled for you (`enabledPlugins` in `~/.claude/settings.json`, unless the project's own settings switch it off): both would answer every event. `--flow-hooks` on that run writes them anyway, for a repository shared with people who do not use the plugin |
|
|
538
|
-
| Codex | marked entries in `.codex/hooks.json` — trust them once in `/hooks` |
|
|
539
|
-
| OpenCode / Kilo | `.opencode/plugins/orchestrate-flow.js` / `.kilo/plugin/orchestrate-flow.js` (auto-loaded by each); the reminder is appended to the tool's output, since these harnesses have no pre-tool context channel — the once-per-session sentence rides on the session's first tool output for the same reason |
|
|
540
|
-
| Any of them, `install --global` | the same entries at user scope: `~/.claude/settings.json`, `~/.codex/hooks.json`, `~/.config/opencode/plugins/orchestrate-flow.js` (none for Kilo) |
|
|
541
|
-
|
|
542
|
-
`install --no-flow-hooks` skips them (and withdraws hooks an earlier install wrote); the choice is
|
|
543
|
-
remembered until `--flow-hooks` turns them back on. `uninstall` removes exactly the marked entries
|
|
544
|
-
and restores the rest of each file as it was.
|
|
545
|
-
|
|
546
|
-
### Uninstall
|
|
161
|
+
### The commands
|
|
547
162
|
|
|
548
163
|
```sh
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
## Using it from an already-installed project
|
|
556
|
-
|
|
557
|
-
Once a harness has the core installed and its skill catalog reloaded, nothing further is required from you: the harness's own bootstrap step (Codex's `AGENTS.md` sentence, Claude's `@AGENTS.md` import, or the native `/orchestrate`-style command) loads `orchestrate-core` on the **first prompt of the session**, before any planning happens. That load does three things in order:
|
|
558
|
-
|
|
559
|
-
1. **Bootstrap** — the entrypoint skill is discovered and read (this is itself the first of the 8 mandatory core tools).
|
|
560
|
-
2. **Mandatory check** — the remaining 7 core tools (`memory.recall`/`memory.checkpoint` via MemPalace, `reasoning.checkpoints` via Sequential Thinking, `communication.concise` via caveman, `shell.rtk`, `docs.current` via context7, `research.retrieve` via Exa) are checked for live evidence, not assumed present from a config file.
|
|
561
|
-
3. **Degraded rule** — for any of those that are missing, the orchestrator states the gap *first*, recommends the exact install command once, and only continues after an explicit user refusal — carrying a `degraded: <capability>` line on every plan, handoff and final report from then on for that session. It never falls back silently.
|
|
562
|
-
|
|
563
|
-
From there, the `/task` family (`/task`, `/task-plan`, `/task-status`, `/task-verify`, `/task-cancel`) and the `/incident-*` lifecycle commands are available in whatever native form the harness renders (see "Usage once installed" below). Cost-aware routing is available directly from the shell at any time:
|
|
564
|
-
|
|
565
|
-
```sh
|
|
566
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --phase implementation --role backend-fixer --complexity MODERATE --harness claude
|
|
567
|
-
```
|
|
568
|
-
|
|
569
|
-
This resolves (task type, phase, role, risk, complexity, context size, harness) to a tier, thinking level, a ranked list of eligible models with a $/task estimate, the independent-review floor and the fan-out minimum — the same resolution the orchestrator uses internally, callable standalone for planning or auditing a routing decision.
|
|
570
|
-
|
|
571
|
-
## Cost-aware routing (built in)
|
|
572
|
-
|
|
573
|
-
Routing is data, not prose: `registries/routing-matrix.json` encodes the W/S/X/F tiers, the T0–T5 thinking levels with their per-provider controls (`effort` on Claude, `reasoning_effort` on Codex, budget-only on Haiku), the tier × thinking resolution table, default routing, the per-task-type flows (phase → pair → roles → gate), 21 risk-floor areas with implementation and independent-review floors, agent defaults, both escalation ladders, fan-out minimums (2 MODERATE / 3 COMPLEX / 4 CRITICAL), the target tier distribution and the quota degradation ladder. `models/top-models.json` carries the model registry — 33 models: 19 seated on a provider ladder (the seat-holders and the models they succeeded, which stay routable as fallbacks), ten measured candidates and four priced-but-unrated models — with their supported thinking levels, list prices with the date and page each was read from (`price_as_of`, `price_source`), measured $/task per effort and thinking-cost indices (Artificial Analysis v4.3.2 snapshot, copied verbatim, never invented). `lib/router.mjs` resolves a dispatch; `bin/route.mjs` exposes it:
|
|
574
|
-
|
|
575
|
-
```sh
|
|
576
|
-
node bin/llm-orchestrator.mjs route --list # vocab: task types, phases, roles, areas
|
|
577
|
-
node bin/llm-orchestrator.mjs route --task BUG_FIX --phase fix --area refund --risk critical --harness codex
|
|
578
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --complexity COMPLEX --flow --provider anthropic # whole flow, $ estimate, tier histogram
|
|
579
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --phase implementation --include-candidates --cheapest-thinking
|
|
580
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --phase implementation --harness kilo --inventory inventory.json # seats from what the runtime exposes
|
|
581
|
-
```
|
|
582
|
-
|
|
583
|
-
- `--include-candidates` ranks the ten measured candidates alongside the incumbents. They are held out by default, and an exposed candidate in a runtime inventory is admitted for noncritical lanes only — never for an independent-review seat, a T4/T5 pair or a risk-floor review row, and not for the implementation seat of a dispatch that requires an independent reviewer. The same seats are closed to a free variant (`…:free`) and to a gateway variant (an id whose vendor segments do not name the model's provider, such as `ollama/kimi-k3`), and an unmeasured successor is never promoted into one: the measured predecessor keeps the seat and the successor is listed as the alternative, `unmeasured: not seated for critical review`.
|
|
584
|
-
- `--trust-configured` seats models that an inventory only marks `configured` — read from the harness configuration by `models discover --config`, dispatch not proven. Without it such an inventory seats nothing and the output says why; with it every seat carries the label "configured, not verified in this session".
|
|
585
|
-
- `--cheapest-thinking` (with `--max-score-loss <n>`, default 2) returns the lowest-cost (model, effort) whose measured score is within that many displayed points of the incumbent config for the resolved pair — the thinking-cost optimisation, in one line.
|
|
586
|
-
- `--provider <name>` ranks one provider's models. Any provider in the registry is accepted (`route --list` prints them: openai, anthropic, google, xai, meta, moonshot and the rest) — the list is read from the registry, not hard-coded.
|
|
587
|
-
- `--kind <default-routing kind>` overrides the starting row of the resolution order; `--context-tokens <n>` feeds the context axis (the W working-set cap, and the seated model's own repricing threshold — Haiku 5.5 above a 100K prompt, the Codex models above 272K); `--json` prints the machine-readable form of any of the above.
|
|
588
|
-
|
|
589
|
-
Resolution order: default routing → agent default → task-flow phase → complexity → risk floor (upward only) → context rules (the 150K W working-set cap, each seated model's own window and repricing threshold from the registry) → caps (Terra/Sol never above `high`, Fable 5.1 only with `--explicit-fable-5-1`). A runtime inventory (`--inventory`) filters the ranking to models actually exposed in the session.
|
|
590
|
-
|
|
591
|
-
**Routing adapts to what the harness exposes.** Only Claude Code and Codex have a hard-coded ladder. Any other harness or provider — OpenCode, Kilo, `--provider google` — takes each tier's seat from the inventory: the exposed registry models of that tier, cheapest measured `$/task` first, then token price index, under every admission rule. Inventory ids are matched to registry models by rule, never by resemblance: gateway and vendor prefixes (`openrouter/anthropic/claude-opus-5-5`), Bedrock and Vertex forms (`us.anthropic.claude-sonnet-5-v1:0`, `claude-sonnet-5@20260101`), free-tier suffixes (`opencode/muse-spark-1.3-contributor-free`) and dot-versus-dash spellings all resolve, and the row carries the inventory's own id as the one to dispatch. An id that does not reduce to exactly one registry model is listed as **unrated** and never seated. With nothing eligible — or with no ladder and no inventory at all — the result is `blocked: "no eligible model"`, never a quieter tier and never a default to Claude. `--flow` reports that per phase: on a harness with no ladder and no `--inventory`, every phase is `blocked: "no ladder for this harness: pass --inventory (see models discover)"` and the command exits 2; `--provider openai` or `--provider anthropic` selects a ladder explicitly. A flow total is the sum over the dispatches that have a measured `$/task`, and the mean divides by those alone; when any dispatch is unmeasured the total is marked partial (`est_total_partial`) and the cost band is not judged — `cost band not evaluated: N of M dispatches have no measured $/task`.
|
|
592
|
-
|
|
593
|
-
`models discover --harness <h>` builds that inventory from an active-session snapshot (`--input`), from the harness CLI (`--native`, OpenCode only), or from the harness configuration (`--config`: Claude Code `settings.json`, Codex `config.toml` and its models cache, OpenCode and Kilo config files; `--home <dir>` reads under another directory and overrides `CLAUDE_CONFIG_DIR`, `CODEX_HOME` and `XDG_CONFIG_HOME`, which are honoured otherwise). `--config` reads model and provider ids only — never credentials. A value in a model field is accepted only when it matches a conservative id grammar; a URL, a `user:secret@host` form, a key-shaped segment or a long opaque token is counted (`rejected: <n> value(s) that did not look like a model id`) and never echoed. A settings file or config directory whose real path leaves its root is not followed. It reports every id as `configured`, not `exposed`: a configuration entry does not prove dispatch works, so confirm it against the session before routing on it.
|
|
594
|
-
|
|
595
|
-
### Per-shard selection, not per task
|
|
596
|
-
|
|
597
|
-
The CLI resolves one dispatch. Inside a flow, the same resolution runs **for every PlanShard, at dispatch time, against the live inventory** — `lib/dispatch-contract.mjs` exposes `buildShardRouting(shard, options)` for one shard, `buildShardContracts(flow, { inventory, harness, includeCandidates })` for all of them (returning the flow ledger: tier histogram against the target distribution, mean `$/task` over the measured shards, a partial-total marker, blocked shards, warnings), and `rerouteRemaining(flow, inventory)` when a model-not-found, a rejected effort or a quota change invalidates the inventory mid-flow — remaining shards only, so the ledger stays true. Each shard carries a `routing` block with exactly these thirteen fields: `pair`, `tier`, `thinking_level`, `model_requested`, `effort_requested`, `model_effective`, `effort_effective`, `review_floor`, `independent_review`, `selection_reason`, `inventory_revision`, `price_source`, `est_usd_per_task`. An inventory that exposes nothing eligible for the resolved tier yields `blocked: "no eligible model"` — the floor is never lowered to fit what happens to be available.
|
|
598
|
-
|
|
599
|
-
### Shortlisted models and thinking levels (benchmark snapshot 2026-09-23)
|
|
600
|
-
|
|
601
|
-
Incumbents hold a seat on a provider ladder; a model that succeeded another on list price holds the seat and the older one stays as its fallback. Models added after the benchmark snapshot are **unmeasured**: Artificial Analysis now publishes v5.0.2, this dataset is pinned to v4.3.2, and the two are not mixed — so those models are placed by list price and provider succession, never by score, and carry no `$/task`. Candidates are measured but unseated: their tier is a `tier_bands` placement from the best measured Artificial Analysis score (W ≤ 37, S 38–44, X 45–50, F ≥ 51), and they rank only with `--include-candidates` or an inventory that exposes them.
|
|
602
|
-
|
|
603
|
-
| Model | Provider | Ladder | Admission | Tier | Thinking levels | $ in / out per MTok | Price read |
|
|
604
|
-
|---|---|---|---|---|---|---|---|
|
|
605
|
-
| GPT-5.6 Luna | openai | codex | incumbent (fallback for GPT-6 Luna) | W | low, medium, high, xhigh, max (reasoning_effort) | $0.2 / $1.2 | 2026-09-22 |
|
|
606
|
-
| GPT-6 Luna | openai | codex | incumbent (succeeds GPT-5.6 Luna) | W | none, low, medium, high, xhigh, max (reasoning_effort) | $0.1 / $0.5 | 2026-09-23 |
|
|
607
|
-
| GPT-5.6 Terra | openai | codex | incumbent (fallback for GPT-6.1 Terra) | S | low, medium, high, xhigh, max (reasoning_effort) | $2 / $12 | 2026-09-22 |
|
|
608
|
-
| GPT-6.1 Terra | openai | codex | incumbent (succeeds GPT-5.6 Terra) | S | none, low, medium, high, xhigh, max (reasoning_effort) — unmeasured | $1 / $5 | 2026-12-01 |
|
|
609
|
-
| GPT-5.6 Sol | openai | codex | incumbent (fallback for GPT-6 Sol) | X | low, medium, high, xhigh, max (reasoning_effort) | $4 / $20 | 2026-09-22 |
|
|
610
|
-
| GPT-6 Sol | openai | codex | incumbent (succeeds GPT-5.6 Sol; fallback for GPT-6.2 Sol; keeps X T4 and every review X seat; holds the S seat one notch down) | S, X | low, medium, high, xhigh, max (reasoning_effort) | $2 / $10 | 2026-09-23 |
|
|
611
|
-
| GPT-6.1 Sol | openai | codex | incumbent (no seat of its own) | X | low, medium, high, xhigh, max (reasoning_effort) — unmeasured | $2 / $10 | 2026-12-01 |
|
|
612
|
-
| GPT-6.2 Sol | openai | codex | incumbent (succeeds GPT-6 Sol on non-critical X T2/T3 only) | X | low, medium, high, xhigh, max (reasoning_effort) — unmeasured | $2 / $10 | 2026-12-01 |
|
|
613
|
-
| GPT-6 Astra | openai | codex | incumbent (fallback for GPT-6.2 Astra; keeps F T4, F T5 and every review F seat) | F | low, medium, high, xhigh, max (reasoning_effort) | $10 / $50 | 2026-09-22 |
|
|
614
|
-
| GPT-6.2 Astra | openai | codex | incumbent (succeeds GPT-6 Astra on non-critical F T3 only) | F | low, medium, high, xhigh, max (reasoning_effort) — unmeasured | $8 / $40 | 2026-12-01 |
|
|
615
|
-
| Claude Haiku 4.5 | anthropic | claude | incumbent (fallback for Claude Haiku 5.5; keeps every review W seat) | W | disabled, enabled (budget_tokens) | $1 / $5 | 2026-09-22 |
|
|
616
|
-
| Claude Haiku 5.5 | anthropic | claude | incumbent (succeeds Claude Haiku 4.5) | W | low, medium, high, xhigh, max (effort) — unmeasured | $0.1 / $0.5 (≤100K prompt), $0.5 / $2.5 above | 2026-12-01 |
|
|
617
|
-
| Claude Sonnet 5 | anthropic | claude | incumbent (fallback for Claude Sonnet 5.5; keeps every review S seat) | S | low, medium, high, xhigh, max (effort) | $2 / $10 | 2026-09-22 |
|
|
618
|
-
| Claude Sonnet 5.5 | anthropic | claude | incumbent (succeeds Claude Sonnet 5) | S | low, medium, high, xhigh, max (effort) — unmeasured | $2 / $10 | 2026-12-01 |
|
|
619
|
-
| Claude Opus 5 | anthropic | claude | incumbent (fallback for Claude Opus 5.5) | X | low, medium, high, xhigh, max (effort) | $5 / $25 | 2026-09-22 |
|
|
620
|
-
| Claude Opus 5.5 | anthropic | claude | incumbent (succeeds Claude Opus 5) | X | low, medium, high, xhigh, max (effort) | $4 / $20 | 2026-09-22 |
|
|
621
|
-
| Claude Fable 5 | anthropic | claude | incumbent (fallback for Claude Fable 5.2; keeps F T4, F T5 and every review F seat) | F | low, medium, high, xhigh, max (effort) | $10 / $50 | 2026-09-22 |
|
|
622
|
-
| Claude Fable 5.2 | anthropic | claude | incumbent (succeeds Claude Fable 5 on non-critical F T3 only) | F | low, medium, high, xhigh, max (effort) — unmeasured | $8 / $40 | 2026-12-01 |
|
|
623
|
-
| Claude Fable 5.1 | anthropic | claude | incumbent (≤2% cap, explicit only) | F | low, medium, high, xhigh, max (effort) | $10 / $50 | 2026-09-22 |
|
|
624
|
-
| Grok 4.7 | xai | — | unrated | — (unrated) | low, medium, high, xhigh (reasoning_effort) | $2 / $6 | 2026-12-01 |
|
|
625
|
-
| Muse Spark 1.3 | meta | third-party | candidate (deprecated; successor Muse Wonder) | X (48) | xhigh, max (provider-default) | $1.25 / $4.25 | 2026-09-22 |
|
|
626
|
-
| Grok 4.6 | xai | third-party | candidate | S (44) | low, medium, high, xhigh (reasoning_effort) | $2 / $6 | 2026-12-01 |
|
|
627
|
-
| MiMo V2.6 Pro | xiaomi | third-party | candidate | X (46) | default (provider-default) | $0.435 / $0.87 | 2026-09-22 |
|
|
628
|
-
| Gemini 3.8 Flash | google | third-party | candidate | S (41) | low, medium, high (provider-default) | $0.75 / $3.75 | 2026-12-01 |
|
|
629
|
-
| Gemini 4 Carbon | google | — | unrated | — (unrated) | default (provider-default) — unmeasured | $4 / $20 | 2026-12-01 |
|
|
630
|
-
| Gemini 4 Neon | google | — | unrated | — (unrated) | default (provider-default) — unmeasured | $3 / $15 | 2026-12-01 |
|
|
631
|
-
| Gemini 4 Hydrogen | google | — | unrated | — (unrated) | default (provider-default) — unmeasured | $1.5 / $7.5 | 2026-12-01 |
|
|
632
|
-
| Qwen3.8 Max | alibaba | third-party | candidate | X (45) | default (provider-default) | $2 / $6 | 2026-09-22 |
|
|
633
|
-
| GLM 5.3 | z.ai | open | candidate | X (45) | max (provider-default) | $1.4 / $4.4 | 2026-09-22 |
|
|
634
|
-
| GLM 5.3 Flash | z.ai | open | candidate | S (42) | default (provider-default) | $0.15 / $0.5 | 2026-09-22 |
|
|
635
|
-
| Kimi K3 | moonshot | open | candidate | S (44) | low, max (provider-default) | $3 / $15 | 2026-09-22 |
|
|
636
|
-
| DeepSeek V4.1 Flash | deepseek | open | candidate | S (39) | max (provider-default) | $0.3 / $1.2 | 2026-09-22 |
|
|
637
|
-
| MiniMax M3 | minimax | open | candidate | W (29) | default (provider-default) | $0.3 / $1.2 | 2026-09-22 |
|
|
638
|
-
|
|
639
|
-
`control: provider-default` means the real thinking parameter is unverified for that model — dispatch the provider default and never send an invented effort enum. Data retention and endpoint eligibility are unknown for every candidate: no secrets, PII, production tokens or credential-bearing code.
|
|
640
|
-
|
|
641
|
-
Prices and measured costs are dated evidence, not live tariffs; refresh `models/` before relying on the numbers. Gemini 3.8 Flash reprices to $1.50 / $7.50 on 2027-01-01.
|
|
642
|
-
|
|
643
|
-
## Advisor, strategy cards and the frontier budget
|
|
644
|
-
|
|
645
|
-
A frontier model (tier F: Fable, Astra and their equivalents) is consulted at a decision point, and what it decides is kept, so the normal model handles that kind of task next time. Three things make that work without raising consumption:
|
|
646
|
-
|
|
647
|
-
- **The frontier tier advises; the routed tier works.** The `advisor` role (read-only, F T3) receives a decision packet of at most 50 lines at a plan, design, hypothesis, synthesis or analysis decision, at most twice per task, and only when no usable stored strategy matched and the task is COMPLEX, CRITICAL or novel — or after a failed verifier that one step up the escalation ladder did not fix.
|
|
648
|
-
- **Distillation is passive.** The advisor's answer *is* the strategy card: cues, single steps written as "when cue, do action, check result", traps and a verification, in at most 60 lines and with no finished output. There is no replay and no with-and-without comparison run. A card starts `provisional` and is validated by the next real task of its class, on the normal model, through the gates that task runs anyway.
|
|
649
|
-
- **The cap is counted.** At most 10% of the last 100 dispatches may run on tier F, and at most 3% may be exploratory upgrades of small tasks, inside that 10% and only while frontier use is under 7%. A frontier dispatch that a risk floor requires always runs and is counted.
|
|
650
|
-
|
|
651
|
-
```sh
|
|
652
|
-
# For a decision shard, or any shard about to use tier F: inject a card, consult the advisor, explore, or run as routed
|
|
653
|
-
node bin/llm-orchestrator.mjs strategy decide --task-type FEATURE --phase plan --area api-crud --tags rest,pagination --complexity COMPLEX --task T-42
|
|
654
|
-
|
|
655
|
-
# Before every dispatch: check the cap and write the ledger line in one step (exit 2 = refused, nothing written)
|
|
656
|
-
node bin/llm-orchestrator.mjs budget spend --tier F --kind advisor --signature "FEATURE/plan/api-crud" --task T-42
|
|
657
|
-
node bin/llm-orchestrator.mjs budget spend --tier S --signature "FEATURE/plan/api-crud" --task T-42
|
|
658
|
-
node bin/llm-orchestrator.mjs budget status
|
|
659
|
-
|
|
660
|
-
# After the task passed its gates: keep the advisor's card, and score a card that was used
|
|
661
|
-
node bin/llm-orchestrator.mjs strategy add --task-type FEATURE --phase plan --area api-crud --tags rest,pagination --title "Endpoint beside an existing resource" --file card.md
|
|
662
|
-
node bin/llm-orchestrator.mjs strategy outcome --id s-0123456789 --result pass
|
|
663
|
-
node bin/llm-orchestrator.mjs strategy list
|
|
664
|
-
```
|
|
665
|
-
|
|
666
|
-
| Command | What it does |
|
|
667
|
-
|---|---|
|
|
668
|
-
| `strategy decide` | Matches the task to stored cards and reads the budget, then answers `inject`, `advisor`, `explore` or `normal` with the reason, and prints the `signature` and the normalised tags to reuse. `--task-type` is one of the nine task types, `--phase` a phase of the flow by its name or its workflow label ("Plan / design"), `--area` a risk-floor area or left out; an unknown value is refused with the accepted list. `--novel` sends a decision to the advisor; `--verifier-failed` does so only for a COMPLEX or CRITICAL task or together with `--escalated` (the ladder below the frontier was tried); `--consults <n>` says how many consults the task already used; `--task <id>` keeps sibling shards of the same task from counting as repeats of its class; `--json` prints the machine-readable form |
|
|
669
|
-
| `strategy advisor` | Prints the advisor's full brief for a decision `--packet <file>` and how `--harness <claude\|codex\|opencode\|kilo>` can reach a larger model: a native advisor tool, a subagent on the frontier `--model <id>`, that harness's own headless CLI, or, with no larger model exposed, a declared degraded same-model consult. `--run` executes the headless CLI and prints the answer; it first spends from the budget (`--tier <F\|X>`, default F) and exits 2 without calling the model when the cap is spent. `--existing <id>` and `--exploration` ask for same-or-different direction against a stored card |
|
|
670
|
-
| `strategy match` | One card or none: exact task type, phase and area (or a wildcard on the card), then enough shared tags. A task without tags matches nothing |
|
|
671
|
-
| `strategy add` | Validates and stores a card (`--file card.md`, or `--file -` for standard input). It needs `--title` and at least two `--tags`, taken from the tag vocabulary first. It refuses a card that is too long, lacks the `When` / `Steps` / `Verify` sections, carries more than 40 lines of code, or matches a secret, home-path or email pattern. The same title on the same task class becomes a new revision: provisional again, counters restarted, earlier totals kept. `--kind <advisor\|exploration\|escalation>`, `--source-model <id>`, `--scope <project\|global>` |
|
|
672
|
-
| `strategy outcome` | `--result pass` or `--result fail` after the task's gates. Three passes and no failure in the current revision promote a card; two failures not outnumbered by passes retire it |
|
|
673
|
-
| `strategy explored` | `--result same` or `--result different` after an exploratory upgrade. A class found to go the same direction is not explored again for 90 days |
|
|
674
|
-
| `strategy list` / `show` / `retire` | Inspect the store, or retire a card by hand (`--id`) |
|
|
675
|
-
| `budget spend` | Checks the cap and writes one ledger line, as one locked step, so parallel dispatches cannot share the last frontier slot: `--tier <W\|S\|X\|F>`, `--kind <task\|advisor\|exploration\|review-floor>`, the `--signature` that `strategy decide` printed, and `--task <id>`. Exit 2 means refused and nothing written. `--kind review-floor` is never refused and needs `--area`: a risk-floor area whose floor is tier F (`major-architecture`, `cross-system-redesign`) |
|
|
676
|
-
| `budget record` | The same line for a dispatch that already happened: always written, with `over_cap: true` and a warning when it was past the cap |
|
|
677
|
-
| `budget check` / `status` | Read-only: whether one more dispatch would fit, and the window's shares |
|
|
678
|
-
|
|
679
|
-
Where things live: the dispatch ledger is `.orchestrator-run/dispatches.jsonl` at the repository root — the nearest directory with a `.git` entry above `--project` or the working directory (a tier, a kind, a timestamp and hashes of the signature and the task id per line, never a prompt). Cards live outside every repository, under the package state root (`--state-root`, default `~/.local/state/portable-orchestrator/strategies/`), in one scope per project plus a shared `global` scope. Only the CLI writes the card index and its counters, one writer at a time, and it keeps the previous index as `index.json.bak`.
|
|
680
|
-
|
|
681
|
-
The advisor does not depend on a harness feature. Claude Code dispatches the `advisor` agent with a model override; Codex gets the brief as a `spawn_agent` prompt; OpenCode and Kilo take a subagent's model from its agent file, so `install --with-agents --advisor-model <provider/model>` pins the `advisor` agent to your frontier model. Where none of that is possible, `strategy advisor --run` calls the harness's own CLI headless. The OpenCode and Kilo headless commands are unverified and are labelled so.
|
|
682
|
-
|
|
683
|
-
What it cannot do: no hook sees which model a harness actually ran, so the ledger is what the orchestrator declares, not a measurement — an orchestrator that never calls `budget spend` is not capped, and one that dispatches on tier F after an exit 2 is not stopped. The secret scan on cards is pattern-based and incomplete. And because nothing is replayed, a bad card is found at its second use; cards are short, one per dispatch, and retired quickly for that reason. Tasks with no deterministic verifier keep their decisions on the advisor path. The full rules are in [policies/learning.md](policies/learning.md), and every threshold is in `registries/learning.json`.
|
|
684
|
-
|
|
685
|
-
## Updating
|
|
686
|
-
|
|
687
|
-
From npm — `npx` always resolves the latest published version, so there is nothing to pull:
|
|
688
|
-
|
|
689
|
-
```sh
|
|
690
|
-
npx llm-orchestrator@latest install --project /path/to/app --harness <harness> --apply
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
From a clone:
|
|
694
|
-
|
|
695
|
-
```sh
|
|
696
|
-
git -C llm-orchestrator pull
|
|
697
|
-
node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness> --apply
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
In Claude Code, the plugin updates on its own terms: `/plugin update llm-orchestrator@tbogdan`.
|
|
701
|
-
|
|
702
|
-
Re-running `install --apply` after an update is the entire update procedure — it is the same idempotent apply as a fresh install. Files the package generated and you haven't touched are refreshed to the new version; a project file you hand-edited (an `AGENTS.md` bindings section, a command you customized) is reported as a **conflict** and left untouched — nothing is overwritten silently. Resolve a reported conflict by reviewing the diff yourself and either keeping your edit or deleting the file so the next apply can regenerate it.
|
|
703
|
-
|
|
704
|
-
## Usage once installed
|
|
705
|
-
|
|
706
|
-
The command set is listed at the top of this README. Exact command names and argument shapes are rendered per harness by `adapters/commands.mjs`; run `--help` on any installed command for the harness-native form.
|
|
707
|
-
|
|
708
|
-
## Development
|
|
164
|
+
/task "describe the work" # plan, build, review and verify, end to end
|
|
165
|
+
/task-plan "describe the work" # plan only: see the flow before anything runs
|
|
166
|
+
/task-status # where the active work stands
|
|
167
|
+
/task-verify # re-run verification against the evidence
|
|
168
|
+
/task-cancel # stop cleanly
|
|
169
|
+
/orchestrate # load the entrypoint without starting a task
|
|
709
170
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
node bin/llm-orchestrator.mjs models report --check # model matrix is current
|
|
716
|
-
node bin/llm-orchestrator.mjs models discover --harness codex --native
|
|
171
|
+
/incident-start # open the record, start collecting evidence
|
|
172
|
+
/incident-evidence # logs, metrics, traces: no fix yet
|
|
173
|
+
/incident-fix # fix inside the evidenced scope
|
|
174
|
+
/incident-verify # check against the recorded evidence
|
|
175
|
+
/incident-close # only after verification is recorded
|
|
717
176
|
```
|
|
718
177
|
|
|
719
|
-
|
|
720
|
-
active-session snapshot (`--input`), by asking that harness's CLI (`--native`, which only OpenCode
|
|
721
|
-
exposes today), from the harness configuration (`--config`, optionally under `--home <dir>`; ids
|
|
722
|
-
only, each reported as `configured`), or, given none of them, an
|
|
723
|
-
explicitly `unknown` inventory rather than a guess; `--output` writes it to a file instead of stdout.
|
|
724
|
-
`models report` renders the matrix the router reads: `--check` fails when
|
|
725
|
-
`models/model-thinking-matrix.md` no longer matches `models/model-thinking-data.json`, and
|
|
726
|
-
`--available <inventory.json>` narrows the report to what that inventory actually exposes. Routing uses the inventory to refuse work rather than fake it: a
|
|
727
|
-
model the harness does not expose is never selected, and a shard whose tier has nothing eligible is
|
|
728
|
-
blocked instead of silently downgraded.
|
|
729
|
-
|
|
730
|
-
`docs/COHERENCE.md` names, for each cross-reference class (field names, drawer names, the 8 mandatory tools, task types, agent roles, risk-floor areas, gate labels, the bridge text, CLI flags, policy references), which file is the single source of truth. `tests/coherence.test.mjs` checks those classes mechanically, so drift fails CI instead of being discovered by a reader.
|
|
178
|
+
## What it does not do
|
|
731
179
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
-
|
|
737
|
-
|
|
738
|
-
-
|
|
739
|
-
|
|
180
|
+
- It cannot see which model your IDE really ran. The 10% cap counts the dispatches the orchestrator
|
|
181
|
+
reports, so it holds when the agent follows the flow.
|
|
182
|
+
- The hooks see the main agent, not its subagents. A reminder is a sentence, not proof that a tool
|
|
183
|
+
ran.
|
|
184
|
+
- A strategy card is tested by the next real task, so a bad card is found at its second use. That is
|
|
185
|
+
why cards are short and are retired after two failures.
|
|
186
|
+
- New models have list prices but no measured score yet. They are kept out of critical review seats
|
|
187
|
+
until they are measured.
|
|
188
|
+
- On OpenCode and Kilo there is no turn-end continuation, and the headless advisor command is not
|
|
189
|
+
verified.
|
|
190
|
+
|
|
191
|
+
## Learn more
|
|
192
|
+
|
|
193
|
+
The [reference](docs/REFERENCE.md) covers everything else: the mandatory tools and their install
|
|
194
|
+
routes, per-IDE installs, project bindings, flow adherence and skips, cost-aware routing and the model
|
|
195
|
+
shortlist, the advisor and strategy cards, updating, development and troubleshooting. The rules
|
|
196
|
+
themselves live in [SKILL.md](SKILL.md), [policies/](policies/) and [workflows/](workflows/).
|
|
740
197
|
|
|
741
198
|
## Attribution
|
|
742
199
|
|