@mmerterden/multi-agent-pipeline 23.7.0 → 24.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 (142) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/README.md +57 -24
  3. package/README.tr.md +41 -8
  4. package/SECURITY.md +3 -3
  5. package/docs/architecture.md +41 -4
  6. package/docs/ecosystem.md +15 -13
  7. package/docs/facts.json +5 -4
  8. package/docs/features.md +59 -15
  9. package/install/_codex-agents.mjs +13 -8
  10. package/install/_common.mjs +24 -0
  11. package/install/_dev-only-files.mjs +4 -0
  12. package/install/_mcp-register.mjs +6 -2
  13. package/install/_rewrite-tree.mjs +197 -0
  14. package/install/codex.mjs +96 -180
  15. package/install/copilot.mjs +24 -54
  16. package/install/index.mjs +29 -11
  17. package/install/templates/codex-instructions.md +21 -5
  18. package/install/templates/copilot-instructions.md +21 -14
  19. package/manifest.json +2082 -0
  20. package/package.json +6 -2
  21. package/pipeline/commands/multi-agent/SKILL.md +5 -4
  22. package/pipeline/commands/multi-agent/analysis/SKILL.md +4 -0
  23. package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
  24. package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
  25. package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
  26. package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
  27. package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
  28. package/pipeline/contract/manifest.json +1 -1
  29. package/pipeline/contract/types/index.d.ts +1 -0
  30. package/pipeline/lib/_jira-auth.sh +50 -78
  31. package/pipeline/lib/_service-account.sh +191 -0
  32. package/pipeline/lib/credential-inventory.sh +49 -37
  33. package/pipeline/lib/credential-store.sh +48 -3
  34. package/pipeline/lib/fetch-confluence.sh +76 -92
  35. package/pipeline/lib/fetch-crashlytics.sh +30 -59
  36. package/pipeline/lib/fetch-figma-annotations.sh +9 -9
  37. package/pipeline/lib/fetch-fortify.sh +77 -81
  38. package/pipeline/lib/fetch-graylog.sh +38 -77
  39. package/pipeline/lib/figma-mcp-refresh.sh +23 -4
  40. package/pipeline/lib/figma-screenshot.sh +7 -8
  41. package/pipeline/lib/figma-token.sh +39 -46
  42. package/pipeline/lib/host.mjs +138 -0
  43. package/pipeline/lib/host.sh +48 -0
  44. package/pipeline/lib/issue-fetcher.sh +25 -41
  45. package/pipeline/lib/jira-publish.sh +23 -21
  46. package/pipeline/lib/local-model.mjs +93 -0
  47. package/pipeline/lib/md2confluence-v3.py +37 -30
  48. package/pipeline/lib/model-dispatch.sh +41 -4
  49. package/pipeline/lib/model-resolve.mjs +58 -0
  50. package/pipeline/lib/post-pr-review.sh +38 -53
  51. package/pipeline/lib/reviewer-families.mjs +70 -0
  52. package/pipeline/lib/service-account.mjs +2131 -0
  53. package/pipeline/lib/service-account.sh +35 -0
  54. package/pipeline/lib/usage-token.mjs +64 -24
  55. package/pipeline/lib/usage-vocab.mjs +1 -1
  56. package/pipeline/lib/user-facing.mjs +11 -3
  57. package/pipeline/lib/vercel-deploy.sh +17 -26
  58. package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
  59. package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
  60. package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
  61. package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
  62. package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
  63. package/pipeline/multi-agent-refs/channels/generator.md +10 -2
  64. package/pipeline/multi-agent-refs/channels/menu.md +3 -1
  65. package/pipeline/multi-agent-refs/channels/preview.md +3 -1
  66. package/pipeline/multi-agent-refs/channels/reference.md +16 -2
  67. package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
  68. package/pipeline/multi-agent-refs/cross-cli-contract.md +35 -27
  69. package/pipeline/multi-agent-refs/features/doctor.md +37 -11
  70. package/pipeline/multi-agent-refs/features/free-models.md +3 -3
  71. package/pipeline/multi-agent-refs/features/local-model.md +87 -0
  72. package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
  73. package/pipeline/multi-agent-refs/features/product-context.md +6 -5
  74. package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
  75. package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
  76. package/pipeline/multi-agent-refs/help/en.md +28 -1
  77. package/pipeline/multi-agent-refs/help/tr.md +28 -1
  78. package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +2 -1
  79. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
  80. package/pipeline/multi-agent-refs/phases/modes.md +20 -1
  81. package/pipeline/multi-agent-refs/phases/phase-5-report.md +12 -10
  82. package/pipeline/multi-agent-refs/phases.md +4 -3
  83. package/pipeline/multi-agent-refs/review/panel.md +30 -18
  84. package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
  85. package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
  86. package/pipeline/multi-agent-refs/sync/overview.md +11 -5
  87. package/pipeline/multi-agent-refs/tracker-contract.md +28 -10
  88. package/pipeline/office/index.html +3 -3
  89. package/pipeline/schemas/autopilot-config.schema.json +29 -4
  90. package/pipeline/schemas/hosts.json +512 -0
  91. package/pipeline/schemas/hosts.schema.json +310 -0
  92. package/pipeline/schemas/launch.json +22 -2
  93. package/pipeline/schemas/launch.schema.json +2 -1
  94. package/pipeline/schemas/phases.json +19 -1
  95. package/pipeline/schemas/phases.schema.json +8 -0
  96. package/pipeline/schemas/prefs.schema.json +331 -4
  97. package/pipeline/scripts/.doctor-mut.47076.mjs +2253 -0
  98. package/pipeline/scripts/_autopilot-config.mjs +67 -4
  99. package/pipeline/scripts/_autopilot-item.mjs +67 -0
  100. package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
  101. package/pipeline/scripts/_cost.mjs +75 -3
  102. package/pipeline/scripts/analysis-sources.mjs +22 -5
  103. package/pipeline/scripts/analysis-unattended.mjs +360 -0
  104. package/pipeline/scripts/anonymize-findings.mjs +3 -7
  105. package/pipeline/scripts/autopilot-arming.mjs +19 -10
  106. package/pipeline/scripts/autopilot-intake.mjs +124 -27
  107. package/pipeline/scripts/autopilot-menubar.swift +7 -0
  108. package/pipeline/scripts/autopilot-runner.mjs +77 -48
  109. package/pipeline/scripts/autopilot-status.sh +32 -9
  110. package/pipeline/scripts/bulk-read.sh +37 -5
  111. package/pipeline/scripts/confluence-readback.mjs +15 -7
  112. package/pipeline/scripts/cost-table.json +65 -25
  113. package/pipeline/scripts/doctor.mjs +119 -32
  114. package/pipeline/scripts/entry-mode.mjs +101 -0
  115. package/pipeline/scripts/estimate.mjs +30 -16
  116. package/pipeline/scripts/feedback-send.mjs +11 -8
  117. package/pipeline/scripts/gen-facts.mjs +7 -9
  118. package/pipeline/scripts/jira-attach.sh +23 -28
  119. package/pipeline/scripts/jira-search.sh +5 -21
  120. package/pipeline/scripts/launch-request.mjs +15 -9
  121. package/pipeline/scripts/migrate-prefs.mjs +56 -0
  122. package/pipeline/scripts/phase-tracker.sh +146 -38
  123. package/pipeline/scripts/priority-review.mjs +14 -7
  124. package/pipeline/scripts/product-context.mjs +26 -7
  125. package/pipeline/scripts/prune-logs.sh +4 -2
  126. package/pipeline/scripts/report-file.mjs +285 -0
  127. package/pipeline/scripts/rework-escalation.mjs +19 -4
  128. package/pipeline/scripts/service-read.mjs +19 -17
  129. package/pipeline/scripts/skill-siblings.mjs +17 -1
  130. package/pipeline/scripts/status-overview.mjs +20 -10
  131. package/pipeline/scripts/uninstall.mjs +145 -57
  132. package/pipeline/scripts/usage-register.mjs +34 -11
  133. package/pipeline/scripts/usage-report.mjs +31 -26
  134. package/pipeline/scripts/validate-triage.mjs +11 -1
  135. package/pipeline/scripts/work-items.mjs +25 -28
  136. package/pipeline/scripts/write-store-config.mjs +37 -11
  137. package/pipeline/skills/.skill-manifest.json +4 -4
  138. package/pipeline/skills/.skills-index.json +1 -1
  139. package/pipeline/skills/shared/core/multi-agent/SKILL.md +11 -3
  140. package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
  141. package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
  142. package/pipeline/lib/credential-resolve.mjs +0 -75
