@mmerterden/multi-agent-pipeline 21.1.2 → 23.0.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 (87) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +20 -13
  3. package/README.tr.md +20 -13
  4. package/SECURITY.md +3 -3
  5. package/docs/architecture.md +3 -3
  6. package/docs/ecosystem.md +10 -10
  7. package/docs/facts.json +7 -7
  8. package/docs/features.md +2 -2
  9. package/install/_common.mjs +3 -0
  10. package/install/codex.mjs +60 -0
  11. package/manifest.json +88 -73
  12. package/package.json +1 -1
  13. package/pipeline/commands/multi-agent/SKILL.md +4 -4
  14. package/pipeline/commands/multi-agent/clean-disk/SKILL.md +2 -2
  15. package/pipeline/commands/multi-agent/fable-off/SKILL.md +55 -0
  16. package/pipeline/commands/multi-agent/fable-on/SKILL.md +41 -0
  17. package/pipeline/commands/multi-agent/fable-status/SKILL.md +57 -0
  18. package/pipeline/commands/multi-agent/forget/SKILL.md +2 -2
  19. package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +2 -2
  20. package/pipeline/commands/multi-agent/kill/SKILL.md +2 -2
  21. package/pipeline/commands/multi-agent/prune-logs/SKILL.md +2 -2
  22. package/pipeline/commands/multi-agent/prune-prompts/SKILL.md +2 -2
  23. package/pipeline/commands/multi-agent/purge/SKILL.md +2 -2
  24. package/pipeline/commands/multi-agent/review-priority/SKILL.md +2 -2
  25. package/pipeline/commands/multi-agent/route-on/SKILL.md +3 -3
  26. package/pipeline/commands/multi-agent/route-status/SKILL.md +1 -1
  27. package/pipeline/commands/multi-agent/routines/SKILL.md +15 -24
  28. package/pipeline/commands/multi-agent/routines-browse/SKILL.md +32 -0
  29. package/pipeline/commands/multi-agent/routines-delete/SKILL.md +35 -0
  30. package/pipeline/commands/multi-agent/routines-import/SKILL.md +34 -0
  31. package/pipeline/commands/multi-agent/routines-share/SKILL.md +34 -0
  32. package/pipeline/commands/multi-agent/routines-update/SKILL.md +33 -0
  33. package/pipeline/commands/multi-agent/sync/SKILL.md +6 -5
  34. package/pipeline/commands/multi-agent/uninstall/SKILL.md +2 -2
  35. package/pipeline/contract/manifest.json +1 -1
  36. package/pipeline/lib/model-dispatch.sh +1 -1
  37. package/pipeline/lib/model-rung.sh +59 -15
  38. package/pipeline/multi-agent-refs/cross-cli-contract.md +26 -16
  39. package/pipeline/multi-agent-refs/features/doctor.md +15 -8
  40. package/pipeline/multi-agent-refs/features/model-fallback.md +13 -4
  41. package/pipeline/multi-agent-refs/features/office-threat-model.md +1 -1
  42. package/pipeline/multi-agent-refs/features/routine-sharing.md +5 -2
  43. package/pipeline/multi-agent-refs/features/usage-reporting.md +2 -1
  44. package/pipeline/multi-agent-refs/help/en.md +11 -4
  45. package/pipeline/multi-agent-refs/help/tr.md +11 -4
  46. package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +3 -3
  47. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +5 -5
  48. package/pipeline/multi-agent-refs/phases/phase-2-dev.md +1 -1
  49. package/pipeline/office/index.html +6 -3
  50. package/pipeline/office/toolkit.json +1 -1
  51. package/pipeline/rules/outside-the-pipeline.md +1 -1
  52. package/pipeline/schemas/toolkit-path-params.json +5 -1
  53. package/pipeline/scripts/_cost-advise.mjs +1 -1
  54. package/pipeline/scripts/doctor.mjs +30 -6
  55. package/pipeline/scripts/routine-share.mjs +2 -1
  56. package/pipeline/scripts/uninstall.mjs +22 -1
  57. package/pipeline/skills/.skill-manifest.json +49 -21
  58. package/pipeline/skills/.skills-index.json +99 -22
  59. package/pipeline/skills/shared/README.md +16 -9
  60. package/pipeline/skills/shared/core/multi-agent/SKILL.md +6 -6
  61. package/pipeline/skills/shared/core/multi-agent-clean-disk/SKILL.md +1 -1
  62. package/pipeline/skills/shared/core/multi-agent-fable-off/SKILL.md +55 -0
  63. package/pipeline/skills/shared/core/multi-agent-fable-on/SKILL.md +41 -0
  64. package/pipeline/skills/shared/core/multi-agent-fable-status/SKILL.md +57 -0
  65. package/pipeline/skills/shared/core/multi-agent-forget/SKILL.md +1 -1
  66. package/pipeline/skills/shared/core/multi-agent-garbage-collect/SKILL.md +1 -1
  67. package/pipeline/skills/shared/core/multi-agent-kill/SKILL.md +1 -1
  68. package/pipeline/skills/shared/core/multi-agent-prune-logs/SKILL.md +1 -1
  69. package/pipeline/skills/shared/core/multi-agent-prune-prompts/SKILL.md +1 -1
  70. package/pipeline/skills/shared/core/multi-agent-purge/SKILL.md +1 -1
  71. package/pipeline/skills/shared/core/multi-agent-review-priority/SKILL.md +1 -1
  72. package/pipeline/skills/shared/core/multi-agent-route-on/SKILL.md +3 -3
  73. package/pipeline/skills/shared/core/multi-agent-route-status/SKILL.md +1 -1
  74. package/pipeline/skills/shared/core/multi-agent-routines/SKILL.md +12 -14
  75. package/pipeline/skills/shared/core/multi-agent-routines-browse/SKILL.md +30 -0
  76. package/pipeline/skills/shared/core/multi-agent-routines-delete/SKILL.md +32 -0
  77. package/pipeline/skills/shared/core/multi-agent-routines-import/SKILL.md +32 -0
  78. package/pipeline/skills/shared/core/multi-agent-routines-share/SKILL.md +32 -0
  79. package/pipeline/skills/shared/core/multi-agent-routines-update/SKILL.md +32 -0
  80. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +6 -5
  81. package/pipeline/skills/shared/core/multi-agent-uninstall/SKILL.md +1 -1
  82. package/pipeline/skills/shared/external/store-screenshots/SKILL.md +211 -22
  83. package/pipeline/skills/shared/external/store-screenshots/evals/evals.json +68 -0
  84. package/pipeline/skills/shared/external/store-screenshots/references/frames.md +141 -0
  85. package/pipeline/skills/skills-index.md +14 -7
  86. package/pipeline/commands/multi-agent/model/SKILL.md +0 -80
  87. package/pipeline/skills/shared/core/multi-agent-model/SKILL.md +0 -72
