@mmerterden/multi-agent-pipeline 23.7.0 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -1
- package/README.md +59 -24
- package/README.tr.md +43 -8
- package/SECURITY.md +3 -3
- package/docs/architecture.md +41 -4
- package/docs/ecosystem.md +15 -13
- package/docs/facts.json +5 -4
- package/docs/features.md +67 -15
- package/install/_codex-agents.mjs +13 -8
- package/install/_common.mjs +24 -0
- package/install/_dev-only-files.mjs +5 -0
- package/install/_mcp-register.mjs +6 -2
- package/install/_rewrite-tree.mjs +197 -0
- package/install/codex.mjs +96 -180
- package/install/copilot.mjs +24 -54
- package/install/index.mjs +29 -11
- package/install/templates/codex-instructions.md +21 -5
- package/install/templates/copilot-instructions.md +21 -14
- package/manifest.json +2083 -0
- package/package.json +8 -2
- package/pipeline/commands/multi-agent/SKILL.md +5 -4
- package/pipeline/commands/multi-agent/analysis/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
- package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
- package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
- package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +15 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/runs-awaiting-question.json +6 -1
- package/pipeline/contract/fixtures/runs-empty.json +1 -1
- package/pipeline/contract/fixtures/runs-failed.json +21 -1
- package/pipeline/contract/fixtures/runs-old-schema.json +18 -3
- package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +31 -1
- package/pipeline/contract/fixtures/runs-pr-opened.json +31 -1
- package/pipeline/contract/fixtures/runs-running.json +16 -1
- package/pipeline/contract/manifest.json +14 -14
- package/pipeline/contract/types/index.d.ts +20 -1
- package/pipeline/lib/_jira-auth.sh +50 -78
- package/pipeline/lib/_service-account.sh +191 -0
- package/pipeline/lib/credential-inventory.sh +49 -37
- package/pipeline/lib/credential-store.sh +48 -3
- package/pipeline/lib/fetch-confluence.sh +76 -92
- package/pipeline/lib/fetch-crashlytics.sh +30 -59
- package/pipeline/lib/fetch-figma-annotations.sh +9 -9
- package/pipeline/lib/fetch-fortify.sh +77 -81
- package/pipeline/lib/fetch-graylog.sh +38 -77
- package/pipeline/lib/figma-mcp-refresh.sh +23 -4
- package/pipeline/lib/figma-screenshot.sh +7 -8
- package/pipeline/lib/figma-token.sh +39 -46
- package/pipeline/lib/host.mjs +138 -0
- package/pipeline/lib/host.sh +48 -0
- package/pipeline/lib/issue-fetcher.sh +25 -41
- package/pipeline/lib/jira-publish.sh +23 -21
- package/pipeline/lib/local-model.mjs +93 -0
- package/pipeline/lib/md2confluence-v3.py +37 -30
- package/pipeline/lib/model-dispatch.sh +41 -4
- package/pipeline/lib/model-resolve.mjs +58 -0
- package/pipeline/lib/post-pr-review.sh +38 -53
- package/pipeline/lib/reviewer-families.mjs +70 -0
- package/pipeline/lib/service-account.mjs +2131 -0
- package/pipeline/lib/service-account.sh +35 -0
- package/pipeline/lib/usage-token.mjs +64 -24
- package/pipeline/lib/usage-vocab.mjs +1 -1
- package/pipeline/lib/user-facing.mjs +11 -3
- package/pipeline/lib/vercel-deploy.sh +17 -26
- package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
- package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
- package/pipeline/multi-agent-refs/analysis/render.md +12 -1
- package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
- package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
- package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
- package/pipeline/multi-agent-refs/channels/generator.md +10 -2
- package/pipeline/multi-agent-refs/channels/menu.md +3 -1
- package/pipeline/multi-agent-refs/channels/preview.md +3 -1
- package/pipeline/multi-agent-refs/channels/reference.md +16 -2
- package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +35 -27
- package/pipeline/multi-agent-refs/features/doctor.md +37 -11
- package/pipeline/multi-agent-refs/features/free-models.md +3 -3
- package/pipeline/multi-agent-refs/features/local-model.md +87 -0
- package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
- package/pipeline/multi-agent-refs/features/product-context.md +6 -5
- package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
- package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
- package/pipeline/multi-agent-refs/help/en.md +36 -1
- package/pipeline/multi-agent-refs/help/tr.md +34 -1
- package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +2 -1
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
- package/pipeline/multi-agent-refs/phases/modes.md +20 -1
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-4-commit.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +13 -11
- package/pipeline/multi-agent-refs/phases.md +4 -3
- package/pipeline/multi-agent-refs/review/panel.md +30 -18
- package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
- package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
- package/pipeline/multi-agent-refs/sync/overview.md +11 -5
- package/pipeline/multi-agent-refs/tracker-contract.md +64 -20
- package/pipeline/office/index.html +77 -4
- package/pipeline/schemas/activity.schema.json +63 -4
- package/pipeline/schemas/autopilot-config.schema.json +29 -4
- package/pipeline/schemas/hosts.json +512 -0
- package/pipeline/schemas/hosts.schema.json +310 -0
- package/pipeline/schemas/launch.json +22 -2
- package/pipeline/schemas/launch.schema.json +2 -1
- package/pipeline/schemas/now-lines.json +103 -0
- package/pipeline/schemas/now-lines.schema.json +42 -0
- package/pipeline/schemas/phases.json +19 -1
- package/pipeline/schemas/phases.schema.json +8 -0
- package/pipeline/schemas/prefs.schema.json +331 -4
- package/pipeline/schemas/runs-index.schema.json +22 -1
- package/pipeline/scripts/_autopilot-config.mjs +67 -4
- package/pipeline/scripts/_autopilot-item.mjs +67 -0
- package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_cost.mjs +75 -3
- package/pipeline/scripts/activity-snapshot.mjs +27 -1
- package/pipeline/scripts/analysis-sources.mjs +22 -5
- package/pipeline/scripts/analysis-unattended.mjs +360 -0
- package/pipeline/scripts/anonymize-findings.mjs +3 -7
- package/pipeline/scripts/autopilot-arming.mjs +19 -10
- package/pipeline/scripts/autopilot-intake.mjs +124 -27
- package/pipeline/scripts/autopilot-menubar.swift +7 -0
- package/pipeline/scripts/autopilot-runner.mjs +77 -48
- package/pipeline/scripts/autopilot-status.sh +32 -9
- package/pipeline/scripts/bulk-read.sh +37 -5
- package/pipeline/scripts/confluence-readback.mjs +15 -7
- package/pipeline/scripts/cost-table.json +65 -25
- package/pipeline/scripts/doctor.mjs +119 -32
- package/pipeline/scripts/entry-mode.mjs +101 -0
- package/pipeline/scripts/estimate.mjs +30 -16
- package/pipeline/scripts/feedback-send.mjs +11 -8
- package/pipeline/scripts/gen-facts.mjs +7 -9
- package/pipeline/scripts/jira-attach.sh +23 -28
- package/pipeline/scripts/jira-search.sh +5 -21
- package/pipeline/scripts/launch-request.mjs +15 -9
- package/pipeline/scripts/migrate-prefs.mjs +56 -0
- package/pipeline/scripts/phase-tracker.sh +226 -50
- package/pipeline/scripts/priority-review.mjs +14 -7
- package/pipeline/scripts/product-context.mjs +26 -7
- package/pipeline/scripts/prune-logs.sh +4 -2
- package/pipeline/scripts/render-work-summary.sh +51 -1
- package/pipeline/scripts/report-file.mjs +285 -0
- package/pipeline/scripts/rework-escalation.mjs +19 -4
- package/pipeline/scripts/runs-index.mjs +2 -1
- package/pipeline/scripts/service-read.mjs +19 -17
- package/pipeline/scripts/skill-siblings.mjs +17 -1
- package/pipeline/scripts/status-overview.mjs +20 -10
- package/pipeline/scripts/uninstall.mjs +145 -57
- package/pipeline/scripts/usage-register.mjs +34 -11
- package/pipeline/scripts/usage-report.mjs +31 -26
- package/pipeline/scripts/validate-triage.mjs +11 -1
- package/pipeline/scripts/work-items.mjs +25 -28
- package/pipeline/scripts/write-store-config.mjs +37 -11
- package/pipeline/skills/.skill-manifest.json +4 -4
- package/pipeline/skills/.skills-index.json +1 -1
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +11 -3
- package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
- package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
- package/pipeline/lib/credential-resolve.mjs +0 -75
package/install/copilot.mjs
CHANGED
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
dirsIdentical,
|
|
20
20
|
ensureDir,
|
|
21
21
|
ensureRealDir,
|
|
22
|
+
ensureSharedPreferences,
|
|
22
23
|
isDryRun,
|
|
23
24
|
isSkillDirName,
|
|
24
25
|
pruneOrphanSkillFiles,
|
|
25
26
|
removePipelineAgentFiles,
|
|
26
27
|
symlinkDir,
|
|
27
28
|
wipeDir,
|
|
28
|
-
writeFile,
|
|
29
29
|
} from "./_common.mjs";
|
|
30
30
|
import {
|
|
31
31
|
EXTERNAL_SKILLS_MANIFEST,
|
|
@@ -41,6 +41,12 @@ import {
|
|
|
41
41
|
pluginsToDeliver,
|
|
42
42
|
} from "./_plugin-skills.mjs";
|
|
43
43
|
import { registerMcpServer } from "./_mcp-register.mjs";
|
|
44
|
+
import {
|
|
45
|
+
applyPathRewrites,
|
|
46
|
+
buildPathRewrites,
|
|
47
|
+
installRefs,
|
|
48
|
+
makeCopyTreeRewritten,
|
|
49
|
+
} from "./_rewrite-tree.mjs";
|
|
44
50
|
import { deliverXcodeSkills } from "./_xcode-skills.mjs";
|
|
45
51
|
|
|
46
52
|
/**
|
|
@@ -65,6 +71,7 @@ export function installCopilot(ctx) {
|
|
|
65
71
|
const COPILOT_LIB = join(COPILOT_DIR, "lib");
|
|
66
72
|
const COPILOT_RULES = join(COPILOT_DIR, "rules");
|
|
67
73
|
const COPILOT_TEMPLATES = join(COPILOT_DIR, "templates");
|
|
74
|
+
const COPILOT_MA_REFS = join(COPILOT_DIR, "multi-agent-refs");
|
|
68
75
|
|
|
69
76
|
console.log(" [Copilot CLI] Installing pipeline instructions...");
|
|
70
77
|
ensureDir(COPILOT_DIR);
|
|
@@ -78,6 +85,11 @@ export function installCopilot(ctx) {
|
|
|
78
85
|
installRules(pipelineSrc, COPILOT_RULES, useSymlinks);
|
|
79
86
|
installTemplates(pipelineSrc, COPILOT_TEMPLATES, useSymlinks);
|
|
80
87
|
installSkills({ home, pipelineSrc, dest: COPILOT_SKILLS, indexOnly, useSymlinks, platformFlag });
|
|
88
|
+
// Sub-command specs are skipped: this host fans the pipeline out as one skill
|
|
89
|
+
// per sub-command, so `skills/multi-agent-<sub>/SKILL.md` already holds each
|
|
90
|
+
// spec and COPILOT_PATH_REWRITES points every reference there.
|
|
91
|
+
installRefs(pipelineSrc, COPILOT_MA_REFS, copyTreeRewritten, { subCommandSpecs: false });
|
|
92
|
+
ensureSharedPreferences(home, pipelineSrc);
|
|
81
93
|
|
|
82
94
|
// Copilot never registered the companion MCP server, while Codex did from the day its
|
|
83
95
|
// installer was written. So Copilot carried every pipeline skill and could not call a
|
|
@@ -100,31 +112,17 @@ export function installCopilot(ctx) {
|
|
|
100
112
|
*
|
|
101
113
|
* - `scripts`, `lib`, `schemas`, `agents`, `rules` and `skills` are installed under
|
|
102
114
|
* `~/.copilot/`, so references must point there.
|
|
103
|
-
* - `multi-agent-refs`
|
|
104
|
-
*
|
|
105
|
-
*
|
|
115
|
+
* - `multi-agent-refs` is installed under `~/.copilot/` too, and the command
|
|
116
|
+
* specs resolve into this host's own trees: the sub-command specs into the
|
|
117
|
+
* fanned-out skills that already carry them, the standalone ones into
|
|
118
|
+
* `multi-agent-refs/commands`.
|
|
106
119
|
* - Shared state (`logs/`, `multi-agent-preferences.json`, `knowledge/`) is NOT
|
|
107
120
|
* rewritten either. `~/.claude` is the cross-host state root - that is what lets
|
|
108
121
|
* `:resume` / `:log` / `:status` see a task started from another CLI.
|
|
109
122
|
*
|
|
110
123
|
* @type {ReadonlyArray<{from: RegExp, to: string}>}
|
|
111
124
|
*/
|
|
112
|
-
export const COPILOT_PATH_REWRITES =
|
|
113
|
-
// Skills first: a skill that names a sibling skill by path (the compliance pair,
|
|
114
|
-
// humanizer, the xcode-build family) has to land inside THIS host's skills tree.
|
|
115
|
-
{ from: /\$HOME\/\.claude\/skills\b/g, to: "$HOME/.copilot/skills" },
|
|
116
|
-
{ from: /~\/\.claude\/skills\b/g, to: "~/.copilot/skills" },
|
|
117
|
-
{ from: /\$HOME\/\.claude\/scripts\b/g, to: "$HOME/.copilot/scripts" },
|
|
118
|
-
{ from: /~\/\.claude\/scripts\b/g, to: "~/.copilot/scripts" },
|
|
119
|
-
{ from: /\$HOME\/\.claude\/lib\b/g, to: "$HOME/.copilot/lib" },
|
|
120
|
-
{ from: /~\/\.claude\/lib\b/g, to: "~/.copilot/lib" },
|
|
121
|
-
{ from: /\$HOME\/\.claude\/schemas\b/g, to: "$HOME/.copilot/schemas" },
|
|
122
|
-
{ from: /~\/\.claude\/schemas\b/g, to: "~/.copilot/schemas" },
|
|
123
|
-
{ from: /\$HOME\/\.claude\/agents\b/g, to: "$HOME/.copilot/agents" },
|
|
124
|
-
{ from: /~\/\.claude\/agents\b/g, to: "~/.copilot/agents" },
|
|
125
|
-
{ from: /\$HOME\/\.claude\/rules\b/g, to: "$HOME/.copilot/rules" },
|
|
126
|
-
{ from: /~\/\.claude\/rules\b/g, to: "~/.copilot/rules" },
|
|
127
|
-
]);
|
|
125
|
+
export const COPILOT_PATH_REWRITES = buildPathRewrites("copilot");
|
|
128
126
|
|
|
129
127
|
/**
|
|
130
128
|
* Apply the Copilot path map to a file's text.
|
|
@@ -132,45 +130,17 @@ export const COPILOT_PATH_REWRITES = Object.freeze([
|
|
|
132
130
|
* @returns {string}
|
|
133
131
|
*/
|
|
134
132
|
export function rewriteCopilotPaths(text) {
|
|
135
|
-
|
|
136
|
-
for (const { from, to } of COPILOT_PATH_REWRITES) out = out.replace(from, to);
|
|
137
|
-
return out;
|
|
133
|
+
return applyPathRewrites(COPILOT_PATH_REWRITES, text);
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* `$HOME/.claude/...` references that have to be retargeted.
|
|
137
|
+
* Copy a tree into the Copilot install, retargeting every `$HOME/.claude/...`
|
|
138
|
+
* path it carries. The machinery is shared with the other hosts; only the path
|
|
139
|
+
* map is this host's.
|
|
145
140
|
*
|
|
146
|
-
* @
|
|
147
|
-
* @param {string} dest
|
|
148
|
-
* @param {(relPath: string) => boolean} [filter] - receives the path relative to the
|
|
149
|
-
* copy root (POSIX-separated). Return false to skip.
|
|
150
|
-
* @param {string} [relBase] - internal: accumulated relative path
|
|
151
|
-
* @returns {number} files written
|
|
141
|
+
* @type {(src: string, dest: string, filter?: (rel: string) => boolean) => number}
|
|
152
142
|
*/
|
|
153
|
-
|
|
154
|
-
const TEXT = /\.(md|json|sh|mjs|js|txt|ya?ml|toml)$/i;
|
|
155
|
-
let n = 0;
|
|
156
|
-
for (const entry of readdirSync(src, { withFileTypes: true })) {
|
|
157
|
-
const from = join(src, entry.name);
|
|
158
|
-
const to = join(dest, entry.name);
|
|
159
|
-
const rel = relBase ? `${relBase}/${entry.name}` : entry.name;
|
|
160
|
-
if (entry.isDirectory()) {
|
|
161
|
-
n += copyTreeRewritten(from, to, filter, rel);
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
if (!entry.isFile()) continue;
|
|
165
|
-
if (filter && !filter(rel)) continue;
|
|
166
|
-
ensureDir(dest);
|
|
167
|
-
const isText = TEXT.test(entry.name);
|
|
168
|
-
const raw = readFileSync(from, isText ? "utf-8" : null);
|
|
169
|
-
writeFile(to, isText ? rewriteCopilotPaths(raw) : raw);
|
|
170
|
-
n++;
|
|
171
|
-
}
|
|
172
|
-
return n;
|
|
173
|
-
}
|
|
143
|
+
const copyTreeRewritten = makeCopyTreeRewritten(rewriteCopilotPaths);
|
|
174
144
|
|
|
175
145
|
/** Start of the pipeline-managed span in copilot-instructions.md. */
|
|
176
146
|
export const INSTRUCTIONS_START_MARKER = "# Multi-Agent Development Pipeline";
|
package/install/index.mjs
CHANGED
|
@@ -18,6 +18,7 @@ import { join } from "path";
|
|
|
18
18
|
import { installClaude, reportServerRename } from "./claude.mjs";
|
|
19
19
|
import { installCopilot } from "./copilot.mjs";
|
|
20
20
|
import { installCodex } from "./codex.mjs";
|
|
21
|
+
import { HOST_IDS, REGISTRY, host } from "../pipeline/lib/host.mjs";
|
|
21
22
|
import { setDryRun, writeFile } from "./_common.mjs";
|
|
22
23
|
import { startLifecycleReport } from "./_usage-lifecycle.mjs";
|
|
23
24
|
import { floorRefusal, readSupportedFloor, stampsBelowFloor } from "./_supported-floor.mjs";
|
|
@@ -36,14 +37,19 @@ const PIPELINE_ROOT = dirname(__dirname);
|
|
|
36
37
|
const PIPELINE_SRC = `${PIPELINE_ROOT}/pipeline`;
|
|
37
38
|
|
|
38
39
|
/** Tool flags surfaced in CLI help. */
|
|
39
|
-
const TOOL_FLAGS =
|
|
40
|
+
export const TOOL_FLAGS = HOST_IDS.map((id) => host(id).install.flag);
|
|
41
|
+
|
|
42
|
+
/** One help line per host, from the registry, so a new host cannot go unlisted. */
|
|
43
|
+
const HOST_HELP = HOST_IDS.map((id) => {
|
|
44
|
+
const h = host(id);
|
|
45
|
+
const note = id === REGISTRY.order[0] ? " (default when no target is named)" : "";
|
|
46
|
+
return ` ${h.install.flag.padEnd(16)}Install for ${h.label}${note}`;
|
|
47
|
+
}).join("\n");
|
|
40
48
|
|
|
41
49
|
const INSTALL_USAGE = `Usage: multi-agent-pipeline install [flags]
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
--
|
|
45
|
-
--codex Install for Codex CLI
|
|
46
|
-
--all Claude Code + Copilot CLI + Codex CLI
|
|
51
|
+
${HOST_HELP}
|
|
52
|
+
--all Every host above
|
|
47
53
|
--installed Refresh only the targets already installed
|
|
48
54
|
--link Symlink instead of copy (dev mode)
|
|
49
55
|
--index-only Ship only the skills index (dynamic skill loading)
|
|
@@ -137,6 +143,11 @@ export async function runInstall(argv) {
|
|
|
137
143
|
const forCodex =
|
|
138
144
|
flags.includes("--codex") || flags.includes("--all") || Boolean(installed?.codex);
|
|
139
145
|
|
|
146
|
+
// The local-model host: the Codex engine pointed at a model served from this
|
|
147
|
+
// machine, in a tree of its own so the two never share an agent file.
|
|
148
|
+
const forLocal =
|
|
149
|
+
flags.includes("--local") || flags.includes("--all") || Boolean(installed?.local);
|
|
150
|
+
|
|
140
151
|
const useSymlinks = flags.includes("--link");
|
|
141
152
|
const indexOnly = flags.includes("--index-only");
|
|
142
153
|
const unattended = flags.includes("--unattended") || flags.includes("--unattended-sandbox");
|
|
@@ -162,9 +173,12 @@ export async function runInstall(argv) {
|
|
|
162
173
|
// upgrade from a first install.
|
|
163
174
|
const previous = readStampVersions(stamps);
|
|
164
175
|
const below = stampsBelowFloor(
|
|
165
|
-
[
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
[
|
|
177
|
+
forClaude && stamps.claude,
|
|
178
|
+
forCopilot && stamps.copilot,
|
|
179
|
+
forCodex && stamps.codex,
|
|
180
|
+
forLocal && stamps.local,
|
|
181
|
+
].filter(Boolean),
|
|
168
182
|
floor,
|
|
169
183
|
);
|
|
170
184
|
if (below.length > 0) {
|
|
@@ -178,6 +192,7 @@ export async function runInstall(argv) {
|
|
|
178
192
|
if (forClaude) claudeMcpLegacy = installClaude(installerCtx)?.mcpLegacy;
|
|
179
193
|
if (forCopilot) installCopilot(installerCtx);
|
|
180
194
|
if (forCodex) installCodex(installerCtx);
|
|
195
|
+
if (forLocal) installCodex({ ...installerCtx, hostId: "local" });
|
|
181
196
|
} catch (err) {
|
|
182
197
|
reportInstallFailure(err);
|
|
183
198
|
process.exit(1);
|
|
@@ -185,7 +200,7 @@ export async function runInstall(argv) {
|
|
|
185
200
|
|
|
186
201
|
// Version marker: update-check.sh falls back to this for npx-only installs
|
|
187
202
|
// that have no pipeline repo clone to read a version from.
|
|
188
|
-
writeVersionMarkers({ home: HOME, forClaude, forCopilot, forCodex });
|
|
203
|
+
writeVersionMarkers({ home: HOME, forClaude, forCopilot, forCodex, forLocal });
|
|
189
204
|
|
|
190
205
|
// After the profile is applied or tightened, so the entries those write
|
|
191
206
|
// under the current id gain their old-id counterparts too.
|
|
@@ -288,6 +303,7 @@ export function versionStampPaths(home) {
|
|
|
288
303
|
claude: join(home, ".claude", ".pipeline-version"),
|
|
289
304
|
copilot: join(home, ".copilot", ".pipeline-version"),
|
|
290
305
|
codex: join(home, ".codex", ".pipeline-version"),
|
|
306
|
+
local: join(home, ".codex-local", ".pipeline-version"),
|
|
291
307
|
};
|
|
292
308
|
}
|
|
293
309
|
|
|
@@ -296,7 +312,7 @@ export function versionStampPaths(home) {
|
|
|
296
312
|
* `--installed` uses it so an update refreshes what is there and nothing else.
|
|
297
313
|
*
|
|
298
314
|
* @param {string} home
|
|
299
|
-
* @returns {{claude: boolean, copilot: boolean, codex: boolean}}
|
|
315
|
+
* @returns {{claude: boolean, copilot: boolean, codex: boolean, local: boolean}}
|
|
300
316
|
*/
|
|
301
317
|
export function installedTargets(home) {
|
|
302
318
|
const stamps = versionStampPaths(home);
|
|
@@ -304,6 +320,7 @@ export function installedTargets(home) {
|
|
|
304
320
|
claude: existsSync(stamps.claude),
|
|
305
321
|
copilot: existsSync(stamps.copilot),
|
|
306
322
|
codex: existsSync(stamps.codex),
|
|
323
|
+
local: existsSync(stamps.local),
|
|
307
324
|
};
|
|
308
325
|
}
|
|
309
326
|
|
|
@@ -395,7 +412,7 @@ function readStampVersions(stamps) {
|
|
|
395
412
|
*
|
|
396
413
|
* @param {{home: string, forClaude: boolean, forCopilot: boolean, forCodex?: boolean}} opts
|
|
397
414
|
*/
|
|
398
|
-
export function writeVersionMarkers({ home, forClaude, forCopilot, forCodex }) {
|
|
415
|
+
export function writeVersionMarkers({ home, forClaude, forCopilot, forCodex, forLocal }) {
|
|
399
416
|
const version = packageVersion();
|
|
400
417
|
if (!version) return;
|
|
401
418
|
const stamps = versionStampPaths(home);
|
|
@@ -403,6 +420,7 @@ export function writeVersionMarkers({ home, forClaude, forCopilot, forCodex }) {
|
|
|
403
420
|
if (forClaude) targets.push(stamps.claude);
|
|
404
421
|
if (forCopilot) targets.push(stamps.copilot);
|
|
405
422
|
if (forCodex) targets.push(stamps.codex);
|
|
423
|
+
if (forLocal) targets.push(stamps.local);
|
|
406
424
|
for (const target of targets) {
|
|
407
425
|
try {
|
|
408
426
|
writeFile(target, `${version}\n`);
|
|
@@ -8,9 +8,13 @@ parallel review + triage, test, commit, report). It is invoked as `/multi-agent`
|
|
|
8
8
|
or `$multi-agent`, and the orchestrator spec lives at
|
|
9
9
|
`$HOME/.codex/skills/multi-agent/SKILL.md`.
|
|
10
10
|
|
|
11
|
-
## Host adaptation (Codex
|
|
11
|
+
## Host adaptation (the Codex engine)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Two hosts run this engine and each keeps its own tree: Codex CLI itself, and the
|
|
14
|
+
local-model host, which is the same engine pointed at a model served from this
|
|
15
|
+
machine. The paths below are rewritten to whichever tree this install owns.
|
|
16
|
+
|
|
17
|
+
| Concern | On this host |
|
|
14
18
|
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
15
19
|
| Orchestrator | one skill, `multi-agent` - it reads per-command specs on demand from `$HOME/.codex/multi-agent-refs/commands/<cmd>/SKILL.md` |
|
|
16
20
|
| Phase specs | `$HOME/.codex/multi-agent-refs/phases/phase-N-*.md`, read only when that phase runs |
|
|
@@ -18,6 +22,15 @@ or `$multi-agent`, and the orchestrator spec lives at
|
|
|
18
22
|
| Progress display | the native `update_plan` tool, one plan step per phase, plus `phase-tracker.sh` state on disk |
|
|
19
23
|
| Shared state | task logs and preferences stay under `$HOME/.claude/` - that path is the cross-host state root, not a Claude Code dependency |
|
|
20
24
|
|
|
25
|
+
## A bare invocation asks
|
|
26
|
+
|
|
27
|
+
`/multi-agent` and the analysis command typed with nothing after them ask for the
|
|
28
|
+
parameter rather than printing the guide. Run
|
|
29
|
+
`node "$HOME/.codex/scripts/entry-mode.mjs" --args "$ARGUMENTS"` and act on the
|
|
30
|
+
one word it prints - `typed`, `picker`, `usage` or `refuse-unattended` - as
|
|
31
|
+
`$HOME/.codex/multi-agent-refs/_entry-picker.md` directs. An unattended run with no task stops
|
|
32
|
+
there; it never reaches a question.
|
|
33
|
+
|
|
21
34
|
## Sub-agent delegation is authorized for this pipeline
|
|
22
35
|
|
|
23
36
|
Codex does not spawn sub-agents unless instructions explicitly ask for it. The
|
|
@@ -29,9 +42,12 @@ on real fan-out, so **delegation is authorized whenever a `/multi-agent` or
|
|
|
29
42
|
`spawn_agent` that sets `model` or `reasoning_effort`. A full-history fork
|
|
30
43
|
inherits the parent model and **silently discards the override**, which would
|
|
31
44
|
collapse the whole review panel onto one model with no error.
|
|
32
|
-
2. **
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
2. **Never more concurrent children than this host allows.** The ceiling is the
|
|
46
|
+
`dispatch.maxConcurrentChildren` field of this host's record in
|
|
47
|
+
`schemas/hosts.json`: 3 on Codex CLI, where 4 concurrency slots including the
|
|
48
|
+
orchestrator make a 3-reviewer panel the ceiling and a 4th child queue; 1 on
|
|
49
|
+
the local-model host, whose review panel is a single reviewer with triage on
|
|
50
|
+
the same model. Read the record rather than assuming the Codex CLI number.
|
|
35
51
|
3. Outside an active pipeline run, the default applies: do not delegate unless
|
|
36
52
|
asked.
|
|
37
53
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Installed from @mmerterden/multi-agent-pipeline
|
|
4
4
|
> Full docs: https://github.com/multi-agent-ecosystem/multi-agent-pipeline
|
|
5
|
-
> Pipeline specs: ~/.copilot/skills/multi-agent/ · Scripts: ~/.copilot/scripts/
|
|
6
|
-
>
|
|
5
|
+
> Pipeline specs: ~/.copilot/skills/multi-agent/ · Refs: ~/.copilot/multi-agent-refs/ · Scripts: ~/.copilot/scripts/
|
|
6
|
+
> Every tree this host owns lives under `~/.copilot`: refs, command specs, skills, scripts, lib, schemas, agents, rules and templates. A ref fetched from GitHub names them under `~/.claude` - read that as `~/.copilot` here. Shared state (`~/.claude/knowledge/`, `~/.claude/logs/`, `~/.claude/multi-agent-preferences.json`) is the exception and stays under `~/.claude`, which is what lets a task started on another CLI resume on this one.
|
|
7
7
|
|
|
8
8
|
## Pipeline Overview
|
|
9
9
|
|
|
@@ -14,12 +14,16 @@
|
|
|
14
14
|
2. **Planning** - Task decomposition, architecture review, user approval
|
|
15
15
|
3. **Dev** - TDD cycle: test -> code -> build
|
|
16
16
|
4. **Review** - Deterministic gates + CLI-aware parallel review + triage.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Opus +
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
The panel is a field on the host's record in `schemas/hosts.json`, so it is
|
|
18
|
+
read rather than assumed. The three CLI hosts dispatch **3 reviewers in
|
|
19
|
+
parallel**. Copilot CLI: GPT-5.4 (edge cases + cross-provider diversity) +
|
|
20
|
+
Opus (security + architecture) + Sonnet (quality + correctness), followed by
|
|
21
|
+
an Opus triage pass. Claude Code: Fable + Opus + Sonnet, followed by a Fable
|
|
22
|
+
triage pass (GPT-5.4 is not natively reachable there - the only intentional
|
|
23
|
+
cross-CLI asymmetry for Phase 3). Codex CLI: gpt-5.6 and gpt-5.4, separated by
|
|
24
|
+
reasoning effort. The local-model host is the exception: one reviewer, with
|
|
25
|
+
triage on the same model. Triage filters false-positives and out-of-scope
|
|
26
|
+
items before looping back to Phase 2.
|
|
23
27
|
5. **Test** - Optional manual testing + on-demand device audits
|
|
24
28
|
6. **Commit** - Secret scan · commit · push · PR creation
|
|
25
29
|
7. **Report** - Jira comment · Wiki + Figma screenshots · Confluence · log · knowledge + memory
|
|
@@ -31,6 +35,8 @@
|
|
|
31
35
|
|
|
32
36
|
There is one pipeline: every mode runs all 6 phases. The questions Phase 0 asks are the workspace and autopilot, never how much of the pipeline runs.
|
|
33
37
|
|
|
38
|
+
Typed with no arguments, `multi-agent` and `multi-agent-analysis` ask for the parameter instead of printing the guide. Run `node ~/.copilot/scripts/entry-mode.mjs --args "$ARGUMENTS"` and act on its one word - `typed`, `picker`, `usage` or `refuse-unattended` - as `~/.copilot/multi-agent-refs/_entry-picker.md` directs. Never ask in an unattended run.
|
|
39
|
+
|
|
34
40
|
## Language axes (en/tr)
|
|
35
41
|
|
|
36
42
|
Two prefs, two jobs - the full matrix lives in `multi-agent-refs/rules.md`
|
|
@@ -52,11 +58,11 @@ so the user's input pattern stays language-agnostic.
|
|
|
52
58
|
## Sub-Agent Personas
|
|
53
59
|
|
|
54
60
|
Phase 1 (Plan) and Phase 3 (Review) dispatch sub-agents for parallel exploration
|
|
55
|
-
and review. The persona prompts live at `~/.copilot/agents/*.md
|
|
56
|
-
|
|
61
|
+
and review. The persona prompts live at `~/.copilot/agents/*.md`, installed by the pipeline
|
|
62
|
+
installer. They are this host's copies; nothing here reads the Claude Code tree.
|
|
57
63
|
|
|
58
64
|
| Agent | File | Used in |
|
|
59
|
-
|
|
65
|
+
| ----------------- | ---------------------------------------- | ----------------------------------------- |
|
|
60
66
|
| Explorer | `~/.copilot/agents/explorer.md` | Phase 1 codebase scan (parallel dispatch) |
|
|
61
67
|
| Code Reviewer | `~/.copilot/agents/code-reviewer.md` | Phase 3 quality/correctness reviewer |
|
|
62
68
|
| iOS Architect | `~/.copilot/agents/ios-architect.md` | Phase 3 iOS architecture review |
|
|
@@ -74,7 +80,7 @@ but the actual contract is **8 interactive steps** from `refs/phases/phase-0-ini
|
|
|
74
80
|
Copilot CLI has no slash-command infrastructure to auto-route through the full ref file,
|
|
75
81
|
so execute ALL of these explicitly before touching code:
|
|
76
82
|
|
|
77
|
-
1. **Bootstrap tracker** - `bash ~/.copilot/scripts/phase-tracker.sh init
|
|
83
|
+
1. **Bootstrap tracker** - `bash ~/.copilot/scripts/phase-tracker.sh init "$TASK_ID"` (once, before Step 0; the argument is the task id, not a phase count - see Progress Tracking below)
|
|
78
84
|
2. **Load prefs** - read `~/.claude/multi-agent-preferences.json`; warn + stop if setup never ran
|
|
79
85
|
3. **Parse input** - classify (Jira ID, GitHub URL, free-text) + fetch issue via `gh` / Jira API
|
|
80
86
|
4. **Select project(s) - single OR multi-repo** - scan `$HOME`, present numbered list,
|
|
@@ -102,8 +108,8 @@ so execute ALL of these explicitly before touching code:
|
|
|
102
108
|
|
|
103
109
|
Full contract (recents schema, token resolution order, GitHub-issue → Jira auto-create policy):
|
|
104
110
|
https://github.com/multi-agent-ecosystem/multi-agent-pipeline/blob/main/pipeline/multi-agent-refs/phases/phase-0-init.md
|
|
105
|
-
or,
|
|
106
|
-
`~/.
|
|
111
|
+
or, from this host's own copy:
|
|
112
|
+
`~/.copilot/multi-agent-refs/phases/phase-0-init.md`
|
|
107
113
|
|
|
108
114
|
## Progress Tracking - required
|
|
109
115
|
|
|
@@ -285,6 +291,7 @@ multi-agent-stack [ios|android|mobile|backend|web|fullstack|all]
|
|
|
285
291
|
## UI Bug Hunter
|
|
286
292
|
|
|
287
293
|
For visual testing, use the multi-agent MCP server tools:
|
|
294
|
+
|
|
288
295
|
- ios_screenshot / android_screenshot - capture screen
|
|
289
296
|
- ios_tap / android_tap - interact with UI
|
|
290
297
|
- ios_set_appearance - toggle dark mode
|