package/CHANGELOG.md CHANGED
@@ -14,7 +14,44 @@ Internal file-layout changes that don't affect the slash-command surface are sti
14
14
 
15
15
  ---
16
16
 
17
- ## [Unreleased]
17
+ ## [24.0.0] - 2026-11-16
18
+
19
+ ### Added
20
+
21
+ - **A host registry, and a fourth host.** `schemas/hosts.json` (with its schema) is the single place a host is described: its install flag and root, the subtrees it installs, where its sub-command specs live and under what prefix, its path-rewrite rules, its model rung table, its review panel, its dispatch mechanism, its price ceiling and its headless argv. `lib/host.mjs`, `lib/host.sh`, `lib/model-resolve.mjs`, `lib/reviewer-families.mjs` and `scripts/gen-host-tables.mjs` all read it, so a host is added by describing it rather than by editing the places that branch on one.
22
+ - **`--local`: a model served from your own machine.** Host id `local`, root `.codex-local`, Codex CLI as the engine, all four rungs collapsed onto one model, a review panel of one, concurrency 1, network `optional`, price 0. `lib/local-model.mjs` validates the endpoint, `/multi-agent:doctor` gains a `local-model` check, and `prefs.global.localModel.baseUrl` is loopback-only unless `allowRemote` says otherwise. The requirement is a server that implements the Responses API (`POST /v1/responses`), not any OpenAI-compatible one: Ollama 0.13.4+ qualifies, and LM Studio and generic servers were not measured. An end-to-end run against a real local model has not been recorded.
23
+ - **Service accounts.** `prefs.global.serviceAccounts[]` carries, per entry, a service, a scope saying where that credential may be sent, and `secrets` mapping each slot to a credential-store item name. `lib/service-account.mjs` is the only module that decides a destination, `lib/service-account.sh` is its shell front door and `lib/_service-account.sh` is what a fetcher sources. Two rules hold everywhere: a secret is never produced without a destination checked against the account holding it, and a file carrying no `serviceAccounts[]` resolves identically, because the same entries are derived in memory from the flat keys.
24
+ - **`scripts/lint-credential-reads.mjs`**: a per-file ratchet over every line that reads a credential name, a host or the store directly. It cannot go up.
25
+ - **A picker for a bare invocation.** `/multi-agent` and `/multi-agent:analysis` typed with nothing after them now ask for their parameters instead of printing the guide. `scripts/entry-mode.mjs` decides between `typed`, `picker`, `usage` and `refuse-unattended`, and `multi-agent-refs/_entry-picker.md` is the one page both hosts act on. Every typed form, and autopilot, route exactly as before.
26
+ - **An unattended queue for `/multi-agent:analysis`.** Per-repo `analysisQueue`, `analysisGithubLabel` and `analysisJiraLabel` (offered as `agent-analysis`), a history key of its own so the same ticket can be analysed and later developed, the terminal outcome `doc-delivered`, and the `analysis-autopilot` mode in `schemas/phases.json` and `schemas/launch.json`. A repo is enrolled by saying yes, never by leaving a label unset. A label that collides with the repo's development label is refused. `scripts/analysis-unattended.mjs` derives each intake answer from the item, the repo and preferences, and parks with the question and its fix where nothing can be derived rather than guessing.
27
+
28
+ ### Changed
29
+
30
+ - **A credential and its destination are now one decision.** Every fetcher that used to read `keychainMapping` and `hosts` separately asks the resolver instead: the Jira family, Confluence, Fortify, both Figma fetchers, Jira attachments, Graylog, Crashlytics, the Bitbucket PR reviewer, Vercel, the Figma MCP refresh, the arming check and the Node readers. A shell caller receives a curl config that carries the URL and the credential together, with the scheme locked and redirects refused, so the credential no longer reaches a shell variable, argv or a trace. `lib/credential-resolve.mjs`, which looked the three halves up without joining them, is gone.
31
+ - **A host is matched exactly.** A subdomain of a configured host, and an environment override naming another host, are refused rather than allowed. Both used to resolve, and both are a credential reaching a host nobody named. A credential supplied through the environment together with its own `*_HOST` variable is still one statement about one instance and still resolves.
32
+ - **Jira authentication no longer involves jq.** `_jira-auth.sh` and `jira-publish.sh` build a per-call curl config, so the exit code 3 that meant "a value had to come from preferences and jq is not installed" can no longer happen.
33
+
34
+ ### Fixed
35
+
36
+ - **Sub-steps are back on the progress widget, and they are the phase set's property now.** Every phase declares its sub-steps in `schemas/phases.json` (`steps`) and `phase-tracker.sh add` registers them, so a run reaches its first boundary with `0.1 Intake`, `0.2 Workspace`, `0.3 Task contract` under Phase 0 and the same under Plan, Review, Commit and Report. Dev declares none: its sub-steps are Phase 1's plan tasks, which `plan` attaches. The trackers of finished runs are what made the call: every phase but a Dev with an attached plan held an empty `subs`, because a step a phase had to announce before it existed only appeared when the model remembered the call.
37
+
38
+ Three places were dropping the rows even once they existed. `tiles` built the Codex `update_plan` payload from the phase list alone, so sub-steps never reached that host at all; the per-phase `subjects <id>` read returned the phase row plus its sub rows into a single `TaskUpdate` subject; and `sub` changed the state file and the card without printing the host's mirror call, so a moved step moved nowhere the user could see. The Codex payload now carries every row with its own status, `subjects <id>` is one line because a tile subject is one string, and `sub` prints the same `-- NEXT (required) --` block `update` does.
39
+
40
+ The number rides inside the row text (` 3.2 Review panel`), which is where it has to be: the widget renders one string per row and no field beside it. `tiles` asks for a rebuild only when rows arrive after the list exists, which is the plan attach and nothing else - `tiles --rebuild`, which `plan` now calls through the `tiles` action so each host is told in its own calls rather than handed Claude Code's.
41
+
42
+ - **A configured account kept its host but lost its port and its scheme.** An account derived from the flat keys stored a bare hostname, so `hosts.jira = "http://127.0.0.1:9"` came back as `https://127.0.0.1`: another port, another scheme, and a request nobody meant to send. The origin is now taken from the entry whose host is that account's, so a second account of the same service never inherits the first one's port.
43
+
44
+ - **A refusal was lost in the subshell that produced it.** The shell helper kept the resolver's refusal in a variable, and every caller reads it through a command substitution, which is a subshell. The caller therefore saw nothing and reported whatever its own default branch said, so "this host is not one this account may be sent to" was printed as "no token". The refusal is written to a file the parent can read, and a regression test calls the helper the way a fetcher actually does.
45
+
46
+ - **The local host could be installed but not removed.** `uninstall.mjs` knew three hosts, so `~/.codex-local` survived every form of the command, `--all` included. The Codex removal is now one body with two roots, `--local` is a target of its own, and the MCP entry is handed back under the `CODEX_HOME` the installer wrote it with instead of the default one. Three tests cover the targeting: each flag removes its own tree and leaves the other standing, and `--all` removes both.
47
+
48
+ - **The installer's help listed three hosts.** `--local` was accepted and `--all` already installed it, but neither appeared in `--help`. The host lines are rendered from the registry now, so a host that exists cannot go unlisted.
49
+
50
+ - **A smoke could run in the checkout that invoked it.** `mktemp -d` returns an empty string when it fails, and an empty value is not an error where it is consumed: `cd ""` is a no-op that succeeds and `git -C ""` means the current directory. Three smokes therefore wrote fixtures, committed and deleted in whatever repository was running them. Each now proves the directory exists before entering it, and `scripts/lint-temp-guards.mjs` fails the suite when a new one does not.
51
+
52
+ - **The uninstaller named its hosts in its own text.** Its flag list, its "name a host" line and the local host's root and label are read from the registry now, so the retired-flag message lists every flag that exists rather than the three it was written with.
53
+
54
+ - **The credential inventory looked for its helpers in three host trees.** The service-account helper and the credential store are discovered across all four, so a machine carrying only the local host finds them by the same path as any other.
18
55
 
19
56
  ## [23.7.0] - 2026-11-13
20
57
 
package/README.md CHANGED
@@ -8,16 +8,16 @@
8
8
 
9
9
  🇹🇷 Türkçe: [README.tr.md](./README.tr.md)
10
10
 