package/CHANGELOG.md CHANGED
@@ -16,6 +16,33 @@ Internal file-layout changes that don't affect the slash-command surface are sti
16
16
 
17
17
  ## [Unreleased]
18
18
 
19
+ ## [23.0.0] - 2026-11-09
20
+
21
+ ### Changed
22
+
23
+ - **Breaking:** `/multi-agent:routines delete <id>` no longer withdraws a routine; it prints the command to type, `/multi-agent:routines-delete <id>` (Copilot CLI and Codex CLI `/multi-agent-routines-delete <id>`).
24
+ - Routine sharing is five commands, one per action, the same shape as `autopilot-on`, `autopilot-off` and `autopilot-status`: `/multi-agent:routines-share <name>`, `/multi-agent:routines-browse [query]`, `/multi-agent:routines-import <id>`, `/multi-agent:routines-update` and `/multi-agent:routines-delete <id>` (Copilot CLI `/multi-agent-routines-share` and the rest; Codex CLI `multi-agent routines-share` and the rest via the router skill, with `routines-delete` as its own `/multi-agent-routines-delete` prompt). Each runs the access check first and then its flow in `routine-sharing.md`, which is unchanged. `/multi-agent:routines` only lists saved routines; a sharing word typed after it (`share`, `browse`, `import`, `update`, `delete`) names the command it moved to and continues there; `delete` only prints the `routines-delete` command to type, because a withdrawal runs only when the user types it. `routines-delete` is declared destructive with a required confirmation.
25
+ - User-only commands (the ten whose Claude Code command sets `disable-model-invocation: true`: `clean-disk`, `forget`, `garbage-collect`, `kill`, `prune-logs`, `prune-prompts`, `purge`, `review-priority`, `routines-delete`, `uninstall`) are reached only by the user typing them on every host. The dispatcher no longer reads or runs one: its catch-all row lists them and names the command to type, `kill` and `purge` are no longer handled inline, and the superseded `clear-logs` names `prune-logs` instead of routing to it; the Copilot CLI dispatcher does the same. On Claude Code the frontmatter gate holds them. On Copilot CLI the mirror has no gate, so the descriptions of all ten drop their "Use when" trigger on both hosts and say they run only when the user types them. On Codex CLI, whose one router skill is model-invocable, each gets its own `/multi-agent-<name>` prompt (`~/.codex/prompts/multi-agent-<name>.md`), which uninstall removes. The command contract test scans both dispatchers, every model-invocable command and its Copilot mirror, and every shared reference for a route into a user-only command's file, by path in any of the three hosts' layouts, by a slash command followed as instructions, or by the shared-reference flow only a user-only command follows.
26
+ - The access check now gates the five sharing commands instead of `routines`, whose listing reads only this machine.
27
+ - `doctor`'s `routine-commands` check also reports a saved routine that types a sharing action as a `routines` argument, in the Claude Code, Copilot CLI and Codex CLI spellings, with `/multi-agent:routines-<action>` as the replacement.
28
+ - The office command catalog opens the routines window for `routines-browse` and `routines-import`, which its Shared tab runs, and the settings window for `fable-on` and `fable-off` in place of the removed rung command.
29
+ - The always-on description ceiling is 100500: the five commands and their core skills add ten descriptions of 115 to 130 bytes.
30
+ - `store-screenshots` 1.1.0 (from ai-common-toolkit 0.10.0): a frame geometry reference with each frame's proportions, cameras and buttons, the measured crop each frame's insets leave, the width-share rule and placements; slides without a device inside the store policy; mood palettes; the icon and brand-kit intake; a trust slot; the headline scale; an assets layout; a starter HTML file; a pitfalls table keyed to `store_screenshot_render` failures; and a report that explains the slide order. Google Play sets carry no award, quote, stats or ranking slide, no call to action, no store badge or icon and no people or hands on the device, prefer frameless slides, never frame Wear OS, and ask for at least 4 tablet screenshots; the Play feature graphic does not repeat the app icon, keeps key elements in the centre and avoids white, near-white, black and dark gray backgrounds (every mood uses its accent there), Play captions take at most 20% of the image, Play tablet and Chromebook slides carry no caption, and hands appear only when the core app usage is off-device. Frame numbers are points (Apple) or dp (Android), scaled by the rendered width over the logical width. The skill requires multi-agent-mcp 4.2.0. Five new evals cover the frame reference and the Play rules.
31
+
32
+ ## [22.0.0] - 2026-11-08
33
+
34
+ ### Changed
35
+
36
+ - **Breaking:** `/multi-agent:model [on | off]` is replaced by `/multi-agent:fable-on`, `/multi-agent:fable-off` and `/multi-agent:fable-status` (Copilot CLI `/multi-agent-fable-on`, `/multi-agent-fable-off`, `/multi-agent-fable-status`; Codex CLI `multi-agent fable-on`, `multi-agent fable-off`, `multi-agent fable-status` via the router skill), the same shape as `route-on`, `route-off` and `route-status`. `fable-status` is what the old command did with no argument: the rung, the pricing model and what the switch means on this host. Behaviour is unchanged: each command calls `lib/model-rung.sh` with `on`, `off` or no argument, `modelFallback.fableEnabled` and `costBudget.pricingModel` still move as one write, the installed agents are still re-applied, and on Claude Code `fable-off` still prints that the Phase 3 reviewer panel drops to two models. An upgrade deletes the installed old command on Claude Code, Copilot CLI and Codex CLI, uninstall removes it on all three, and `COMMAND_RENAMES` records `model` as renamed to `fable-status`.
37
+ - `model-rung.sh` names the realigning command in its `MISMATCH` line spelled for the detected host: `ma_command` runs against that host's tree, so the hint reads `/multi-agent:fable-off` on Claude Code, `/multi-agent-fable-off` on Copilot CLI and `multi-agent fable-off` on Codex CLI.
38
+ - `doctor`'s `routine-commands` check also reports a saved routine that names the old rung command, with `fable-on`, `fable-off` or `fable-status` as the replacement, and lists the removed commands each routine names.
39
+ - The always-on description ceiling is 99500: the three commands and their core skills add six descriptions of 123 to 162 bytes in place of two.
40
+
41
+ ### Fixed
42
+
43
+ - `model-rung.sh off` prints the reviewer-panel change (3 models to 2) only on Claude Code; on Copilot CLI and Codex CLI it says the panel is unchanged and the switch changes no dispatch there. The host is `MULTI_AGENT_HOST` when it is `claude`, `copilot` or `codex` (any other value is ignored), otherwise the tree the script is installed in; it was `claude` whenever the variable was unset, on every host. Command names in its hints are spelled for that same host, so an override moves the `MISMATCH` hint with the host line.
44
+ - The Claude Code host line names the fable rung's model from `cost-table.json` (`prices.fable.modelId`, now Fable 5.1) instead of a hand-written "Fable 5". A trailing date segment is dropped, and an id that does not reduce to a dotted version prints as plain "Fable".
45
+
19
46
  ## [21.1.2] - 2026-11-08
