@mmerterden/multi-agent-pipeline 21.1.2 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +20 -13
- package/README.tr.md +20 -13
- package/SECURITY.md +3 -3
- package/docs/architecture.md +3 -3
- package/docs/ecosystem.md +10 -10
- package/docs/facts.json +7 -7
- package/docs/features.md +2 -2
- package/install/_common.mjs +3 -0
- package/install/codex.mjs +60 -0
- package/manifest.json +88 -73
- package/package.json +1 -1
- package/pipeline/commands/multi-agent/SKILL.md +4 -4
- package/pipeline/commands/multi-agent/clean-disk/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/fable-off/SKILL.md +55 -0
- package/pipeline/commands/multi-agent/fable-on/SKILL.md +41 -0
- package/pipeline/commands/multi-agent/fable-status/SKILL.md +57 -0
- package/pipeline/commands/multi-agent/forget/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/kill/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/prune-logs/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/prune-prompts/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/purge/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/review-priority/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/route-on/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/route-status/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/routines/SKILL.md +15 -24
- package/pipeline/commands/multi-agent/routines-browse/SKILL.md +32 -0
- package/pipeline/commands/multi-agent/routines-delete/SKILL.md +35 -0
- package/pipeline/commands/multi-agent/routines-import/SKILL.md +34 -0
- package/pipeline/commands/multi-agent/routines-share/SKILL.md +34 -0
- package/pipeline/commands/multi-agent/routines-update/SKILL.md +33 -0
- package/pipeline/commands/multi-agent/sync/SKILL.md +6 -5
- package/pipeline/commands/multi-agent/uninstall/SKILL.md +2 -2
- package/pipeline/contract/manifest.json +1 -1
- package/pipeline/lib/model-dispatch.sh +1 -1
- package/pipeline/lib/model-rung.sh +59 -15
- package/pipeline/multi-agent-refs/cross-cli-contract.md +26 -16
- package/pipeline/multi-agent-refs/features/doctor.md +15 -8
- package/pipeline/multi-agent-refs/features/model-fallback.md +13 -4
- package/pipeline/multi-agent-refs/features/office-threat-model.md +1 -1
- package/pipeline/multi-agent-refs/features/routine-sharing.md +5 -2
- package/pipeline/multi-agent-refs/features/usage-reporting.md +2 -1
- package/pipeline/multi-agent-refs/help/en.md +11 -4
- package/pipeline/multi-agent-refs/help/tr.md +11 -4
- package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +3 -3
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +5 -5
- package/pipeline/multi-agent-refs/phases/phase-2-dev.md +1 -1
- package/pipeline/office/index.html +6 -3
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/toolkit-path-params.json +5 -1
- package/pipeline/scripts/_cost-advise.mjs +1 -1
- package/pipeline/scripts/doctor.mjs +30 -6
- package/pipeline/scripts/routine-share.mjs +2 -1
- package/pipeline/scripts/uninstall.mjs +22 -1
- package/pipeline/skills/.skill-manifest.json +49 -21
- package/pipeline/skills/.skills-index.json +99 -22
- package/pipeline/skills/shared/README.md +16 -9
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +6 -6
- package/pipeline/skills/shared/core/multi-agent-clean-disk/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-fable-off/SKILL.md +55 -0
- package/pipeline/skills/shared/core/multi-agent-fable-on/SKILL.md +41 -0
- package/pipeline/skills/shared/core/multi-agent-fable-status/SKILL.md +57 -0
- package/pipeline/skills/shared/core/multi-agent-forget/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-garbage-collect/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-kill/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-prune-logs/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-prune-prompts/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-purge/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-review-priority/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-route-on/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-route-status/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-routines/SKILL.md +12 -14
- package/pipeline/skills/shared/core/multi-agent-routines-browse/SKILL.md +30 -0
- package/pipeline/skills/shared/core/multi-agent-routines-delete/SKILL.md +32 -0
- package/pipeline/skills/shared/core/multi-agent-routines-import/SKILL.md +32 -0
- package/pipeline/skills/shared/core/multi-agent-routines-share/SKILL.md +32 -0
- package/pipeline/skills/shared/core/multi-agent-routines-update/SKILL.md +32 -0
- package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +6 -5
- package/pipeline/skills/shared/core/multi-agent-uninstall/SKILL.md +1 -1
- package/pipeline/skills/shared/external/store-screenshots/SKILL.md +211 -22
- package/pipeline/skills/shared/external/store-screenshots/evals/evals.json +68 -0
- package/pipeline/skills/shared/external/store-screenshots/references/frames.md +141 -0
- package/pipeline/skills/skills-index.md +14 -7
- package/pipeline/commands/multi-agent/model/SKILL.md +0 -80
- package/pipeline/skills/shared/core/multi-agent-model/SKILL.md +0 -72
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# model-rung.sh - read or flip the top model rung, and keep cost pricing with it.
|
|
3
3
|
#
|
|
4
|
-
# Backs /multi-agent:
|
|
4
|
+
# Backs /multi-agent:fable-on (on), /multi-agent:fable-off (off) and
|
|
5
|
+
# /multi-agent:fable-status (no argument). Two preference keys move as ONE write:
|
|
5
6
|
# prefs.global.modelFallback.fableEnabled the rung itself
|
|
6
7
|
# prefs.global.costBudget.pricingModel what the ledger prices against
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
# nothing needed. One write, or none.
|
|
9
|
+
# A write that flips one without the other leaves the estimate pricing every
|
|
10
|
+
# call at a rung that is not in play. With the rung off and pricing still
|
|
11
|
+
# `fable`, the budget ceiling trips early and triggers a downgrade nothing
|
|
12
|
+
# needed. One write, or none.
|
|
13
13
|
#
|
|
14
14
|
# Usage:
|
|
15
15
|
# model-rung.sh report current state (exit 0)
|
|
@@ -39,6 +39,28 @@ case "$ACTION" in
|
|
|
39
39
|
;;
|
|
40
40
|
esac
|
|
41
41
|
|
|
42
|
+
# The host is MULTI_AGENT_HOST when it names one (claude, copilot or codex, as
|
|
43
|
+
# phase-tracker.sh's host_kind accepts), otherwise the tree this script was
|
|
44
|
+
# installed into: ~/.copilot/lib and ~/.codex/lib are those hosts, anything
|
|
45
|
+
# else is Claude Code. Command names are spelled from the same answer, so the
|
|
46
|
+
# host line and the MISMATCH hint never name two different hosts.
|
|
47
|
+
case "${MULTI_AGENT_HOST:-}" in
|
|
48
|
+
claude | copilot | codex)
|
|
49
|
+
HOST="$MULTI_AGENT_HOST"
|
|
50
|
+
CMD_ROOT="$HOME/.$HOST"
|
|
51
|
+
;;
|
|
52
|
+
*)
|
|
53
|
+
CMD_ROOT="$(cd "$_MA_MR_HERE/.." 2>/dev/null && pwd)"
|
|
54
|
+
case "$CMD_ROOT" in
|
|
55
|
+
*/.copilot) HOST=copilot ;;
|
|
56
|
+
*/.codex) HOST=codex ;;
|
|
57
|
+
*) HOST=claude ;;
|
|
58
|
+
esac
|
|
59
|
+
;;
|
|
60
|
+
esac
|
|
61
|
+
|
|
62
|
+
command_name() { ma_command "$1" "$CMD_ROOT"; }
|
|
63
|
+
|
|
42
64
|
# A missing `jq` must not look like a missing setting. Without this the reads
|
|
43
65
|
# below return empty, the command reports the rung as already off, and a user
|
|
44
66
|
# who asked to turn it off is told it was never on.
|
|
@@ -48,7 +70,7 @@ if ! command -v jq >/dev/null 2>&1; then
|
|
|
48
70
|
fi
|
|
49
71
|
|
|
50
72
|
if [ ! -f "$PREFS" ]; then
|
|
51
|
-
echo "model-rung: preferences not found at $PREFS - run $(
|
|
73
|
+
echo "model-rung: preferences not found at $PREFS - run $(command_name setup) first" >&2
|
|
52
74
|
exit 3
|
|
53
75
|
fi
|
|
54
76
|
|
|
@@ -60,13 +82,35 @@ fi
|
|
|
60
82
|
CUR=$(jq -r '.global.modelFallback.fableEnabled // false' "$PREFS")
|
|
61
83
|
PRICING=$(jq -r '.global.costBudget.pricingModel // "fable"' "$PREFS")
|
|
62
84
|
|
|
85
|
+
# The model behind the fable rung, named from cost-table.json's modelId
|
|
86
|
+
# (claude-fable-5-1 is Fable 5.1), so a generation move is one edit there. A
|
|
87
|
+
# trailing eight-digit date segment (as in a dated snapshot id) is not part of the name, and
|
|
88
|
+
# anything that does not reduce to a dotted version prints as plain "Fable".
|
|
89
|
+
fable_name() {
|
|
90
|
+
local id
|
|
91
|
+
id=$(jq -r '.prices.fable.modelId // empty' "$_MA_MR_HERE/../scripts/cost-table.json" 2>/dev/null)
|
|
92
|
+
case "$id" in
|
|
93
|
+
claude-fable-?*) id="${id#claude-fable-}" ;;
|
|
94
|
+
*)
|
|
95
|
+
echo "Fable"
|
|
96
|
+
return
|
|
97
|
+
;;
|
|
98
|
+
esac
|
|
99
|
+
if [[ "$id" =~ ^(.*-)?[0-9]{8}$ ]]; then
|
|
100
|
+
id="${BASH_REMATCH[1]}"
|
|
101
|
+
id="${id%-}"
|
|
102
|
+
fi
|
|
103
|
+
id="${id//-/.}"
|
|
104
|
+
if [[ "$id" =~ ^[0-9]+(\.[0-9]+)*$ ]]; then echo "Fable $id"; else echo "Fable"; fi
|
|
105
|
+
}
|
|
106
|
+
|
|
63
107
|
host_note() {
|
|
64
108
|
# Which host this is decides whether the switch is a switch or a status line.
|
|
65
109
|
# Saying "enabled" on a host where the rung means something else entirely is
|
|
66
110
|
# the surprise this block exists to avoid.
|
|
67
|
-
case "$
|
|
111
|
+
case "$HOST" in
|
|
68
112
|
claude)
|
|
69
|
-
echo "Claude Code: the fable rung is
|
|
113
|
+
echo "Claude Code: the fable rung is $(fable_name). This switch is live here."
|
|
70
114
|
;;
|
|
71
115
|
copilot)
|
|
72
116
|
echo "Copilot CLI: Fable is not offered; its personas never sat on this rung."
|
|
@@ -77,9 +121,6 @@ host_note() {
|
|
|
77
121
|
echo "different account. This switch deliberately does NOT touch it - a knob"
|
|
78
122
|
echo "named after an Anthropic model must not silently retune a Codex run."
|
|
79
123
|
;;
|
|
80
|
-
*)
|
|
81
|
-
echo "Unknown host '${MULTI_AGENT_HOST}'; reporting the stored value only."
|
|
82
|
-
;;
|
|
83
124
|
esac
|
|
84
125
|
}
|
|
85
126
|
|
|
@@ -87,10 +128,10 @@ if [ "$ACTION" = "report" ]; then
|
|
|
87
128
|
echo "fable rung: $CUR"
|
|
88
129
|
echo "cost pricing: $PRICING"
|
|
89
130
|
if [ "$CUR" = "true" ] && [ "$PRICING" != "fable" ]; then
|
|
90
|
-
echo "MISMATCH: rung is on but the ledger prices against '$PRICING' - run
|
|
131
|
+
echo "MISMATCH: rung is on but the ledger prices against '$PRICING' - run $(command_name fable-on) to realign"
|
|
91
132
|
elif [ "$CUR" != "true" ] && [ "$PRICING" = "fable" ]; then
|
|
92
133
|
echo "MISMATCH: rung is off but the ledger still prices against fable - this trips"
|
|
93
|
-
echo " the budget ceiling early. Run
|
|
134
|
+
echo " the budget ceiling early. Run $(command_name fable-off) to realign."
|
|
94
135
|
fi
|
|
95
136
|
echo ""
|
|
96
137
|
host_note
|
|
@@ -139,7 +180,10 @@ echo "fable rung: $CUR -> $WANT"
|
|
|
139
180
|
echo "cost pricing: $PRICING -> $WANT_PRICING"
|
|
140
181
|
echo ""
|
|
141
182
|
|
|
142
|
-
if [ "$WANT" = "false" ]; then
|
|
183
|
+
if [ "$WANT" = "false" ] && [ "$HOST" != "claude" ]; then
|
|
184
|
+
echo "Phase 3 reviewer panel: unchanged. This switch changes no dispatch on this host."
|
|
185
|
+
echo ""
|
|
186
|
+
elif [ "$WANT" = "false" ]; then
|
|
143
187
|
# Said at the moment of the change rather than left in a doc: the panel
|
|
144
188
|
# shrinking is the part people discover later and read as a bug.
|
|
145
189
|
echo "Phase 3 reviewer panel: 3 models -> 2 (opus + sonnet)."
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Cross-CLI Contract (Claude Code · Copilot CLI · Codex CLI)
|
|
2
2
|
|
|
3
3
|
<!-- toc -->
|
|
4
|
-
- [1. Command Inventory (
|
|
4
|
+
- [1. Command Inventory (79 commands)](#1-command-inventory-79-commands)
|
|
5
5
|
- [2. Canonical Placeholder Vocabulary](#2-canonical-placeholder-vocabulary)
|
|
6
6
|
- [2.6 Intentional structural divergence - two entry files over one set of refs](#26-intentional-structural-divergence---two-entry-files-over-one-set-of-refs)
|
|
7
|
-
- [2.7 One
|
|
7
|
+
- [2.7 One switch, three different meanings: `fable-on` / `fable-off`](#27-one-switch-three-different-meanings-fable-on-fable-off)
|
|
8
8
|
- [3. Frontmatter Transform Rules (Claude ↔ Copilot)](#3-frontmatter-transform-rules-claude-copilot)
|
|
9
9
|
- [4. Progress Signalling Parity](#4-progress-signalling-parity)
|
|
10
10
|
- [5. Argument Parsing Invariants](#5-argument-parsing-invariants)
|
|
@@ -20,18 +20,20 @@
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
## 1. Command Inventory (
|
|
23
|
+
## 1. Command Inventory (79 commands)
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
address-review, analysis, analysis-jira, analysis-resolve, autopilot-off,
|
|
27
27
|
autopilot-on, autopilot-status, bug-bash, build-optimize, channels, clean-disk, complaint-analysis,
|
|
28
|
-
create-jira, design-check, diff-explain, doctor, estimate,
|
|
28
|
+
create-jira, design-check, diff-explain, doctor, estimate, fable-off, fable-on,
|
|
29
|
+
fable-status, feedback, forget,
|
|
29
30
|
garbage-collect, graph, health, help, ios-coding-standard, issue, jira, kill,
|
|
30
|
-
language, log, manual-test,
|
|
31
|
+
language, log, manual-test, office-off, office-on, office-status,
|
|
31
32
|
postmortem, prune-logs,
|
|
32
33
|
prune-prompts, purge, refactor, research, resume, review,
|
|
33
34
|
review-analysis, review-issue, review-jira, review-priority, route-off, route-on,
|
|
34
|
-
route-status, routines,
|
|
35
|
+
route-status, routines, routines-browse, routines-delete, routines-import,
|
|
36
|
+
routines-share, routines-update, save, scaffold, scan, scenario-audit, search,
|
|
35
37
|
security-review, serve, setup, stack, status, steer, store-ready, sync, test, test-accessibility,
|
|
36
38
|
test-dark-mode, test-dynamic-type, test-gen, test-screenshots, testflight-validation,
|
|
37
39
|
uninstall, update
|
|
@@ -46,7 +48,7 @@ Categories:
|
|
|
46
48
|
- **Ops commands** (one-shot, no worktree): `status`, `log`, `kill`, `steer`, `purge`, `uninstall`, `resume`, `review`, `review-jira`, `review-issue`, `review-priority`, `address-review`, `analysis`, `analysis-resolve`, `research`, `scaffold`, `complaint-analysis`, `bug-bash`, `test-gen`, `build-optimize`, `channels`, `scan`, `search`, `diff-explain`, `garbage-collect`, `graph`, `health`, `postmortem`, `prune-logs`, `prune-prompts`, `clean-disk`, `serve`, `office-on`, `office-off`, `office-status`
|
|
47
49
|
- **Local audits** (worktree only to build; no commit, push, PR or channels): `design-check`, `testflight-validation`, `ios-coding-standard`. `testflight-validation` additionally never invokes `altool --upload-app` - a validation run must not be able to ship a build by accident.
|
|
48
50
|
- **Meta-ops**: `setup`, `sync`, `update`, `help`, `refactor`, `test`, `stack`, `manual-test`, `language`
|
|
49
|
-
- **Routines** (user-defined routine registry; the routines they create are local-only and never synced): `save`, `routines`, `forget`
|
|
51
|
+
- **Routines** (user-defined routine registry; the routines they create are local-only and never synced): `save`, `routines`, `forget`; sharing them with site members: `routines-share`, `routines-browse`, `routines-import`, `routines-update`, `routines-delete`
|
|
50
52
|
|
|
51
53
|
> **Inventory drift is a contract violation.** Adding a slash command under `pipeline/commands/multi-agent/` without updating this list + its counterpart Copilot dir (`pipeline/skills/shared/core/multi-agent-<cmd>/`) is a merge blocker. `smoke-commands-skills-parity.sh` enforces command ↔ skill directory parity; `smoke-cross-cli-behavior.sh` enforces behavior parity. This doc is the authoritative command list - bump the count + table together.
|
|
52
54
|
|
|
@@ -263,21 +265,29 @@ members available there are closer to each other than Fable and Sonnet are. That
|
|
|
263
265
|
weaker axis, not an equivalent one, and treating it as equivalent is the error this
|
|
264
266
|
section exists to prevent.
|
|
265
267
|
|
|
266
|
-
## 2.7 One
|
|
268
|
+
## 2.7 One switch, three different meanings: `fable-on` / `fable-off`
|
|
267
269
|
|
|
268
|
-
Most commands do the same thing on all three hosts.
|
|
270
|
+
Most commands do the same thing on all three hosts. These two do not, and the
|
|
269
271
|
divergence is stated here rather than discovered at runtime, because a command
|
|
270
|
-
that quietly no-ops is worse than one that says it cannot act.
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
that quietly no-ops is worse than one that says it cannot act. On Claude Code
|
|
273
|
+
they are `/multi-agent:fable-on`, `/multi-agent:fable-off` and
|
|
274
|
+
`/multi-agent:fable-status`; on Copilot CLI they are `/multi-agent-fable-on` and `/multi-agent-fable-off`, with
|
|
275
|
+
`/multi-agent-fable-status` reporting which case applies; on Codex CLI they are
|
|
276
|
+
`multi-agent fable-on`, `multi-agent fable-off` and `multi-agent fable-status`
|
|
277
|
+
via the router skill.
|
|
278
|
+
|
|
279
|
+
| Host | What `fable-on` / `fable-off` does | Why |
|
|
273
280
|
|---|---|---|
|
|
274
281
|
| Claude Code | live switch: flips `modelFallback.fableEnabled` and realigns `costBudget.pricingModel` | the only host where the `fable` rung is Fable 5.1 |
|
|
275
282
|
| Copilot CLI | writes the preference, changes no dispatch | Fable is not offered there; its personas never sat on this rung |
|
|
276
283
|
| Codex CLI | writes the preference, changes no dispatch, **deliberately** | the `fable` rung on Codex means `gpt-5.6 @ xhigh` - a different model on a different account. A knob named after an Anthropic model must not silently retune a Codex run |
|
|
277
284
|
|
|
278
|
-
`model-rung.sh` prints which of the three it is on every invocation
|
|
279
|
-
|
|
280
|
-
|
|
285
|
+
`model-rung.sh` prints which of the three it is on every invocation, and
|
|
286
|
+
`fable-off` prints the reviewer-panel change only on Claude Code; on the other
|
|
287
|
+
two it says the panel is unchanged. The host is the tree the script runs from
|
|
288
|
+
(`~/.copilot`, `~/.codex`, otherwise Claude Code), the same tree `ma_command`
|
|
289
|
+
reads, unless `MULTI_AGENT_HOST` names one. The rule it follows: report the
|
|
290
|
+
host's actual behaviour, never claim a change that did not happen.
|
|
281
291
|
|
|
282
292
|
The routing trio (`route-on`, `route-off`, `route-status`) has no such split -
|
|
283
293
|
it writes `prefs.global.modelRouting` identically everywhere. Its honest limit is
|
|
@@ -326,7 +336,7 @@ argument-hint: "<input hint>"
|
|
|
326
336
|
|
|
327
337
|
**Command-only keys stay top-level.** `parameters`, `gui`, `destructive`, `confirm` and `description-tr` sit at the top level of a command's frontmatter, not under `metadata:`. Claude Code ignores a key it does not recognize, command files are never packaged for claude.ai or the Skills API (where unknown keys are rejected), and these keys are read by the command contract, the GUI catalog and the installer's localizer, which all parse the top level. A shared skill keeps every key no host reads under `metadata:`, because shared skills are the files that do get packaged.
|
|
328
338
|
|
|
329
|
-
**`disable-model-invocation: true`** marks every command whose `destructive` is true: such a command runs only when the user types it. It is set on the Claude command only; the Copilot mirror does not carry it. Commands that only confirm (`confirm: required` without `destructive`), such as `sync`, stay model-invocable because they are routinely run on request and confirm inside their own flow. A command whose plain form deletes nothing and whose destructive step sits behind one flag, such as `autopilot-off` (plain `off` removes the schedule and keeps every file; `--now` ends the running item), declares `destructive: false` and `confirm: none`, stays model-invocable, and asks inside its own flow before the flag runs. `test/command-contract.test.mjs` holds the rule.
|
|
339
|
+
**`disable-model-invocation: true`** marks every command whose `destructive` is true: such a command runs only when the user types it. It is set on the Claude command only; the Copilot mirror does not carry it. Neither side's description carries a trigger for such a command: it ends in "Invoked only when the user types it.", because on Copilot CLI the description is the only thing between the model and the skill. On Codex CLI the one router skill is model-invocable, so each such command is installed as its own `~/.codex/prompts/multi-agent-<name>.md` prompt, and the router names that prompt instead of reading the spec. Commands that only confirm (`confirm: required` without `destructive`), such as `sync`, stay model-invocable because they are routinely run on request and confirm inside their own flow. A command whose plain form deletes nothing and whose destructive step sits behind one flag, such as `autopilot-off` (plain `off` removes the schedule and keeps every file; `--now` ends the running item), declares `destructive: false` and `confirm: none`, stays model-invocable, and asks inside its own flow before the flag runs. `test/command-contract.test.mjs` holds the rule.
|
|
330
340
|
|
|
331
341
|
**Invariant**: the English `description` must have the same meaning on both sides, and a `description-tr` line (when present) must be a faithful translation of it. Semantic drift is not allowed. `description-en` sidecars are an installed-tree artifact and must never appear in repo or Copilot files.
|
|
332
342
|
|
|
@@ -371,8 +371,8 @@ named as such, with `/multi-agent:clean-disk` to measure. With `--probe` it
|
|
|
371
371
|
runs `disk-cleaner.mjs --dry-run --json` under a 60-second cap; a timeout is
|
|
372
372
|
reported in the detail and never changes the severity. Enough free space but
|
|
373
373
|
at least `diskCleaner.reclaimableGb` (default 10) to reclaim, from a fresh
|
|
374
|
-
run, is INFO with the same step:
|
|
375
|
-
freed". An OK result still carries the free space and the reclaimable line in
|
|
374
|
+
run, is INFO with the same step:
|
|
375
|
+
"run /multi-agent:clean-disk: N GB can be freed". An OK result still carries the free space and the reclaimable line in
|
|
376
376
|
`detail.summary`, which the text output prints after the id. The JSON detail
|
|
377
377
|
holds `freeBytes`, `totalBytes`, `freePercent`, the thresholds,
|
|
378
378
|
`reclaimable` (`source`, `file`, `measuredAt`, `ageHours`, `stale`,
|
|
@@ -467,12 +467,19 @@ are the reference for iPhone Duo and window resizing, SwiftUI, App Intents and
|
|
|
467
467
|
the accessibility audits, so a stale copy is a worse answer, never a failed run.
|
|
468
468
|
### routine-commands
|
|
469
469
|
|
|
470
|
-
Does a saved routine still name
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
470
|
+
Does a saved routine still name a removed command: the plain autopilot command,
|
|
471
|
+
the rung command that `fable-on`, `fable-off` and `fable-status` replaced, or a
|
|
472
|
+
sharing action typed as a `routines` argument in any host's spelling, which `routines-share`,
|
|
473
|
+
`routines-browse`, `routines-import`, `routines-update` and `routines-delete`
|
|
474
|
+
replaced.
|
|
475
|
+
Saved routines are the `local-only: true` commands under
|
|
476
|
+
`~/.claude/commands/multi-agent` (`/multi-agent:save`), which the installer
|
|
477
|
+
carries across updates exactly as written, so a body that named a command keeps
|
|
478
|
+
typing it. SKIP when no routine is saved, OK when none names one, WARN listing
|
|
479
|
+
each routine with the removed commands it names, the replacement for each
|
|
480
|
+
(`/multi-agent "<task>" autopilot`; `/multi-agent:fable-on`,
|
|
481
|
+
`/multi-agent:fable-off` or `/multi-agent:fable-status`;
|
|
482
|
+
`/multi-agent:routines-<action>`) and the file to edit.
|
|
476
483
|
### mcp-legacy-names
|
|
477
484
|
|
|
478
485
|
Does the current project still name the MCP server by its pre-4.0 id. The
|
|
@@ -107,7 +107,7 @@ predate this field still get the second downgrade step):
|
|
|
107
107
|
| Field | Meaning |
|
|
108
108
|
|---|---|
|
|
109
109
|
| `enabled` | Master switch. `false` = always dispatch the persona's `preferredModel`, fail loudly on error. |
|
|
110
|
-
| `modelFallback.fableEnabled` | Whether the `fable` rung exists at all on Claude Code. **Ships `false`.** `false` starts every `preferredModel: fable` persona on `opus`;
|
|
110
|
+
| `modelFallback.fableEnabled` | Whether the `fable` rung exists at all on Claude Code. **Ships `false`.** `false` starts every `preferredModel: fable` persona on `opus`; `/multi-agent:fable-on` opts the top rung back in and `/multi-agent:fable-off` takes it out. A cost control that defaults to on is not a control. See "Turning the fable rung off" below. |
|
|
111
111
|
| `premiumTierUntil` | ISO date (`YYYY-MM-DD`) or `null`. When set and today is **after** this date, every `preferredModel` dispatch is downgraded to `fallbackModel` unless the user re-confirms (see Date gate). Use when the top tier is included in a plan only until a known date. |
|
|
112
112
|
| `fallbackModel` | Target of the first downgrade step. Default `sonnet` (the next tier below opus). |
|
|
113
113
|
| `modelFallback.floorModel` | Last-resort tier when `fallbackModel` also fails to dispatch. Default `haiku`. Set to the same value as `fallbackModel` (or `null`) to disable the second step and halt after one downgrade. |
|
|
@@ -159,8 +159,17 @@ that every command naming a Fable reviewer asks it.
|
|
|
159
159
|
**Cost accounting.** `prefs.global.costBudget.pricingModel` defaults to `fable` to
|
|
160
160
|
keep the estimate an upper bound. With the rung off, that default prices every
|
|
161
161
|
call above what it can cost and trips the budget ceiling early, which then
|
|
162
|
-
triggers a downgrade nobody needed.
|
|
163
|
-
`fableEnabled:
|
|
162
|
+
triggers a downgrade nobody needed. So the two keys move together:
|
|
163
|
+
`/multi-agent:fable-on` writes `fableEnabled: true` with `pricingModel: fable`,
|
|
164
|
+
`/multi-agent:fable-off` writes `false` with `opus`, both through
|
|
165
|
+
`lib/model-rung.sh` as one write or none. `/multi-agent:fable-status` reports the
|
|
166
|
+
pair and prints `MISMATCH` when a hand edit split it. Copilot CLI spells the
|
|
167
|
+
commands `/multi-agent-fable-on`, `/multi-agent-fable-off` and
|
|
168
|
+
`/multi-agent-fable-status`; Codex CLI reaches them as `multi-agent fable-on`,
|
|
169
|
+
`multi-agent fable-off` and `multi-agent fable-status` through its router skill.
|
|
170
|
+
On both they record the value and, per the host table above, change no dispatch:
|
|
171
|
+
`fable-off` prints that the reviewer panel is unchanged there instead of the
|
|
172
|
+
Claude Code panel change.
|
|
164
173
|
|
|
165
174
|
No log line is emitted per dispatch for this: it is a configured absence, not a
|
|
166
175
|
degrade event, and one line per persona per run would be noise. Phase 0 Step 0
|
|
@@ -218,7 +227,7 @@ Two limits are enforced by the script rather than written here and hoped for:
|
|
|
218
227
|
|
|
219
228
|
- **A rule may not turn the fable rung on.** With `modelFallback.fableEnabled`
|
|
220
229
|
false, a rule preferring `fable` falls past it to the next rung. Otherwise
|
|
221
|
-
`/multi-agent:
|
|
230
|
+
`/multi-agent:fable-off` would have a second door.
|
|
222
231
|
- **A subagent stays inside the Anthropic ladder.** A subagent is dispatched by
|
|
223
232
|
the host, so `free` and every other non-Anthropic rung is refused at the
|
|
224
233
|
subagent site and the rule's next rung answers, with the reason on stderr.
|
|
@@ -63,7 +63,7 @@ pairs a phone with it or relays it to a site.
|
|
|
63
63
|
| T21 | Machine details through the resource panel | `GET /v1/system` returns numbers only (cores, load, memory, free disk, process counts, log folder size) and two fixed warnings; no path, process argument, user or host name. The schema allows nothing else. The measurement runs as child processes off the event loop, concurrent requests share one measurement, and the log folder size is reused for a minute. It names nothing about the machine beyond those numbers | `office-routes.test.mjs` "GET /v1/system returns numbers only: no path, user or host name" |
|
|
64
64
|
| T22 | Old run logs deleted wider than asked, or a live run's log removed | `POST /v1/prune-logs` takes only an age from a fixed set (7, 30 or 90 days) and runs `prune-logs.sh`, the script `/multi-agent:prune-logs` runs: the dry run is the preview; the confirmed step lists the folders again, refuses with `changed` when they differ, and then prunes only the previewed list through `--only-from`, under a token bound to that age and list. The script never touches the audit trail, the metrics corpus or the task counters, refuses a log root that is `/`, the home folder or a git checkout, and spares a folder written in the last minutes and a run that can still be resumed. Tagged `local-only`/`high` | `office-routes.test.mjs` "POST /v1/prune-logs previews, then prunes only on the token" |
|
|
65
65
|
| T23 | Pull request listing exposing a token, or the native task mirror writing into another run | Each GitHub account gh is logged in to is asked with `gh auth token` for that host and login; the token travels in `GH_TOKEN` (and `GH_ENTERPRISE_TOKEN` for an Enterprise Server host) for the child process only, never on a command line, in a response or a log. Bitbucket Server is read over https only (a plain-http host is refused unless it is the loopback), redirects are not followed, and the token, read from the credential store with a deadline, travels in the `Authorization` header only; an unreachable host is a reason on that source, not a failure of the list. `GET /v1/prs/reach` (local-only) asks gh for the changed file paths of at most 20 GitHub pull requests, three at a time, each with its account's token in the environment; it asks nothing for a repository whose name is not `owner/repo` or that has no graph under `~/.claude/knowledge/<repo name>/`. The paths serve only as keys into the local graph: nothing is read from disk by them and none is returned, only counts. The graph is parsed in a child process, so no other route waits behind it. A redacted answer drops URLs and logins, numbering the accounts instead. The task-mirror hook (PostToolUse on TaskCreate and TaskUpdate) writes only into the run whose recorded session is the calling session, skips phase tiles, never prints, and exits 0 on any input it cannot read | `work-items-prs.test.mjs`, `task-mirror.test.mjs`, `pr-reach.test.mjs`, `office-work.test.mjs` "GET /v1/prs/reach says which pull requests have no graph to measure against" |
|
|
66
|
-
| T24 | The panel changing a preference wider than the terminal would | `POST /v1/settings` takes one of three settings and one of its two values, previews the change and runs, under a token bound to that setting and value, what `/multi-agent:language`, `/multi-agent:
|
|
66
|
+
| T24 | The panel changing a preference wider than the terminal would | `POST /v1/settings` takes one of three settings and one of its two values, previews the change and runs, under a token bound to that setting and value, what `/multi-agent:language`, `/multi-agent:fable-on`/`fable-off` or `/multi-agent:route-on`/`route-off` runs; route on passes the saved strategy back so only the switch changes, nothing the panel sends can add rules or a free provider, and two changes never run at once. Tagged `local-only`/`high`. Report links: `channelResults` URLs must be https, travel only in the run record's `channelUrls` (local, dropped from a redacted answer) and are shown as text, never followed | `office-routes.test.mjs` "POST /v1/settings changes a switch only on the token, through its script", `runs-index.test.mjs` |
|
|
67
67
|
| T25 | The skill catalog reading files a request names, or a SKILL.md running as markup | `GET /v1/skills` reads only fixed roots: the command tree, the `local-only` command folders under `~/.claude/commands/multi-agent`, the marketplace clone under `~/.claude/plugins/marketplaces/multi-agent-plugins` and the routine registry. Its one parameter, `repo`, resolves the way `GET /v1/stack` resolves it (a configured or registered repository, nothing else) and only decides which plugin skills are on. A skill folder or SKILL.md whose real path leaves the clone is skipped, and a plugin name outside a safe character set is ignored. Descriptions are file content, so the page sets them as text only. Routine text is scrubbed, and the route is `local-only` because it names the routines and local-only commands kept on this machine | `office-skills.test.mjs`, `skill-catalog.test.mjs`, `smoke-office-ui.sh` "a skill description shows as text, never as markup" |
|
|
68
68
|
| T26 | The disk section deleting more than was ticked, the user's own files, or anything while nobody watches | `POST /v1/disk-clean` runs `disk-cleaner.mjs`, the script `/multi-agent:clean-disk` runs. Measuring is its dry run and mints no token. Only a preview of named categories returns one, and each category must be an id from the cleaner's own allow-list (`CATEGORIES`); nothing else from the request reaches its command line. The token is bound to those categories, and the confirmation sends only the token and applies exactly them with `--only`. The Trash and old transcripts need their id and their own `trash: true` / `transcripts: true`; the page leaves both unticked and shows what deleting them costs. A server started with `MULTI_AGENT_UNATTENDED=1` measures the cleaner's unattended set and refuses a preview and an apply. The cleaner guards every path again before deleting it (no symlink, no personal or credential folder, no git working tree but a merged clean agent worktree, nothing in use) and never stops a process. Real paths are shown, so the route is `local-only`/`high` | `office-disk.test.mjs` |
|
|
69
69
|
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
> **Pickers follow** `$HOME/.claude/multi-agent-refs/picker-contract.md`: never a one-option call, and branch on the option selected, not on its text.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Five commands move saved routines between members of the reporting site, one
|
|
14
|
+
per flow below: `/multi-agent:routines-share`, `/multi-agent:routines-browse`,
|
|
15
|
+
`/multi-agent:routines-import`, `/multi-agent:routines-update` and
|
|
16
|
+
`/multi-agent:routines-delete`. `/multi-agent:routines` only lists the routines
|
|
17
|
+
saved on this machine. The backend is
|
|
15
18
|
`$HOME/.claude/scripts/routine-share.mjs`; every subcommand prints one JSON
|
|
16
19
|
document. It exits 0 on success, exits 1 on a refusal (`{ "ok": false,
|
|
17
20
|
"error": ... }`: the server, the secret scan, a changed routine, a name
|
|
@@ -457,7 +457,8 @@ starts a job); and, first, every standalone command that writes outside the
|
|
|
457
457
|
machine: `address-review`, `analysis`, `analysis-jira`, `channels`, `complaint-analysis`,
|
|
458
458
|
`create-jira`, `design-check`, `kill`, `purge`, `refactor`,
|
|
459
459
|
`review`, `review-analysis`, `review-issue`, `review-jira`, `review-priority`,
|
|
460
|
-
`routines`, `
|
|
460
|
+
`routines-share`, `routines-browse`, `routines-import`, `routines-update`,
|
|
461
|
+
`routines-delete`, `scaffold` and `sync`, on both hosts. `feedback` stays open so a
|
|
461
462
|
closed login can still report a problem, `setup` and `update` stay open
|
|
462
463
|
because they are how a refused login gets access, and the office commands
|
|
463
464
|
(`office-on`, `office-off`, `office-status`) stay open because they talk only
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- facts: commandCount="commands" toolCount="tools, most for a RUNNING app" -->
|
|
4
4
|
```
|
|
5
|
-
Multi-Agent Pipeline -
|
|
5
|
+
Multi-Agent Pipeline - 79 commands, grouped by what you want to do
|
|
6
6
|
|
|
7
7
|
Start here:
|
|
8
8
|
|
|
@@ -96,7 +96,9 @@ Office
|
|
|
96
96
|
|
|
97
97
|
Models and routing
|
|
98
98
|
|
|
99
|
-
/multi-agent:
|
|
99
|
+
/multi-agent:fable-on Put the top model rung (fable) in play
|
|
100
|
+
/multi-agent:fable-off Take it out; the review panel drops to two
|
|
101
|
+
/multi-agent:fable-status Is it on, the pricing model, what it means here
|
|
100
102
|
/multi-agent:route-on Route work to models by rule; off by default
|
|
101
103
|
/multi-agent:route-off Stop routing and keep the rules
|
|
102
104
|
/multi-agent:route-status Which rules apply where, and what each call used
|
|
@@ -111,7 +113,12 @@ Setup
|
|
|
111
113
|
Routines
|
|
112
114
|
|
|
113
115
|
/multi-agent:save [name] Save a recurring job as /multi-agent:<name>
|
|
114
|
-
/multi-agent:routines List saved routines
|
|
116
|
+
/multi-agent:routines List saved routines
|
|
117
|
+
/multi-agent:routines-share <name> Publish a saved routine to site members
|
|
118
|
+
/multi-agent:routines-browse [query] List routines site members shared
|
|
119
|
+
/multi-agent:routines-import <id> Install a shared routine
|
|
120
|
+
/multi-agent:routines-update Update imported routines, diff first
|
|
121
|
+
/multi-agent:routines-delete <id> Withdraw a routine you published
|
|
115
122
|
/multi-agent:forget [name] Remove a saved routine
|
|
116
123
|
<!-- ROUTINES_DYNAMIC: after printing the static lines above, read prefs.global.routines; if non-empty, append one indented line per routine " /multi-agent:<name> <description>" under a "Your saved routines:" subheading, in outputLanguage. If empty, print " (none yet - use /multi-agent:save)". -->
|
|
117
124
|
|
|
@@ -149,7 +156,7 @@ Access and usage reporting
|
|
|
149
156
|
Plugins and tools (call them directly)
|
|
150
157
|
|
|
151
158
|
Stack plugins ai-<stack>-toolkit:<skill>; catalog: ai-<stack>-toolkit:help
|
|
152
|
-
Toolkit MCP multi-agent:
|
|
159
|
+
Toolkit MCP multi-agent: 251 tools, most for a RUNNING app:
|
|
153
160
|
ios_*, android_*, web_*, design_*, store_*, the audits.
|
|
154
161
|
Not registered means a silent no-op.
|
|
155
162
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- facts: commandCount="komut" toolCount="araç, çoğu" -->
|
|
4
4
|
```
|
|
5
|
-
Multi-Agent Pipeline -
|
|
5
|
+
Multi-Agent Pipeline - 79 komut, ne yapmak istediğine göre gruplu
|
|
6
6
|
|
|
7
7
|
Buradan başla:
|
|
8
8
|
|
|
@@ -96,7 +96,9 @@ Ofis
|
|
|
96
96
|
|
|
97
97
|
Modeller ve yönlendirme
|
|
98
98
|
|
|
99
|
-
/multi-agent:
|
|
99
|
+
/multi-agent:fable-on Üst model basamağını (fable) aç
|
|
100
|
+
/multi-agent:fable-off Kapat; review paneli iki modele iner
|
|
101
|
+
/multi-agent:fable-status Açık mı, fiyatlama modeli, bu host'ta anlamı
|
|
100
102
|
/multi-agent:route-on İşi kurala göre modellere dağıt; varsayılan kapalı
|
|
101
103
|
/multi-agent:route-off Yönlendirmeyi kapat, kuralları sakla
|
|
102
104
|
/multi-agent:route-status Hangi kural nerede geçerli, çağrılar neyi kullandı
|
|
@@ -111,7 +113,12 @@ Kurulum
|
|
|
111
113
|
Rutinler
|
|
112
114
|
|
|
113
115
|
/multi-agent:save [ad] Sık yaptığın işi /multi-agent:<ad> olarak kaydet
|
|
114
|
-
/multi-agent:routines Kayıtlı rutinleri listele
|
|
116
|
+
/multi-agent:routines Kayıtlı rutinleri listele
|
|
117
|
+
/multi-agent:routines-share <ad> Kayıtlı bir rutini site üyeleriyle paylaş
|
|
118
|
+
/multi-agent:routines-browse [sorgu] Site üyelerinin paylaştığı rutinleri listele
|
|
119
|
+
/multi-agent:routines-import <id> Paylaşılan bir rutini kur
|
|
120
|
+
/multi-agent:routines-update İçe aktarılan rutinleri diff'le güncelle
|
|
121
|
+
/multi-agent:routines-delete <id> Yayımladığın bir rutini geri çek
|
|
115
122
|
/multi-agent:forget [ad] Kayıtlı bir rutini sil
|
|
116
123
|
<!-- ROUTINES_DYNAMIC: after printing the static lines above, read prefs.global.routines; if non-empty, append one indented line per routine " /multi-agent:<name> <description>" under a "Kayıtlı rutinlerin:" subheading, in outputLanguage. If empty, print " (henüz yok - /multi-agent:save kullan)". -->
|
|
117
124
|
|
|
@@ -149,7 +156,7 @@ Erişim ve kullanım raporu
|
|
|
149
156
|
Plugin'ler ve araçlar (doğrudan çağır)
|
|
150
157
|
|
|
151
158
|
Stack plugin ai-<stack>-toolkit:<skill>; katalog: ai-<stack>-toolkit:help
|
|
152
|
-
Toolkit MCP multi-agent:
|
|
159
|
+
Toolkit MCP multi-agent: 251 araç, çoğu ÇALIŞAN uygulama için:
|
|
153
160
|
ios_*, android_*, web_*, design_*, store_*, denetimler.
|
|
154
161
|
Kayıtlı değilse sessizce hiçbir şey yapmaz.
|
|
155
162
|
|
|
@@ -40,9 +40,9 @@ All types enter the same Phase 0 flow.
|
|
|
40
40
|
| `status` | Show all tasks with ID, phase, status |
|
|
41
41
|
| `log [id]` | Show agent-log.md for the task (latest if no id) |
|
|
42
42
|
| `resume [id]` | Resume a paused/failed task from the last successful phase |
|
|
43
|
-
| `kill [id]` |
|
|
44
|
-
| `clear-logs` | Superseded:
|
|
45
|
-
| `purge` |
|
|
43
|
+
| `kill [id]` | User-only: name `/multi-agent-kill` for the user to type; that skill stops the task and deletes worktree + branch + logs after a confirmation |
|
|
44
|
+
| `clear-logs` | Superseded: name `/multi-agent-prune-logs` for the user to type |
|
|
45
|
+
| `purge` | User-only: name `/multi-agent-purge` for the user to type; that skill deletes ALL worktrees, branches, logs, state and the counter |
|
|
46
46
|
| `review` | Skip phases 0-3, review the current diff only |
|
|
47
47
|
| `autopilot` flag | Add to any pipeline command: skip user confirmations except destructive ops |
|
|
48
48
|
| No args / `help` | Usage guide |
|
|
@@ -52,9 +52,9 @@ The full tables behind the dispatcher's compact routing table. Route first, then
|
|
|
52
52
|
| `status` | List all tasks (scan `$HOME/.claude/logs/multi-agent/`) |
|
|
53
53
|
| `log [id]` | Show task log |
|
|
54
54
|
| `resume [id]` | Resume paused task |
|
|
55
|
-
| `kill [id]` |
|
|
56
|
-
| `clear-logs` | **Superseded
|
|
57
|
-
| `purge` |
|
|
55
|
+
| `kill [id]` | User-only: name `/multi-agent:kill [id]` for the user to type and stop; the command deletes the worktree (logs preserved) after a confirmation |
|
|
56
|
+
| `clear-logs` | **Superseded, do not run.** Say so and name `/multi-agent:prune-logs` for the user to type. It targeted `.worktrees/PROJ-*/agent-log.md`, a path nothing has written to since logs moved to `$HOME/.claude/logs/multi-agent/{project}/{task-id}/`; running it would report deleting nothing as success. |
|
|
57
|
+
| `purge` | User-only: name `/multi-agent:purge` for the user to type and stop; the command resets worktrees, logs and the counter after a double confirmation |
|
|
58
58
|
| `review [#N\|repo#N\|PR-url\|branch]` | Parallel review of a PR or branch diff; with no input (interactive) lists open GitHub + Bitbucket PRs to multi-select. Posts per-finding inline comments + approve/needs-work on PRs. No worktree. |
|
|
59
59
|
| `review-jira [KEY\|url]` | Grade a Jira issue's readiness for the pipeline (scope / AC / repro / design / API / stack), then post the gaps as a Jira comment. Read-only on code. |
|
|
60
60
|
| `review-issue [#N\|repo#N\|url]` | Grade a GitHub issue's readiness for the pipeline, then post the gaps as an issue comment. Read-only on code. |
|
|
@@ -76,7 +76,7 @@ The full tables behind the dispatcher's compact routing table. Route first, then
|
|
|
76
76
|
|
|
77
77
|
### Loading
|
|
78
78
|
|
|
79
|
-
`commands/multi-agent/{cmd}/SKILL.md` files are invocable actions (each its own `/multi-agent:<name>` slash command); `$HOME/.claude/multi-agent-refs/**` are internal references read by the dispatcher, never invoked directly, and live outside `commands/` so they never appear in slash-command autocomplete.
|
|
79
|
+
`commands/multi-agent/{cmd}/SKILL.md` files are invocable actions (each its own `/multi-agent:<name>` slash command; one whose frontmatter sets `disable-model-invocation: true` runs only when the user types it, so the dispatcher names it and never reads it); `$HOME/.claude/multi-agent-refs/**` are internal references read by the dispatcher, never invoked directly, and live outside `commands/` so they never appear in slash-command autocomplete.
|
|
80
80
|
|
|
81
81
|
| Route | File to Read |
|
|
82
82
|
|-------|-------------|
|
|
@@ -88,7 +88,7 @@ The full tables behind the dispatcher's compact routing table. Route first, then
|
|
|
88
88
|
| `help` | `$HOME/.claude/commands/multi-agent/help/SKILL.md` |
|
|
89
89
|
| `channels` | `$HOME/.claude/commands/multi-agent/channels/SKILL.md` |
|
|
90
90
|
| `sync` | `$HOME/.claude/commands/multi-agent/sync/SKILL.md` |
|
|
91
|
-
| `clear-logs` |
|
|
91
|
+
| `clear-logs` | Superseded: names `/multi-agent:prune-logs`, see the routing note |
|
|
92
92
|
| `review` | `$HOME/.claude/commands/multi-agent/review/SKILL.md` |
|
|
93
93
|
| `review-jira` | `$HOME/.claude/commands/multi-agent/review-jira/SKILL.md` (loads `$HOME/.claude/multi-agent-refs/readiness-review.md`) |
|
|
94
94
|
| `review-issue` | `$HOME/.claude/commands/multi-agent/review-issue/SKILL.md` (loads `$HOME/.claude/multi-agent-refs/readiness-review.md`) |
|
|
@@ -168,7 +168,7 @@ For each task (respecting dependency order), on start and on end: `bash $HOME/.c
|
|
|
168
168
|
- **ios, fallback (raw)**: same lock pair around `xcodebuild build -scheme "{scheme}" -destination "generic/platform=iOS" -derivedDataPath "{worktreePath}/.DerivedData" 2>&1 | tail -5`.
|
|
169
169
|
- **android**: lock pair around `./gradlew assembleDebug 2>&1 | tail -5` (the Gradle daemon and `build/` outputs contend across parallel worktrees exactly as DerivedData does - the lock applies).
|
|
170
170
|
- **backend / web**: `python -m compileall .` / run the command `node $HOME/.claude/scripts/package-manager.mjs run --dir "{worktreePath}" --script build` prints, `2>&1 | tail -5` (exit 3: no build script); no lock.
|
|
171
|
-
5. If build fails → fix → rebuild (max 3 attempts, track `retryCount` in state). A failure that says `ENOSPC` or no space left is not a code defect, and retrying will not fix it: save the output and run `node $HOME/.claude/lib/low-disk.mjs --scan <log>`, print its line, and stop retrying. Attended,
|
|
171
|
+
5. If build fails → fix → rebuild (max 3 attempts, track `retryCount` in state). A failure that says `ENOSPC` or no space left is not a code defect, and retrying will not fix it: save the output and run `node $HOME/.claude/lib/low-disk.mjs --scan <log>`, print its line, and stop retrying. Attended, name `/multi-agent:clean-disk` for the user to type; unattended, record the line and halt. Never delete anything from here.
|
|
172
172
|
6. **Intermediate commit** (after each completed task in the plan):
|
|
173
173
|
```bash
|
|
174
174
|
git -C "{worktreePath}" add -A
|