11
- A <!-- fact:phaseCount -->6<!-- /fact -->-phase AI development pipeline for **Claude Code**, **Copilot CLI** and **Codex CLI**. Drives a Jira issue or GitHub URL to a merged PR in one command - analysis → plan → TDD → review → test → commit → PR - with multi-repo orchestration, a plan-approval gate, CLI-aware parallel review, and store-compliance checks. Component and Figma-to-code work is dispatched to the per-stack marketplace plugins (iOS/SwiftUI, Android/Compose) rather than bundled, so component skills live in one place.
11
+ A <!-- fact:phaseCount -->6<!-- /fact -->-phase AI development pipeline for **Claude Code**, **Copilot CLI**, **Codex CLI** and a **local-model host**. Drives a Jira issue or GitHub URL to a merged PR in one command - analysis → plan → TDD → review → test → commit → PR - with multi-repo orchestration, a plan-approval gate, CLI-aware parallel review, and store-compliance checks. Component and Figma-to-code work is dispatched to the per-stack marketplace plugins (iOS/SwiftUI, Android/Compose) rather than bundled, so component skills live in one place.
12
12
 
13
- Runs natively on Claude Code, Copilot CLI and Codex CLI. macOS only. Zero runtime dependencies.
13
+ Runs natively on Claude Code, Copilot CLI, Codex CLI and a fourth host that is the Codex engine pointed at a model served from your own machine. macOS only. Zero runtime dependencies.
14
14
 
15
15
  📐 **[Architecture diagrams](./docs/architecture.md)** - the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, operating modes, review/triage, Figma subphases, component layout. **[Ecosystem diagram](./docs/ecosystem.md)** - how this repo, the `multi-agent-plugins` marketplace and `multi-agent-mcp` compose.
16
16
 
17
17
  ### Prerequisites
18
18
 
19
19
  - **Node.js >= 20.11** - required; the pipeline's own tooling runs on it.
20
- - **`jq`** - required for ten paths, optional for the rest. 96 shell files call it. The ten that publish or decide - the autopilot queue, Jira comments, Jira Issue Links, PR reviews, issue updates, the plan file, both Figma fetchers, log search and Jira auth - refuse with exit 3 rather than run, because a missing `jq` renders as empty DATA and the work carries on with it. Everywhere else it still degrades. The install prints a note when it is missing.
20
+ - **`jq`** - required for nine paths, optional for the rest. 97 shell files call it. The nine that publish or decide - the autopilot queue, Jira comments, Jira Issue Links, PR reviews, issue updates, the plan file, both Figma fetchers and log search - refuse with exit 3 rather than run, because a missing `jq` renders as empty DATA and the work carries on with it. Everywhere else it still degrades. The install prints a note when it is missing.
21
21
  - **`gh`** - for GitHub issue and PR work. Its built-in `--jq` is independent of the `jq` binary.
22
22
 
23
23
  ## Quick Start
@@ -27,7 +27,8 @@ Runs natively on Claude Code, Copilot CLI and Codex CLI. macOS only. Zero runtim
27
27
  npx @mmerterden/multi-agent-pipeline install --claude # Claude Code only (default)
28
28
  npx @mmerterden/multi-agent-pipeline install --copilot # Copilot CLI only
29
29
  npx @mmerterden/multi-agent-pipeline install --codex # Codex CLI only
30
- npx @mmerterden/multi-agent-pipeline install --all # all three
30
+ npx @mmerterden/multi-agent-pipeline install --local # a model served from this machine
31
+ npx @mmerterden/multi-agent-pipeline install --all # every host above
31
32
 
32
33
  # then, once:
33
34
  /multi-agent:setup # keychain token scan + git identity + default stack
@@ -102,7 +103,7 @@ branch lives, a worktree or your current checkout:
102
103
  - **4 · Commit/PR** - conventional commit, push (must succeed), open a PR (`Ref: #N`, never auto-close). An unattended run stops at the commit and hands a PR request to the autopilot runner, which verifies it and opens a draft PR.
103
104
  - **5 · Report** - technical summary + a Jira comment with test scenarios, posted through the channels layer. This is the one step a terminal autopilot run still pauses at; an unattended run ends at the Phase 4 hand-off, and the runner posts the reports you configured once the PR is open.
104
105
 
105
- The phase list lives in `pipeline/schemas/phases.json`, and `smoke-phase-contract.sh` holds every other copy of it - the generator's output, the token budget, the state-schema bounds, the progress fractions in sample output - to that one file.
106
+ The phase list lives in `pipeline/schemas/phases.json`, and `smoke-phase-contract.sh` holds every other copy of it - the generator's output, the token budget, the state-schema bounds, the progress fractions in sample output - to that one file. Each phase also declares its own sub-steps there (`steps`), and `phase-tracker.sh add` registers them with the host's progress widget, so a run reaches its first boundary already showing `0.1 Intake`, `0.2 Workspace` and `0.3 Task contract` under Phase 0, and the same under Plan, Review, Commit and Report. Dev declares none on purpose: its sub-steps are Phase 1's plan tasks, which the plan attaches when it is approved. The number rides inside the row text, because the widget renders one string per row and carries no field beside it.
106
107
 
107
108
  `/multi-agent:analysis` runs its own shorter chain and reviews what it wrote before publishing it: the draft goes through the same three-reviewer set and triage as a code diff, a blocking finding returns it to synthesis with dispatch closed, and the gaps that survive are either searched, asked about, or recorded with an owner.
108
109
 
@@ -148,7 +149,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
148
149
  ## Modes
149
150
 
150
151
  | Mode | Command | Flow |
151
- | --------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
152
+ | --------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
152
153
  | Full | `/multi-agent "task"` | All <!-- fact:phaseCount -->6<!-- /fact --> phases, interactive |
153
154
  | Autopilot | `/multi-agent "task" autopilot` | The same <!-- fact:phaseCount -->6<!-- /fact --> phases, no confirmations; the workspace resolves to a worktree and the user-test gate inside Review is skipped |
154
155
  | Audit | `/multi-agent:design-check` | Mock-mode vs Figma conformance, local-only |
@@ -163,11 +164,13 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
163
164
  ### Pipeline entries
164
165
 
165
166
  | Command | What it does |
166
- | ------------------------------------- | ---------------------------------------------------------------------------------------------------- |
167
+ | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
167
168
  | `/multi-agent "task"` | The pipeline; Phase 0 asks where the branch lives |
168
169
  | `/multi-agent "task" autopilot` | The same pipeline, unattended: worktree resolved, no confirmations; `--loop N` repeats it in the background |
169
170
  | `/multi-agent:resume` | Unfinished work, either source: a stopped run picks up where it left off, a branch with no run behind it gets the tail (Review → Build+Test → Commit/PR → Report) |
170
171
 
172
+ **Typed with nothing after it, `/multi-agent` and `/multi-agent:analysis` ask instead of printing the guide.** Both are argument-shaped - a key, a URL, `repo#N`, free text, a sub-command - which is fast once you know the forms and a wall to read before that. `/multi-agent` offers your tracker items, unassigned issues, describing a task in one line, or the guide; `/multi-agent:analysis` offers a new analysis, or checking, refreshing or conforming a document you name. Every typed form routes exactly as before, and the account, maturity and dev-context steps still run after the answer. `scripts/entry-mode.mjs` decides which of four it is - `typed`, `picker`, `usage` (a modifier such as `autopilot` with no task, where asking would silently drop the modifier) or `refuse-unattended` - so the answer comes out the same on every host, and an unattended run started with no task says so in one line instead of waiting until it times out having produced nothing.
173
+
171
174
  ### Task control
172
175
 
173
176
  | Command | What it does |
@@ -186,7 +189,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
186
189
  ### Review
187
190
 
188
191
  | Command | What it does |
189
- | ---------------------------------- | ------------------------------------------------------------------------------------------- |
192
+ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
190
193
  | `/multi-agent:review` | Parallel review of a branch diff or a PR; inline comments + approve/needs-work on PR input |
191
194
  | `/multi-agent:review-jira` | Grade a Jira issue's readiness for development, comment the gaps |
192
195
  | `/multi-agent:address-review` | Answer human review on your own open PR: verify each thread, fix test-first or push back with a `file:line`; every reply, resolve and push approved one at a time, drafts only in autopilot |
@@ -206,7 +209,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
206
209
  ### Analysis
207
210
 
208
211
  | Command | What it does |
209
- | --------------------------------- | ----------------------------------------------------------------------------------------- |
212
+ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
210
213
  | `/multi-agent:analysis` | Standalone feature spec: global (23-section handoff) or corporate (IG/UC/FG) profile |
211
214
  | `/multi-agent:analysis-resolve` | Answer an analysis doc's Section 20 open questions one row at a time |
212
215
  | `/multi-agent:analysis-jira` | Turn a final analysis document into a Jira story tree: stories from its rule ids, two-way coverage, full preview, creates only what is missing |
@@ -217,7 +220,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
217
220
  ### Testing on a device
218
221
 
219
222
  | Command | What it does |