20
47
 
21
48
  ### Added
package/README.md CHANGED
@@ -158,7 +158,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
158
158
 
159
159
  ## Commands
160
160
 
161
- `/multi-agent` plus <!-- fact:commandCount -->72<!-- /fact --> sub-commands. `/multi-agent:help` renders the same catalog in your terminal, in your `outputLanguage`.
161
+ `/multi-agent` plus <!-- fact:commandCount -->79<!-- /fact --> sub-commands. `/multi-agent:help` renders the same catalog in your terminal, in your `outputLanguage`.
162
162
 
163
163
  ### Pipeline entries
164
164
 
@@ -248,11 +248,16 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
248
248
 
249
249
  ### Your own routines
250
250
 
251
- | Command | What it does |
252
- | ---------------------------- | ---------------------------------------------------------------------------------- |
253
- | `/multi-agent:save [name]` | Save a recurring job as a reusable `/multi-agent:<name>`. Local-only, never synced |
254
- | `/multi-agent:routines` | List saved routines; share, browse, import or update shared ones |
255
- | `/multi-agent:forget [name]` | Remove a saved routine and its registry entry |
251
+ | Command | What it does |
252
+ | -------------------------------------- | ---------------------------------------------------------------------------------- |
253
+ | `/multi-agent:save [name]` | Save a recurring job as a reusable `/multi-agent:<name>`. Local-only, never synced |
254
+ | `/multi-agent:routines` | List saved routines with what each one does |
255
+ | `/multi-agent:routines-share <name>` | Publish a saved routine to site members, after a secret scan and a preview |
256
+ | `/multi-agent:routines-browse [query]` | List the routines site members shared with you |
257
+ | `/multi-agent:routines-import <id>` | Install a shared routine as a local-only command, full body shown first |
258
+ | `/multi-agent:routines-update` | Bring imported routines up to their owner's latest version, diff first |
259
+ | `/multi-agent:routines-delete <id>` | Withdraw a routine you published |
260
+ | `/multi-agent:forget [name]` | Remove a saved routine and its registry entry |
256
261
 
257
262
  ### Setup and maintenance
258
263
 
@@ -439,7 +444,9 @@ turn it on.
439
444
  | `/multi-agent:route-on` | Pick a strategy, a scope and the rules that say which rung a call lands on; `--free` sends simple text work to verified free models first. Validated against `route-config.schema.json` before anything is written |
440
445
  | `/multi-agent:route-off` | Disarm it. The rules are KEPT, so turning it back on does not re-ask for the same configuration |
441
446
  | `/multi-agent:route-status` | Whether it is armed, which rule applies where, which rung the last dispatches took, and what this run has cost |
442
- | `/multi-agent:model` | Turn the top rung on or off, and move the cost ledger's pricing with it in the same step |
447
+ | `/multi-agent:fable-on` | Put the top rung in play, and move the cost ledger's pricing to `fable` in the same write |
448
+ | `/multi-agent:fable-off` | Take it out of play, move the pricing to `opus` in the same write, and print what that does to the review panel |
449
+ | `/multi-agent:fable-status` | Whether the rung is on, the pricing model, and what the switch means on this host |
443
450
 
444
451
  **The scope cannot be the whole session.** `scope` accepts `subagent`,
445
452
  `bulk-read`, `delegate` and `research`; there is no `host-session` value and that
@@ -465,7 +472,7 @@ whatever the rules say. The `free` rung answers only where the pipeline makes th
465
472
  call itself, `bulk-read.sh` and the `delegate` call site, and decisions, plans,
466
473
  code, reviews and triage never leave Claude.
467
474
 
468
- **The top rung is a switch.** `/multi-agent:model` turns `fable` on or off
475
+ **The top rung is a switch.** `/multi-agent:fable-on` and `/multi-agent:fable-off` turn `fable` on and off
469
476
  (`prefs.global.modelFallback.fableEnabled`, shipped off). The review commands,
470
477
  triage and the plan critic resolve their slots through it: on Claude Code,
471
478
  `/multi-agent:review` runs Fable + Opus + Sonnet while it is on and Opus + Sonnet
@@ -483,17 +490,17 @@ This enables the matching plugin (+ the shared `ai-common` plugin) in the repo's
483
490
 
484
491
  ## Tool support
485
492
 
486
- The pipeline runs natively on **Claude Code**, **Copilot CLI** and **Codex CLI** - all three install from the same `pipeline/` source and get the same <!-- fact:commandCount -->72<!-- /fact --> commands.
493
+ The pipeline runs natively on **Claude Code**, **Copilot CLI** and **Codex CLI** - all three install from the same `pipeline/` source and get the same <!-- fact:commandCount -->79<!-- /fact --> commands.
487
494
 
488
495
  | Tool | Flag | What it installs |
489
496
  | ----------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
490
497
  | Claude Code | `--claude` (default) | slash commands + skills + agents + the enforcement hooks (secret scan, agent-guard, read-size gate, run-scope guard, run-stop guard) |
491
- | Copilot CLI | `--copilot` | instructions + <!-- fact:commandCount -->72<!-- /fact --> sub-command skills + scripts |
492
- | Codex CLI | `--codex` | one router skill + <!-- fact:commandCount -->72<!-- /fact --> specs as refs + <!-- fact:agentCount -->11<!-- /fact --> agent TOML + `AGENTS.md` block + `codex mcp add` |
498
+ | Copilot CLI | `--copilot` | instructions + <!-- fact:commandCount -->79<!-- /fact --> sub-command skills + scripts |
499
+ | Codex CLI | `--codex` | one router skill + <!-- fact:commandCount -->79<!-- /fact --> specs as refs + a `/multi-agent-<name>` prompt per user-only command + <!-- fact:agentCount -->11<!-- /fact --> agent TOML + `AGENTS.md` block + `codex mcp add` |
493
500
 
494
501
  Filter skills by stack with `--platform=ios\|android\|all`.
495
502
 
496
- **Why Codex gets one skill and not <!-- fact:commandCount -->72<!-- /fact -->.** Codex assembles every discovered skill's name
503
+ **Why Codex gets one skill and not <!-- fact:commandCount -->79<!-- /fact -->.** Codex assembles every discovered skill's name
497
504
  and description into a single prompt block and drops entries when it overflows, with no
498
505
  error. Measured on 0.145: installing one plugin that declares 142 skills surfaced only
499
506
  75 of them and evicted an unrelated user skill. So on Codex the pipeline ships a single
