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.
Files changed (71) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +143 -499
  3. package/SKILL.md +45 -5
  4. package/adapters/agents.mjs +21 -5
  5. package/adapters/codex/index.mjs +0 -2
  6. package/adapters/commands.mjs +26 -1
  7. package/adapters/hooks.mjs +29 -9
  8. package/agents/advisor.md +53 -0
  9. package/agents/code-simplifier.md +1 -0
  10. package/agents/orchestrator.md +1 -1
  11. package/agents/route-data-flow-tracer.md +1 -0
  12. package/bin/budget.mjs +94 -0
  13. package/bin/cli-options.mjs +31 -10
  14. package/bin/discover-models.mjs +428 -13
  15. package/bin/dispatch.mjs +181 -0
  16. package/bin/doctor.mjs +53 -24
  17. package/bin/gate.mjs +3 -2
  18. package/bin/install.mjs +15 -8
  19. package/bin/llm-orchestrator.mjs +22 -3
  20. package/bin/model-thinking-report.mjs +1 -0
  21. package/bin/route.mjs +57 -18
  22. package/bin/strategy.mjs +234 -0
  23. package/bin/tools.mjs +84 -0
  24. package/bin/uninstall.mjs +3 -1
  25. package/commands/task.md +26 -1
  26. package/docs/REFERENCE.md +628 -0
  27. package/hooks/hooks.json +11 -0
  28. package/lib/adapter-renderer.mjs +131 -10
  29. package/lib/budget.mjs +269 -0
  30. package/lib/dispatch-contract.mjs +87 -24
  31. package/lib/file-lock.mjs +121 -0
  32. package/lib/first-run.mjs +41 -12
  33. package/lib/flow-gate.mjs +687 -75
  34. package/lib/installation.mjs +313 -75
  35. package/lib/learning.mjs +233 -0
  36. package/lib/project-root.mjs +52 -0
  37. package/lib/router.mjs +473 -65
  38. package/lib/strategy-store.mjs +481 -0
  39. package/lib/tool-use.mjs +348 -0
  40. package/models/example-model-inventory.json +21 -10
  41. package/models/model-thinking-data.json +134 -2
  42. package/models/model-thinking-matrix.md +32 -0
  43. package/models/top-models.json +794 -44
  44. package/package.json +2 -1
  45. package/policies/capabilities.md +102 -4
  46. package/policies/dispatch.md +26 -1
  47. package/policies/learning.md +339 -0
  48. package/policies/routing.md +240 -63
  49. package/protocol.md +21 -0
  50. package/registries/agent-roles.json +35 -1
  51. package/registries/capabilities.json +1 -0
  52. package/registries/core-profile.json +255 -46
  53. package/registries/learning.json +219 -0
  54. package/registries/preferred-tools.json +73 -3
  55. package/registries/routing-matrix.json +61 -37
  56. package/registries/task-mappings.json +42 -0
  57. package/registries/tool-use.json +230 -0
  58. package/schemas/flow-ledger.schema.json +43 -2
  59. package/schemas/installation-manifest.schema.json +56 -5
  60. package/schemas/learning.schema.json +139 -0
  61. package/schemas/routing-matrix.schema.json +23 -3
  62. package/schemas/top-models.schema.json +32 -6
  63. package/workflows/bug-fix.md +8 -0
  64. package/workflows/config.md +8 -0
  65. package/workflows/deploy.md +8 -0
  66. package/workflows/feature.md +8 -0
  67. package/workflows/incident.md +8 -0
  68. package/workflows/investigation.md +8 -0
  69. package/workflows/refactor.md +8 -0
  70. package/workflows/research.md +8 -0
  71. package/workflows/review.md +8 -0
@@ -136,13 +136,19 @@
136
136
  "id": "serena",
137
137
  "kind": "mcp",
138
138
  "capabilities": [
139
- "code.semantic_edit"
139
+ "code.semantic_edit",
140
+ "code.locate"
140
141
  ],
141
142
  "scope": "user",
142
- "source": "preferred semantic-edit implementation",
143
+ "source": "mandatory semantic code implementation (domain-conditional core)",
143
144
  "display_name": "Serena",
144
145
  "recommendation_kind": "product",
145
- "installable": true
146
+ "installable": true,
147
+ "install": "`uv tool install -p 3.13 serena-agent && serena init`, then `serena setup claude-code` or `serena setup codex`; any other harness: register `serena start-mcp-server` as an MCP server (client list in its docs)",
148
+ "source_url": "https://oraios.github.io/serena",
149
+ "license": "GPL-3.0-or-later (application), MIT (SolidLSP)",
150
+ "agent_note": "call its `initial_instructions` tool once before the first symbol call; then prefer `get_symbols_overview`, `find_symbol` and `find_referencing_symbols` over reading whole files",
151
+ "notes": "Symbol-level code tools over a language server: an overview of a file, a definition, every reference, and rename / replace / insert / safe-delete of a symbol across files. Worth it on a sizeable codebase, for cross-file edits and for \"who calls this\"; plain reads stay right for small files, configuration and prose. Subagents do not inherit its manual: each one calls `initial_instructions` first. Serena also ships optional `serena-hooks` (remind, activate, cleanup); its own docs call them alpha, and this package already sends the reminder from its flow gate, so do not install both."
146
152
  },