220
- | ---------------------------------------- | ------------------------------------------------------------------------- |
223
+ | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
221
224
  | `/multi-agent:test` | UI Bug Hunter on a booted simulator or emulator: screenshot, tap, analyze |
222
225
  | `/multi-agent:test-dark-mode` | Walk every screen light then dark, report contrast and colour bugs; layout shift between the two is measured, not eyeballed |
223
226
  | `/multi-agent:test-accessibility` | VoiceOver labels, sub-44pt tap targets, traits, and contrast measured as a WCAG ratio |
@@ -230,7 +233,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
230
233
  ### Design, build and store
231
234
 
232
235
  | Command | What it does |
233
- | ------------------------------------ | ---------------------------------------------------------------------------------------- |
236
+ | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
234
237
  | `/multi-agent:design-check` | Mock-mode vs Figma audit with a coverage gate; annotated HTML + PDF report |
235
238
  | `/multi-agent:store-ready` | Pre-submission gates for iOS and Android: package audit, store validation, policy review; listing text checked for limits and banned claims |
236
239
  | `/multi-agent:testflight-validation` | iOS-pinned alias of `store-ready`. Validates only, never uploads |
@@ -262,7 +265,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
262
265
  ### Setup and maintenance
263
266
 
264
267
  | Command | What it does |
265
- | -------------------------------- | ------------------------------------------------------------------------------ |
268
+ | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
266
269
  | `/multi-agent:setup` | First-run wizard: keychain token discovery, git identity, pipeline preparation |
267
270
  | `/multi-agent:stack [ids]` | Enable the marketplace plugin(s) for this repo. Multi-select |
268
271
  | `/multi-agent:scaffold <stack> <name>` | New project skeleton from the toolkit's scaffold skill, green before its first commit |
@@ -295,6 +298,8 @@ picking work up on its own, on ONE machine you choose, from repos you choose.
295
298
  | `/multi-agent:autopilot-status` | What is running and at which phase, what is queued, what is waiting for an answer, the PRs of the last day, and the rolling spend |
296
299
  | `/multi-agent:autopilot-off` | Remove the schedule. Work already running finishes; the repo selection is kept. `--now` also stops the item in flight, after naming it and asking |
297
300
 
301
+ **Analysis queues separately.** `/multi-agent:analysis` has an unattended queue of its own on its own tracker labels, so a repository can take analysis work without taking development work and the reverse. The labels are per repository - `analysisGithubLabel` and `analysisJiraLabel`, both defaulting to `agent-analysis` - and a configuration that gives an analysis label the same value as the development label is refused with both fields named, because one item would otherwise be picked up by both queues. An analysis item runs the analysis command against the item itself and ends at the document: the terminal outcome is `doc-delivered`, and an analysis item never opens a pull request. The per-repo Jira search for it is by label, so a repository with a custom development JQL still picks analysis work up.
302
+
298
303
  ### Autopilot (unattended)
299
304
 
300
305
  The runner is a launchd tick. Each tick takes the head of the queue, runs the
@@ -356,7 +361,7 @@ too. A laptop left unplugged with the mode on stays awake until it is plugged in
356
361
  or the mode is turned off; `awake.enabled: false` removes the agent and leaves
357
362
  only the per-run lock, which macOS honours on AC only.
358
363
 
359
- **The three commands ship to all three CLIs and behave identically there**, because
364
+ **The three commands ship to all three CLIs and behave identically there** (the local-model host does not offer continuous mode), because
360
365
  what they control is not a CLI feature: it is a launchd user agent whose tick
361
366
  spawns a `claude --bg` child regardless of which CLI you typed the command in.
362
367
  Continuous mode therefore needs the `claude` binary on `PATH` everywhere. The
@@ -451,7 +456,7 @@ Routing lets a policy pick the rung instead, per call site, and is off until you
451
456
  turn it on.
452
457
 
453
458
  | Command | What it does |
454
- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
459
+ | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
455
460
  | `/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 |
456
461
  | `/multi-agent:route-off` | Disarm it. The rules are KEPT, so turning it back on does not re-ask for the same configuration |
457
462
  | `/multi-agent:route-status` | Whether it is armed, which rule applies where, which rung the last dispatches took, and what this run has cost |
@@ -478,10 +483,31 @@ back to Claude and the tokens kept off Claude. Contract:
478
483
  [`free-models.md`](pipeline/multi-agent-refs/features/free-models.md).
479
484
 
480
485
  **The honest limit, which `route-status` prints rather than hides.** A subagent
481
- is dispatched by the host, so Phase 1-3 personas stay inside the Anthropic ladder
482
- whatever the rules say. The `free` rung answers only where the pipeline makes the
486
+ is dispatched by the host, so Phase 1-3 personas stay on the ladder that host
487
+ offers whatever the rules say: a rung the running host does not carry, or whose
488
+ model belongs to a provider it does not dispatch, is skipped and the next rung
489
+ in the rule answers. The `free` rung answers only where the pipeline makes the
483
490
  call itself, `bulk-read.sh` and the `delegate` call site, and decisions, plans,
484
- code, reviews and triage never leave Claude.
491
+ code, reviews and triage stay with the host's own models.
492
+
493
+ ### Where it runs: the host registry
494
+
495
+ Every host is one record in `pipeline/schemas/hosts.json`, validated by `hosts.schema.json`, and that record is the only place a host differs. It names the install flag and root, the subtrees installed under it, where its sub-command specs live and what prefixes them, the path rewrites that turn one authored tree into that host's shape, the model rung table, the review panel and the triage slot, how a child is handed its model, the price ceiling the cost ledger prices a run at, and the argv for a headless call. `lib/host.mjs` and `lib/host.sh` read it, `lib/model-resolve.mjs` resolves a rung through it, `lib/reviewer-families.mjs` takes the panel from it, and `scripts/gen-host-tables.mjs` renders the dispatch and panel tables in the reference documents from it, so a table and the registry cannot drift apart. Adding a host is a record, not a branch in each consumer.
496
+
497
+ | Host | Install flag and root | Model rungs | Review panel | Children at once | Network |
498
+ | ---- | --------------------- | ----------- | ------------ | ---------------- | ------- |
499
+ | Claude Code | `--claude`, `~/.claude` | fable, opus, sonnet, haiku | three in parallel, one vendor | no stated ceiling | required |
500
+ | Copilot CLI | `--copilot`, `~/.copilot` | opus, sonnet, haiku | three in parallel, two vendors | no stated ceiling | required |
501
+ | Codex CLI | `--codex`, `~/.codex` | four rungs, each a model and a reasoning effort | three in parallel, one vendor | 3 | required |
502
+ | Local model | `--local`, `~/.codex-local` | all four collapse to the one model you serve | one reviewer, triage on the same model | 1 | optional |
503
+
504
+ ### A model served from your own machine
505
+
506
+ `install --local` is the Codex engine pointed at a model on this machine, installed into a tree of its own so it cannot retune an existing Codex install. It is not "any OpenAI-compatible server": the engine speaks the OpenAI **Responses** API and no other, so the server has to answer `POST /v1/responses`. Ollama serves that endpoint from v0.13.3 and the engine asks for v0.13.4 or newer; whether another local server qualifies is a question about which endpoint that server offers, and LM Studio and generic servers have not been measured here.
507
+
508
+ Two values are yours and live in preferences, validated before either reaches a config or an agent file: `global.localModel.baseUrl` (loopback unless you set `allowRemote`, because the base URL is where every prompt in a run goes), `global.localModel.model`, and `global.localModel.contextWindow`, which is required rather than guessed - a window set too small truncates the diff and the run then reports on a file it never saw. `/multi-agent:doctor` carries a `local-model` check that reads them, and with `--probe` asks the server whether it answers.
509
+
510
+ The profile claims the pipeline runs, not that it runs as well: one reviewer instead of three is less disagreement to triage, and a smaller model reads a diff less carefully. Autopilot is not offered on it. Price is zero per token and the ledger still counts tokens, so a run stays comparable with one that cost money. The gate `smoke-local-host.sh` covers the registry shape, the preference refusals, an install that keeps to its own tree and the agent binding with and without a configured model; no model is started there, and no end-to-end run against a real local model has been recorded. [Local model host](./pipeline/multi-agent-refs/features/local-model.md)
485
511
 
486
512
  **The top rung is a switch.** `/multi-agent:fable-on` and `/multi-agent:fable-off` turn `fable` on and off
487
513
  (`prefs.global.modelFallback.fableEnabled`, shipped off). The review commands,
@@ -501,13 +527,14 @@ This enables the matching plugin (+ the shared `ai-common` plugin) in the repo's
501
527
 
502
528
  ## Tool support
503
529
 
504
- 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 -->81<!-- /fact --> commands.
530
+ The pipeline runs natively on **Claude Code**, **Copilot CLI**, **Codex CLI** and the **local-model host** - every one installs from the same `pipeline/` source and gets the same <!-- fact:commandCount -->81<!-- /fact --> commands. Which host you are on is a record in `pipeline/schemas/hosts.json`, not a branch in each installer.
505
531
 
506
532
  | Tool | Flag | What it installs |
507
- | ----------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
533
+ | ----------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
508
534
  | Claude Code | `--claude` (default) | slash commands + skills + agents + the enforcement hooks (secret scan, agent-guard, read-size gate, run-scope guard, run-stop guard) |
509
- | Copilot CLI | `--copilot` | instructions + <!-- fact:commandCount -->81<!-- /fact --> sub-command skills + scripts |
535
+ | Copilot CLI | `--copilot` | instructions + <!-- fact:commandCount -->81<!-- /fact --> sub-command skills + scripts + its own `multi-agent-refs` tree |
510
536
  | Codex CLI | `--codex` | one router skill + <!-- fact:commandCount -->81<!-- /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` |