@@ -554,7 +561,7 @@ Installing the pipeline is not only useful when you run it. Open an ordinary ses
554
561
 
555
562
  - **Services you already onboarded.** The token `setup` mapped is readable now - resolve the logical name through `credential-store.sh` and fetch the issue, the page, the log. **Reads are ordinary work; writes are not.** Posting a Jira comment, editing an issue or opening a PR goes through the pipeline commands, because the rules that make those safe (never auto-close, `Ref:` not `Closes:`, humanizer on outward prose) live there.
556
563
  - **The stack skills `/multi-agent:stack` enabled for the repo.** Each toolkit's own `index` skill routes; the pipeline keeps no copy of that table.
557
- - **The `multi-agent` MCP.** <!-- fact:toolCount -->250<!-- /fact --> tools, most of them for a running app - screen state, crash logs, design comparison, store pre-submission, web scraping and browser test states. Several measure instead of judging by eye: WCAG contrast (`design_contrast_check`), layout shift across themes or a mirrored locale (`ios_visual_diff` with `mode: "layout"`), store listing limits (`store_listing_lint`), review themes with verbatim quotes (`store_review_themes`) and whether security findings cite real lines (`security_evidence_check`, with `security_sarif_export` for code-scanning views). The learnings ledger and the code graph are readable through it too (`learnings_*`, `graph_*`).
564
+ - **The `multi-agent` MCP.** <!-- fact:toolCount -->251<!-- /fact --> tools, most of them for a running app - screen state, crash logs, design comparison, store pre-submission, web scraping and browser test states. Several measure instead of judging by eye: WCAG contrast (`design_contrast_check`), layout shift across themes or a mirrored locale (`ios_visual_diff` with `mode: "layout"`), store listing limits (`store_listing_lint`), review themes with verbatim quotes (`store_review_themes`) and whether security findings cite real lines (`security_evidence_check`, with `security_sarif_export` for code-scanning views). The learnings ledger and the code graph are readable through it too (`learnings_*`, `graph_*`).
558
565
 
559
566
  Uninstall preserves this layer: the tokens, the reader that opens them, the mapping that names them, and the MCP registration. Removing the pipeline should not cost you the credentials you onboarded through it.
560
567
 
package/README.tr.md CHANGED
@@ -157,7 +157,7 @@ Koşunun kendisinde ayarlanabilen tek şey autopilot; geri kalan her şey kendi
157
157
 
158
158
  ## Komutlar
159
159
 
160
- `/multi-agent` ve <!-- fact:commandCount -->72<!-- /fact --> alt komut. `/multi-agent:help` aynı katalogu terminalde, `outputLanguage` ayarına göre gösterir.
160
+ `/multi-agent` ve <!-- fact:commandCount -->79<!-- /fact --> alt komut. `/multi-agent:help` aynı katalogu terminalde, `outputLanguage` ayarına göre gösterir.
161
161
 
162
162
  ### Pipeline girişleri
163
163
 
@@ -247,11 +247,16 @@ Koşunun kendisinde ayarlanabilen tek şey autopilot; geri kalan her şey kendi
247
247
 
248
248
  ### Kendi rutinlerin
249
249
 
250
- | Komut | Ne yapar |
251
- | -------------------------- | -------------------------------------------------------------------------------------- |
252
- | `/multi-agent:save [ad]` | Tekrar eden bir işi `/multi-agent:<ad>` olarak kaydeder. Local-only, asla sync edilmez |
253
- | `/multi-agent:routines` | Kayıtlı rutinleri listeler; paylaşılanlara göz atar, içe aktarır, günceller |
254
- | `/multi-agent:forget [ad]` | Kayıtlı bir rutini ve registry kaydını siler |
250
+ | Komut | Ne yapar |
251
+ | -------------------------------------- | -------------------------------------------------------------------------------------- |
252
+ | `/multi-agent:save [ad]` | Tekrar eden bir işi `/multi-agent:<ad>` olarak kaydeder. Local-only, asla sync edilmez |
253
+ | `/multi-agent:routines` | Kayıtlı rutinleri, her birinin ne yaptığıyla listeler |
254
+ | `/multi-agent:routines-share <ad>` | Kayıtlı bir rutini gizli bilgi taraması ve önizlemeden sonra site üyeleriyle paylaşır |
255
+ | `/multi-agent:routines-browse [sorgu]` | Site üyelerinin seninle paylaştığı rutinleri listeler |
256
+ | `/multi-agent:routines-import <id>` | Paylaşılan bir rutini, önce tam gövdesini göstererek local-only komut olarak kurar |
257
+ | `/multi-agent:routines-update` | İçe aktarılan rutinleri sahibinin son sürümüne getirir, önce diff gösterir |
258
+ | `/multi-agent:routines-delete <id>` | Yayımladığın bir rutini geri çeker |
259
+ | `/multi-agent:forget [ad]` | Kayıtlı bir rutini ve registry kaydını siler |
255
260
 
256
261
  ### Kurulum ve bakım
257
262
 
@@ -437,7 +442,9 @@ kadar kapalıdır.
437
442
  | `/multi-agent:route-on` | Strateji, kapsam ve hangi çağrının hangi basamağa düşeceğini söyleyen kuralları sorar; `--free` basit metin işlerini önce doğrulanmış ücretsiz modellere gönderir. Hiçbir şey yazılmadan önce `route-config.schema.json`'a karşı doğrulanır |
438
443
  | `/multi-agent:route-off` | Kapatır. Kurallar SAKLANIR, tekrar açıldığında aynı yapılandırma yeniden sorulmaz |
439
444
  | `/multi-agent:route-status` | Açık mı, hangi kural nerede geçerli, son çağrılar hangi basamağa gitti, bu koşu ne tuttu |
440
- | `/multi-agent:model` | Üst basamağı açıp kapatır ve maliyet defterinin fiyatlamasını aynı adımda onunla taşır |
445
+ | `/multi-agent:fable-on` | Üst basamağı açar ve maliyet defterinin fiyatlamasını aynı yazımda `fable`'a taşır |
446
+ | `/multi-agent:fable-off` | Üst basamağı kapatır, fiyatlamayı aynı yazımda `opus`'a taşır ve bunun review paneline etkisini yazar |
447
+ | `/multi-agent:fable-status` | Basamak açık mı, fiyatlama modeli ne ve anahtarın bu host'ta anlamı ne |
441
448
 
442
449
  **Kapsam oturumun tamamı olamaz.** `scope` yalnız `subagent`, `bulk-read`,
443
450
  `delegate` ve `research` kabul eder; `host-session` diye bir değer yoktur ve bu bir teamül
@@ -463,7 +470,7 @@ merdiveninde kalır. `free` basamağı yalnız pipeline'ın çağrıyı kendisi
463
470
  yerlerde cevap verir, `bulk-read.sh` ve `delegate` çağrı noktası; karar, plan,