147
153
  {
148
154
  "id": "caveman-cavecrew-investigator",
@@ -191,6 +197,70 @@
191
197
  "license": "Apache-2.0",
192
198
  "notes": "One skill, invoked /impeccable <command> <target>. `npx impeccable install` runs from the project root and installs for every harness folder it detects (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Copilot, ...); `npx impeccable update` refreshes it. The Claude Code plugin exposes it as impeccable:impeccable. A harness the installer does not detect is a declared gap."
193
199
  },
200
+ {
201
+ "id": "copywriting",
202
+ "kind": "skill",
203
+ "capabilities": [
204
+ "content.copywriting"
205
+ ],
206
+ "scope": "user",
207
+ "source": "preferred skill for new or rewritten people-facing text",
208
+ "display_name": "Copywriting (marketingskills)",
209
+ "recommendation_kind": "product",
210
+ "installable": true,
211
+ "install": "`npx skills add coreyhaines31/marketingskills` (installs the whole pack for the harnesses it detects); the same pack is offered as a Claude Code and Codex plugin marketplace",
212
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
213
+ "license": "MIT",
214
+ "notes": "Diagnoses the request first (blank brief, real voice present, point edit) and changes only what that calls for; writes only supportable claims and names the evidence a declined claim would need. Reads `.agents/product-marketing.md` when the project has one. Its AI-tell list is written for English: in another language apply the principles and keep the language of the text."
215
+ },
216
+ {
217
+ "id": "copy-editing",
218
+ "kind": "skill",
219
+ "capabilities": [
220
+ "content.copywriting"
221
+ ],
222
+ "scope": "user",
223
+ "source": "preferred skill for editing or reviewing existing people-facing text",
224
+ "display_name": "Copy editing (marketingskills)",
225
+ "recommendation_kind": "product",
226
+ "installable": true,
227
+ "install": "`npx skills add coreyhaines31/marketingskills`",
228
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
229
+ "license": "MIT",
230
+ "notes": "For text that already exists: a point edit changes only the line asked for; a review or polish runs the full sweep."
231
+ },
232
+ {
233
+ "id": "product-marketing",
234
+ "kind": "skill",
235
+ "capabilities": [
236
+ "content.copywriting"
237
+ ],
238
+ "scope": "project",
239
+ "source": "context for the copywriting skills (never a substitute)",
240
+ "display_name": "Product marketing context (marketingskills)",
241
+ "recommendation_kind": "product",
242
+ "installable": true,
243
+ "install": "`npx skills add coreyhaines31/marketingskills`",
244
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
245
+ "license": "MIT",
246
+ "notes": "Creates `.agents/product-marketing.md` — product, audience, positioning, voice — which the rest of the pack reads. Run it once per project before the first substantial piece of copy."
247
+ },
248
+ {
249
+ "id": "humanizer",
250
+ "kind": "skill",
251
+ "capabilities": [
252
+ "content.copywriting"
253
+ ],
254
+ "scope": "user",
255
+ "source": "complement for documentation prose (README, release notes, PR text)",
256
+ "display_name": "Humanizer",
257
+ "recommendation_kind": "product",
258
+ "installable": true,
259
+ "install": "`npx skills add blader/humanizer --global --agent '*'`",
260
+ "source_url": "https://github.com/blader/humanizer",
261
+ "license": "MIT",
262
+ "notes": "Removes AI writing patterns while keeping every fact and leaving code blocks alone. A complement for docs prose, where the marketing pack's page-and-conversion intake fits poorly."
263
+ },
194
264
  {
195
265
  "id": "design-system",
196
266
  "kind": "skill",
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "_attribution": "llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving",
3
3
  "schema_version": 1,
4
- "observed_at": "2026-09-22",
4
+ "observed_at": "2026-12-01",
5
5
  "source_of_truth": "policies/routing.md",
6
6
  "note": "Machine-readable encoding of policies/routing.md. The prose remains authoritative for intent; this registry is what lib/router.mjs and bin/route.mjs execute. Model prices and measured cost per task live in models/top-models.json.",
7
7
  "tiers": {
8
8
  "W": {
9
9
  "name": "worker",
10
10
  "responsibility": "Local, mechanical, repetitive, well-defined: code search, classification, extraction, small edits, boilerplate, simple tests, consistency checks, scoped transforms.",
11
- "incumbents": {"claude": "claude-haiku-4-5", "codex": "gpt-6-luna"},
12
- "fallbacks": {"codex": ["gpt-5.6-luna"]}
11
+ "incumbents": {"claude": "claude-haiku-5-5", "codex": "gpt-6-luna"},
12
+ "fallbacks": {"claude": ["claude-haiku-4-5"], "codex": ["gpt-5.6-luna"]}
13
13
  },
14
14
  "S": {
15
15
  "name": "standard",
16
16
  "responsibility": "Default software-engineering model: normal implementation, frontend/backend, moderate debugging, tests, reasonable multi-file refactors, codebase analysis, tool use.",
17
- "incumbents": {"claude": "claude-sonnet-5", "codex": "gpt-6-sol"},
18
- "fallbacks": {"codex": ["gpt-5.6-terra"]}
17
+ "incumbents": {"claude": "claude-sonnet-5-5", "codex": "gpt-6-sol"},
18
+ "fallbacks": {"claude": ["claude-sonnet-5"], "codex": ["gpt-6.1-terra", "gpt-5.6-terra"]}
19
19
  },
20
20
  "X": {
21
21
  "name": "senior",
22
22
  "responsibility": "Hard debugging, architecture, concurrency, migrations, security, auth, payments, billing, backwards compatibility, critical code review, many invariants.",
23
- "incumbents": {"claude": "claude-opus-5-5", "codex": "gpt-6-sol"},
24
- "fallbacks": {"claude": ["claude-opus-5"], "codex": ["gpt-5.6-sol"]}
23
+ "incumbents": {"claude": "claude-opus-5-5", "codex": "gpt-6.2-sol"},
24
+ "fallbacks": {"claude": ["claude-opus-5"], "codex": ["gpt-6-sol", "gpt-5.6-sol", "gpt-6.1-sol"]}
25
25
  },
26
26
  "F": {
27
27
  "name": "frontier",
28
28
  "responsibility": "Exceptional escalation: very ambiguous, long-horizon, cross-system, major architecture, very large codebase, planning under heavy constraints, or when X fails to produce a solid solution.",
29
- "incumbents": {"claude": "claude-fable-5", "codex": "gpt-6-astra"},
29
+ "incumbents": {"claude": "claude-fable-5-2", "codex": "gpt-6.2-astra"},
30
+ "fallbacks": {"claude": ["claude-fable-5"], "codex": ["gpt-6-astra"]},
30
31
  "capped_exception": {"claude": "claude-fable-5-1"}
31
32
  }
32
33
  },
@@ -36,6 +37,7 @@
36
37
  "use": "Mechanical: copy, grep, formatting, trivial edit.",
37
38
  "claude_effort": null,
38
39
  "codex_reasoning_effort": "low",
40
+ "codex_note": "T0 shares the W T0-T1 seat, which defaults to `low`. Where the runtime lists `none` and not `low` for a model whose registry efforts include `none` (GPT-6 Luna), the seat runs at `none`.",
39
41
  "haiku_budget": "thinking off"
40
42
  },
