llm-orchestrator 1.5.0 → 1.7.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/.claude-plugin/plugin.json +1 -1
- package/README.md +143 -499
- package/SKILL.md +45 -5
- package/adapters/agents.mjs +21 -5
- package/adapters/codex/index.mjs +0 -2
- package/adapters/commands.mjs +26 -1
- package/adapters/hooks.mjs +29 -9
- package/agents/advisor.md +53 -0
- package/agents/code-simplifier.md +1 -0
- package/agents/orchestrator.md +1 -1
- package/agents/route-data-flow-tracer.md +1 -0
- package/bin/budget.mjs +94 -0
- package/bin/cli-options.mjs +31 -10
- package/bin/discover-models.mjs +428 -13
- package/bin/dispatch.mjs +181 -0
- package/bin/doctor.mjs +53 -24
- package/bin/gate.mjs +3 -2
- package/bin/install.mjs +15 -8
- package/bin/llm-orchestrator.mjs +22 -3
- package/bin/model-thinking-report.mjs +1 -0
- package/bin/route.mjs +57 -18
- package/bin/strategy.mjs +234 -0
- package/bin/tools.mjs +84 -0
- package/bin/uninstall.mjs +3 -1
- package/commands/task.md +26 -1
- package/docs/REFERENCE.md +628 -0
- package/hooks/hooks.json +11 -0
- package/lib/adapter-renderer.mjs +131 -10
- package/lib/budget.mjs +269 -0
- package/lib/dispatch-contract.mjs +87 -24
- package/lib/file-lock.mjs +121 -0
- package/lib/first-run.mjs +41 -12
- package/lib/flow-gate.mjs +687 -75
- package/lib/installation.mjs +313 -75
- package/lib/learning.mjs +233 -0
- package/lib/project-root.mjs +52 -0
- package/lib/router.mjs +473 -65
- package/lib/strategy-store.mjs +481 -0
- package/lib/tool-use.mjs +348 -0
- package/models/example-model-inventory.json +21 -10
- package/models/model-thinking-data.json +134 -2
- package/models/model-thinking-matrix.md +32 -0
- package/models/top-models.json +794 -44
- package/package.json +2 -1
- package/policies/capabilities.md +102 -4
- package/policies/dispatch.md +26 -1
- package/policies/learning.md +339 -0
- package/policies/routing.md +240 -63
- package/protocol.md +21 -0
- package/registries/agent-roles.json +35 -1
- package/registries/capabilities.json +1 -0
- package/registries/core-profile.json +255 -46
- package/registries/learning.json +219 -0
- package/registries/preferred-tools.json +73 -3
- package/registries/routing-matrix.json +61 -37
- package/registries/task-mappings.json +42 -0
- package/registries/tool-use.json +230 -0
- package/schemas/flow-ledger.schema.json +43 -2
- package/schemas/installation-manifest.schema.json +56 -5
- package/schemas/learning.schema.json +139 -0
- package/schemas/routing-matrix.schema.json +23 -3
- package/schemas/top-models.schema.json +32 -6
- package/workflows/bug-fix.md +8 -0
- package/workflows/config.md +8 -0
- package/workflows/deploy.md +8 -0
- package/workflows/feature.md +8 -0
- package/workflows/incident.md +8 -0
- package/workflows/investigation.md +8 -0
- package/workflows/refactor.md +8 -0
- package/workflows/research.md +8 -0
- package/workflows/review.md +8 -0
package/README.md
CHANGED
|
@@ -1,21 +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
|
-
→ gates each phase
|
|
15
|
-
|
|
16
|
-
→ verifies the result before claiming it’s done
|
|
10
|
+
```
|
|
11
|
+
/task "users can't reset their password from the mobile app"
|
|
12
|
+
```
|
|
17
13
|
|
|
18
|
-
|
|
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.
|
|
19
22
|
|
|
20
23
|
## License
|
|
21
24
|
|
|
@@ -23,107 +26,127 @@ Built for the kind of tasks where one agent and one context window simply aren
|
|
|
23
26
|
|
|
24
27
|
Copyright (c) 2026 Bogdan-Gabriel Torcescu — https://www.linkedin.com/in/bogdantorcescu/
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
## The problem it solves
|
|
27
30
|
|
|
28
|
-
|
|
29
|
-
prompts, runs them, reviews the result, proves it works, and stops. You are not in the loop for any
|
|
30
|
-
of the steps in between.
|
|
31
|
+
AI coding agents are fast, and they have four bad habits. This package replaces each one.
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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. |
|
|
35
39
|
|
|
36
|
-
|
|
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.
|
|
37
44
|
|
|
38
|
-
|
|
39
|
-
|---|---|
|
|
40
|
-
| **Classifies** | Bug, feature, incident, refactor, investigation, review, deploy, config or research — each has its own workflow, gates and evidence rules. |
|
|
41
|
-
| **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. |
|
|
42
|
-
| **Builds a flow** | Phases, parallel groups, dependencies — each shard with its own scope, owner, acceptance conditions and iteration budget. |
|
|
43
|
-
| **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. |
|
|
44
|
-
| **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. |
|
|
45
|
-
| **Runs them in parallel** | Clean sessions, disjoint file ownership, so two agents cannot fight over the same file. |
|
|
46
|
-
| **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. |
|
|
47
|
-
| **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. |
|
|
45
|
+
## What you get
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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.
|
|
52
50
|
|
|
53
|
-
|
|
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.
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/task-status # where the active work stands
|
|
59
|
-
/task-verify # re-run verification against acceptance evidence
|
|
60
|
-
/task-cancel # stop cleanly
|
|
61
|
-
/orchestrate # load the entrypoint without starting a task
|
|
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.
|
|
62
60
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/incident-close # only after verification is recorded
|
|
68
|
-
```
|
|
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.
|
|
69
65
|
|
|
70
|
-
|
|
66
|
+
**Memory that survives a closed laptop.** The plan, the evidence, each checkpoint and each decision
|
|
67
|
+
are written down as the task moves.
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
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.
|
|
74
75
|
|
|
75
|
-
|
|
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.
|
|
76
79
|
|
|
77
|
-
|
|
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.
|
|
78
82
|
|
|
79
|
-
|
|
83
|
+
**Safe to try.** Every install is a dry run until you add `--apply`. Uninstall removes only the files
|
|
84
|
+
it wrote.
|
|
80
85
|
|
|
81
|
-
|
|
86
|
+
## The tools it brings in
|
|
82
87
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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.
|
|
90
|
+
|
|
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).
|
|
108
|
+
|
|
109
|
+
## How it works
|
|
87
110
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
119
|
+
|
|
120
|
+
What one routing decision looks like:
|
|
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
|
|
128
|
+
```
|
|
99
129
|
|
|
100
|
-
|
|
130
|
+
## Quick start
|
|
101
131
|
|
|
102
|
-
|
|
132
|
+
**Claude Code.** Type these two in any session:
|
|
103
133
|
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
npx llm-orchestrator install --project /path/to/app --harness opencode --apply
|
|
108
|
-
npx llm-orchestrator install --project /path/to/app --harness kilo --apply
|
|
109
|
-
npx llm-orchestrator install --project /path/to/app --harness claude --apply
|
|
110
|
-
npx llm-orchestrator doctor --project /path/to/app --harness <harness>
|
|
134
|
+
```
|
|
135
|
+
/plugin marketplace add tbogdan/llm-orchestrator
|
|
136
|
+
/plugin install llm-orchestrator@tbogdan
|
|
111
137
|
```
|
|
112
138
|
|
|
113
|
-
|
|
114
|
-
`llm-orchestrator ...` directly.
|
|
139
|
+
Keep it current with `/plugin update llm-orchestrator@tbogdan`.
|
|
115
140
|
|
|
116
|
-
|
|
141
|
+
**Codex, OpenCode, Kilo (and Claude Code project files).** Node 22+:
|
|
117
142
|
|
|
118
143
|
```sh
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
123
148
|
```
|
|
124
149
|
|
|
125
|
-
### Which one to use
|
|
126
|
-
|
|
127
150
|
| Harness | Fastest install | What it gives you | Reload |
|
|
128
151
|
| --- | --- | --- | --- |
|
|
129
152
|
| Claude Code | `/plugin install llm-orchestrator@tbogdan` | the `orchestrate-core` skill, `/llm-orchestrator:task` and the other commands, the role agents | new session |
|
|
@@ -132,424 +155,45 @@ node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness>
|
|
|
132
155
|
| OpenCode | `npx llm-orchestrator install --harness opencode --apply` | `.opencode/command(s)/*.md`, skill | restart `opencode` |
|
|
133
156
|
| Kilo | `npx llm-orchestrator install --harness kilo --apply` | `.kilo/command(s)/*.md`, skill | restart Kilo |
|
|
134
157
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
## Let an agent install it for you
|
|
138
|
-
|
|
139
|
-
Paste the block below into any capable coding agent (Claude Code, Codex, OpenCode, Kilo). It
|
|
140
|
-
installs the orchestrator itself without asking, then **stops and asks you once** before touching
|
|
141
|
-
anything else — installing third-party tools on someone's machine is not a decision an agent gets to
|
|
142
|
-
make silently.
|
|
143
|
-
|
|
144
|
-
````text
|
|
145
|
-
Install llm-orchestrator in this project, then report back.
|
|
146
|
-
|
|
147
|
-
STEP 1 — install the orchestrator (do this without asking):
|
|
148
|
-
- On Claude Code: run `/plugin marketplace add tbogdan/llm-orchestrator` then
|
|
149
|
-
`/plugin install llm-orchestrator@tbogdan`.
|
|
150
|
-
- On any other harness, or if you also want the project files (commands, agent, AGENTS.md
|
|
151
|
-
bindings): run `npx llm-orchestrator install --project . --harness <harness> --apply`,
|
|
152
|
-
where <harness> is one of codex | claude | opencode | kilo.
|
|
153
|
-
|
|
154
|
-
STEP 2 — find the gaps (read-only, writes nothing):
|
|
155
|
-
Run `npx llm-orchestrator init --project .`
|
|
156
|
-
It prints each of the 8 mandatory core tools as [present] or [missing], with the exact
|
|
157
|
-
install command for each missing one, and whether AGENTS.md has the orchestration
|
|
158
|
-
bindings section.
|
|
159
|
-
|
|
160
|
-
STEP 3 — ASK ME BEFORE INSTALLING ANYTHING ELSE. Do not skip this step.
|
|
161
|
-
Use your harness's native question mechanism (AskUserQuestion on Claude Code,
|
|
162
|
-
request_user_input on Codex, question on OpenCode, ask_followup_question on Kilo).
|
|
163
|
-
Ask once, batched, and include in the question:
|
|
164
|
-
- the list of missing tools,
|
|
165
|
-
- the exact command you would run for each,
|
|
166
|
-
- that `brew install rtk` needs Homebrew and that the `/plugin` lines only work on
|
|
167
|
-
Claude Code,
|
|
168
|
-
- that declining is fine: the core still runs, in declared degraded mode.
|
|
169
|
-
Then install exactly the ones I approve, and nothing I did not approve.
|
|
170
|
-
|
|
171
|
-
STEP 4 — verify and report:
|
|
172
|
-
Run `npx llm-orchestrator doctor --project . --harness <harness>` and show me the output.
|
|
173
|
-
Tell me plainly which tools are still missing and which gates are therefore degraded.
|
|
174
|
-
Do not claim the install succeeded without showing the doctor output.
|
|
175
|
-
````
|
|
176
|
-
|
|
177
|
-
The same shape works as a standing instruction in `AGENTS.md`/`CLAUDE.md` if you want new sessions
|
|
178
|
-
to self-install. Keep step 3 intact if you do — an agent that installs MCP servers and Homebrew
|
|
179
|
-
formulae unprompted is a worse problem than a missing gate.
|
|
180
|
-
|
|
181
|
-
## Why
|
|
182
|
-
|
|
183
|
-
Ask an agent to fix a bug and you usually get one long session: it reads a bit, guesses, edits,
|
|
184
|
-
declares victory, and you find out later that nothing was verified. Ask it to parallelize and you
|
|
185
|
-
spend your afternoon writing subagent prompts by hand, then merging the mess when two of them edited
|
|
186
|
-
the same file.
|
|
187
|
-
|
|
188
|
-
The work that makes the difference is the same every time — classify the task, gather evidence
|
|
189
|
-
before theorizing, write a failing test first, split what can run in parallel, keep agents out of
|
|
190
|
-
each other's files, review independently, verify before claiming done, record what was learned. It
|
|
191
|
-
is mechanical, and nobody wants to re-type it into every prompt.
|
|
192
|
-
|
|
193
|
-
`llm-orchestrator` makes that flow the default. It ships as a skill your agent must load before it
|
|
194
|
-
does anything, so the process runs whether or not you remembered to ask for it, and it is written
|
|
195
|
-
once in portable form instead of being copy-pasted and left to drift across every project's
|
|
196
|
-
`AGENTS.md` and every harness's config.
|
|
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.
|
|
197
160
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
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`.
|
|
201
|
-
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.
|
|
202
|
-
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.
|
|
203
|
-
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.
|
|
204
|
-
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`.
|
|
205
|
-
|
|
206
|
-
### Obligation levels
|
|
207
|
-
|
|
208
|
-
- **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.
|
|
209
|
-
- **Optional** — used when its stated trigger holds. Judgment call, but the trigger is not.
|
|
210
|
-
- **Available** — exists, costs nothing to ignore, reach for it when it fits.
|
|
211
|
-
|
|
212
|
-
### The 8 mandatory core tools
|
|
213
|
-
|
|
214
|
-
These apply to every task, everywhere, regardless of harness (see `registries/core-profile.json`):
|
|
215
|
-
|
|
216
|
-
| # | Capability | Preferred implementation | Why it's a gate |
|
|
217
|
-
|---|---|---|---|
|
|
218
|
-
| 1 | `orchestration.bootstrap` | using-superpowers | The orchestration entrypoint must load before any planning or execution. |
|
|
219
|
-
| 2 | `memory.recall` | mempalace | Prior session/task memory must be recalled before planning. |
|
|
220
|
-
| 3 | `memory.checkpoint` | mempalace | A memory checkpoint is required at session end and after any non-obvious finding. |
|
|
221
|
-
| 4 | `reasoning.checkpoints` | sequential-thinking | Nontrivial planning/diagnosis needs recorded evidence checkpoints. |
|
|
222
|
-
| 5 | `communication.concise` | caveman | Concise, complete contracts, not padded prose. |
|
|
223
|
-
| 6 | `shell.rtk` | rtk | Shell phases run through the configured output-reduction wrapper without changing command semantics. |
|
|
224
|
-
| 7 | `docs.current` | context7 | Version-sensitive or uncertain library/platform work needs current, versioned documentation — even for familiar libraries. |
|
|
225
|
-
| 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. |
|
|
226
|
-
|
|
227
|
-
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`).
|
|
228
|
-
|
|
229
|
-
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.
|
|
230
|
-
|
|
231
|
-
#### Installing the core tools
|
|
232
|
-
|
|
233
|
-
`llm-orchestrator init` reports which of these are missing and prints the matching command. The
|
|
234
|
-
routes below are the ones it prints — each was checked against the published source, because three
|
|
235
|
-
of them are not what the obvious guess would be: `rtk` on crates.io is an unrelated "Rust Type Kit",
|
|
236
|
-
and `mempalace-mcp` and `superpowers` are binaries their plugin ships rather than npm packages you
|
|
237
|
-
can `npx`.
|
|
238
|
-
|
|
239
|
-
| Capability | Tool | Install |
|
|
240
|
-
|---|---|---|
|
|
241
|
-
| `orchestration.bootstrap`, `skill.check`, `verification.checks` | using-superpowers | `/plugin marketplace add anthropics/claude-plugins-official` then `/plugin install superpowers@claude-plugins-official` |
|
|
242
|
-
| `memory.recall`, `memory.checkpoint` | mempalace | `/plugin marketplace add MemPalace/mempalace` then `/plugin install mempalace@mempalace` |
|
|
243
|
-
| `reasoning.checkpoints` | sequential-thinking | `claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking` |
|
|
244
|
-
| `communication.concise` | caveman | `/plugin marketplace add JuliusBrussee/caveman` then `/plugin install caveman@caveman` |
|
|
245
|
-
| `shell.rtk` | rtk | `brew install rtk` (Homebrew core; **not** `cargo install rtk`) |
|
|
246
|
-
| `docs.current` | context7 | `claude mcp add context7 -- npx -y @upstash/context7-mcp` |
|
|
247
|
-
| `research.retrieve` | exa | `claude mcp add exa -- npx -y exa-mcp-server` |
|
|
248
|
-
| `tool.discovery` | harness-native tool search | built in, nothing to install |
|
|
249
|
-
| `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` |
|
|
250
|
-
|
|
251
|
-
The `/plugin ...` lines are Claude Code commands, typed in a session. The `claude mcp add ...` lines
|
|
252
|
-
are shell commands; on Codex, OpenCode or Kilo, register the same MCP server through that harness's
|
|
253
|
-
own config instead — the server package and arguments are identical.
|
|
254
|
-
|
|
255
|
-
Every one of these is optional in the sense that the core still runs without it — but it then runs
|
|
256
|
-
in **declared degraded mode**, and every plan and report says so. That is the design, not a
|
|
257
|
-
workaround.
|
|
258
|
-
|
|
259
|
-
`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`.
|
|
260
|
-
|
|
261
|
-
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.
|
|
262
|
-
|
|
263
|
-
### Registries
|
|
264
|
-
|
|
265
|
-
- `registries/capabilities.json` — the full capability vocabulary.
|
|
266
|
-
- `registries/core-profile.json` — the always-on mandatory/required core.
|
|
267
|
-
- `registries/task-mappings.json` — per-task-type (feature, bug, incident, refactor, investigation, review, deployment, config, research...) mandatory/optional/available obligations.
|
|
268
|
-
- `registries/preferred-tools.json` — concrete tool bindings (MCP, skill, CLI, workflow, native fallback, agent role) per capability, with install hints.
|
|
269
|
-
- `registries/agent-roles.json` — the specialist agent roster, their capabilities/skills/MCPs, and the RO/RW/ORCHESTRATOR permission profiles.
|
|
270
|
-
|
|
271
|
-
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.
|
|
272
|
-
|
|
273
|
-
## Install for your IDE
|
|
274
|
-
|
|
275
|
-
Dry runs by default — inspect conflicts, then repeat with `--apply`. Existing user-owned files are never silently overwritten.
|
|
161
|
+
### The commands
|
|
276
162
|
|
|
277
163
|
```sh
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
`npx llm-orchestrator` (or the bare `llm-orchestrator` after `npm install -g llm-orchestrator`) is
|
|
285
|
-
the entry point. From a clone the same commands are `node bin/llm-orchestrator.mjs ...`; every
|
|
286
|
-
example below spells the clone form, and the npm form is identical minus the `node bin/…` prefix.
|
|
287
|
-
`node bin/install.mjs ...` (same options) still works underneath it.
|
|
288
|
-
|
|
289
|
-
`--skills-root` is optional: it defaults per harness (`codex` → `~/.agents/skills`, `claude` → `~/.claude/skills`, `opencode` → `~/.config/opencode/skills`, `kilo` → `~/.kilo/skills`), so the four commands above are already complete — pass `--skills-root <dir>` only to override that default. `claude`, `claude-code`, and `claude code` resolve to the same harness.
|
|
290
|
-
|
|
291
|
-
`--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.
|
|
292
|
-
|
|
293
|
-
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.
|
|
294
|
-
|
|
295
|
-
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`).
|
|
296
|
-
|
|
297
|
-
### Step by step
|
|
298
|
-
|
|
299
|
-
Same five steps for every harness; only the skills root and the reload differ.
|
|
300
|
-
|
|
301
|
-
1. **Get the package** (Node 22+) — either straight from npm:
|
|
302
|
-
```sh
|
|
303
|
-
npx llm-orchestrator --help # or: npm install -g llm-orchestrator
|
|
304
|
-
```
|
|
305
|
-
or from a clone, when you want to read or pin the source:
|
|
306
|
-
```sh
|
|
307
|
-
git clone https://github.com/tbogdan/llm-orchestrator.git
|
|
308
|
-
cd llm-orchestrator && npm test
|
|
309
|
-
```
|
|
310
|
-
2. **Dry run** against your application — nothing is written, conflicts are listed:
|
|
311
|
-
```sh
|
|
312
|
-
node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness>
|
|
313
|
-
```
|
|
314
|
-
3. **Apply** the same command with `--apply`. Re-running is idempotent; a file you edited by hand is reported as a conflict, never overwritten.
|
|
315
|
-
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.
|
|
316
|
-
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.
|
|
317
|
-
|
|
318
|
-
`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.
|
|
319
|
-
|
|
320
|
-
| Harness | `--harness` | `--skills-root` | Where things land | Reload |
|
|
321
|
-
| --- | --- | --- | --- | --- |
|
|
322
|
-
| Codex | `codex` | `~/.agents/skills` (default) | `AGENTS.md` span, `.agents/skills/orchestrate/SKILL.md`, `~/.codex/prompts/*.md` | new Codex session |
|
|
323
|
-
| 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 |
|
|
324
|
-
| OpenCode | `opencode` | `~/.config/opencode/skills` | `.opencode/commands/*.md`, `--with-agents` → one agent file per role under `.opencode/agent/` | restart `opencode` |
|
|
325
|
-
| 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 |
|
|
326
|
-
|
|
327
|
-
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).
|
|
328
|
-
|
|
329
|
-
#### Project bindings template (paste into AGENTS.md)
|
|
330
|
-
|
|
331
|
-
```markdown
|
|
332
|
-
## Orchestration bindings (project)
|
|
333
|
-
|
|
334
|
-
Generic rules live in `orchestrate-core`; this section only adds or tightens.
|
|
335
|
-
|
|
336
|
-
**Mandatory on every task (project):**
|
|
337
|
-
|
|
338
|
-
| What | When |
|
|
339
|
-
|---|---|
|
|
340
|
-
| `<your compat / schema / lint check command>` | any API or schema change |
|
|
341
|
-
|
|
342
|
-
**MCP servers confirmed live:** `context7`, `mempalace`, `<your MCPs>`. If a call fails, say the server is unreachable — never silently fall back.
|
|
343
|
-
|
|
344
|
-
**Per task type (Mandatory | Optional (trigger) | Available):**
|
|
345
|
-
|
|
346
|
-
| Task type | Mandatory | Optional | Available |
|
|
347
|
-
|---|---|---|---|
|
|
348
|
-
| FEATURE | failing test first | `context7` (any library API) | … |
|
|
349
|
-
| BUG_FIX | reproduce before fixing | `playwright` (UI-visible) | … |
|
|
350
|
-
|
|
351
|
-
**Risk floors (override upward only):** `<area>` → implementation `<tier>`, independent review `<tier>`.
|
|
352
|
-
|
|
353
|
-
**Agent defaults:** `<role>` → `<tier>` (W T0–T1 / S T2 / S T3 / X T3 …).
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
### Per-harness notes
|
|
357
|
-
|
|
358
|
-
- **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`.
|
|
359
|
-
- **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.
|
|
360
|
-
- **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`.
|
|
361
|
-
- **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.
|
|
362
|
-
|
|
363
|
-
### Flow adherence
|
|
364
|
-
|
|
365
|
-
Agents tend to skip a mandatory skill out of habit — they see a quick lookup, reach for `grep` or
|
|
366
|
-
`ssh`, and never classify or plan. The installer adds small hooks that steer instead of relying on
|
|
367
|
-
more instructions:
|
|
368
|
-
|
|
369
|
-
- When the main agent starts working on a prompt with no orchestrate-core run open, the model gets
|
|
370
|
-
one sentence (`additionalContext`, invisible in your conversation) pointing it back at the flow:
|
|
371
|
-
classify, then `llm-orchestrator run start --type <TYPE>`, or declare the task trivial with
|
|
372
|
-
`llm-orchestrator run start --trivial "<reason>"`. Once per prompt, never for subagents, never for
|
|
373
|
-
reading the orchestration instructions.
|
|
374
|
-
- **Nothing is ever blocked.** The handler (`llm-orchestrator gate`) has no deny path, fails open on
|
|
375
|
-
any error, and is wrapped so a missing runtime is a silent no-op.
|
|
376
|
-
- Each project keeps a ledger in `.orchestrator-run/` (self-gitignored): ids, task types, counts
|
|
377
|
-
and timestamps only — never prompts, tool inputs or file contents. `doctor` reports it under
|
|
378
|
-
`flow.adherence`: runs, trivial declarations, tasks that skipped the flow, runs started outside
|
|
379
|
-
it, runs opened without a PlanShard count, runs that planned several shards but started no
|
|
380
|
-
subagents, and runs still open.
|
|
381
|
-
- Trivial is the narrow exception — a one-line change such as a typo or a version bump. A run
|
|
382
|
-
declared trivial that then edits a second file, touches tests, queries a live source twice, or keeps
|
|
383
|
-
working past eight calls (an investigation is not trivial) gets one reminder to reopen it as
|
|
384
|
-
a typed run, and counts as `trivial_overreach` in the audit. Trivial runs close at the end of the
|
|
385
|
-
turn (`Stop` hook), so single-prompt sessions still reach the history. Typed runs stay open across
|
|
386
|
-
turns and close when the session ends (`SessionEnd`), so an unclosed run is never lost.
|
|
387
|
-
- Subagents are counted once each: resuming one (SendMessage) is not a new dispatch. Each is also
|
|
388
|
-
classified by its agent type — one of the orchestrator's roles, or a generic agent such as
|
|
389
|
-
`general-purpose` — and the dispatch reminder names the roles of the task's flow. The audit
|
|
390
|
-
reports `role_dispatches`, `generic_dispatches` and `runs_without_roles`. The Claude Code plugin
|
|
391
|
-
ships the roles as agents (`llm-orchestrator:<role>`), so they are available without a project
|
|
392
|
-
install.
|
|
393
|
-
- 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
|
|
394
|
-
subagent started — gets one more sentence: dispatch the independent shards (searching for the
|
|
395
|
-
Agent tool if it is deferred), or declare the chain inline with
|
|
396
|
-
`run start --type <T> --shards <n> --inline "stateful:<what>"`. Work is inline only while it holds
|
|
397
|
-
live state a subagent cannot inherit (a browser mid-flow, an interactive shell); independent reads
|
|
398
|
-
are never inline. The audit adds `inline_declared`, `inline_after_nudge` (an `--inline` declared only
|
|
399
|
-
after a dispatch reminder — a retroactive justification) and `below_fan_out` (incident, investigation
|
|
400
|
-
or research runs opened with fewer than two shards).
|
|
401
|
-
- Once the entrypoint is loaded, read-only discovery (reading files, `grep`, `git status`, tool
|
|
402
|
-
version checks) before `run start` is SKILL.md steps 2–3, not a deviation. An edit, a write, a
|
|
403
|
-
dispatch or any other shell command before the run is.
|
|
404
|
-
- Only projects that use orchestrate-core are steered — an `AGENTS.md`/`CLAUDE.md` naming the
|
|
405
|
-
entrypoint (every CLI install writes one) or an existing ledger. The Claude Code plugin's hooks
|
|
406
|
-
therefore stay silent in unrelated projects.
|
|
407
|
-
|
|
408
|
-
| Harness | Where the hooks live |
|
|
409
|
-
| --- | --- |
|
|
410
|
-
| Claude Code (plugin) | the plugin's own `hooks/hooks.json` — active on `/plugin install` |
|
|
411
|
-
| Claude Code (CLI install) | marked entries merged into `.claude/settings.json`; the rest of the file is untouched |
|
|
412
|
-
| Codex | marked entries in `.codex/hooks.json` — trust them once in `/hooks` |
|
|
413
|
-
| 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 |
|
|
414
|
-
|
|
415
|
-
`install --no-flow-hooks` skips them (and withdraws hooks an earlier install wrote); the choice is
|
|
416
|
-
remembered until `--flow-hooks` turns them back on. `uninstall` removes exactly the marked entries
|
|
417
|
-
and restores the rest of each file as it was.
|
|
418
|
-
|
|
419
|
-
### Uninstall
|
|
420
|
-
|
|
421
|
-
```sh
|
|
422
|
-
node bin/llm-orchestrator.mjs uninstall --project /path/to/app --harness codex
|
|
423
|
-
node bin/llm-orchestrator.mjs uninstall --project /path/to/app --harness codex --apply
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
Dry run first, then `--apply`. It removes only unchanged, package-owned files it installed — never a file a human has since edited, and never user tools or provider credentials. A hand-edited `AGENTS.md` span or command file is reported under `preserved`, left exactly as you wrote it, and the (now orphaned) manifest entry for it is dropped so a future reinstall treats it as fresh. The shared `orchestrate-core` runtime under `--skills-root` is only removed by uninstalling the last project that references it; `retained_shared_runtime` in the JSON output lists what stayed.
|
|
427
|
-
|
|
428
|
-
## Using it from an already-installed project
|
|
429
|
-
|
|
430
|
-
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:
|
|
431
|
-
|
|
432
|
-
1. **Bootstrap** — the entrypoint skill is discovered and read (this is itself the first of the 8 mandatory core tools).
|
|
433
|
-
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.
|
|
434
|
-
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.
|
|
435
|
-
|
|
436
|
-
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:
|
|
437
|
-
|
|
438
|
-
```sh
|
|
439
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --phase implementation --role backend-fixer --complexity MODERATE --harness claude
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
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.
|
|
443
|
-
|
|
444
|
-
## Cost-aware routing (built in)
|
|
445
|
-
|
|
446
|
-
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 curated shortlist — thirteen ladder incumbents (three of them fallbacks for their successors) and ten measured candidates — with their supported thinking levels, prices, measured $/task per effort and thinking-cost indices (Artificial Analysis snapshot, copied verbatim, never invented). `lib/router.mjs` resolves a dispatch; `bin/route.mjs` exposes it:
|
|
447
|
-
|
|
448
|
-
```sh
|
|
449
|
-
node bin/llm-orchestrator.mjs route --list # vocab: task types, phases, roles, areas
|
|
450
|
-
node bin/llm-orchestrator.mjs route --task BUG_FIX --phase fix --area refund --risk critical --harness codex
|
|
451
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --complexity COMPLEX --flow --provider anthropic # whole flow, $ estimate, tier histogram
|
|
452
|
-
node bin/llm-orchestrator.mjs route --task FEATURE --phase implementation --include-candidates --cheapest-thinking
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
- `--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.
|
|
456
|
-
- `--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.
|
|
457
|
-
- `--kind <default-routing kind>` overrides the starting row of the resolution order; `--context-tokens <n>` feeds the context axis (worker window cap, >272K repricing cliff); `--json` prints the machine-readable form of any of the above.
|
|
458
|
-
|
|
459
|
-
Resolution order: default routing → agent default → task-flow phase → complexity → risk floor (upward only) → context rules (Haiku 200K cap, Codex >272K repricing) → 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.
|
|
460
|
-
|
|
461
|
-
### Per-shard selection, not per task
|
|
462
|
-
|
|
463
|
-
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`, 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.
|
|
464
|
-
|
|
465
|
-
### Shortlisted models and thinking levels (snapshot 2026-09-23)
|
|
466
|
-
|
|
467
|
-
Incumbents hold a seat on a provider ladder. 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.
|
|
468
|
-
|
|
469
|
-
| Model | Provider | Ladder | Admission | Tier | Thinking levels | $ in / out per MTok |
|
|
470
|
-
|---|---|---|---|---|---|---|
|
|
471
|
-
| GPT-6 Luna | openai | codex | incumbent | W | low, medium, high, xhigh, max (reasoning_effort) | $0.1 / $0.5 |
|
|
472
|
-
| GPT-5.6 Luna | openai | codex | incumbent (fallback for GPT-6 Luna) | W | low, medium, high, xhigh, max (reasoning_effort) | $0.2 / $1.2 |
|
|
473
|
-
| GPT-5.6 Terra | openai | codex | incumbent (S fallback; GPT-6 Sol holds the S seat one notch down) | S | low, medium, high, xhigh, max (reasoning_effort) | $2 / $12 |
|
|
474
|
-
| GPT-6 Sol | openai | codex | incumbent | X | low, medium, high, xhigh, max (reasoning_effort) | $2 / $10 |
|
|
475
|
-
| GPT-5.6 Sol | openai | codex | incumbent (fallback for GPT-6 Sol) | X | low, medium, high, xhigh, max (reasoning_effort) | $4 / $20 |
|
|
476
|
-
| GPT-6 Astra | openai | codex | incumbent | F | low, medium, high, xhigh, max (reasoning_effort) | $10 / $50 |
|
|
477
|
-
| Claude Haiku 4.5 | anthropic | claude | incumbent | W | disabled, enabled (budget_tokens) | $1 / $5 |
|
|
478
|
-
| Claude Sonnet 5 | anthropic | claude | incumbent | S | low, medium, high, xhigh, max (effort) | $2 / $10 |
|
|
479
|
-
| Claude Opus 5 | anthropic | claude | incumbent (fallback for Opus 5.5) | X | low, medium, high, xhigh, max (effort) | $5 / $25 |
|
|
480
|
-
| Claude Opus 5.5 | anthropic | claude | incumbent | X | low, medium, high, xhigh, max (effort) | $4 / $20 |
|
|
481
|
-
| Claude Fable 5 | anthropic | claude | incumbent | F | low, medium, high, xhigh, max (effort) | $10 / $50 |
|
|
482
|
-
| Claude Fable 5.1 | anthropic | claude | incumbent | F | low, medium, high, xhigh, max (effort) | $10 / $50 |
|
|
483
|
-
| Grok 4.7 | xai | — | incumbent | — (unrated) | low, medium, high, xhigh (reasoning_effort) | $2 / $6 |
|
|
484
|
-
| Muse Spark 1.3 | muse | third-party | candidate | X (48) | xhigh, max (provider-default) | $1.25 / $4.25 |
|
|
485
|
-
| Grok 4.6 | xai | third-party | candidate | S (44) | low, medium, high, xhigh (reasoning_effort) | $2 / $6 |
|
|
486
|
-
| MiMo V2.6 Pro | xiaomi | third-party | candidate | X (46) | default (provider-default) | $0.435 / $0.87 |
|
|
487
|
-
| Gemini 3.8 Flash | google | third-party | candidate | S (41) | low, medium, high (provider-default) | $0.75 / $3.75 |
|
|
488
|
-
| Qwen3.8 Max | alibaba | third-party | candidate | X (45) | default (provider-default) | $2 / $6 |
|
|
489
|
-
| GLM 5.3 | z.ai | open | candidate | X (45) | max (provider-default) | $1.4 / $4.4 |
|
|
490
|
-
| GLM 5.3 Flash | z.ai | open | candidate | S (42) | default (provider-default) | $0.15 / $0.5 |
|
|
491
|
-
| Kimi K3 | moonshot | open | candidate | S (44) | low, max (provider-default) | $3 / $15 |
|
|
492
|
-
| DeepSeek V4.1 Flash | deepseek | open | candidate | S (39) | max (provider-default) | $0.3 / $1.2 |
|
|
493
|
-
| MiniMax M3 | minimax | open | candidate | W (29) | default (provider-default) | $0.3 / $1.2 |
|
|
494
|
-
|
|
495
|
-
`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.
|
|
496
|
-
|
|
497
|
-
Prices and measured costs are dated evidence, not live tariffs; refresh `models/` before relying on the numbers.
|
|
498
|
-
|
|
499
|
-
## Updating
|
|
500
|
-
|
|
501
|
-
From npm — `npx` always resolves the latest published version, so there is nothing to pull:
|
|
502
|
-
|
|
503
|
-
```sh
|
|
504
|
-
npx llm-orchestrator@latest install --project /path/to/app --harness <harness> --apply
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
From a clone:
|
|
508
|
-
|
|
509
|
-
```sh
|
|
510
|
-
git -C llm-orchestrator pull
|
|
511
|
-
node bin/llm-orchestrator.mjs install --project /path/to/app --harness <harness> --apply
|
|
512
|
-
```
|
|
513
|
-
|
|
514
|
-
In Claude Code, the plugin updates on its own terms: `/plugin update llm-orchestrator@tbogdan`.
|
|
515
|
-
|
|
516
|
-
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.
|
|
517
|
-
|
|
518
|
-
## Usage once installed
|
|
519
|
-
|
|
520
|
-
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.
|
|
521
|
-
|
|
522
|
-
## 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
|
|
523
170
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
node bin/llm-orchestrator.mjs models report --check # model matrix is current
|
|
530
|
-
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
|
|
531
176
|
```
|
|
532
177
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
- **`--skills-root is required` no longer appears.** It used to be mandatory for non-Codex harnesses; it now defaults per harness (see "Install for your IDE"). If several harnesses share a root, make sure each IDE's own config actually points at it — `install` cannot verify a harness's native skill-discovery configuration for you, only render the files.
|
|
178
|
+
## What it does not do
|
|
179
|
+
|
|
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/).
|
|
553
197
|
|
|
554
198
|
## Attribution
|
|
555
199
|
|