464
471
  kod, review ve triyaj asla Claude'dan çıkmaz.
465
472
 
466
- **Üst basamak bir anahtar.** `/multi-agent:model` `fable`'ı açar ya da kapatır
473
+ **Üst basamak bir anahtar.** `/multi-agent:fable-on` `fable`'ı açar, `/multi-agent:fable-off` kapatır
467
474
  (`prefs.global.modelFallback.fableEnabled`, kapalı gelir). Review komutları,
468
475
  triyaj ve plan critic kendi yuvalarını bu anahtar üzerinden çözer: Claude
469
476
  Code'da `/multi-agent:review` anahtar açıkken Fable + Opus + Sonnet, kapalıyken
@@ -481,17 +488,17 @@ Bu, ilgili plugin'i (+ ortak `ai-common` plugin'ini) repo'nun `.claude/settings.
481
488
 
482
489
  ## Araç desteği
483
490
 
484
- Pipeline **Claude Code**, **Copilot CLI** ve **Codex CLI** üzerinde native çalışır - üçü de aynı `pipeline/` kaynağından kurulur ve aynı <!-- fact:commandCount -->72<!-- /fact --> komutu alır.
491
+ Pipeline **Claude Code**, **Copilot CLI** ve **Codex CLI** üzerinde native çalışır - üçü de aynı `pipeline/` kaynağından kurulur ve aynı <!-- fact:commandCount -->79<!-- /fact --> komutu alır.
485
492
 
486
493
  | Araç | Bayrak | Ne kurar |
487
494
  | ----------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------- |
488
495
  | Claude Code | `--claude` (varsayılan) | slash komutları + skill'ler + agent'lar + üç `PreToolUse` hook'u (secret scan, agent-guard, okuma-boyutu geçidi) |
489
- | Copilot CLI | `--copilot` | talimatlar + <!-- fact:commandCount -->72<!-- /fact --> alt-komut skill'i + script'ler |
490
- | Codex CLI | `--codex` | bir router skill + ref olarak <!-- fact:commandCount -->72<!-- /fact --> spec + <!-- fact:agentCount -->11<!-- /fact --> agent TOML + `AGENTS.md` bloğu + `codex mcp add` |
496
+ | Copilot CLI | `--copilot` | talimatlar + <!-- fact:commandCount -->79<!-- /fact --> alt-komut skill'i + script'ler |
497
+ | Codex CLI | `--codex` | bir router skill + ref olarak <!-- fact:commandCount -->79<!-- /fact --> spec + yalnızca kullanıcının yazdığı her komut için bir `/multi-agent-<ad>` prompt'u + <!-- fact:agentCount -->11<!-- /fact --> agent TOML + `AGENTS.md` bloğu + `codex mcp add` |
491
498
 
492
499
  Skill'leri stack'e göre filtrele: `--platform=ios\|android\|all`.
493
500
 
494
- **Codex neden <!-- fact:commandCount -->72<!-- /fact --> değil de tek bir skill alıyor.** Codex, keşfettiği her skill'in adını
501
+ **Codex neden <!-- fact:commandCount -->79<!-- /fact --> değil de tek bir skill alıyor.** Codex, keşfettiği her skill'in adını
495
502
  ve açıklamasını tek bir prompt bloğuna toplar ve blok taştığında girdileri hatasızca
496
503
  düşürür. 0.145 üzerinde ölçüldü: 142 skill deklare eden bir plugin kurulduğunda sadece
497
504
  75'i yüzeye çıktı ve alakasız bir kullanıcı skill'i tahliye edildi. Bu yüzden Codex'te
@@ -552,7 +559,7 @@ Pipeline'ı kurmak yalnız onu çalıştırdığında işe yaramıyor. Sıradan
552
559
 
553
560
  - **Zaten onboard ettiğin servisler.** `setup`'ın eşlediği token okunabilir durumda - mantıksal adı `credential-store.sh` ile çöz, issue'yu, sayfayı, logu getir. **Okuma sıradan iş, yazma değil.** Jira yorumu, issue düzenleme ve PR açma pipeline komutlarından geçer, çünkü onları güvenli kılan kurallar (issue asla otomatik kapanmaz, `Closes:` değil `Ref:`, dışa dönük metinde humanizer) orada yaşıyor.
554
561
  - **`/multi-agent:stack`'in bu repo için açtığı stack skilleri.** Yönlendirmeyi her toolkit'in kendi `index` skill'i yapar; pipeline o tablonun kopyasını tutmaz.
555
- - **`multi-agent` MCP.** <!-- fact:toolCount -->250<!-- /fact --> araç, çoğu çalışan uygulama için - ekran durumu, crash logu, tasarım karşılaştırma, store ön-kontrolü, web kazıma ve tarayıcı test durumları. Bazı kontrolleri gözle değil ölçümle yapar. WCAG kontrastı `design_contrast_check` ile, tema ya da RTL değişince kayan yerleşim `ios_visual_diff` (`mode: "layout"`) ile ölçülür. Mağaza metni sınırlarını `store_listing_lint` denetler. `store_review_themes` yorumları temalara ayırır ve alıntıyı birebir bırakır. Güvenlik bulgularının gerçek satırlara dayandığını `security_evidence_check` doğrular; `security_sarif_export` kod tarama ekranları için SARIF yazar. Öğrenim kaydı (`learnings_*`) ve kod grafiği (`graph_*`) de buradan okunur.
562
+ - **`multi-agent` MCP.** <!-- fact:toolCount -->251<!-- /fact --> araç, çoğu çalışan uygulama için - ekran durumu, crash logu, tasarım karşılaştırma, store ön-kontrolü, web kazıma ve tarayıcı test durumları. Bazı kontrolleri gözle değil ölçümle yapar. WCAG kontrastı `design_contrast_check` ile, tema ya da RTL değişince kayan yerleşim `ios_visual_diff` (`mode: "layout"`) ile ölçülür. Mağaza metni sınırlarını `store_listing_lint` denetler. `store_review_themes` yorumları temalara ayırır ve alıntıyı birebir bırakır. Güvenlik bulgularının gerçek satırlara dayandığını `security_evidence_check` doğrular; `security_sarif_export` kod tarama ekranları için SARIF yazar. Öğrenim kaydı (`learnings_*`) ve kod grafiği (`graph_*`) de buradan okunur.
556
563
 
557
564
  Uninstall bu katmanı korur: token'lar, onları açan okuyucu, adlarını tutan eşleme ve MCP kaydı. Pipeline'ı kaldırmak, onun üzerinden onboard ettiğin credential'ları kaybetmek anlamına gelmemeli.
558
565
 
package/SECURITY.md CHANGED
@@ -6,9 +6,9 @@ We provide security fixes for the latest minor of the current major. Older versi
6
6
 