41
43
  "T1": {
@@ -60,7 +62,7 @@
60
62
  "use": "Very hard debugging, security, money, concurrency, migrations, architecture, critical compatibility.",
61
63
  "claude_effort": "xhigh",
62
64
  "codex_reasoning_effort": "high",
63
- "codex_note": "No usable effort above `high` on the gpt-5.6 family: T4 is `high` plus an independent second reviewer. Astra expresses T4 as `xhigh`.",
65
+ "codex_note": "No usable effort above `high` on the Sol and Terra families: T4 is `high` plus an independent second reviewer. Astra expresses T4 as `xhigh`, and Luna expresses W T3 as `xhigh`; both are declared per model as `thinking.tier_effort` in models/top-models.json.",
64
66
  "haiku_budget": "not available — escalate to S instead of inflating the budget"
65
67
  },
66
68
  "T5": {
@@ -72,14 +74,34 @@
72
74
  }
73
75
  },
74
76
  "thinking_level_order": ["T0", "T1", "T2", "T3", "T4", "T5"],
75
- "haiku_budget_rule": "The Claude W model has no `effort` parameter — only `thinking: enabled` + `budget_tokens`. T0/T1 = thinking off, T2 = small budget, T3 = moderate budget. If a task would need T4+, escalate to S instead of inflating the budget: a small model that thinks a lot does not become a frontier model.",
77
+ "haiku_budget_rule": "Applies to the Claude W fallback, Haiku 4.5 (the W seat, Haiku 5.5, takes `effort`). Haiku 4.5 has no `effort` parameter — only `thinking: enabled` + `budget_tokens`. T0/T1 = thinking off, T2 = small budget, T3 = moderate budget. If a task would need T4+, escalate to S instead of inflating the budget: a small model that thinks a lot does not become a frontier model.",
78
+ "inventory_ladder": {
79
+ "applies_when": "The active harness or provider has no hard-coded ladder in this matrix (anything other than the Claude and Codex ladders), or the caller passes a runtime inventory.",
80
+ "order": [
81
+ "Keep the inventory entries marked exposed or verified whose id normalises to exactly one registry model.",
82
+ "For the pair's tier, take the registry models eligible there: an incumbent's tier seat or a candidate's tier_bands placement.",
83
+ "Apply every admission rule and cap unchanged.",
84
+ "Rank by measured USD per task, then by the token price index; a supersedes successor at or below its predecessor's list price ranks directly ahead of it.",
85
+ "On a T4/T5 pair, an independent-review seat or a review row, rank every model the benchmark has scored ahead of every model it has not: list price is not evidence of quality.",
86
+ "The first admitted model holds the seat, under the id the inventory uses."
87
+ ],
88
+ "never": [
89
+ "Never seat a candidate on a T4/T5 pair, an independent-review seat or a risk-floor review row.",
90
+ "Never seat a free variant or a gateway variant (an id whose vendor segments do not name the model's provider) on a T4/T5 pair, an independent-review seat or a review row.",
91
+ "Never promote an unmeasured successor into a T4/T5 pair, an independent-review seat or a review row while a measured model is available: the measured predecessor keeps the seat and the successor is listed as the alternative.",
92
+ "Never seat a ladder's model on a pair whose resolution row is null for that ladder: the row says escalate.",
93
+ "Never seat an unrated model: an inventory id with no registry match, or a registry model without a tier.",
94
+ "Never fill an empty tier from a quieter tier or from the Claude or Codex ladder: the result is blocked, no eligible model.",
95
+ "Never treat a registry entry as evidence of exposure: without an inventory a ladder-less harness is blocked."
96
+ ]
97
+ },
76
98
  "resolution": {
77
99
  "W T0-T1": {
78
- "claude": {"model": "claude-haiku-4-5", "effort": null, "thinking": "off"},
100
+ "claude": {"model": "claude-haiku-5-5", "effort": "low", "critical_seat": {"model": "claude-haiku-4-5", "effort": null}},
79
101
  "codex": {"model": "gpt-6-luna", "effort": "low"}
80
102
  },
81
103
  "W T2": {
82
- "claude": {"model": "claude-haiku-4-5", "effort": null, "thinking": "small budget"},
104
+ "claude": {"model": "claude-haiku-5-5", "effort": "medium", "critical_seat": {"model": "claude-haiku-4-5", "effort": "enabled"}},
83
105
  "codex": {"model": "gpt-6-luna", "effort": "medium"}
84
106
  },
85
107
  "W T3": {
@@ -88,40 +110,40 @@
88
110
  "codex": {"model": "gpt-6-luna", "effort": "xhigh", "alternate_effort": "max"}
89
111
  },
90
112
  "S T1": {
91
- "claude": {"model": "claude-sonnet-5", "effort": "low"},
113
+ "claude": {"model": "claude-sonnet-5-5", "effort": "low", "critical_seat": {"model": "claude-sonnet-5", "effort": "low"}},
92
114
  "codex": {"model": "gpt-6-sol", "effort": "low"}
93
115
  },
94
116
  "S T2": {
95
- "claude": {"model": "claude-sonnet-5", "effort": "medium"},
117
+ "claude": {"model": "claude-sonnet-5-5", "effort": "medium", "critical_seat": {"model": "claude-sonnet-5", "effort": "medium"}},
96
118
  "codex": {"model": "gpt-6-sol", "effort": "low"}
97
119
  },
98
120
  "S T3": {
99
- "claude": {"model": "claude-sonnet-5", "effort": "high"},
121
+ "claude": {"model": "claude-sonnet-5-5", "effort": "high", "critical_seat": {"model": "claude-sonnet-5", "effort": "high"}},
100
122
  "codex": {"model": "gpt-6-sol", "effort": "medium"}
101
123
  },
102
124
  "X T2": {
103
125
  "claude": {"model": "claude-opus-5-5", "effort": "medium"},
104
- "codex": {"model": "gpt-6-sol", "effort": "medium"}
126
+ "codex": {"model": "gpt-6.2-sol", "effort": "medium", "critical_seat": {"model": "gpt-6-sol", "effort": "medium"}}
105
127
  },
106
128
  "X T3": {
107
129
  "claude": {"model": "claude-opus-5-5", "effort": "high"},
108
- "codex": {"model": "gpt-6-sol", "effort": "high"}
130
+ "codex": {"model": "gpt-6.2-sol", "effort": "high", "critical_seat": {"model": "gpt-6-sol", "effort": "high"}}
109
131
  },
110
132
  "X T4": {
111
133
  "claude": {"model": "claude-opus-5-5", "effort": "xhigh"},
112
- "codex": {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": {"model": "gpt-6-sol", "effort": "high"}}
134
+ "codex": {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": {"model": "gpt-6-sol", "effort": "high"}, "alternative": {"model": "gpt-6.2-sol", "effort": "high", "reason": "unmeasured: not seated for critical review"}}
113
135
  },
114
136
  "F T3": {
115
- "claude": {"model": "claude-fable-5", "effort": "high"},
116
- "codex": {"model": "gpt-6-astra", "effort": "high"}
137
+ "claude": {"model": "claude-fable-5-2", "effort": "high", "critical_seat": {"model": "claude-fable-5", "effort": "high"}, "note": "The unmeasured successor holds the non-critical F T3 seat only; a review or independent-review F T3 seat keeps Fable 5."},
138
+ "codex": {"model": "gpt-6.2-astra", "effort": "high", "critical_seat": {"model": "gpt-6-astra", "effort": "high"}, "note": "The unmeasured successor holds the non-critical F T3 seat only; a review or independent-review F T3 seat keeps GPT-6 Astra."}
117
139
  },
118
140
  "F T4": {
119
- "claude": {"model": "claude-fable-5", "effort": "xhigh"},
120
- "codex": {"model": "gpt-6-astra", "effort": "xhigh"}
141
+ "claude": {"model": "claude-fable-5", "effort": "xhigh", "alternative": {"model": "claude-fable-5-2", "effort": "xhigh", "reason": "unmeasured: not seated for critical review"}},
142
+ "codex": {"model": "gpt-6-astra", "effort": "xhigh", "alternative": {"model": "gpt-6.2-astra", "effort": "xhigh", "reason": "unmeasured: not seated for critical review"}}
121
143
  },
122
144
  "F T5": {
123
- "claude": {"model": "claude-fable-5", "effort": "max", "note": "Essentially never. Fable 5.1 only under the ≤2% cap."},
124
- "codex": {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never."}
145
+ "claude": {"model": "claude-fable-5", "effort": "max", "note": "Essentially never. Fable 5.1 only under the ≤2% cap.", "alternative": {"model": "claude-fable-5-2", "effort": "max", "reason": "unmeasured: not seated for critical review"}},
146
+ "codex": {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never.", "alternative": {"model": "gpt-6.2-astra", "effort": "max", "reason": "unmeasured: not seated for critical review"}}
125
147
  }
126
148
  },
127
149
  "pair_normalization": {
@@ -256,6 +278,7 @@
256
278
  "risk_floor_rule": "Project rows in the consuming project's `## Orchestration bindings (project)` section override these upward, never downward. A cheaper frontier config never overrides a risk-floor row. The reviewer must be an independent agent — a separate child with no full-history fork.",
257
279
  "agent_defaults": {
258
280
  "orchestrator": "S T3",
281
+ "advisor": "F T3",
259
282
  "production-telemetry-collector": "W T0-T1",
260
283
  "route-data-flow-tracer": "W T0-T1",
261
284
  "explore": "W T0-T1",
@@ -278,14 +301,14 @@
278
301
  },
279
302
  "escalation_ladder": {
280
303
  "claude": [
281
- {"model": "claude-haiku-4-5", "effort": null},
282
- {"model": "claude-sonnet-5", "effort": "low"},
283
- {"model": "claude-sonnet-5", "effort": "medium"},
284
- {"model": "claude-sonnet-5", "effort": "high"},
304
+ {"model": "claude-haiku-5-5", "effort": "low"},
305
+ {"model": "claude-sonnet-5-5", "effort": "low"},
306
+ {"model": "claude-sonnet-5-5", "effort": "medium"},
307
+ {"model": "claude-sonnet-5-5", "effort": "high"},
285
308
  {"model": "claude-opus-5-5", "effort": "high"},
286
309
  {"model": "claude-opus-5-5", "effort": "xhigh"},
287
- {"model": "claude-fable-5", "effort": "high"},
288
- {"model": "claude-fable-5", "effort": "xhigh"},
310
+ {"model": "claude-fable-5-2", "effort": "high"},
311
+ {"model": "claude-fable-5", "effort": "xhigh", "note": "T4/T5 keep the measured model; Fable 5.2 is unmeasured and is the alternative."},
289
312
  {"model": "claude-fable-5", "effort": "max"},
290
313
  {"model": "claude-fable-5-1", "effort": "high", "requires_explicit_flag": true, "note": "≤2% cap, explicit request or documented Fable 5 F-T4 failure only."}
291
314
  ],
@@ -296,10 +319,10 @@
296
319
  {"model": "gpt-6-luna", "effort": "max"},
297
320
  {"model": "gpt-6-sol", "effort": "low"},
298
321
  {"model": "gpt-6-sol", "effort": "medium"},
299
- {"model": "gpt-6-sol", "effort": "high"},
300
- {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": true},
301
- {"model": "gpt-6-astra", "effort": "high"},
302
- {"model": "gpt-6-astra", "effort": "xhigh"},
322
+ {"model": "gpt-6.2-sol", "effort": "high"},
323
+ {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": true, "note": "X T4 keeps the measured model; GPT-6.2 Sol is unmeasured and is the alternative."},
324
+ {"model": "gpt-6.2-astra", "effort": "high"},
325
+ {"model": "gpt-6-astra", "effort": "xhigh", "note": "T4/T5 keep the measured model; GPT-6.2 Astra is unmeasured and is the alternative."},
303
326
  {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never."}
304
327
  ]
305
328
  },
@@ -326,7 +349,7 @@
326
349
  "W": [30, 40],
327
350
  "S": [40, 50],
328
351
  "X": [5, 12],
329
- "F": [10, 15]
352
+ "F": [0, 10]
330
353
  },
331
354
  "cost_discipline": {
332
355
  "primary_metric": "mean USD per task across the flow",
@@ -364,11 +387,12 @@
364
387
  "worker_shard_soft_cap_tokens": 150000,
365
388
  "long_context_cliff_tokens": 272000,
366
389
  "rules": [
367
- "Context can force escalation independent of difficulty: a mechanical task over a >150K working set is not a W dispatch on a 200K model. Route it S T0–T1 or shard the input.",
390
+ "Context can force escalation independent of difficulty: a mechanical task over a >150K working set is not a W dispatch. Route it S T0–T1 or shard the input. The window is the seated W model's own `context_window` in models/top-models.json (Haiku 5.5: 1M; its fallback Haiku 4.5: 200K), never a constant.",
391
+ "The repricing threshold is the seated model's own `long_context_surcharge.threshold_input_tokens`: Haiku 5.5 reprices above a 100K-token prompt, the GPT-5.6 and GPT-6 families above 272K. A working set past it raises the long-context cost bump.",
368
392
  "Do not pay for context you do not ship — give subagents trimmed inputs.",
369
393
  "Input past the long-context cliff reprices the whole request; shard below it whenever the task allows and treat any dispatch above it as a tier bump in the cost ledger.",
370
394
  "Where every available model is large-context, the window floor does not apply — the constraint is pricing, not capability.",
371
- "Where a model's long-context repricing is undocumented, assume it may apply and prefer the known-flat-priced option."
395
+ "Where a model's long-context repricing is undocumented, assume it may apply — off the Claude ladder, at `long_context_cliff_tokens` — and prefer the known-flat-priced option."
372
396
  ]
373
397
  },
374
398
  "dispatch_metadata_fields": [
@@ -258,6 +258,48 @@
258
258
  "requirements": [
259
259
  { "id": "delegation.bounded", "level": "required", "scope": "task", "reason": "Parallel work needs bounded ownership and verification.", "acceptance": ["delegation-contract"], "preferred_implementations": ["delegation-runtime"], "allowed_alternatives": [] }
260
260
  ]
261
+ },
262
+ {
263
+ "id": "people-facing-text",
264
+ "when": {
265
+ "any_task_signals": [
266
+ "marketing-copy",
267
+ "product-text",
268
+ "landing-page",
269
+ "email-copy",
270
+ "store-listing",
271
+ "social-post",
272
+ "release-notes",
273
+ "docs-prose",
274
+ "text-review",
275
+ "text-localisation"
276
+ ]
277
+ },
278
+ "requirements": [
279
+ {
280
+ "id": "content.copywriting",
281
+ "level": "optional",
282
+ "scope": "phase",
283
+ "reason": "Text meant for people is written and edited with a copywriting skill, not from the model's default voice.",
284
+ "applies_when": {
285
+ "any_phases": [
286
+ "planning",
287
+ "implementation",
288
+ "review"
289
+ ]
290
+ },
291
+ "acceptance": [
292
+ "people-facing-text"
293
+ ],
294
+ "preferred_implementations": [
295
+ "copywriting",
296
+ "copy-editing"
297
+ ],
298
+ "allowed_alternatives": [
299
+ "humanizer"
300
+ ]
301
+ }
302
+ ]
261
303
  }
262
304
  ]
263
305
  }
@@ -0,0 +1,230 @@
1
+ {
2
+ "_attribution": "llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving",
3
+ "version": 1,
4
+ "description": "When the flow gate reminds the orchestrator to use a tool. Each rule names the capability, the preferred tool, the tool or skill names that satisfy it, and the observed facts that make it due. A reminder is sent once per run, never blocks, and stops for a tool the user skipped (`llm-orchestrator tools skip <tool>`). Thresholds are this package's judgment, not a measurement.",
5
+ "rules": [
6
+ {
7
+ "id": "memory.recall",
8
+ "tool": "mempalace",
9
+ "level": "mandatory",
10
+ "satisfied_by": "mempalace.*(search|kg_query|kg_timeline|diary_read|traverse|get_drawer|list_drawers|find_tunnels|follow_tunnels|recall)",
11
+ "triggers": [
12
+ {
13
+ "kind": "work_calls",
14
+ "count": 3
15
+ }
16
+ ],
17
+ "why": "this run is working and memory has not been searched",
18
+ "use": "Search memory for this task before going further (`mempalace_search` with the topic, the project status and the user's preferences), so prior findings are not rediscovered.",
19
+ "per": "session"
20
+ },
21
+ {
22
+ "id": "workflow.systematic_debugging",
23
+ "tool": "superpowers-workflows",
24
+ "level": "mandatory",
25
+ "satisfied_by": "systematic-debugging|incident-(start|evidence)",
26
+ "triggers": [
27
+ {
28
+ "kind": "work_calls",
29
+ "count": 2,
30
+ "task_types": [
31
+ "BUG_FIX",
32
+ "INCIDENT"
33
+ ]
34
+ }
35
+ ],
36
+ "why": "a defect is being worked on",
37
+ "use": "Follow `systematic-debugging` (an incident: the `incident-start` → `-evidence` order): reproduce and collect evidence before any hypothesis, and no fix before the cause is shown."
38
+ },
39
+ {
40
+ "id": "reasoning.checkpoints",
41
+ "tool": "sequential-thinking",
42
+ "level": "mandatory",
43
+ "satisfied_by": "sequential.?thinking",
44
+ "triggers": [
45
+ {
46
+ "kind": "work_calls",
47
+ "count": 8,
48
+ "task_types": [
49
+ "INCIDENT",
50
+ "FEATURE",
51
+ "BUG_FIX",
52
+ "REFACTOR",
53
+ "INVESTIGATION",
54
+ "RESEARCH",
55
+ "REVIEW"
56
+ ]
57
+ }
58
+ ],
59
+ "why": "this run is past its first steps and no decision checkpoint has been recorded",
60
+ "use": "Record the plan, the diagnosis or the tradeoff as a short checkpoint (`sequentialthinking`): the decision, the assumptions and the evidence — a few thoughts, not a transcript."
61
+ },
62
+ {
63
+ "id": "research.retrieve",
64
+ "tool": "exa-search",
65
+ "level": "mandatory",
66
+ "satisfied_by": "(^|[^a-z])exa([^a-z]|$)",
67
+ "triggers": [
68
+ {
69
+ "kind": "tool",
70
+ "tools": [
71
+ "websearch",
72
+ "webfetch",
73
+ "web_search",
74
+ "web_fetch"
75
+ ]
76
+ },
77
+ {
78
+ "kind": "work_calls",
79
+ "count": 2,
80
+ "task_types": [
81
+ "RESEARCH"
82
+ ]
83
+ }
84
+ ],
85
+ "why": "this run rests on external or current facts",
86
+ "use": "Retrieve them with `exa` (and the `search` skill) and keep the source and its date for every claim; a native web search is the declared fallback, not the default."
87
+ },
88
+ {
89
+ "id": "docs.current",
90
+ "tool": "context7",
91
+ "level": "mandatory",
92
+ "satisfied_by": "context7(?!.*resolve)",
93
+ "triggers": [
94
+ {
95
+ "kind": "edit_path",
96
+ "pattern": "(^|/)(package\\.json|composer\\.json|requirements[^/]*\\.txt|pyproject\\.toml|go\\.mod|Cargo\\.toml|Gemfile|pubspec\\.yaml|Podfile|build\\.gradle(\\.kts)?|pom\\.xml)$"
97
+ },
98
+ {
99
+ "kind": "command",
100
+ "pattern": "(^|[\\s;&|])(npm|pnpm|yarn|bun)\\s+(install|add|i|upgrade|update)\\s+(-\\S+\\s+)*[^-\\s]|(^|[\\s;&|])(composer\\s+(require|update)|pip3?\\s+install|uv\\s+add|cargo\\s+add|go\\s+get|gem\\s+install|flutter\\s+pub\\s+add)\\s+(-\\S+\\s+)*[^-\\s]"
101
+ }
102
+ ],
103
+ "why": "a dependency is being added or changed",
104
+ "use": "Read the current documentation of that library version with `context7` before writing against its API — familiar libraries included."
105
+ },
106
+ {
107
+ "id": "ui.design_system",
108
+ "tool": "impeccable",
109
+ "level": "mandatory",
110
+ "satisfied_by": "impeccable",
111
+ "triggers": [
112
+ {
113
+ "kind": "edit_path",
114
+ "pattern": "\\.(tsx|jsx|vue|svelte|astro|css|scss|sass|less|html|htm|twig|erb)$|\\.blade\\.php$|\\.(storyboard|xib)$|(^|/)(components|screens|views|pages|layouts)/[^/]+\\.(swift|kt|dart)$",
115
+ "except": "[._-](test|spec|stories)\\.[a-z]+$|(^|/)(docs?|__tests__|tests?)/"
116
+ }
117
+ ],
118
+ "why": "this run edits interface code",
119
+ "use": "Run `/impeccable shape` (or `critique`) before building and `audit` + `polish` before review; other design skills complement it, never replace it."
120
+ },
121
+ {
122
+ "id": "workflow.tdd",
123
+ "tool": "superpowers-workflows",
124
+ "level": "mandatory",
125
+ "satisfied_by": "test-driven-development",
126
+ "triggers": [
127
+ {
128
+ "kind": "edit_path",
129
+ "pattern": "\\.(m?[jt]sx?|py|rb|go|rs|php|java|kt|swift|cs|dart)$",
130
+ "except": "[._-](test|spec)\\.[a-z]+$|(^|/)(tests?|__tests__|specs?)/|(^|/)test_[^/]+$|_test\\.[a-z]+$",
131
+ "task_types": [
132
+ "FEATURE",
133
+ "BUG_FIX"
134
+ ]
135
+ }
136
+ ],
137
+ "why": "production code is being edited in a feature or bug-fix run",
138
+ "use": "Follow `test-driven-development`: the failing test (the regression test, for a bug) exists and has been seen to fail before the change that makes it pass."
139
+ },
140
+ {
141
+ "id": "code.semantic_edit",
142
+ "tool": "serena",
143
+ "level": "mandatory",
144
+ "satisfied_by": "serena.*(symbol|find_declaration|find_implementations|replace_content|replace_in_files|get_diagnostics)",
145
+ "triggers": [
146
+ {
147
+ "kind": "code_searches",
148
+ "count": 6
149
+ },
150
+ {
151
+ "kind": "work_calls",
152
+ "count": 3,
153
+ "task_types": [
154
+ "REFACTOR"
155
+ ]
156
+ }
157
+ ],
158
+ "why": "this run is locating code by reading and searching whole files",
159
+ "use": "Use the symbol tools instead: `get_symbols_overview` for a file, `find_symbol` for a definition, `find_referencing_symbols` for every caller, and `rename_symbol` / `replace_symbol_body` for a change that crosses files. Call `initial_instructions` once first. Plain reads stay right for small files, configuration and prose."
160
+ },
161
+ {
162
+ "id": "browser.inspect",
163
+ "tool": "playwright",
164
+ "level": "recommended",
165
+ "satisfied_by": "playwright|browser_(navigate|snapshot|click|take_screenshot)|chrome-devtools",
166
+ "triggers": [
167
+ {
168
+ "kind": "edit_path",
169
+ "pattern": "\\.(tsx|jsx|vue|svelte|astro|css|scss|html)$",
170
+ "except": "[._-](test|spec|stories)\\.[a-z]+$",
171
+ "task_types": [
172
+ "BUG_FIX"
173
+ ]
174
+ }
175
+ ],
176
+ "why": "a defect in interface code is being fixed",
177
+ "use": "Reproduce it and confirm the fix in a real browser (`playwright`): a screenshot or a snapshot of the rendered state is the evidence, not the diff."
178
+ },
179
+ {
180
+ "id": "content.copywriting",
181
+ "tool": "copywriting",
182
+ "level": "recommended",
183
+ "satisfied_by": "copywriting|copy-editing|humanizer|product-marketing",
184
+ "triggers": [
185
+ {
186
+ "kind": "edit_path",
187
+ "pattern": "(^|/)(README|CHANGELOG|RELEASE[_-]?NOTES)[^/]*\\.(md|mdx|txt)$|(^|/)(docs?|content|blog|emails?|marketing|landing|locales?|i18n|fastlane/metadata)/.*\\.(md|mdx|txt|html)$"
188
+ }
189
+ ],
190
+ "why": "this run edits text people will read",
191
+ "use": "Use `copywriting` for new or rewritten text and `copy-editing` for existing text: diagnose first, no invented proof, keep the language and voice, a point edit stays a point edit."
192
+ },
193
+ {
194
+ "id": "verification.checks",
195
+ "tool": "verification-before-completion",
196
+ "level": "mandatory",
197
+ "satisfied_by": "verification-before-completion",
198
+ "triggers": [
199
+ {
200
+ "kind": "run_close",
201
+ "min_work_calls": 6,
202
+ "task_types": [
203
+ "FEATURE",
204
+ "BUG_FIX",
205
+ "REFACTOR",
206
+ "CONFIG",
207
+ "DEPLOY",
208
+ "INCIDENT"
209
+ ]
210
+ }
211
+ ],
212
+ "why": "this run is closing without a verification pass",
213
+ "use": "Run `verification-before-completion` before any claim of done: the command you ran, its exit status and the output that shows it."
214
+ },
215
+ {
216
+ "id": "memory.checkpoint",
217
+ "tool": "mempalace",
218
+ "level": "mandatory",
219
+ "satisfied_by": "mempalace.*(add_drawer|update_drawer|diary_write|checkpoint|kg_add|artifact_put|task_create)",
220
+ "triggers": [
221
+ {
222
+ "kind": "run_close",
223
+ "min_work_calls": 10
224
+ }
225
+ ],
226
+ "why": "this run is closing with no memory checkpoint",
227
+ "use": "Before the turn ends, file what the next session needs (`mempalace_add_drawer`): the decision, the non-obvious finding and what is left to do — never credentials or raw logs."
228
+ }
229
+ ]
230
+ }