537
+ | Local model | `--local` | the same as Codex CLI, in `~/.codex-local/`, bound to a model served from this machine ([local model](pipeline/multi-agent-refs/features/local-model.md)) |
511
538
 
512
539
  Filter skills by stack with `--platform=ios\|android\|all`.
513
540
 
@@ -520,13 +547,19 @@ nothing until read - same commands, same behaviour, a layout the host can actual
520
547
 
521
548
  Reviewer sets differ because the available models do: Claude Code runs 3 reviewers
522
549
  (Fable + Opus + Sonnet; 2 while the fable rung is off), Copilot CLI 3 (Opus + GPT-5.4 + Sonnet), Codex CLI 3 (gpt-5.6 at
523
- xhigh, gpt-5.4, gpt-5.6 at medium). Claude Code and Codex are single-vendor panels, so
550
+ xhigh, gpt-5.4, gpt-5.6 at medium), and the local-model host 1, with triage on the same
551
+ model - a panel of one is the honest limit of running on a single local model, not a
552
+ configuration choice. Claude Code and Codex are single-vendor panels, so
524
553
  consensus among their three is weaker evidence than the same consensus on Copilot CLI,
525
554
  the one host whose panel spans two vendors, and the triage note says so.
526
555
 
527
556
  ## Tokens & integrations
528
557
 
529
- `setup` scans your OS keychain and maps each token by a **logical name** (e.g. `jira`) to its real keychain entry - the pipeline resolves tokens through that mapping (`credential-store.sh`), so literal keychain names never appear in synced files. Tokens stay in the macOS Keychain, are **never committed or logged**, and are all **optional** - the pipeline asks for any it needs at Phase 0.
558
+ `setup` scans your OS keychain and records each credential as a **service account**: one entry that carries the service, the host the credential may be sent to, and the credential-store item **names** that hold it (`prefs.global.serviceAccounts`). Literal keychain names never appear in synced files, and no value is ever written to preferences. Tokens stay in the macOS Keychain, are **never committed or logged**, and are all **optional** - the pipeline asks for any it needs at Phase 0.
559
+
560
+ `pipeline/lib/service-account.mjs` is the only module that decides a destination, and two rules shape it. **A secret is never produced without a destination that was checked against the account holding it**: a request naming no host is refused rather than answered from the default account, and a host no account covers is refused rather than matched to the nearest one. **A file with no `serviceAccounts` in it resolves identically**, because the same entries are derived in memory from the flat keys - a missing array is the old shape, read the new way, not a refusal.
561
+
562
+ The host is matched **exactly**: a subdomain of a configured host, a name that merely ends in one, and userinfo in the URL are refused rather than allowed, and `http` is accepted only at loopback, where there is no network to carry the request. A credential supplied through an environment variable is answered too - a CI job, a container and a first run before setup all supply one that way - but it is bound differently, because nobody said which host it belongs to: it reaches a host a configured account already covers, the vendor's own hosts, whatever its own `*_HOST` variable names, and loopback, and nothing else. It never wins a destination a configured account also covers, and it never becomes the default. Shell callers go through `pipeline/lib/_service-account.sh`, which hands curl a config carrying the URL and the credential together and refuses redirects, so nothing can point the request elsewhere between the check and the send; the credential reaches neither argv, an environment variable, nor a log. One account per service is a complete setup; two accounts of the same service are told apart by the host, the identity or the account id. [Service accounts](./pipeline/multi-agent-refs/features/service-accounts.md)
530
563
 
531
564
  | Token | Used for | Phase |
532
565
  | --------------------- | ---------------------------------------------------------------- | ----------------------- |