7
7
  | Version | Supported |
8
8
  | ------- | ---------------------- |
9
- | 21.x | ✅ active |
10
- | 20.x | ⚠️ security fixes only |
11
- | ≤ 19.x | ❌ end-of-life |
9
+ | 23.x | ✅ active |
10
+ | 22.x | ⚠️ security fixes only |
11
+ | ≤ 21.x | ❌ end-of-life |
12
12
 
13
13
  ## Reporting a Vulnerability
14
14
 
@@ -115,7 +115,7 @@ graph TB
115
115
  end
116
116
 
117
117
  subgraph "Pipeline Specs"
118
- CMD[commands/<br/>72 command files]
118
+ CMD[commands/<br/>79 command files]
119
119
  AGT[agents/<br/>11 agent personas]
120
120
  RUL[rules/<br/>domain rules]
121
121
  PHS[multi-agent-refs/phases/<br/>phase specs + contracts]
@@ -207,8 +207,8 @@ repo and the website, plus the two independently shipped repos
207
207
  ```mermaid
208
208
  graph TD
209
209
  CC["Claude Code<br/>(source of truth)"]
210
- COP["Copilot CLI<br/>(instructions + 72 sub-command skills)"]
211
- COD["Codex CLI<br/>(1 router skill + 72 refs)"]
210
+ COP["Copilot CLI<br/>(instructions + 79 sub-command skills)"]
211
+ COD["Codex CLI<br/>(1 router skill + 79 refs)"]
212
212
  REPO["Pipeline Repo<br/>(npm package)"]
213
213
  WEB["Website"]
214
214
  PLUGREPO["multi-agent-plugins<br/>(6 plugins, own repo)"]
package/docs/ecosystem.md CHANGED
@@ -5,9 +5,9 @@ separately, wired together at install time and at run time:
5
5
 
6
6
  | Repo | What it owns | Ships as |
7
7
  |---|---|---|
8
- | **`multi-agent-pipeline`** (this repo) | Orchestration: the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, the <!-- fact:commandCount -->72<!-- /fact --> slash commands, quality gates, review/triage, cross-CLI parity | npm package (`@mmerterden/multi-agent-pipeline`), installs itself onto Claude Code / Copilot CLI / Codex CLI |
8
+ | **`multi-agent-pipeline`** (this repo) | Orchestration: the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, the <!-- fact:commandCount -->79<!-- /fact --> slash commands, quality gates, review/triage, cross-CLI parity | npm package (`@mmerterden/multi-agent-pipeline`), installs itself onto Claude Code / Copilot CLI / Codex CLI |
9
9
  | **`multi-agent-plugins`** | Stack knowledge: per-platform component/lifecycle skills (iOS, Android, Frontend, Backend) + shared knowledge | Claude Code marketplace, 6 independently-versioned plugins |
10
- | **`multi-agent-mcp`** | The pipeline's hands on devices and browsers: <!-- fact:toolCount -->250<!-- /fact --> MCP tools across <!-- fact:toolFamilyCount -->25<!-- /fact --> families (simulator/emulator control, end-to-end locators and assertions, memory, crash diagnostics, accessibility audit, store compliance and listing lint, web automation and scraping, Figma-vs-mock design audit with contrast checks, code intelligence, a code graph, a learnings ledger, wallet passes, an agent-DSL batch runner, a full-text context index with text-to-image rendering, provider-backed and community research, opt-in social reading, verified hand-off of simple text tasks to free models, video key frames and transcripts, offline security scoring with evidence checks, SARIF export and MCP config launch-selector audits, read-only access to related repositories at their latest branch, travel document fixtures, a voice channel, App Store Connect and Play Console APIs, virtual iPhones, offline facts about builds you own) | npm package, registered as a standard stdio MCP server on every host |
10
+ | **`multi-agent-mcp`** | The pipeline's hands on devices and browsers: <!-- fact:toolCount -->251<!-- /fact --> MCP tools across <!-- fact:toolFamilyCount -->25<!-- /fact --> families (simulator/emulator control, end-to-end locators and assertions, memory, crash diagnostics, accessibility audit, store compliance and listing lint, web automation and scraping, Figma-vs-mock design audit with contrast checks, code intelligence, a code graph, a learnings ledger, wallet passes, an agent-DSL batch runner, a full-text context index with text-to-image rendering, provider-backed and community research, opt-in social reading, verified hand-off of simple text tasks to free models, video key frames and transcripts, offline security scoring with evidence checks, SARIF export and MCP config launch-selector audits, read-only access to related repositories at their latest branch, travel document fixtures, a voice channel, App Store Connect and Play Console APIs, virtual iPhones, offline facts about builds you own) | npm package, registered as a standard stdio MCP server on every host |
11
11
 
12
12
  None of the three depends on the others at the code level. They compose through two
13
13
  narrow contracts: the **Skill tool** (pipeline → plugin, at Phase 2) and the **MCP
@@ -19,7 +19,7 @@ Either can be swapped or removed without touching the other two's source.
19
19
  graph LR
20
20
  subgraph PIPE ["multi-agent-pipeline (orchestrator)"]
21
21
  direction TB
22
- PHASES["6 phases · 72 commands"]
22
+ PHASES["6 phases · 79 commands"]
23
23
  GATES["deterministic gates + review triage"]
24
24
  end
25
25
 
@@ -70,8 +70,8 @@ only those:
70
70
  graph TD
71
71
  CC["Claude Code<br/>~/.claude/commands/multi-agent/<br/>(source of truth)"]
72
72
 
73
- CC -->|"Step 2: copy + reformat<br/>72 sub-command skills"| COP["Copilot CLI<br/>~/.copilot/skills/"]
74
- CC -->|"Step 2b: transform<br/>(install.js --codex)"| COD["Codex CLI<br/>1 router skill + 72 refs<br/>+ 11 agent TOML"]
73
+ CC -->|"Step 2: copy + reformat<br/>79 sub-command skills"| COP["Copilot CLI<br/>~/.copilot/skills/"]
74
+ CC -->|"Step 2b: transform<br/>(install.js --codex)"| COD["Codex CLI<br/>1 router skill + 79 refs<br/>+ 11 agent TOML"]
75
75
  CC -->|"Step 3: genericize<br/>(strip personal data)"| REPO["multi-agent-pipeline repo<br/>pipeline/"]
76
76
  CC -->|"Step 4: version + feature sync"| WEB["Website<br/>projects.ts / i18n.tsx"]
77
77
 
@@ -162,7 +162,7 @@ measurements behind this table):
162
162
 
163
163
  | | Claude Code | Copilot CLI | Codex CLI |
164
164
  |---|---|---|---|
165
- | **Pipeline commands** | <!-- fact:commandCount -->72<!-- /fact --> slash-command skills, native | <!-- fact:commandCount -->72<!-- /fact --> sub-command skills, `multi-agent-{cmd}` naming, copied in | 1 router skill (`multi-agent`) + <!-- fact:commandCount -->72<!-- /fact --> command specs as reference files - Codex silently truncates its skills block past a few dozen entries, so sub-commands are not peer skills here |
165
+ | **Pipeline commands** | <!-- fact:commandCount -->79<!-- /fact --> slash-command skills, native | <!-- fact:commandCount -->79<!-- /fact --> sub-command skills, `multi-agent-{cmd}` naming, copied in | 1 router skill (`multi-agent`) + <!-- fact:commandCount -->79<!-- /fact --> command specs as reference files - Codex silently truncates its skills block past a few dozen entries, so sub-commands are not peer skills here |
166
166
  | **Stack plugins** | Marketplace plugin, loaded natively, resolved by `.claude/settings.json` enabled-list | Enabled plugin's authored skills copied flat into `~/.copilot/skills/`; `knowledge/` **not** re-copied (already delivered via `shared/external`) | Copied as reference files under `~/.codex/multi-agent-refs/skills/`, plugin-prefixed on name clash (e.g. `architecture` → `ai-ios-toolkit-architecture`) |
167
167
  | **Component dispatch (Phase 3)** | Marketplace plugin's `create-component`/`create-screen` skill via the Skill tool | No plugin loader - the enabled stack plugin's authored skills (incl. `create-component`) are copied flat into `~/.copilot/skills/` at install time (the old frozen `figma-*` copies are pruned, they were never a fallback) | Not part of the enforced parity axis; classification + state-shape must match, skill *inventory* does not |
168
168
  | **multi-agent-mcp** | `claude mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` | `copilot mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` | `codex mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` (skipped with a warning if `codex` isn't on `PATH`) |
@@ -239,8 +239,8 @@ Detail: [`unattended-security.md`](../pipeline/multi-agent-refs/features/unatten
239
239
 
240
240
  ### multi-agent-mcp's tools, by category
241
241
 
242
- <!-- fact:toolCount -->250<!-- /fact --> tools in <!-- fact:toolFamilyCount -->25<!-- /fact --> families, counted from the server's own `tools/list` response
243
- at toolkit <!-- fact:toolkitVersion -->4.1.0<!-- /fact --> rather than from a README. Three families are defined in
242
+ <!-- fact:toolCount -->251<!-- /fact --> tools in <!-- fact:toolFamilyCount -->25<!-- /fact --> families, counted from the server's own `tools/list` response
243
+ at toolkit <!-- fact:toolkitVersion -->4.2.0<!-- /fact --> rather than from a README. Three families are defined in
244
244
  modules the main file only spreads in, so a count taken from the source reads
245
245
  low; the response is the only place the whole surface appears at once. A
246
246
  family is the prefix every tool name carries.
@@ -257,8 +257,8 @@ skill or a command such as `multi-agent:review`. Both qualified forms
257
257
  let `lint-mcp-refs.mjs` check that the tool exists.
258
258
 
259
259
  The families can be narrowed per host: `MCP_TOOLKIT_CAPS` serves only the named
260
- ones, and unset serves all <!-- fact:toolCount -->250<!-- /fact -->. A frontend repo that sets `web,code,context`
261
- sees 50 tools instead of <!-- fact:toolCount -->250<!-- /fact -->, which matters because every registered server's
260
+ ones, and unset serves all <!-- fact:toolCount -->251<!-- /fact -->. A frontend repo that sets `web,code,context`
261
+ sees 50 tools instead of <!-- fact:toolCount -->251<!-- /fact -->, which matters because every registered server's
262
262
  tool list is charged against the context window on every turn.
263
263
 
264
264
  Per-family tool counts are `toolCategories` in [`facts.json`](facts.json), taken from the
package/docs/facts.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "Generated by pipeline/scripts/gen-facts.mjs. Do not hand-edit: the site reads this, and a number edited here instead of at its source is the drift this file removes.",
3
- "generatedAt": "2026-11-08",
4
- "version": "21.1.2",
3
+ "generatedAt": "2026-11-09",
4
+ "version": "23.0.0",
5
5
  "phaseSchema": 2,
6
6
  "phases": [
7
7
  {
@@ -36,17 +36,17 @@
36
36
  "analysis": [0, 1, 2, 3, 4, 5]
37
37
  },
38
38
  "reworkCap": 3,
39
- "commandCount": 72,
39
+ "commandCount": 79,
40
40
  "skillCount": 173,
41
- "skillCountAll": 248,
41
+ "skillCountAll": 255,
42
42
  "agentCount": 11,
43
43
  "hosts": ["Claude Code", "Codex CLI", "Copilot CLI"],
44
- "toolCount": 250,
44
+ "toolCount": 251,
45
45
  "toolCategories": {
46
46
  "ios": 42,
47
47
  "web": 38,
48
+ "android": 35,
48
49
  "store": 35,
49
- "android": 34,
50
50
  "vphone": 10,
51
51
  "media": 9,
52
52
  "code": 8,
@@ -70,5 +70,5 @@
70
70
  "test": 1
71
71
  },
72
72
  "pluginSkillCount": 269,
73
- "toolkitVersion": "4.1.0"
73
+ "toolkitVersion": "4.2.0"
74
74
  }
package/docs/features.md CHANGED
@@ -54,7 +54,7 @@ The install is not only useful while `/multi-agent` is running. `rules/outside-t
54
54
 
