opencode-swarm 7.135.2 → 7.135.3
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/.opencode/skills/critic-gate/SKILL.md +10 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/cli/{config-doctor-pj3yvxdb.js → config-doctor-4nznqeca.js} +3 -2
- package/dist/cli/{core-4va9z2ng.js → core-4z1s2ak1.js} +3 -2
- package/dist/cli/{curation-policy-b2caf3v3.js → curation-policy-81m14519.js} +3 -3
- package/dist/cli/{curator-drift-2ta83hss.js → curator-drift-jpap6hv4.js} +2 -2
- package/dist/cli/{curator-r1s2mwf2.js → curator-e0z5gcww.js} +24 -23
- package/dist/cli/{curator-llm-factory-9983528d.js → curator-llm-factory-fem13y9n.js} +24 -23
- package/dist/cli/{dispatch-wtk6dxky.js → dispatch-b1fge4xk.js} +2 -2
- package/dist/cli/{evidence-summary-service-feby8ny0.js → evidence-summary-service-w006jnpg.js} +5 -5
- package/dist/cli/{gate-evidence-84b03mb4.js → gate-evidence-aenyz6vt.js} +2 -2
- package/dist/cli/{guardrail-explain-pwxvg5n0.js → guardrail-explain-wgaj23hd.js} +25 -24
- package/dist/cli/{guardrail-log-yzpz8b7t.js → guardrail-log-04p1z1vt.js} +5 -4
- package/dist/cli/{hive-promoter-586dhndj.js → hive-promoter-k345z42k.js} +24 -23
- package/dist/cli/{index-g3meqrsg.js → index-168phrs7.js} +12 -10
- package/dist/cli/{index-3m7kpnqf.js → index-30pg2rs3.js} +1 -1
- package/dist/cli/{index-b0eva00y.js → index-36v55ryg.js} +1 -1
- package/dist/cli/index-3jcyn8g6.js +1219 -0
- package/dist/cli/{index-hdy2nd5h.js → index-45t7w06b.js} +4 -4
- package/dist/cli/{index-bs4m85v1.js → index-5436jxnw.js} +2 -2
- package/dist/cli/{index-j92ser8n.js → index-a01r818w.js} +5 -3
- package/dist/cli/{index-hvrrq3f3.js → index-bcmrg4t4.js} +1 -1
- package/dist/cli/{index-d5psymdk.js → index-c9ddxv4k.js} +57 -8
- package/dist/cli/{index-7pnvf04s.js → index-cggqh2dz.js} +10 -10
- package/dist/cli/{index-340chr1e.js → index-dwargd10.js} +10105 -9998
- package/dist/cli/{index-ckdva4rs.js → index-f52jt0am.js} +5 -5
- package/dist/cli/{index-jgkjxpdh.js → index-gxxxmajn.js} +2 -2
- package/dist/cli/{index-2pxk6qg4.js → index-kb7qy7an.js} +4 -2
- package/dist/cli/{index-j0kte6gd.js → index-p5kr35wh.js} +8 -1210
- package/dist/cli/{index-02cqjna3.js → index-p9ngg568.js} +4 -4
- package/dist/cli/{index-8gw8p7yh.js → index-rv7s2k9y.js} +1 -1
- package/dist/cli/{index-3xbx305x.js → index-tcn457d5.js} +1 -1
- package/dist/cli/{index-9c3gf2wd.js → index-wygxzvtf.js} +6 -4
- package/dist/cli/{index-73dfyfhq.js → index-x20cgr2q.js} +1 -1
- package/dist/cli/{index-cwdy5vw9.js → index-y47crdg9.js} +30 -28
- package/dist/cli/{index-qqkw794p.js → index-yf30m841.js} +3 -3
- package/dist/cli/index.js +27 -25
- package/dist/cli/{knowledge-escalator-w7by1m8m.js → knowledge-escalator-42ecv7m3.js} +4 -4
- package/dist/cli/{knowledge-events-n8xxsay3.js → knowledge-events-zhna7v3g.js} +2 -2
- package/dist/cli/knowledge-link-mm1w967j.js +1 -1
- package/dist/cli/{knowledge-store-xzmvfnx3.js → knowledge-store-56jcfc5k.js} +2 -2
- package/dist/cli/{knowledge-validator-5q1amsq6.js → knowledge-validator-8zk0pnb6.js} +5 -5
- package/dist/cli/{pending-delegations-mt5gs1bt.js → pending-delegations-qajsxct0.js} +4 -4
- package/dist/cli/{pr-subscriptions-v5xd3j6d.js → pr-subscriptions-qhr41epq.js} +4 -4
- package/dist/cli/{scan-cursor-1q1zmt4b.js → scan-cursor-h3ndxd41.js} +3 -3
- package/dist/cli/{schema-8mtsfspm.js → schema-r6wmd7zp.js} +2 -1
- package/dist/cli/scope-persistence-h2fpgxww.js +2 -2
- package/dist/cli/{skill-generator-54xbjgak.js → skill-generator-12cftsx4.js} +6 -6
- package/dist/cli/{worktree-collision-ownership-15hymf1y.js → worktree-collision-ownership-13btcj9g.js} +5 -5
- package/dist/commands/approve-plan-critic.d.ts +21 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/cache-paths.d.ts +48 -0
- package/dist/config/constants.d.ts +18 -0
- package/dist/config/host-path.d.ts +95 -0
- package/dist/config/lane-context.d.ts +117 -0
- package/dist/config/lane-permissions.d.ts +277 -0
- package/dist/config/schema.d.ts +10 -0
- package/dist/config/swarm-branch.d.ts +130 -0
- package/dist/hooks/delegation-gate.d.ts +42 -1
- package/dist/hooks/skill-propagation-gate.d.ts +10 -0
- package/dist/index.js +211 -199
- package/dist/memory/schema.d.ts +4 -4
- package/dist/tools/approve-plan-critic.d.ts +5 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cli/{index-bfd4xfpp.js → index-4qzeef9h.js} +3 -3
- package/dist/cli/{index-ryqnn3nv.js → index-mrtms113.js} +3 -3
- package/dist/cli/{index-m0ynxkaa.js → index-vm4xw9z3.js} +3 -3
|
@@ -0,0 +1,1219 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_merge
|
|
4
|
+
} from "./index-zjygnfay.js";
|
|
5
|
+
import {
|
|
6
|
+
__esm
|
|
7
|
+
} from "./index-a76rekgs.js";
|
|
8
|
+
|
|
9
|
+
// src/config/agent-names.ts
|
|
10
|
+
var QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME = "architect", ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES;
|
|
11
|
+
var init_agent_names = __esm(() => {
|
|
12
|
+
QA_AGENTS = [
|
|
13
|
+
"reviewer",
|
|
14
|
+
"critic",
|
|
15
|
+
"critic_oversight",
|
|
16
|
+
"critic_finding_validator"
|
|
17
|
+
];
|
|
18
|
+
PIPELINE_AGENTS = ["explorer", "coder", "test_engineer"];
|
|
19
|
+
ALL_SUBAGENT_NAMES = [
|
|
20
|
+
"sme",
|
|
21
|
+
"researcher",
|
|
22
|
+
"docs",
|
|
23
|
+
"docs_design",
|
|
24
|
+
"designer",
|
|
25
|
+
"critic_sounding_board",
|
|
26
|
+
"critic_drift_verifier",
|
|
27
|
+
"critic_hallucination_verifier",
|
|
28
|
+
"critic_architecture_supervisor",
|
|
29
|
+
"curator_init",
|
|
30
|
+
"curator_phase",
|
|
31
|
+
"curator_postmortem",
|
|
32
|
+
"curator_consolidation",
|
|
33
|
+
"council_generalist",
|
|
34
|
+
"council_skeptic",
|
|
35
|
+
"council_domain_expert",
|
|
36
|
+
"skill_improver",
|
|
37
|
+
"spec_writer",
|
|
38
|
+
...QA_AGENTS,
|
|
39
|
+
...PIPELINE_AGENTS
|
|
40
|
+
];
|
|
41
|
+
ALL_AGENT_NAMES = [
|
|
42
|
+
ORCHESTRATOR_NAME,
|
|
43
|
+
...ALL_SUBAGENT_NAMES
|
|
44
|
+
];
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// src/tools/tool-metadata.ts
|
|
48
|
+
var TOOL_METADATA, TOOL_NAMES, TOOL_NAME_SET, TOOL_DESCRIPTIONS, AGENT_TOOL_MAP;
|
|
49
|
+
var init_tool_metadata = __esm(() => {
|
|
50
|
+
init_agent_names();
|
|
51
|
+
TOOL_METADATA = {
|
|
52
|
+
diff: {
|
|
53
|
+
description: "structured git diff with contract change detection",
|
|
54
|
+
agents: [
|
|
55
|
+
"architect",
|
|
56
|
+
"reviewer",
|
|
57
|
+
"critic_finding_validator",
|
|
58
|
+
"critic_oversight",
|
|
59
|
+
"coder",
|
|
60
|
+
"test_engineer"
|
|
61
|
+
],
|
|
62
|
+
prWorkflow: {
|
|
63
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
64
|
+
capability: "observe"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
diff_summary: {
|
|
68
|
+
description: "filter classified AST changes by category, risk level, or file for reviewer drill-down",
|
|
69
|
+
agents: [
|
|
70
|
+
"architect",
|
|
71
|
+
"reviewer",
|
|
72
|
+
"critic_finding_validator",
|
|
73
|
+
"critic_oversight"
|
|
74
|
+
],
|
|
75
|
+
prWorkflow: {
|
|
76
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
77
|
+
capability: "observe"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
syntax_check: {
|
|
81
|
+
description: "check syntax of source files using tree-sitter parsers across multiple languages, returning per-file errors",
|
|
82
|
+
agents: ["architect", "coder", "test_engineer"],
|
|
83
|
+
prWorkflow: {
|
|
84
|
+
modes: ["PR_REVIEW"],
|
|
85
|
+
capability: "validate"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
placeholder_scan: {
|
|
89
|
+
description: "todo and FIXME comment detection",
|
|
90
|
+
agents: ["architect", "reviewer", "critic_finding_validator"],
|
|
91
|
+
prWorkflow: {
|
|
92
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
93
|
+
capability: "observe"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
imports: {
|
|
97
|
+
description: "find all consumers that import from a given file \u2014 use before refactoring shared modules to avoid breaking unseen dependents",
|
|
98
|
+
agents: [
|
|
99
|
+
"architect",
|
|
100
|
+
"sme",
|
|
101
|
+
"researcher",
|
|
102
|
+
"docs",
|
|
103
|
+
"docs_design",
|
|
104
|
+
"critic_sounding_board",
|
|
105
|
+
"critic_drift_verifier",
|
|
106
|
+
"critic_hallucination_verifier",
|
|
107
|
+
"reviewer",
|
|
108
|
+
"critic_finding_validator",
|
|
109
|
+
"critic",
|
|
110
|
+
"coder",
|
|
111
|
+
"test_engineer"
|
|
112
|
+
],
|
|
113
|
+
prWorkflow: {
|
|
114
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
115
|
+
capability: "observe"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
lint: {
|
|
119
|
+
description: "run project linter in check or fix mode; supports biome, eslint, ruff, clippy, and more, returns structured results",
|
|
120
|
+
agents: ["architect", "reviewer", "critic_finding_validator", "coder"],
|
|
121
|
+
prWorkflow: {
|
|
122
|
+
modes: ["PR_REVIEW"],
|
|
123
|
+
capability: "validate"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
secretscan: {
|
|
127
|
+
description: "scan for secrets (API keys, tokens, passwords) via regex and entropy; returns redacted previews, excludes common dirs",
|
|
128
|
+
agents: [
|
|
129
|
+
"architect",
|
|
130
|
+
"reviewer",
|
|
131
|
+
"critic_finding_validator",
|
|
132
|
+
"critic_oversight"
|
|
133
|
+
],
|
|
134
|
+
prWorkflow: {
|
|
135
|
+
modes: ["PR_REVIEW"],
|
|
136
|
+
capability: "validate"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
sast_scan: {
|
|
140
|
+
description: "static analysis security scan",
|
|
141
|
+
agents: [
|
|
142
|
+
"architect",
|
|
143
|
+
"reviewer",
|
|
144
|
+
"critic_finding_validator",
|
|
145
|
+
"critic_oversight"
|
|
146
|
+
],
|
|
147
|
+
prWorkflow: {
|
|
148
|
+
modes: ["PR_REVIEW"],
|
|
149
|
+
capability: "validate"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
build_check: {
|
|
153
|
+
description: "discover and run build, typecheck, and test commands for various project ecosystems in the working directory",
|
|
154
|
+
agents: ["architect", "coder", "test_engineer"]
|
|
155
|
+
},
|
|
156
|
+
pre_check_batch: {
|
|
157
|
+
description: "parallel verification: lint:check + secretscan + sast_scan + quality_budget",
|
|
158
|
+
agents: ["architect", "reviewer", "critic_finding_validator"]
|
|
159
|
+
},
|
|
160
|
+
quality_budget: {
|
|
161
|
+
description: "code quality budget check",
|
|
162
|
+
agents: ["architect"],
|
|
163
|
+
prWorkflow: {
|
|
164
|
+
modes: ["PR_REVIEW"],
|
|
165
|
+
capability: "validate"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
symbols: {
|
|
169
|
+
description: "extract exported symbols (functions, classes, interfaces, types) from source files; supports TypeScript, JavaScript, and Python",
|
|
170
|
+
agents: [
|
|
171
|
+
"architect",
|
|
172
|
+
"sme",
|
|
173
|
+
"researcher",
|
|
174
|
+
"docs",
|
|
175
|
+
"docs_design",
|
|
176
|
+
"designer",
|
|
177
|
+
"critic_sounding_board",
|
|
178
|
+
"critic_drift_verifier",
|
|
179
|
+
"critic_hallucination_verifier",
|
|
180
|
+
"spec_writer",
|
|
181
|
+
"reviewer",
|
|
182
|
+
"critic_finding_validator",
|
|
183
|
+
"critic",
|
|
184
|
+
"coder",
|
|
185
|
+
"test_engineer"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
complexity_hotspots: {
|
|
189
|
+
description: "git churn \xD7 complexity risk map",
|
|
190
|
+
agents: [
|
|
191
|
+
"architect",
|
|
192
|
+
"sme",
|
|
193
|
+
"researcher",
|
|
194
|
+
"critic_sounding_board",
|
|
195
|
+
"critic_drift_verifier",
|
|
196
|
+
"critic_hallucination_verifier",
|
|
197
|
+
"reviewer",
|
|
198
|
+
"critic_finding_validator",
|
|
199
|
+
"critic",
|
|
200
|
+
"critic_oversight",
|
|
201
|
+
"explorer",
|
|
202
|
+
"test_engineer"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
schema_drift: {
|
|
206
|
+
description: "OpenAPI spec vs route drift",
|
|
207
|
+
agents: ["architect", "sme", "researcher", "docs", "explorer"],
|
|
208
|
+
prWorkflow: {
|
|
209
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
210
|
+
capability: "observe"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
todo_extract: {
|
|
214
|
+
description: "structured TODO/FIXME extraction",
|
|
215
|
+
agents: ["architect", "researcher", "docs", "explorer"],
|
|
216
|
+
prWorkflow: {
|
|
217
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
218
|
+
capability: "observe"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
evidence_check: {
|
|
222
|
+
description: "verify task evidence completeness",
|
|
223
|
+
agents: ["architect", "critic_oversight"]
|
|
224
|
+
},
|
|
225
|
+
check_gate_status: {
|
|
226
|
+
description: "check the gate status of a specific task",
|
|
227
|
+
agents: ["architect", "critic_oversight"]
|
|
228
|
+
},
|
|
229
|
+
completion_verify: {
|
|
230
|
+
description: "verify completed tasks have required evidence",
|
|
231
|
+
agents: ["architect", "critic_oversight"]
|
|
232
|
+
},
|
|
233
|
+
complete_pr_workflow: {
|
|
234
|
+
description: "validate terminal PR workflow evidence and clear its durable session gate",
|
|
235
|
+
agents: ["architect"]
|
|
236
|
+
},
|
|
237
|
+
abort_pr_workflow: {
|
|
238
|
+
description: "abort an unrecoverable PR_REVIEW/PR_FEEDBACK mechanical gate and clear its durable session state",
|
|
239
|
+
agents: ["architect"]
|
|
240
|
+
},
|
|
241
|
+
approve_plan_critic: {
|
|
242
|
+
description: "record a MANUAL plan_critic_gate approval snapshot to unblock the ratchet-tighter critic_pre_plan execution gate when the critic already returned APPROVED but the mechanical recorder failed to persist it (issue #2012)",
|
|
243
|
+
agents: ["architect"]
|
|
244
|
+
},
|
|
245
|
+
prepare_pr_workflow_checkout: {
|
|
246
|
+
description: "preserve explicit dirty tracked files before an unbound PR workflow checkout with an auditable recovery receipt",
|
|
247
|
+
agents: ["architect"]
|
|
248
|
+
},
|
|
249
|
+
run_pr_feedback_stage_a: {
|
|
250
|
+
description: "execute and persist mandatory PR-feedback Stage A checks on a content-bound revision",
|
|
251
|
+
agents: ["architect"]
|
|
252
|
+
},
|
|
253
|
+
submit_council_verdicts: {
|
|
254
|
+
description: "submit pre-collected council member verdicts for synthesis (architect MUST dispatch critic/reviewer/sme/test_engineer/explorer as Agent tasks first; this tool synthesizes only, it does not contact members)",
|
|
255
|
+
agents: []
|
|
256
|
+
},
|
|
257
|
+
submit_phase_council_verdicts: {
|
|
258
|
+
description: "submit pre-collected phase-level council member verdicts for holistic phase synthesis (architect MUST dispatch all 5 council members with phase-scoped context first; this tool synthesizes only, it does not contact members)",
|
|
259
|
+
agents: []
|
|
260
|
+
},
|
|
261
|
+
declare_council_criteria: {
|
|
262
|
+
description: "pre-declare acceptance criteria for a task before the coder starts work; criteria are read back during council evaluation",
|
|
263
|
+
agents: []
|
|
264
|
+
},
|
|
265
|
+
sbom_generate: {
|
|
266
|
+
description: "SBOM generation for dependency inventory",
|
|
267
|
+
agents: ["architect"]
|
|
268
|
+
},
|
|
269
|
+
checkpoint: {
|
|
270
|
+
description: "create named git checkpoints for save, restore, and delete \u2014 use before risky operations to enable rollback",
|
|
271
|
+
agents: ["architect"]
|
|
272
|
+
},
|
|
273
|
+
pkg_audit: {
|
|
274
|
+
description: "dependency vulnerability scan \u2014 npm/pip/cargo",
|
|
275
|
+
agents: [
|
|
276
|
+
"architect",
|
|
277
|
+
"critic_hallucination_verifier",
|
|
278
|
+
"reviewer",
|
|
279
|
+
"critic_finding_validator",
|
|
280
|
+
"critic_oversight",
|
|
281
|
+
"test_engineer"
|
|
282
|
+
],
|
|
283
|
+
prWorkflow: {
|
|
284
|
+
modes: ["PR_REVIEW"],
|
|
285
|
+
capability: "validate"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
parse_lane_candidates: {
|
|
289
|
+
description: "Parse [CANDIDATE] rows from a dispatch_lanes or collect_lane_results artifact (by output_ref), produce structured records with provenance, optionally persist to a per-batch sidecar JSONL. Pure-parser variant exists as internal module.",
|
|
290
|
+
agents: ["architect"]
|
|
291
|
+
},
|
|
292
|
+
plan_conflict_check: {
|
|
293
|
+
description: "read-only advisory check (#1656): compute a pairwise file-conflict matrix for N proposed parallel task groups using declared scopes and optional git co-change; returns a verdict (all_disjoint / conflicts_present / unknown_scopes), per-pair evidence, and a suggested serialization order. Writes nothing \u2014 the execution gate independently recomputes the verdict inline at dispatch time via the same helper. Call BEFORE attempting parallel dispatch to confirm disjointness.",
|
|
294
|
+
agents: ["architect"]
|
|
295
|
+
},
|
|
296
|
+
write_pr_review_trigger_eval: {
|
|
297
|
+
description: "persist the complete PR-review trigger evaluation with exact-set validation, dispatch provenance, and live merge-base verification",
|
|
298
|
+
agents: ["architect"]
|
|
299
|
+
},
|
|
300
|
+
write_pr_review_artifact: {
|
|
301
|
+
description: "persist schema-validated PR-review findings checkpoints and exact actionable feedback handoffs under the active run",
|
|
302
|
+
agents: ["architect"]
|
|
303
|
+
},
|
|
304
|
+
prepare_pr_feedback_scope: {
|
|
305
|
+
description: "prepare an exact file scope for one PR-feedback coder Task after immutable feedback verification settles",
|
|
306
|
+
agents: ["architect"]
|
|
307
|
+
},
|
|
308
|
+
test_runner: {
|
|
309
|
+
description: "auto-detect and run tests",
|
|
310
|
+
agents: [
|
|
311
|
+
"architect",
|
|
312
|
+
"reviewer",
|
|
313
|
+
"critic_finding_validator",
|
|
314
|
+
"test_engineer"
|
|
315
|
+
],
|
|
316
|
+
prWorkflow: {
|
|
317
|
+
modes: ["PR_REVIEW"],
|
|
318
|
+
capability: "validate"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
test_impact: {
|
|
322
|
+
description: "identify test files impacted by changed source files via import analysis",
|
|
323
|
+
agents: [
|
|
324
|
+
"architect",
|
|
325
|
+
"reviewer",
|
|
326
|
+
"critic_finding_validator",
|
|
327
|
+
"critic_oversight",
|
|
328
|
+
"test_engineer"
|
|
329
|
+
],
|
|
330
|
+
prWorkflow: {
|
|
331
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
332
|
+
capability: "observe"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
mutation_test: {
|
|
336
|
+
description: "executes pre-generated mutation patches against tests, evaluates kill rate against quality gate thresholds",
|
|
337
|
+
agents: ["architect", "test_engineer"]
|
|
338
|
+
},
|
|
339
|
+
generate_mutants: {
|
|
340
|
+
description: "generate LLM-based mutation testing patches for source files; returns MutationPatch[] for direct consumption by the mutation_test tool",
|
|
341
|
+
agents: ["architect"]
|
|
342
|
+
},
|
|
343
|
+
detect_domains: {
|
|
344
|
+
description: "detect which SME domains are relevant for a given text",
|
|
345
|
+
agents: [
|
|
346
|
+
"architect",
|
|
347
|
+
"sme",
|
|
348
|
+
"docs",
|
|
349
|
+
"docs_design",
|
|
350
|
+
"critic_sounding_board",
|
|
351
|
+
"critic_drift_verifier",
|
|
352
|
+
"critic_hallucination_verifier",
|
|
353
|
+
"critic",
|
|
354
|
+
"critic_oversight",
|
|
355
|
+
"explorer"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
git_blame: {
|
|
359
|
+
description: "per-line git blame metadata: sha, author, date, summary for each line in a file",
|
|
360
|
+
agents: ["reviewer", "critic_finding_validator", "explorer", "architect"],
|
|
361
|
+
prWorkflow: {
|
|
362
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
363
|
+
capability: "observe"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
gitingest: {
|
|
367
|
+
description: "fetch a GitHub repository full content via gitingest.com",
|
|
368
|
+
agents: ["architect", "docs", "explorer"],
|
|
369
|
+
prWorkflow: {
|
|
370
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
371
|
+
capability: "observe"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
retrieve_summary: {
|
|
375
|
+
description: "retrieve the full content of a stored tool output summary",
|
|
376
|
+
agents: [
|
|
377
|
+
"architect",
|
|
378
|
+
"sme",
|
|
379
|
+
"docs",
|
|
380
|
+
"docs_design",
|
|
381
|
+
"designer",
|
|
382
|
+
"critic_sounding_board",
|
|
383
|
+
"critic_drift_verifier",
|
|
384
|
+
"critic_hallucination_verifier",
|
|
385
|
+
"critic_architecture_supervisor",
|
|
386
|
+
"spec_writer",
|
|
387
|
+
"reviewer",
|
|
388
|
+
"critic_finding_validator",
|
|
389
|
+
"critic",
|
|
390
|
+
"coder",
|
|
391
|
+
"test_engineer"
|
|
392
|
+
],
|
|
393
|
+
prWorkflow: {
|
|
394
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
395
|
+
capability: "observe"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
retrieve_lane_output: {
|
|
399
|
+
description: "retrieve paged full dispatch lane output by output_ref; use before consuming truncated lane previews or routing candidates from lane results",
|
|
400
|
+
agents: ["architect"],
|
|
401
|
+
prWorkflow: {
|
|
402
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
403
|
+
capability: "observe"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
extract_code_blocks: {
|
|
407
|
+
description: "extract code blocks from text content and save them to files",
|
|
408
|
+
agents: [
|
|
409
|
+
"docs",
|
|
410
|
+
"docs_design",
|
|
411
|
+
"designer",
|
|
412
|
+
"spec_writer",
|
|
413
|
+
"coder",
|
|
414
|
+
"test_engineer"
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
phase_complete: {
|
|
418
|
+
description: "mark a phase as complete and track dispatched agents",
|
|
419
|
+
agents: ["architect"]
|
|
420
|
+
},
|
|
421
|
+
save_plan: {
|
|
422
|
+
description: "save a structured implementation plan",
|
|
423
|
+
agents: ["architect"]
|
|
424
|
+
},
|
|
425
|
+
update_task_status: {
|
|
426
|
+
description: "mark tasks complete, track phase progress",
|
|
427
|
+
agents: ["architect"]
|
|
428
|
+
},
|
|
429
|
+
lint_spec: {
|
|
430
|
+
description: "validate .swarm/spec.md format and required fields",
|
|
431
|
+
agents: ["architect", "spec_writer"]
|
|
432
|
+
},
|
|
433
|
+
write_retro: {
|
|
434
|
+
description: "document phase retrospectives via phase_complete workflow, capture lessons learned",
|
|
435
|
+
agents: ["architect"]
|
|
436
|
+
},
|
|
437
|
+
write_drift_evidence: {
|
|
438
|
+
description: "write drift verification evidence for a completed phase",
|
|
439
|
+
agents: ["architect"]
|
|
440
|
+
},
|
|
441
|
+
write_hallucination_evidence: {
|
|
442
|
+
description: "write hallucination verification evidence for a completed phase",
|
|
443
|
+
agents: ["architect"]
|
|
444
|
+
},
|
|
445
|
+
write_mutation_evidence: {
|
|
446
|
+
description: "write mutation gate evidence for a completed phase; normalizes PASS/WARN/FAIL/SKIP verdicts and writes .swarm/evidence/{phase}/mutation-gate.json",
|
|
447
|
+
agents: ["architect"]
|
|
448
|
+
},
|
|
449
|
+
declare_scope: {
|
|
450
|
+
description: "declare file scope for next coder delegation",
|
|
451
|
+
agents: ["architect"]
|
|
452
|
+
},
|
|
453
|
+
knowledge_query: {
|
|
454
|
+
description: "query swarm or hive knowledge with optional filters",
|
|
455
|
+
agents: ["architect", "skill_improver", "spec_writer"]
|
|
456
|
+
},
|
|
457
|
+
doc_scan: {
|
|
458
|
+
description: "scan project documentation files and build an index manifest",
|
|
459
|
+
agents: [
|
|
460
|
+
"architect",
|
|
461
|
+
"docs_design",
|
|
462
|
+
"skill_improver",
|
|
463
|
+
"spec_writer",
|
|
464
|
+
"explorer"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
doc_extract: {
|
|
468
|
+
description: "extract actionable constraints from project documentation",
|
|
469
|
+
agents: ["architect", "docs_design", "skill_improver", "spec_writer"]
|
|
470
|
+
},
|
|
471
|
+
curator_analyze: {
|
|
472
|
+
description: "run curator phase analysis and optionally apply knowledge recommendations",
|
|
473
|
+
agents: ["architect"]
|
|
474
|
+
},
|
|
475
|
+
consensus_mine: {
|
|
476
|
+
description: "mine cross-run consensus from existing .swarm evidence into an immutable proposals-only report; also deletes its own reports past consensus.report_retention, appends to the shared recommendation dedup ledger (in the shared cohort root, outside this project, when a knowledge link is active), and mirrors proposals into pending swarm-memory proposals when memory is enabled",
|
|
477
|
+
agents: ["architect", "curator_phase", "curator_postmortem"]
|
|
478
|
+
},
|
|
479
|
+
knowledge_add: {
|
|
480
|
+
description: "store a new lesson in the knowledge base",
|
|
481
|
+
agents: ["architect", "coder"]
|
|
482
|
+
},
|
|
483
|
+
knowledge_recall: {
|
|
484
|
+
description: "search the knowledge base for relevant past decisions",
|
|
485
|
+
agents: [
|
|
486
|
+
"architect",
|
|
487
|
+
"sme",
|
|
488
|
+
"docs",
|
|
489
|
+
"docs_design",
|
|
490
|
+
"designer",
|
|
491
|
+
"critic_sounding_board",
|
|
492
|
+
"critic_drift_verifier",
|
|
493
|
+
"critic_hallucination_verifier",
|
|
494
|
+
"critic_architecture_supervisor",
|
|
495
|
+
"curator_init",
|
|
496
|
+
"curator_phase",
|
|
497
|
+
"skill_improver",
|
|
498
|
+
"spec_writer",
|
|
499
|
+
"reviewer",
|
|
500
|
+
"critic_finding_validator",
|
|
501
|
+
"critic",
|
|
502
|
+
"critic_oversight",
|
|
503
|
+
"explorer",
|
|
504
|
+
"coder",
|
|
505
|
+
"test_engineer"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
knowledge_remove: {
|
|
509
|
+
description: "delete an outdated swarm knowledge entry by ID (swarm tier only)",
|
|
510
|
+
agents: ["architect"]
|
|
511
|
+
},
|
|
512
|
+
co_change_analyzer: {
|
|
513
|
+
description: "detect hidden couplings by analyzing git history",
|
|
514
|
+
agents: ["architect"]
|
|
515
|
+
},
|
|
516
|
+
context_status: {
|
|
517
|
+
description: "report current context-window headroom for the active session \u2014 returns tokens-used, model-limit, usage-percent, threshold-state (none/warn/critical), model name, and provider. Pure read-only: no state mutation, no warning injection. Works whether context_budget.enabled is true or false.",
|
|
518
|
+
agents: ["architect"]
|
|
519
|
+
},
|
|
520
|
+
search: {
|
|
521
|
+
description: "Workspace-scoped ripgrep-style text search with structured JSON output. Supports literal and regex modes, glob filtering, and result limits. NOTE: This is text search, not structural AST search \u2014 use symbols and imports tools for structural queries.",
|
|
522
|
+
agents: [
|
|
523
|
+
"architect",
|
|
524
|
+
"sme",
|
|
525
|
+
"docs",
|
|
526
|
+
"docs_design",
|
|
527
|
+
"designer",
|
|
528
|
+
"critic_hallucination_verifier",
|
|
529
|
+
"skill_improver",
|
|
530
|
+
"spec_writer",
|
|
531
|
+
"reviewer",
|
|
532
|
+
"critic_finding_validator",
|
|
533
|
+
"critic_oversight",
|
|
534
|
+
"explorer",
|
|
535
|
+
"coder",
|
|
536
|
+
"test_engineer",
|
|
537
|
+
"researcher"
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
ast_grep: {
|
|
541
|
+
description: "Read-only structural AST search using ast-grep patterns with optional language and glob filters. Use for syntax-aware code pattern searches; does not rewrite files.",
|
|
542
|
+
agents: [
|
|
543
|
+
"architect",
|
|
544
|
+
"sme",
|
|
545
|
+
"docs",
|
|
546
|
+
"docs_design",
|
|
547
|
+
"critic_hallucination_verifier",
|
|
548
|
+
"spec_writer",
|
|
549
|
+
"explorer",
|
|
550
|
+
"coder",
|
|
551
|
+
"test_engineer",
|
|
552
|
+
"researcher"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
actionlint_scan: {
|
|
556
|
+
description: "Run actionlint against GitHub Actions workflow YAML files with structured findings. Resolves actionlint lazily and does not modify files.",
|
|
557
|
+
agents: ["architect", "test_engineer"],
|
|
558
|
+
prWorkflow: {
|
|
559
|
+
modes: ["PR_REVIEW"],
|
|
560
|
+
capability: "validate"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
osv_scan: {
|
|
564
|
+
description: "Run OSV-Scanner against a workspace path and return structured dependency vulnerability findings. Resolves osv-scanner lazily and does not modify files.",
|
|
565
|
+
agents: ["architect", "test_engineer"],
|
|
566
|
+
prWorkflow: {
|
|
567
|
+
modes: ["PR_REVIEW"],
|
|
568
|
+
capability: "validate"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
gh_evidence: {
|
|
572
|
+
description: "Fetch bounded GitHub pull request or issue metadata through gh for review and CI evidence. Resolves gh lazily and is read-only.",
|
|
573
|
+
agents: ["architect", "researcher"],
|
|
574
|
+
prWorkflow: {
|
|
575
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
576
|
+
capability: "observe"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
pr_workflow_status: {
|
|
580
|
+
description: "Read-only architect observation of local git state (HEAD, branch, clean/dirty with a bounded changed-file list, remotes) plus a session-pinned PR workflow gate summary. Use to observe state under the fail-closed PR_REVIEW/PR_FEEDBACK gate. Never executes PR-controlled scripts and never reads another session gate.",
|
|
581
|
+
agents: ["architect"],
|
|
582
|
+
prWorkflow: {
|
|
583
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
584
|
+
capability: "observe"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
batch_symbols: {
|
|
588
|
+
description: "Batched symbol extraction across multiple files. Returns per-file symbol summaries with isolated error handling.",
|
|
589
|
+
agents: [
|
|
590
|
+
"architect",
|
|
591
|
+
"critic_hallucination_verifier",
|
|
592
|
+
"reviewer",
|
|
593
|
+
"critic_finding_validator",
|
|
594
|
+
"critic_oversight",
|
|
595
|
+
"explorer"
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
suggest_patch: {
|
|
599
|
+
description: "Reviewer-safe structured patch suggestion tool. Produces context-anchored patch artifacts without file modification. Returns structured diagnostics on context mismatch.",
|
|
600
|
+
agents: ["architect", "reviewer", "critic_finding_validator"]
|
|
601
|
+
},
|
|
602
|
+
req_coverage: {
|
|
603
|
+
description: "query requirement coverage status for tracked functional requirements",
|
|
604
|
+
agents: [
|
|
605
|
+
"critic_sounding_board",
|
|
606
|
+
"critic_drift_verifier",
|
|
607
|
+
"critic_hallucination_verifier",
|
|
608
|
+
"spec_writer",
|
|
609
|
+
"critic",
|
|
610
|
+
"critic_oversight"
|
|
611
|
+
]
|
|
612
|
+
},
|
|
613
|
+
get_approved_plan: {
|
|
614
|
+
description: "retrieve the last critic-approved immutable plan snapshot for baseline drift comparison",
|
|
615
|
+
agents: ["critic_drift_verifier", "critic", "critic_oversight"]
|
|
616
|
+
},
|
|
617
|
+
repo_map: {
|
|
618
|
+
description: "query the repo code graph: importers, dependencies, blast radius, localization, ontology facts, package boundaries, and heuristic preflight packets before refactoring; ontology findings are advisory, not formal proofs",
|
|
619
|
+
agents: [
|
|
620
|
+
"architect",
|
|
621
|
+
"critic_sounding_board",
|
|
622
|
+
"critic_drift_verifier",
|
|
623
|
+
"critic_hallucination_verifier",
|
|
624
|
+
"critic_architecture_supervisor",
|
|
625
|
+
"reviewer",
|
|
626
|
+
"critic_finding_validator",
|
|
627
|
+
"critic",
|
|
628
|
+
"critic_oversight",
|
|
629
|
+
"explorer",
|
|
630
|
+
"coder"
|
|
631
|
+
],
|
|
632
|
+
prWorkflow: {
|
|
633
|
+
modes: ["PR_REVIEW", "PR_FEEDBACK"],
|
|
634
|
+
capability: "observe"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
get_qa_gate_profile: {
|
|
638
|
+
description: "retrieve the QA gate profile for the current plan: gates (reviewer, test_engineer, sme_enabled, critic_pre_plan, sast_enabled, council_mode, hallucination_guard, mutation_test, phase_council, drift_check, final_council), lock state, and profile hash. Read-only.",
|
|
639
|
+
agents: ["architect"]
|
|
640
|
+
},
|
|
641
|
+
set_qa_gates: {
|
|
642
|
+
description: "configure the QA gate profile for the current plan. Architect-only. Ratchet-tighter only \u2014 rejected once the profile is locked after critic approval. Supports: reviewer, test_engineer, sme_enabled, critic_pre_plan, sast_enabled, council_mode, hallucination_guard, mutation_test, phase_council, drift_check, final_council.",
|
|
643
|
+
agents: ["architect"]
|
|
644
|
+
},
|
|
645
|
+
web_search: {
|
|
646
|
+
description: "External web search (Tavily or Brave) for architect-driven council research, SME domain research, researcher auto-research, and skill-improver research. Returns titled results with snippets, URLs, normalized query metadata, temporal intent, freshness, and removed stale years. Config-gated on council.general.enabled in the resolved config: global ~/.config/opencode/opencode-swarm.json, then project .opencode/opencode-swarm.json overrides. Requires a search API key. Used by the architect in MODE: COUNCIL to gather a RESEARCH CONTEXT before dispatching council agents, by SME for opt-in external skill/source evaluation, and by the researcher agent for multi-source auto-research.",
|
|
647
|
+
agents: ["sme", "researcher", "skill_improver"]
|
|
648
|
+
},
|
|
649
|
+
web_fetch: {
|
|
650
|
+
description: "Fetch the readable text of a single http(s) URL (architect-only). Returns decoded page text, document title, final URL after redirects, and an evidence reference. Reads primary sources that web_search only surfaces as snippets. Config-gated on council.general.enabled. Blocks private/loopback/link-local/metadata addresses (re-validated and re-pinned across redirects); enforces timeout and body size cap.",
|
|
651
|
+
agents: []
|
|
652
|
+
},
|
|
653
|
+
convene_general_council: {
|
|
654
|
+
description: "Synthesize responses from a multi-model General Council. Accepts parallel member responses (Round 1, optionally Round 2), detects disagreements, and returns consensus points, persisting disagreements, and a structured synthesis. Architect-only. Config-gated on council.general.enabled in the resolved config: global ~/.config/opencode/opencode-swarm.json, then project .opencode/opencode-swarm.json overrides.",
|
|
655
|
+
agents: []
|
|
656
|
+
},
|
|
657
|
+
write_final_council_evidence: {
|
|
658
|
+
description: "Persist project-scoped final council evidence to .swarm/evidence/final-council.json. PREREQUISITE: dispatch critic, reviewer, sme, test_engineer, and explorer as project-scoped Agent tasks and collect their CouncilMemberVerdict JSON \u2014 this tool synthesizes only. Rejects on insufficient quorum or CONCERNS with unresolved requiredFixes; normalizes verdicts to approved/concerns/rejected. Architect-only.",
|
|
659
|
+
agents: []
|
|
660
|
+
},
|
|
661
|
+
skill_generate: {
|
|
662
|
+
description: "compile knowledge entries into a structured SKILL.md draft",
|
|
663
|
+
agents: ["skill_improver"]
|
|
664
|
+
},
|
|
665
|
+
skill_list: {
|
|
666
|
+
description: "list generated skill files and their status",
|
|
667
|
+
agents: ["skill_improver"]
|
|
668
|
+
},
|
|
669
|
+
skill_apply: {
|
|
670
|
+
description: "activate a draft skill proposal",
|
|
671
|
+
agents: []
|
|
672
|
+
},
|
|
673
|
+
skill_inspect: {
|
|
674
|
+
description: "inspect the content and source entries of a skill file",
|
|
675
|
+
agents: ["skill_improver"]
|
|
676
|
+
},
|
|
677
|
+
run_stale_reconciliation: {
|
|
678
|
+
description: "reconcile skills against the knowledge store: mark skills stale when source knowledge is archived or deleted, or clear stale markers",
|
|
679
|
+
agents: ["architect"]
|
|
680
|
+
},
|
|
681
|
+
skill_regenerate: {
|
|
682
|
+
description: "regenerate an active skill by re-clustering its source knowledge entries and updating the SKILL.md in place",
|
|
683
|
+
agents: []
|
|
684
|
+
},
|
|
685
|
+
skill_retire: {
|
|
686
|
+
description: "retire a generated skill by adding a retired.marker file; retired skills are excluded from scoring and injection",
|
|
687
|
+
agents: []
|
|
688
|
+
},
|
|
689
|
+
skill_improve: {
|
|
690
|
+
description: "run the skill_improver agent to review and refine skills",
|
|
691
|
+
agents: ["skill_improver"]
|
|
692
|
+
},
|
|
693
|
+
spec_write: {
|
|
694
|
+
description: "author or update .swarm/spec.md for the current project",
|
|
695
|
+
agents: ["spec_writer"]
|
|
696
|
+
},
|
|
697
|
+
knowledge_receipt: {
|
|
698
|
+
description: "file a receipt for retrieved knowledge (applied/ignored/contradicted + new lessons), recorded as immutable knowledge events",
|
|
699
|
+
agents: [
|
|
700
|
+
"architect",
|
|
701
|
+
"sme",
|
|
702
|
+
"docs",
|
|
703
|
+
"docs_design",
|
|
704
|
+
"designer",
|
|
705
|
+
"critic_sounding_board",
|
|
706
|
+
"critic_drift_verifier",
|
|
707
|
+
"critic_hallucination_verifier",
|
|
708
|
+
"critic_architecture_supervisor",
|
|
709
|
+
"curator_init",
|
|
710
|
+
"curator_phase",
|
|
711
|
+
"skill_improver",
|
|
712
|
+
"spec_writer",
|
|
713
|
+
"reviewer",
|
|
714
|
+
"critic_finding_validator",
|
|
715
|
+
"critic",
|
|
716
|
+
"coder",
|
|
717
|
+
"test_engineer"
|
|
718
|
+
]
|
|
719
|
+
},
|
|
720
|
+
knowledge_archive: {
|
|
721
|
+
description: "archive (default), quarantine, or purge a swarm or hive knowledge entry by ID with an immutable audit tombstone; purge requires an admin flag",
|
|
722
|
+
agents: ["architect"]
|
|
723
|
+
},
|
|
724
|
+
swarm_memory_recall: {
|
|
725
|
+
description: "recall scoped Swarm memory for the current repository as untrusted background",
|
|
726
|
+
agents: []
|
|
727
|
+
},
|
|
728
|
+
swarm_memory_propose: {
|
|
729
|
+
description: "create a pending Swarm memory proposal; does not write durable memory directly",
|
|
730
|
+
agents: []
|
|
731
|
+
},
|
|
732
|
+
swarm_command: {
|
|
733
|
+
description: "run supported /swarm commands through the canonical command registry",
|
|
734
|
+
agents: [
|
|
735
|
+
"architect",
|
|
736
|
+
"sme",
|
|
737
|
+
"researcher",
|
|
738
|
+
"docs",
|
|
739
|
+
"docs_design",
|
|
740
|
+
"designer",
|
|
741
|
+
"reviewer",
|
|
742
|
+
"critic_finding_validator",
|
|
743
|
+
"critic",
|
|
744
|
+
"explorer",
|
|
745
|
+
"coder",
|
|
746
|
+
"test_engineer"
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
dispatch_lanes: {
|
|
750
|
+
description: "dispatch read-only exploration/review lanes concurrently and BLOCK until all finish; prefer dispatch_lanes_async for non-blocking dispatch, use this only when promptAsync is unavailable",
|
|
751
|
+
agents: ["architect"]
|
|
752
|
+
},
|
|
753
|
+
dispatch_lanes_async: {
|
|
754
|
+
description: "launch read-only advisory lanes non-blockingly and return a batch id plus lane session handles immediately so you can keep working; launch_timeout_ms is only a promptAsync acceptance budget, not a lane runtime timeout; poll incrementally with collect_lane_results (wait omitted or false) while doing independent investigation, or join with wait: true when you need all results",
|
|
755
|
+
agents: ["architect"]
|
|
756
|
+
},
|
|
757
|
+
collect_lane_results: {
|
|
758
|
+
description: "collect or poll results for a dispatch_lanes_async batch; supports both non-blocking polling (wait omitted or false) and blocking join (wait: true). Non-blocking polls include pending lane identities by default and process settled lanes incrementally while continuing independent work; busy/retry lanes are not timed out just because they run for a long time. Does not advance workflow gates. Inline output for a settled lane is delivered only once: later polls of the same lane set output_omitted_repeat: true and omit output, but still include output_ref for recovery via retrieve_lane_output.",
|
|
759
|
+
agents: ["architect"]
|
|
760
|
+
},
|
|
761
|
+
summarize_work: {
|
|
762
|
+
description: "emit a short structured summary of completed work (key decisions, assumptions, risks, constraints) at task completion; rolls up per phase for architecture-supervisor review. Advisory, never blocks.",
|
|
763
|
+
agents: [
|
|
764
|
+
"architect",
|
|
765
|
+
"sme",
|
|
766
|
+
"researcher",
|
|
767
|
+
"docs",
|
|
768
|
+
"docs_design",
|
|
769
|
+
"designer",
|
|
770
|
+
"explorer",
|
|
771
|
+
"coder",
|
|
772
|
+
"test_engineer"
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
write_architecture_supervisor_evidence: {
|
|
776
|
+
description: "persist the architecture supervisor verdict for a phase (architect MUST dispatch critic_architecture_supervisor first and collect its JSON verdict; this tool persists only, it does not contact the supervisor)",
|
|
777
|
+
agents: ["architect"]
|
|
778
|
+
},
|
|
779
|
+
lean_turbo_plan_lanes: {
|
|
780
|
+
description: "partition phase tasks into parallel lanes based on file-scope conflicts for Lean Turbo execution",
|
|
781
|
+
agents: []
|
|
782
|
+
},
|
|
783
|
+
lean_turbo_acquire_locks: {
|
|
784
|
+
description: "acquire file locks for all files in a lane (all-or-nothing) before lane execution",
|
|
785
|
+
agents: []
|
|
786
|
+
},
|
|
787
|
+
lean_turbo_runner_status: {
|
|
788
|
+
description: "read Lean Turbo run state from .swarm/turbo-state.json",
|
|
789
|
+
agents: []
|
|
790
|
+
},
|
|
791
|
+
lean_turbo_review: {
|
|
792
|
+
description: "dispatch a read-only reviewer agent to evaluate a completed Lean Turbo phase",
|
|
793
|
+
agents: []
|
|
794
|
+
},
|
|
795
|
+
lean_turbo_run_phase: {
|
|
796
|
+
description: "Execute a phase using Lean Turbo parallel lane execution. Plans lanes, acquires file locks, and dispatches coder agents concurrently. Use when Lean Turbo is active and you want to execute all tasks in a phase in parallel lanes.",
|
|
797
|
+
agents: []
|
|
798
|
+
},
|
|
799
|
+
lean_turbo_status: {
|
|
800
|
+
description: "returns Lean Turbo configuration and active status for the current session",
|
|
801
|
+
agents: []
|
|
802
|
+
},
|
|
803
|
+
swarm_apply_patch: {
|
|
804
|
+
description: "Apply a unified diff patch to workspace files with exact context matching, atomic writes, and path validation. Use standard unified diff format only \u2014 does NOT support *** Begin Patch / *** Update File payloads (use native apply_patch for those).",
|
|
805
|
+
agents: ["coder", "test_engineer"]
|
|
806
|
+
},
|
|
807
|
+
external_skill_discover: {
|
|
808
|
+
description: "Discover external skill candidates from configured sources. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
809
|
+
agents: []
|
|
810
|
+
},
|
|
811
|
+
external_skill_list: {
|
|
812
|
+
description: "List external skill candidates in the quarantine store. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
813
|
+
agents: []
|
|
814
|
+
},
|
|
815
|
+
external_skill_inspect: {
|
|
816
|
+
description: "Inspect a specific external skill candidate by ID. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
817
|
+
agents: []
|
|
818
|
+
},
|
|
819
|
+
external_skill_promote: {
|
|
820
|
+
description: "Promote a validated external skill candidate to an active generated skill. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
821
|
+
agents: []
|
|
822
|
+
},
|
|
823
|
+
external_skill_reject: {
|
|
824
|
+
description: "Reject an external skill candidate after evaluation. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
825
|
+
agents: []
|
|
826
|
+
},
|
|
827
|
+
external_skill_delete: {
|
|
828
|
+
description: "Delete an external skill candidate from the quarantine store. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
829
|
+
agents: []
|
|
830
|
+
},
|
|
831
|
+
external_skill_revoke: {
|
|
832
|
+
description: "Revoke a previously promoted external skill. Returns a disabled message when external_skills.curation_enabled is false.",
|
|
833
|
+
agents: []
|
|
834
|
+
},
|
|
835
|
+
epic_decide_phase: {
|
|
836
|
+
description: "Compute the Epic Mode verdict for a phase WITHOUT dispatching coders. Runs preflight + calibration + the three gates (p-threshold, hot-module, greenfield), persists the decision, and returns the verdict so the architect can dispatch waves via the visible Task tool (promote) or fall back to per-task serial (demote). Pair with `epic_plan_waves` to get the wave plan when promoted. Use when /swarm epic is on for the session.",
|
|
837
|
+
agents: ["architect"]
|
|
838
|
+
},
|
|
839
|
+
epic_plan_waves: {
|
|
840
|
+
description: "Partition a phase's pending tasks into ordered concurrent waves for Epic Mode dispatch. " + "A wave is a set of tasks with mutually disjoint declared scopes and all dependencies satisfied by prior waves. " + "Returns `{ waves: [{ waveId, taskIds, files }, ...], serializedTasks, degradedTasks }`. " + 'For each wave in order, the architect dispatches one `Task(subagent_type="coder", ...)` per `taskId` \u2014 all in one assistant message \u2014 so the wave runs concurrently and each coder appears as a visible subagent. ' + "Wait for the wave to finish before dispatching the next. " + "Pair with `epic_decide_phase` (called first; this tool is only relevant on a `promote` verdict). " + "Preflight reject reasons: `no-plan`, `no-phase`, `phase-empty`, `phase-already-complete`, `scopes-missing` (call `declare_scope` for `missingScopes`), `git-failed` (transient \u2014 retry), `planner-error`.",
|
|
841
|
+
agents: ["architect"]
|
|
842
|
+
},
|
|
843
|
+
epic_record_divergence: {
|
|
844
|
+
description: "After every `update_task_status(completed)`, record the task's declared-vs-actual divergence to .swarm/epic/divergence.jsonl. Feeds Epic Mode's self-calibration loop (Capability D). Best-effort: never blocks.",
|
|
845
|
+
agents: ["architect"]
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
TOOL_NAMES = Object.keys(TOOL_METADATA);
|
|
849
|
+
TOOL_NAME_SET = new Set(TOOL_NAMES);
|
|
850
|
+
TOOL_DESCRIPTIONS = Object.fromEntries(Object.entries(TOOL_METADATA).map(([name, meta]) => [
|
|
851
|
+
name,
|
|
852
|
+
meta.description
|
|
853
|
+
]));
|
|
854
|
+
AGENT_TOOL_MAP = (() => {
|
|
855
|
+
const map = Object.fromEntries(ALL_AGENT_NAMES.map((agent) => [agent, []]));
|
|
856
|
+
for (const [name, meta] of Object.entries(TOOL_METADATA)) {
|
|
857
|
+
for (const agent of meta.agents) {
|
|
858
|
+
map[agent].push(name);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
return map;
|
|
862
|
+
})();
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
// src/config/constants.ts
|
|
866
|
+
function freezeSet(items) {
|
|
867
|
+
const set = new Set(items);
|
|
868
|
+
const proxy = new Proxy(set, {
|
|
869
|
+
get(target, prop) {
|
|
870
|
+
if (prop === "add" || prop === "delete" || prop === "clear") {
|
|
871
|
+
return () => {
|
|
872
|
+
throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
if (prop === "forEach") {
|
|
876
|
+
return (callback, thisArg) => {
|
|
877
|
+
const wrapped = (v, k) => callback.call(thisArg ?? undefined, v, k, proxy);
|
|
878
|
+
return set.forEach(wrapped);
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
const value = Reflect.get(target, prop);
|
|
882
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
883
|
+
},
|
|
884
|
+
set() {
|
|
885
|
+
throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
|
|
886
|
+
},
|
|
887
|
+
deleteProperty() {
|
|
888
|
+
throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
|
|
889
|
+
},
|
|
890
|
+
defineProperty() {
|
|
891
|
+
throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
|
|
892
|
+
},
|
|
893
|
+
setPrototypeOf() {
|
|
894
|
+
throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
return proxy;
|
|
898
|
+
}
|
|
899
|
+
function isQAAgent(name) {
|
|
900
|
+
return QA_AGENTS.includes(name);
|
|
901
|
+
}
|
|
902
|
+
function isSubagent(name) {
|
|
903
|
+
return ALL_SUBAGENT_NAMES.includes(name);
|
|
904
|
+
}
|
|
905
|
+
var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
|
|
906
|
+
var init_constants = __esm(() => {
|
|
907
|
+
init_agent_names();
|
|
908
|
+
init_tool_metadata();
|
|
909
|
+
init_agent_names();
|
|
910
|
+
init_merge();
|
|
911
|
+
OPENCODE_NATIVE_AGENTS = new Set([
|
|
912
|
+
"build",
|
|
913
|
+
"plan",
|
|
914
|
+
"general",
|
|
915
|
+
"explore",
|
|
916
|
+
"compaction",
|
|
917
|
+
"title",
|
|
918
|
+
"summary"
|
|
919
|
+
]);
|
|
920
|
+
CLAUDE_CODE_NATIVE_COMMANDS = freezeSet([
|
|
921
|
+
"clear",
|
|
922
|
+
"new",
|
|
923
|
+
"reset",
|
|
924
|
+
"resume",
|
|
925
|
+
"continue",
|
|
926
|
+
"exit",
|
|
927
|
+
"quit",
|
|
928
|
+
"compact",
|
|
929
|
+
"fork",
|
|
930
|
+
"branch",
|
|
931
|
+
"undo",
|
|
932
|
+
"checkpoint",
|
|
933
|
+
"rewind",
|
|
934
|
+
"rename",
|
|
935
|
+
"doctor",
|
|
936
|
+
"help",
|
|
937
|
+
"status",
|
|
938
|
+
"statusline",
|
|
939
|
+
"cost",
|
|
940
|
+
"usage",
|
|
941
|
+
"stats",
|
|
942
|
+
"context",
|
|
943
|
+
"debug",
|
|
944
|
+
"insights",
|
|
945
|
+
"recap",
|
|
946
|
+
"release-notes",
|
|
947
|
+
"heapdump",
|
|
948
|
+
"powerup",
|
|
949
|
+
"config",
|
|
950
|
+
"settings",
|
|
951
|
+
"model",
|
|
952
|
+
"effort",
|
|
953
|
+
"fast",
|
|
954
|
+
"theme",
|
|
955
|
+
"color",
|
|
956
|
+
"keybindings",
|
|
957
|
+
"privacy-settings",
|
|
958
|
+
"init",
|
|
959
|
+
"focus",
|
|
960
|
+
"sandbox",
|
|
961
|
+
"terminal-setup",
|
|
962
|
+
"permissions",
|
|
963
|
+
"allowed-tools",
|
|
964
|
+
"security-review",
|
|
965
|
+
"fewer-permission-prompts",
|
|
966
|
+
"plugin",
|
|
967
|
+
"reload-plugins",
|
|
968
|
+
"hooks",
|
|
969
|
+
"mcp",
|
|
970
|
+
"ide",
|
|
971
|
+
"chrome",
|
|
972
|
+
"desktop",
|
|
973
|
+
"app",
|
|
974
|
+
"mobile",
|
|
975
|
+
"ios",
|
|
976
|
+
"android",
|
|
977
|
+
"remote-control",
|
|
978
|
+
"rc",
|
|
979
|
+
"remote-env",
|
|
980
|
+
"login",
|
|
981
|
+
"logout",
|
|
982
|
+
"review",
|
|
983
|
+
"pr-comments",
|
|
984
|
+
"agents",
|
|
985
|
+
"batch",
|
|
986
|
+
"loop",
|
|
987
|
+
"proactive",
|
|
988
|
+
"claude-api",
|
|
989
|
+
"schedule",
|
|
990
|
+
"routines",
|
|
991
|
+
"autofix-pr",
|
|
992
|
+
"plan",
|
|
993
|
+
"diff",
|
|
994
|
+
"export",
|
|
995
|
+
"copy",
|
|
996
|
+
"feedback",
|
|
997
|
+
"bug",
|
|
998
|
+
"btw",
|
|
999
|
+
"add-dir",
|
|
1000
|
+
"memory",
|
|
1001
|
+
"skills",
|
|
1002
|
+
"upgrade",
|
|
1003
|
+
"vim",
|
|
1004
|
+
"voice",
|
|
1005
|
+
"extra-usage",
|
|
1006
|
+
"install-github-app",
|
|
1007
|
+
"install-slack-app",
|
|
1008
|
+
"passes",
|
|
1009
|
+
"setup-bedrock",
|
|
1010
|
+
"install",
|
|
1011
|
+
"tasks",
|
|
1012
|
+
"history",
|
|
1013
|
+
"term",
|
|
1014
|
+
"teleport",
|
|
1015
|
+
"ultrareview",
|
|
1016
|
+
"ultraplan",
|
|
1017
|
+
"web-setup",
|
|
1018
|
+
"setup-vertex",
|
|
1019
|
+
"tui",
|
|
1020
|
+
"simplify",
|
|
1021
|
+
"summary",
|
|
1022
|
+
"stickers",
|
|
1023
|
+
"tp",
|
|
1024
|
+
"team-onboarding",
|
|
1025
|
+
"bashes"
|
|
1026
|
+
]);
|
|
1027
|
+
EXTERNAL_SKILL_TOOL_NAMES = [
|
|
1028
|
+
"external_skill_discover",
|
|
1029
|
+
"external_skill_list",
|
|
1030
|
+
"external_skill_inspect",
|
|
1031
|
+
"external_skill_promote",
|
|
1032
|
+
"external_skill_reject",
|
|
1033
|
+
"external_skill_delete",
|
|
1034
|
+
"external_skill_revoke"
|
|
1035
|
+
];
|
|
1036
|
+
EXTERNAL_SKILL_AGENT_TOOL_MAP = {
|
|
1037
|
+
architect: [...EXTERNAL_SKILL_TOOL_NAMES]
|
|
1038
|
+
};
|
|
1039
|
+
COUNCIL_TOOL_NAMES = [
|
|
1040
|
+
"submit_council_verdicts",
|
|
1041
|
+
"submit_phase_council_verdicts",
|
|
1042
|
+
"declare_council_criteria",
|
|
1043
|
+
"write_final_council_evidence"
|
|
1044
|
+
];
|
|
1045
|
+
COUNCIL_AGENT_TOOL_MAP = {
|
|
1046
|
+
architect: [...COUNCIL_TOOL_NAMES]
|
|
1047
|
+
};
|
|
1048
|
+
GENERAL_COUNCIL_TOOL_NAMES = [
|
|
1049
|
+
"convene_general_council",
|
|
1050
|
+
"web_search",
|
|
1051
|
+
"web_fetch"
|
|
1052
|
+
];
|
|
1053
|
+
GENERAL_COUNCIL_AGENT_TOOL_MAP = {
|
|
1054
|
+
architect: [...GENERAL_COUNCIL_TOOL_NAMES]
|
|
1055
|
+
};
|
|
1056
|
+
TURBO_TOOL_NAMES = [
|
|
1057
|
+
"lean_turbo_plan_lanes",
|
|
1058
|
+
"lean_turbo_acquire_locks",
|
|
1059
|
+
"lean_turbo_runner_status",
|
|
1060
|
+
"lean_turbo_review",
|
|
1061
|
+
"lean_turbo_run_phase",
|
|
1062
|
+
"lean_turbo_status"
|
|
1063
|
+
];
|
|
1064
|
+
TURBO_AGENT_TOOL_MAP = {
|
|
1065
|
+
architect: [...TURBO_TOOL_NAMES]
|
|
1066
|
+
};
|
|
1067
|
+
SKILL_TOOL_NAMES = [
|
|
1068
|
+
"skill_generate",
|
|
1069
|
+
"skill_list",
|
|
1070
|
+
"skill_apply",
|
|
1071
|
+
"skill_inspect",
|
|
1072
|
+
"skill_regenerate",
|
|
1073
|
+
"skill_retire",
|
|
1074
|
+
"skill_improve"
|
|
1075
|
+
];
|
|
1076
|
+
SKILL_AGENT_TOOL_MAP = {
|
|
1077
|
+
architect: [...SKILL_TOOL_NAMES]
|
|
1078
|
+
};
|
|
1079
|
+
SUMMARIZER_EXEMPT_TOOL_NAMES = [
|
|
1080
|
+
"retrieve_summary",
|
|
1081
|
+
"retrieve_lane_output",
|
|
1082
|
+
"task",
|
|
1083
|
+
"read",
|
|
1084
|
+
"dispatch_lanes",
|
|
1085
|
+
"dispatch_lanes_async",
|
|
1086
|
+
"collect_lane_results",
|
|
1087
|
+
"parse_lane_candidates"
|
|
1088
|
+
];
|
|
1089
|
+
DEFAULT_MODELS = {
|
|
1090
|
+
explorer: "opencode/big-pickle",
|
|
1091
|
+
coder: "opencode/minimax-m2.5-free",
|
|
1092
|
+
reviewer: "opencode/big-pickle",
|
|
1093
|
+
test_engineer: "opencode/gpt-5-nano",
|
|
1094
|
+
sme: "opencode/big-pickle",
|
|
1095
|
+
researcher: "opencode/big-pickle",
|
|
1096
|
+
critic: "opencode/big-pickle",
|
|
1097
|
+
critic_sounding_board: "opencode/gpt-5-nano",
|
|
1098
|
+
critic_drift_verifier: "opencode/gpt-5-nano",
|
|
1099
|
+
critic_hallucination_verifier: "opencode/gpt-5-nano",
|
|
1100
|
+
critic_oversight: "opencode/gpt-5-nano",
|
|
1101
|
+
critic_architecture_supervisor: "opencode/big-pickle",
|
|
1102
|
+
critic_finding_validator: "opencode/big-pickle",
|
|
1103
|
+
docs: "opencode/big-pickle",
|
|
1104
|
+
docs_design: "opencode/big-pickle",
|
|
1105
|
+
designer: "opencode/big-pickle",
|
|
1106
|
+
curator_init: "opencode/gpt-5-nano",
|
|
1107
|
+
curator_phase: "opencode/gpt-5-nano",
|
|
1108
|
+
curator_postmortem: "opencode/gpt-5-nano",
|
|
1109
|
+
curator_consolidation: "opencode/gpt-5-nano",
|
|
1110
|
+
skill_improver: "opencode/big-pickle",
|
|
1111
|
+
spec_writer: "opencode/big-pickle",
|
|
1112
|
+
default: "opencode/big-pickle"
|
|
1113
|
+
};
|
|
1114
|
+
DEFAULT_AGENT_CONFIGS = {
|
|
1115
|
+
coder: {
|
|
1116
|
+
model: "opencode/minimax-m2.5-free",
|
|
1117
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1118
|
+
},
|
|
1119
|
+
reviewer: {
|
|
1120
|
+
model: "opencode/big-pickle",
|
|
1121
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1122
|
+
},
|
|
1123
|
+
test_engineer: {
|
|
1124
|
+
model: "opencode/gpt-5-nano",
|
|
1125
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1126
|
+
},
|
|
1127
|
+
explorer: {
|
|
1128
|
+
model: "opencode/big-pickle",
|
|
1129
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1130
|
+
},
|
|
1131
|
+
sme: {
|
|
1132
|
+
model: "opencode/big-pickle",
|
|
1133
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1134
|
+
},
|
|
1135
|
+
researcher: {
|
|
1136
|
+
model: "opencode/big-pickle",
|
|
1137
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1138
|
+
},
|
|
1139
|
+
critic: {
|
|
1140
|
+
model: "opencode/big-pickle",
|
|
1141
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1142
|
+
},
|
|
1143
|
+
docs: {
|
|
1144
|
+
model: "opencode/big-pickle",
|
|
1145
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1146
|
+
},
|
|
1147
|
+
docs_design: {
|
|
1148
|
+
model: "opencode/big-pickle",
|
|
1149
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1150
|
+
},
|
|
1151
|
+
designer: {
|
|
1152
|
+
model: "opencode/big-pickle",
|
|
1153
|
+
fallback_models: ["opencode/gpt-5-nano", "opencode/big-pickle"]
|
|
1154
|
+
},
|
|
1155
|
+
critic_sounding_board: {
|
|
1156
|
+
model: "opencode/gpt-5-nano",
|
|
1157
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1158
|
+
},
|
|
1159
|
+
critic_drift_verifier: {
|
|
1160
|
+
model: "opencode/gpt-5-nano",
|
|
1161
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1162
|
+
},
|
|
1163
|
+
critic_hallucination_verifier: {
|
|
1164
|
+
model: "opencode/gpt-5-nano",
|
|
1165
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1166
|
+
},
|
|
1167
|
+
critic_oversight: {
|
|
1168
|
+
model: "opencode/gpt-5-nano",
|
|
1169
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1170
|
+
},
|
|
1171
|
+
critic_architecture_supervisor: {
|
|
1172
|
+
model: "opencode/big-pickle",
|
|
1173
|
+
fallback_models: ["opencode/gpt-5-nano"]
|
|
1174
|
+
},
|
|
1175
|
+
critic_finding_validator: {
|
|
1176
|
+
model: "opencode/big-pickle",
|
|
1177
|
+
fallback_models: ["opencode/gpt-5-nano"]
|
|
1178
|
+
},
|
|
1179
|
+
curator_init: {
|
|
1180
|
+
model: "opencode/gpt-5-nano",
|
|
1181
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1182
|
+
},
|
|
1183
|
+
curator_phase: {
|
|
1184
|
+
model: "opencode/gpt-5-nano",
|
|
1185
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1186
|
+
},
|
|
1187
|
+
curator_postmortem: {
|
|
1188
|
+
model: "opencode/gpt-5-nano",
|
|
1189
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1190
|
+
},
|
|
1191
|
+
curator_consolidation: {
|
|
1192
|
+
model: "opencode/gpt-5-nano",
|
|
1193
|
+
fallback_models: ["opencode/big-pickle"]
|
|
1194
|
+
},
|
|
1195
|
+
skill_improver: {
|
|
1196
|
+
model: "opencode/big-pickle",
|
|
1197
|
+
fallback_models: ["opencode/gpt-5-nano"]
|
|
1198
|
+
},
|
|
1199
|
+
spec_writer: {
|
|
1200
|
+
model: "opencode/big-pickle",
|
|
1201
|
+
fallback_models: ["opencode/gpt-5-nano"]
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
DEFAULT_WORKTREE_ISOLATION_CONFIG = {
|
|
1205
|
+
policy: "auto",
|
|
1206
|
+
merge_strategy: "merge",
|
|
1207
|
+
worktree_dir: undefined,
|
|
1208
|
+
deps_strategy: "skip",
|
|
1209
|
+
lane_permissions: "scoped_allow",
|
|
1210
|
+
serialization_release_after_dispatches: 5,
|
|
1211
|
+
serialization_release_after_ms: 60000,
|
|
1212
|
+
runtime_isolation: {
|
|
1213
|
+
enabled: false,
|
|
1214
|
+
port_stride: 1
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
});
|
|
1218
|
+
|
|
1219
|
+
export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, init_agent_names, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, init_tool_metadata, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, SWARM_WORKTREE_DIR_NAME, DEFAULT_WORKTREE_ISOLATION_CONFIG, init_constants };
|