@@ -546,7 +579,7 @@ The **secret scan** runs as a `PreToolUse` hook on Claude Code (hard-blocks a co
546
579
  **Hooks per host.** The enforcement hooks are Claude Code's; `install` registers them and `/multi-agent:doctor` (`hook-reachability`) says which are missing from your settings.
547
580
 
548
581
  | Hook | Claude Code | Codex CLI | Copilot CLI |
549
- | --- | --- | --- | --- |
582
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------- | ---------------------------------------------------- |
550
583
  | `pre-commit-check.sh` (secret scan, owned paths, attended build/test evidence, unattended ledger) | PreToolUse `Bash` | none: pre-push check | none: pre-push check |
551
584
  | `agent-guard.sh` (attribution, force-push, skipped git hooks, argv secrets, closure confirmations, read-only repos, your own `guardRules`, unattended policy) | PreToolUse `Bash`, file edits, fetch and toolkit tools | none | none |
552
585
  | `pr-write-guard.sh` (asks before `/multi-agent:address-review` writes to GitHub, denies it unattended) | PreToolUse `Bash` | none: the engine's own propose/apply token stands alone | none |
@@ -592,7 +625,7 @@ Runs on **macOS** only. The package declares `os: ["darwin"]`, so `npm` refuses
592
625
  ## Companion repos
593
626
 
594
627
  | Repo | What it is |
595
- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
628
+ | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
596
629
  | [`multi-agent-ecosystem/multi-agent-plugins`](https://github.com/multi-agent-ecosystem/multi-agent-plugins) | Marketplace of per-stack skill toolkits (iOS / Android / Frontend / Backend + common). `/multi-agent:stack` enables the matching plugin. |
597
630
  | [`multi-agent-ecosystem/multi-agent-mcp`](https://github.com/multi-agent-ecosystem/multi-agent-mcp) | MCP server for device, browser, store and code tools - powers `/multi-agent:test` and the Review phase's device checks; every family by stack and phase is in [`toolkit-tools.md`](pipeline/multi-agent-refs/toolkit-tools.md). Published on the public npm registry as [`@mmerterden/multi-agent-mcp`](https://www.npmjs.com/package/@mmerterden/multi-agent-mcp); the installer registers it with each CLI for you, so `npx` resolves it with no extra configuration. |
598
631
 
package/README.tr.md CHANGED
@@ -8,16 +8,16 @@
8
8
 
9
9
  🇬🇧 English: [README.md](./README.md)
10
10
 
11
- **Claude Code**, **Copilot CLI** ve **Codex CLI** için <!-- fact:phaseCount -->6<!-- /fact --> fazlı bir AI geliştirme pipeline'ı. Bir Jira issue'sunu veya GitHub URL'sini tek komutla merge edilmiş bir PR'a dönüştürür - analiz → plan → TDD → review → test → commit → PR - çoklu-repo orkestrasyonu, bir plan-onay kapısı, CLI-farkında paralel review ve store-uyumluluk kontrolleriyle birlikte. Component ve Figma-to-code işleri paket içine gömülmek yerine stack başına marketplace plugin'lerine (iOS/SwiftUI, Android/Compose) devredilir, böylece component skill'leri tek bir yerde yaşar.
11
+ **Claude Code**, **Copilot CLI**, **Codex CLI** ve bir **yerel model host'u** için <!-- fact:phaseCount -->6<!-- /fact --> fazlı bir AI geliştirme pipeline'ı. Bir Jira issue'sunu veya GitHub URL'sini tek komutla merge edilmiş bir PR'a dönüştürür - analiz → plan → TDD → review → test → commit → PR - çoklu-repo orkestrasyonu, bir plan-onay kapısı, CLI-farkında paralel review ve store-uyumluluk kontrolleriyle birlikte. Component ve Figma-to-code işleri paket içine gömülmek yerine stack başına marketplace plugin'lerine (iOS/SwiftUI, Android/Compose) devredilir, böylece component skill'leri tek bir yerde yaşar.
12
12
 
13
- Claude Code, Copilot CLI ve Codex CLI üzerinde native çalışır. Yalnızca macOS. Sıfır runtime dependency.
13
+ Claude Code, Copilot CLI, Codex CLI ve dördüncü bir host - kendi makinende sunulan bir modele bağlanan Codex motoru - üzerinde native çalışır. Yalnızca macOS. Sıfır runtime dependency.
14
14
 
15
15
  📐 **[Mimari diyagramları](./docs/architecture.md)** - <!-- fact:phaseCount -->6<!-- /fact --> faz akışı, çalışma modları, review/triage, Figma subphase'leri, component yapısı. **[Ekosistem diyagramı](./docs/ecosystem.md)** - bu repo, `multi-agent-plugins` marketplace'i ve `multi-agent-mcp`'nin nasıl bir araya geldiği.
16
16
 
17
17
  ### Önkoşullar
18
18
 
19
19
  - **Node.js >= 20.11** - zorunlu; pipeline'ın kendi araçları bunun üzerinde koşuyor.
20
- - **`jq`** - on yol için zorunlu, geri kalanı için opsiyonel. 96 kabuk dosyası ona başvuruyor. Yayınlayan ya da karar veren bu on yol - autopilot kuyruğu, Jira yorumları, Jira Issue Link'leri, PR review'ları, issue güncellemeleri, plan dosyası, iki Figma fetcher'ı, log araması ve Jira auth - `jq` yokken çalışmak yerine exit 3 ile reddediyor, çünkü eksik bir `jq` boş VERİ olarak görünür ve iş onunla devam eder. Diğer yerlerde `jq` olmadan da çalışıyor, yalnızca daha az şey yapıyor. Kurulum, eksikse bir not basıyor.
20
+ - **`jq`** - dokuz yol için zorunlu, geri kalanı için opsiyonel. 97 kabuk dosyası ona başvuruyor. Yayınlayan ya da karar veren bu dokuz yol - autopilot kuyruğu, Jira yorumları, Jira Issue Link'leri, PR review'ları, issue güncellemeleri, plan dosyası, iki Figma fetcher'ı ve log araması - `jq` yokken çalışmak yerine exit 3 ile reddediyor, çünkü eksik bir `jq` boş VERİ olarak görünür ve iş onunla devam eder. Diğer yerlerde `jq` olmadan da çalışıyor, yalnızca daha az şey yapıyor. Kurulum, eksikse bir not basıyor.
21
21
  - **`gh`** - GitHub issue ve PR işleri için. Kendi dahili `--jq`'su, `jq` ikilisinden bağımsız.
22
22
 
23
23
  ## Hızlı Başlangıç
@@ -27,7 +27,8 @@ Claude Code, Copilot CLI ve Codex CLI üzerinde native çalışır. Yalnızca ma
27
27
  npx @mmerterden/multi-agent-pipeline install --claude # sadece Claude Code (varsayılan)
28
28
  npx @mmerterden/multi-agent-pipeline install --copilot # sadece Copilot CLI
29
29
  npx @mmerterden/multi-agent-pipeline install --codex # sadece Codex CLI
30
- npx @mmerterden/multi-agent-pipeline install --all # üçü birden
30
+ npx @mmerterden/multi-agent-pipeline install --local # bu makinede sunulan bir model
31
+ npx @mmerterden/multi-agent-pipeline install --all # yukarıdaki her host
31
32
 
32
33
  # sonra, bir kere:
33
34
  /multi-agent:setup # keychain token taraması + git kimliği + varsayılan stack
@@ -101,7 +102,7 @@ yaşayacağı: worktree mi, mevcut checkout'un mu.
101
102
  - **4 · Commit/PR** - conventional commit, push (başarılı olmalı), bir PR aç (`Ref: #N`, asla otomatik kapatma). Gözetimsiz bir koşu commit'te durur ve bir PR isteğini autopilot koşucusuna bırakır; koşucu isteği doğrular ve taslak bir PR açar.
102
103
  - **5 · Report** - teknik özet + test senaryolarıyla bir Jira yorumu, channels katmanından gönderilir. Terminalden başlatılan bir autopilot koşusunun hâlâ durduğu tek adım bu; gözetimsiz bir koşu Faz 4 devrinde biter ve koşucu, PR açıldıktan sonra yapılandırdığın raporları gönderir.
103
104
 
104
- Faz listesi `pipeline/schemas/phases.json`'da duruyor; `smoke-phase-contract.sh` onun diğer her kopyasını - üreticinin çıktısını, token bütçesini, state-şema sınırlarını, örnek çıktılardaki ilerleme kesirlerini - bu tek dosyaya bağlı tutuyor.
105
+ Faz listesi `pipeline/schemas/phases.json`'da duruyor; `smoke-phase-contract.sh` onun diğer her kopyasını - üreticinin çıktısını, token bütçesini, state-şema sınırlarını, örnek çıktılardaki ilerleme kesirlerini - bu tek dosyaya bağlı tutuyor. Her faz kendi alt adımlarını da orada bildirir (`steps`) ve `phase-tracker.sh add` bunları host'un ilerleme widget'ına kaydeder; böylece koşu ilk sınırına geldiğinde Faz 0 altında `0.1 Intake`, `0.2 Workspace` ve `0.3 Task contract` satırları zaten görünür, aynısı Plan, Review, Commit ve Report için de geçerlidir. Dev bilerek hiç bildirmez: onun alt adımları Faz 1'in plan görevleridir ve plan onaylandığında eklenir. Numara satır metninin içinde taşınır, çünkü widget satır başına tek bir dize basar ve yanında başka alan tutmaz.
105
106
 
106
107
  `/multi-agent:analysis` kendi kısa zincirini koşar ve yazdığını yayınlamadan önce review eder: taslak, bir kod diff'iyle aynı üç-reviewer setinden ve triyajdan geçer, bloklayıcı bulgu dokümanı sentez fazına geri gönderip dispatch'i kapatır, hayatta kalan boşluklar ya aranır ya sana sorulur ya da sahibiyle birlikte kayda girer.
107
108
 
@@ -167,6 +168,8 @@ Koşunun kendisinde ayarlanabilen tek şey autopilot; geri kalan her şey kendi
167
168
  | `/multi-agent "task" autopilot` | Aynı pipeline, gözetimsiz: worktree'ye çözülür, onay sorulmaz |
168
169
  | `/multi-agent:resume` | Yarım kalan iş, iki kaynaktan da: duran koşu kaldığı yerden devam eder, arkasında koşu olmayan branch kuyruğu alır (Review → Build+Test → Commit/PR → Report) |
169
170
 
171
+ **Arkasında hiçbir şey yazılmadan çağrıldığında `/multi-agent` ve `/multi-agent:analysis` rehberi basmak yerine sorar.** İkisi de argüman bekler: bir anahtar, bir URL, `repo#N`, düz metin, bir alt komut. Biçimleri bilen için hızlı, bilmeyen için okunacak bir duvar. `/multi-agent` dört seçenek sunar: tracker maddelerin, atanmamış issue'lar, görevi tek cümleyle anlatmak, ya da rehber. Analiz komutu da dördünü sunar: yeni analiz, bir dokümanı kontrol etmek, tazelemek ya da biçime uydurmak. Yazılan her biçim eskisi gibi yönlenir; hesap, olgunluk ve dev-context adımları cevaptan sonra yine koşar. Hangisi olduğuna `scripts/entry-mode.mjs` karar verir - `typed`, `picker`, `usage` (görevsiz bir ek, örneğin tek başına `autopilot`; sorsaydık ek sessizce düşerdi) ya da `refuse-unattended` - böylece cevap her host'ta aynı çıkar ve görevsiz başlatılan gözetimsiz bir koşu, hiçbir şey üretmeden zaman aşımını beklemek yerine tek satırda durur.
172
+
170
173
  ### Görev kontrolü
171
174
 
172
175
  | Komut | Ne yapar |
@@ -295,6 +298,8 @@ alması.
295
298
  | `/multi-agent:autopilot-status` | Ne koşuyor hangi fazda, sırada ne var, ne cevap bekliyor, son bir günün PR'ları ve yuvarlanan harcama |
296
299
  | `/multi-agent:autopilot-off` | Zamanlamayı kaldırır. Koşan iş biter; repo seçimi saklanır. `--now` o an koşan maddeyi de durdurur, önce adını söyleyip sorar |
297
300
 
301
+ **Analizin kuyruğu ayrıdır.** `/multi-agent:analysis` için kendi etiketleri üzerinde ayrı bir gözetimsiz kuyruk var; böylece bir repo geliştirme işi almadan analiz işi alabilir, tersi de geçerli. Etiketler repo bazında tutulur - `analysisGithubLabel` ve `analysisJiraLabel`, ikisinin de varsayılanı `agent-analysis` - ve analiz etiketine geliştirme etiketiyle aynı değeri veren yapılandırma, iki alanın adı da söylenerek reddedilir; yoksa tek madde iki kuyruğa birden düşerdi. Analiz maddesi analiz komutunu maddenin kendisi üzerinde koşturur ve dokümanda biter: nihai sonuç `doc-delivered` olur, analiz maddesi hiçbir zaman PR açmaz. Jira tarafında arama etiketle yapılır, bu yüzden geliştirme için özel JQL yazan bir repo da analiz işini almaya devam eder.
302
+
298
303
  ### Autopilot (gözetimsiz)
299
304
 
300
305
  Koşucu bir launchd tick'idir. Her tick kuyruğun başındaki maddeyi alır, tüm
@@ -481,6 +486,25 @@ merdiveninde kalır. `free` basamağı yalnız pipeline'ın çağrıyı kendisi
481
486
  yerlerde cevap verir, `bulk-read.sh` ve `delegate` çağrı noktası; karar, plan,
482
487
  kod, review ve triyaj asla Claude'dan çıkmaz.
483
488
 
489
+ ### Nerede koşuyor: host kayıt defteri
490
+
491
+ Her host, `pipeline/schemas/hosts.json` içinde tek bir kayıttır ve `hosts.schema.json` ile doğrulanır; bir host'un diğerlerinden farklı olduğu tek yer o kayıttır. Kayıt şunları söyler: kurulum bayrağı ve kökü, altına kurulan ağaçlar, alt komut tanımlarının yeri ve ön eki, tek bir yazım ağacını o host'un biçimine çeviren yol kuralları, model basamakları tablosu, review paneli ve triyaj yuvası, bir çocuğa modelinin nasıl verildiği, maliyet defterinin koşuyu hangi fiyattan yazdığı ve headless çağrının argv'si. `lib/host.mjs` ile `lib/host.sh` bunu okur, `lib/model-resolve.mjs` basamağı bunun üzerinden çözer, `lib/reviewer-families.mjs` paneli buradan alır ve `scripts/gen-host-tables.mjs` referans dokümanlarındaki dispatch ve panel tablolarını buradan üretir; böylece tablo ile kayıt defteri birbirinden ayrı düşemez. Yeni bir host eklemek, her tüketiciye bir dal değil, bir kayıt eklemektir.
492
+
493
+ | Host | Kurulum bayrağı ve kök | Model basamakları | Review paneli | Aynı anda çocuk | Ağ |
494
+ | ---- | ---------------------- | ----------------- | ------------- | --------------- | -- |
495
+ | Claude Code | `--claude`, `~/.claude` | fable, opus, sonnet, haiku | paralel üç, tek vendor | belirtilmiş tavan yok | zorunlu |
496
+ | Copilot CLI | `--copilot`, `~/.copilot` | opus, sonnet, haiku | paralel üç, iki vendor | belirtilmiş tavan yok | zorunlu |
497
+ | Codex CLI | `--codex`, `~/.codex` | dört basamak; her biri bir model ve bir akıl yürütme eforu | paralel üç, tek vendor | 3 | zorunlu |
498
+ | Yerel model | `--local`, `~/.codex-local` | dördü de senin sunduğun tek modele iner | tek reviewer, triyaj aynı modelde | 1 | isteğe bağlı |
499
+
500
+ ### Kendi makinende sunulan bir model
501
+
502
+ `install --local`, bu makinedeki bir modele bağlanan Codex motorudur ve kendi ağacına kurulur; var olan bir Codex kurulumunu yeniden ayarlayamaz. "Herhangi bir OpenAI uyumlu sunucu" değildir: motor yalnızca OpenAI **Responses** API'sini konuşur, yani sunucunun `POST /v1/responses` isteğini karşılaması gerekir. Ollama bu uç noktayı v0.13.3'ten beri sunuyor, motor ise v0.13.4 ve sonrasını istiyor; başka bir yerel sunucunun uyup uymadığı, o sunucunun hangi uç noktayı sunduğu sorusudur ve LM Studio ile genel sunucular burada ölçülmedi.
503
+
504
+ İki değer sana ait ve tercihlerde duruyor; ikisi de bir yapılandırma dosyasına ya da agent dosyasına geçmeden önce doğrulanıyor: `global.localModel.baseUrl` (`allowRemote` açıkça verilmedikçe loopback, çünkü koşudaki her prompt bu adrese gider), `global.localModel.model` ve `global.localModel.contextWindow`. Sonuncusu tahmin edilmez, zorunludur: küçük tutulan bir pencere diff'i kırpar ve koşu hiç görmediği bir dosya hakkında rapor yazar. `/multi-agent:doctor` bunları okuyan bir `local-model` kontrolü taşır; `--probe` ile sunucuya cevap verip vermediğini de sorar.
505
+
506
+ Profilin iddiası pipeline'ın koştuğudur, aynı kalitede koştuğu değil: üç yerine tek reviewer, triyaja daha az anlaşmazlık taşır ve küçük bir model diff'i daha az dikkatle okur. Bu host'ta autopilot sunulmaz. Token başına fiyat sıfırdır, defter yine de token sayar; böylece koşu, para harcayan bir koşuyla karşılaştırılabilir kalır. `smoke-local-host.sh` kayıt defterinin biçimini, tercih retlerini, kendi ağacında kalan bir kurulumu ve modelli/modelsiz agent bağlamasını kapsar; orada hiçbir model başlatılmaz ve gerçek bir yerel modele karşı uçtan uca bir koşu kaydedilmedi. [Yerel model host'u](./pipeline/multi-agent-refs/features/local-model.md)
507
+
484
508
  **Üst basamak bir anahtar.** `/multi-agent:fable-on` `fable`'ı açar, `/multi-agent:fable-off` kapatır
485
509
  (`prefs.global.modelFallback.fableEnabled`, kapalı gelir). Review komutları,
486
510
  triyaj ve plan critic kendi yuvalarını bu anahtar üzerinden çözer: Claude
@@ -499,13 +523,14 @@ Bu, ilgili plugin'i (+ ortak `ai-common` plugin'ini) repo'nun `.claude/settings.
499
523
 
500
524
  ## Araç desteği
501
525
 
502
- Pipeline **Claude Code**, **Copilot CLI** ve **Codex CLI** üzerinde native çalışır - üçü de aynı `pipeline/` kaynağından kurulur ve aynı <!-- fact:commandCount -->81<!-- /fact --> komutu alır.
526
+ Pipeline **Claude Code**, **Copilot CLI**, **Codex CLI** ve **yerel model host'u** üzerinde native çalışır - her biri aynı `pipeline/` kaynağından kurulur ve aynı <!-- fact:commandCount -->81<!-- /fact --> komutu alır. Hangi host'ta olduğun, her kuruluma yazılmış bir dal değil, `pipeline/schemas/hosts.json` içindeki bir kayıttır.
503
527
 
504
528
  | Araç | Bayrak | Ne kurar |
505
529
  | ----------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------- |
506
530
  | Claude Code | `--claude` (varsayılan) | slash komutları + skill'ler + agent'lar + üç `PreToolUse` hook'u (secret scan, agent-guard, okuma-boyutu geçidi) |
507
531
  | Copilot CLI | `--copilot` | talimatlar + <!-- fact:commandCount -->81<!-- /fact --> alt-komut skill'i + script'ler |
508
532
  | Codex CLI | `--codex` | bir router skill + ref olarak <!-- fact:commandCount -->81<!-- /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` |
533
+ | Yerel model | `--local` | Codex CLI ile aynısı, `~/.codex-local/` içine, bu makinede sunulan bir modele bağlı ([yerel model](pipeline/multi-agent-refs/features/local-model.md)) |
509
534
 
510
535
  Skill'leri stack'e göre filtrele: `--platform=ios\|android\|all`.
511
536
 
@@ -519,13 +544,21 @@ host'un gerçekten tutabildiği bir düzen.
519
544
 
520
545
  Reviewer setleri farklı çünkü mevcut modeller farklı: Claude Code 3 reviewer çalıştırır
521
546
  (Fable + Opus + Sonnet; fable basamağı kapalıyken 2), Copilot CLI 3 (Opus + GPT-5.4 + Sonnet), Codex CLI 3 (xhigh'da
522
- gpt-5.6, gpt-5.4, medium'da gpt-5.6). Codex tek-vendor olduğu için üçü arasındaki
547
+ gpt-5.6, gpt-5.4, medium'da gpt-5.6), yerel model host'u ise 1 ve triyaj da aynı
548
+ modelde koşar - tek bir yerel modelde koşmanın dürüst sınırı budur, yapılandırma
549
+ tercihi değil. Codex tek-vendor olduğu için üçü arasındaki
523
550
  konsensüs, iki-vendor'lu bir host'taki aynı konsensüsten daha zayıf bir kanıttır ve
524
551
  triage notu bunu belirtir.
525
552
 
526
553
  ## Token'lar ve entegrasyonlar
527
554
 
528
- `setup` OS keychain'ini tarar ve her token'ı **mantıksal bir isimle** (örn. `jira`) gerçek keychain girdisine eşler - pipeline token'ları bu eşleme üzerinden çözer (`credential-store.sh`), böylece literal keychain isimleri hiçbir sync edilen dosyada görünmez. Token'lar macOS Keychain'de kalır, **asla commit edilmez ya da loglanmaz**, ve hepsi **opsiyoneldir** - pipeline Phase 0'da ihtiyaç duyduğu herhangi birini sorar.
555
+ `setup` OS keychain'ini tarar ve her kimlik bilgisini bir **servis hesabı** olarak kaydeder: hangi servise ait olduğunu, hangi host'a gönderilebileceğini ve onu tutan kimlik deposu girdilerinin **adlarını** taşıyan tek bir kayıt (`prefs.global.serviceAccounts`). Literal keychain isimleri hiçbir sync edilen dosyada görünmez ve tercihlere hiçbir değer yazılmaz. Token'lar macOS Keychain'de kalır, **asla commit edilmez ya da loglanmaz**, ve hepsi **opsiyoneldir** - pipeline Phase 0'da ihtiyaç duyduğu herhangi birini sorar.
556
+
557
+ Hedefe karar veren tek modül `pipeline/lib/service-account.mjs` ve onu iki kural biçimlendiriyor. **Sır, onu tutan hesaba karşı kontrol edilmiş bir hedef olmadan asla üretilmez**: host belirtmeyen istek varsayılan hesaptan cevaplanmaz, reddedilir; hiçbir hesabın kapsamadığı host en yakın eşleşmeye bağlanmaz, reddedilir. **İçinde `serviceAccounts` bulunmayan dosya aynı cevabı verir**, çünkü aynı girdiler eski düz anahtarlardan bellekte türetilir - eksik dizi ret değil, eski biçimin yeni okunuşudur.
558
+
559
+ Host birebir eşleşir: tanımlı bir host'un alt alan adı, yalnızca onunla biten bir ad ve URL içindeki kullanıcı bilgisi kabul edilmez, reddedilir; `http` yalnızca loopback'te geçerlidir, çünkü orada isteği taşıyacak bir ağ yoktur. Ortam değişkeniyle verilen kimlik bilgisi de cevaplanır - bir CI işi, bir konteyner ve setup'tan önceki ilk koşu onu böyle verir - ama farklı bağlıdır, çünkü hangi host'a ait olduğunu kimse söylememiştir: tanımlı bir hesabın zaten kapsadığı bir host'a, vendor'ın kendi host'larına, kendi `*_HOST` değişkeninin adlandırdığı yere ve loopback'e ulaşır, başka hiçbir yere. Tanımlı bir hesabın da kapsadığı bir hedefi asla kazanmaz ve asla varsayılan olmaz.
560
+
561
+ Kabuk tarafındaki çağıranlar `pipeline/lib/_service-account.sh` üzerinden geçer: curl'e URL ile kimlik bilgisini birlikte taşıyan bir config verilir ve yönlendirmeler reddedilir, böylece kontrol ile istek arasında hiçbir şey curl'ü başka yere çeviremez; kimlik bilgisi ne argv'ye, ne bir ortam değişkenine, ne de bir log'a ulaşır. Bir servis için tek hesap tam bir kurulumdur; aynı servisin iki hesabı host, kimlik ya da hesap kimliğiyle ayrılır. [Servis hesapları](./pipeline/multi-agent-refs/features/service-accounts.md)
529
562
 
530
563
  | Token | Ne için kullanılır | Faz |
531
564
  | --------------------- | ------------------------------------------------------------------ | ----------------------- |
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
- | 23.x | ✅ active |
10
- | 22.x | ⚠️ security fixes only |
11
- | ≤ 21.x | ❌ end-of-life |
9
+ | 24.x | ✅ active |
10
+ | 23.x | ⚠️ security fixes only |
11
+ | ≤ 22.x | ❌ end-of-life |
12
12
 
13
13
  ## Reporting a Vulnerability
14
14
 
@@ -44,6 +44,43 @@ graph LR
44
44
  end
45
45
  ```
46
46
 
47
+ ## Hosts
48
+
49
+ A host is one record in `pipeline/schemas/hosts.json`, checked against
50
+ `hosts.schema.json`. The record is the only place a host differs from the
51
+ others, so a consumer reads a field instead of branching on a name.
52
+
53
+ | What the record carries | Example of what reads it |
54
+ | ----------------------- | ------------------------ |
55
+ | install flag, install root, the subtrees installed under it | `install/index.mjs`, `install/claude.mjs`, `install/codex.mjs` |
56
+ | where sub-command specs live and what prefixes them | the installers and the command specs |
57
+ | path rewrites, from the authored tree to this host's shape | `install/_rewrite-tree.mjs` |
58
+ | model rung table and how the rung binds (runtime env, runtime flag, install, session) | `pipeline/lib/model-resolve.mjs` |
59
+ | review panel and triage slot | `pipeline/lib/reviewer-families.mjs`, `scripts/gen-host-tables.mjs` |
60
+ | dispatch mechanism, model argument, effort argument, children at once | the phase dispatch and `gen-host-tables.mjs` |
61
+ | price ceiling key, headless argv, session-usage format, network requirement | the cost ledger, headless calls, usage reading |
62
+
63
+ `pipeline/lib/host.mjs` and `pipeline/lib/host.sh` are the two readers of the
64
+ file; `scripts/gen-host-tables.mjs` renders the dispatch and panel tables into
65
+ `multi-agent-refs/review/panel.md` and
66
+ `multi-agent-refs/features/model-fallback.md` from it, with a `--check` mode, so
67
+ a documented table and the registry cannot disagree.
68
+
69
+ | Host | Install | Rungs | Panel | Children | Network |
70
+ | ---- | ------- | ----- | ----- | -------- | ------- |
71
+ | Claude Code | `--claude`, `~/.claude` | fable, opus, sonnet, haiku | three, one vendor | no stated ceiling | required |
72
+ | Copilot CLI | `--copilot`, `~/.copilot` | opus, sonnet, haiku | three, two vendors | no stated ceiling | required |
73
+ | Codex CLI | `--codex`, `~/.codex` | four, each a model and an effort | three, one vendor | 3 | required |
74
+ | Local model | `--local`, `~/.codex-local` | all four collapse to one model | one, triage on the same model | 1 | optional |
75
+
76
+ The local-model host is the Codex engine in a tree of its own, pointed at a
77
+ server on this machine that answers the OpenAI Responses API
78
+ (`POST /v1/responses`). It shares the Codex installer and differs only in its
79
+ record and in the two preference values the user supplies
80
+ (`global.localModel`), which `pipeline/lib/local-model.mjs` validates before
81
+ either reaches a config file or an agent file. Detail:
82
+ [`local-model.md`](../pipeline/multi-agent-refs/features/local-model.md).
83
+
47
84
  ## Review Architecture (Phase 3)
48
85
 
49
86
  <!-- facts: reworkDefault="rounds by" -->
@@ -131,9 +168,9 @@ graph TB
131
168
  end
132
169
 
133
170
  IDX --> INS
134
- INS -->|copies to ~/.claude/| CMD
135
- INS -->|copies to ~/.claude/| AGT
136
- INS -->|copies to ~/.claude/| RUL
171
+ INS -->|copies into the host tree| CMD
172
+ INS -->|copies into the host tree| AGT
173
+ INS -->|copies into the host tree| RUL
137
174
  CMD --> PHS
138
175
  SCH --> EVL
139
176
  SCH --> SMK
@@ -209,7 +246,7 @@ repo and the website, plus the two independently shipped repos
209
246
  ```mermaid
210
247
  graph TD
211
248
  CC["Claude Code<br/>(source of truth)"]
212
- COP["Copilot CLI<br/>(instructions + 81 sub-command skills)"]
249
+ COP["Copilot CLI<br/>(instructions + 81 sub-command skills<br/>+ its own refs tree)"]
213
250
  COD["Codex CLI<br/>(1 router skill + 81 refs)"]
214
251
  REPO["Pipeline Repo<br/>(npm package)"]
215
252
  WEB["Website"]