55
55
  - **Onboarded service credentials.** Resolve the logical name through `credential-store.sh` and read the issue, page or log. Writes route through the pipeline commands, which carry the rules that make them safe - issues are never auto-closed, PR bodies use `Ref:`, outward prose goes through the humanizer.
56
56
  - **The stack skills enabled for this repo.** Each toolkit's own `index` skill routes. The pipeline reads the effective `enabledPlugins` rather than keeping a stack table, so a seventh toolkit needs no code change.
57
- - **The `multi-agent` MCP.** <!-- fact:toolCount -->250<!-- /fact --> tools, most of them for a running app.
57
+ - **The `multi-agent` MCP.** <!-- fact:toolCount -->251<!-- /fact --> tools, most of them for a running app.
58
58
 
59
59
  Uninstall preserves the whole layer - tokens, the reader that opens them, the mapping that names them, the MCP registration. It is 1.5 kB of always-loaded text; the detail lives in a ref that loads on demand, and a gate keeps both under a ceiling because every byte there is paid by every session.
60
60
 
@@ -478,7 +478,7 @@ Turn a recurring, project-specific job into a first-class `/multi-agent:<name>`
478
478
 
479
479
  - **`/multi-agent:save`** distills candidate routines from the work just done this session (and named procedures in `~/.claude/CLAUDE.md`), offers them in a multi-select picker (pick one, combine several into one, or free-text a new one), and registers the chosen routine.
480
480
  - **`/multi-agent:routines`** lists saved routines (in `outputLanguage`); **`/multi-agent:forget`** removes one (guarded: never touches a shipped command).
481
- - **`/multi-agent:routines share | browse | import | update`** shares routines with other members of the reporting site, authenticated with the machine's existing usage token. `share` runs a secret scan first (tokens, private keys, home paths, private addresses, internal and configured corporate hosts) and refuses before any upload, then shows the exact request and asks for visibility (private, members, selected logins). `import` shows the full body and asks before adding it; the frontmatter is rebuilt locally and the body must hash to the published sha256. `update` shows a diff of a newer version before replacing an imported routine. Backed by `routine-share.mjs`; detail in `multi-agent-refs/features/routine-sharing.md`.
481
+ - **`/multi-agent:routines-share`**, **`/multi-agent:routines-browse`**, **`/multi-agent:routines-import`**, **`/multi-agent:routines-update`** and **`/multi-agent:routines-delete`** share routines with other members of the reporting site, authenticated with the machine's existing usage token. `routines-share` runs a secret scan first (tokens, private keys, home paths, private addresses, internal and configured corporate hosts) and refuses before any upload, then shows the exact request and asks for visibility (private, members, selected logins). `routines-import` shows the full body and asks before adding it; the frontmatter is rebuilt locally and the body must hash to the published sha256. `routines-update` shows a diff of a newer version before replacing an imported routine. `routines-delete` withdraws a routine the user published, after a confirmation. Backed by `routine-share.mjs`; detail in `multi-agent-refs/features/routine-sharing.md`.
482
482
  - Backed by `routine-registry.mjs`. Saved routines are `local-only: true` command dirs + a `prefs.global.routines` entry: preserved across `/multi-agent:update` by install snapshot/restore, never synced to the public repo, and never counted in the command inventory.
483
483
 
484
484
  ## Integrations
@@ -735,6 +735,9 @@ export const COMMAND_RENAMES = Object.freeze({
735
735
  // repeated it.
736
736
  autopilot: "multi-agent",
737
737
  "local-autopilot": "multi-agent",
738
+ // The fable rung follows the route-on/off/status shape: fable-on and fable-off
739
+ // switch it, fable-status is what the command did with no argument.
740
+ model: "fable-status",
738
741
  });
739
742
 
740
743
  /**
package/install/codex.mjs CHANGED
@@ -222,6 +222,7 @@ export function installCodex(ctx) {
222
222
  installRefs(pipelineSrc, CODEX_MA_REFS);
223
223
  installPersonas(pipelineSrc, CODEX_AGENTS);
224
224
  installPrompt(CODEX_PROMPTS);
225
+ installUserOnlyPrompts(pipelineSrc, CODEX_PROMPTS);
225
226
  installSkillRefs(pipelineSrc, CODEX_SKILL_REFS, home, platformFlag);
226
227
  installScripts(pipelineSrc, CODEX_SCRIPTS, useSymlinks);
227
228
  installTree("lib", pipelineSrc, CODEX_LIB, useSymlinks);
@@ -395,6 +396,65 @@ function installPrompt(promptsDir) {
395
396
  console.log(` -> /multi-agent prompt written to ${promptsDir}`);
396
397
  }
397
398
 
399
+ /** Last line of every per-command prompt the installer writes; uninstall and pruning key on it. */
400
+ export const CODEX_PROMPT_MARKER = "<!-- multi-agent-pipeline:codex-prompt -->";
401
+
402
+ /**
403
+ * Commands whose spec sets `disable-model-invocation: true`: they run only when
404
+ * the user types them.
405
+ *
406
+ * @param {string} pipelineSrc
407
+ * @returns {string[]}
408
+ */
409
+ export function userOnlyCommandIds(pipelineSrc) {
410
+ const commandsDir = join(pipelineSrc, "commands", "multi-agent");
411
+ if (!existsSync(commandsDir)) return [];
412
+ return readdirSync(commandsDir, { withFileTypes: true })
413
+ .filter((e) => e.isDirectory() && existsSync(join(commandsDir, e.name, "SKILL.md")))
414
+ .map((e) => e.name)
415
+ .filter((id) => {
416
+ const head = readFileSync(join(commandsDir, id, "SKILL.md"), "utf-8").split("\n---")[0];
417
+ return /^disable-model-invocation:\s*true\s*$/m.test(head);
418
+ });
419
+ }
420
+
421
+ /**
422
+ * The router skill is model-invocable, so it only names a user-only command.
423
+ * Each one gets its own prompt, `/multi-agent-<id>`, which only the user can
424
+ * type. Prompts this installer wrote earlier for commands that are no longer
425
+ * user-only are removed; a prompt without the marker is the user's and stays.
426
+ *
427
+ * @param {string} pipelineSrc
428
+ * @param {string} promptsDir
429
+ */
430
+ export function installUserOnlyPrompts(pipelineSrc, promptsDir) {
431
+ promptsDir = ensureRealDir(promptsDir, { userOwned: true });
432
+ ensureDir(promptsDir);
433
+ const ids = userOnlyCommandIds(pipelineSrc);
434
+ const wanted = new Set(ids.map((id) => `multi-agent-${id}.md`));
435
+ for (const name of existsSync(promptsDir) ? readdirSync(promptsDir) : []) {
436
+ if (!name.startsWith("multi-agent-") || !name.endsWith(".md") || wanted.has(name)) continue;
437
+ const file = join(promptsDir, name);
438
+ if (!readFileSync(file, "utf-8").includes(CODEX_PROMPT_MARKER)) continue;
439
+ if (isDryRun()) console.log(` [dry-run] would remove stale prompt ${file}`);
440
+ else rmSync(file, { force: true });
441
+ }
442
+ for (const id of ids) {
443
+ const body = [
444
+ `Run the multi-agent pipeline's \`${id}\` command. The user typed it, so it may run.`,
445
+ "",
446
+ `Read \`$HOME/.codex/multi-agent-refs/commands/${id}/SKILL.md\` and follow it for the input below.`,
447
+ "",
448
+ "Input: $ARGUMENTS",
449
+ "",
450
+ CODEX_PROMPT_MARKER,
451
+ "",
452
+ ].join("\n");
453
+ writeFile(join(promptsDir, `multi-agent-${id}.md`), body);
454
+ }
455
+ console.log(` -> ${ids.length} user-only command prompt(s) written to ${promptsDir}`);
456
+ }
457
+
398
458
  /**
399
459
  * Deliver every skill Claude Code and Copilot CLI get as a **reference file** under
400
460
  * `~/.codex/multi-agent-refs/skills/`, at zero skills-block cost.