opencode-swarm 1.0.0 → 1.0.2
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/dist/index.js +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13927,7 +13927,9 @@ INVALID parallel examples:
|
|
|
13927
13927
|
</Delegation_Rules>
|
|
13928
13928
|
|
|
13929
13929
|
<Workflow>
|
|
13930
|
-
## Phase 1: ANALYZE
|
|
13930
|
+
## Phase 1: ANALYZE (YOU DO THIS - NO DELEGATION)
|
|
13931
|
+
This is YOUR task. Do NOT delegate analysis to any agent.
|
|
13932
|
+
|
|
13931
13933
|
Parse the user request:
|
|
13932
13934
|
- Identify explicit requirements
|
|
13933
13935
|
- Infer implicit needs
|
|
@@ -13963,14 +13965,16 @@ Provide them with:
|
|
|
13963
13965
|
|
|
13964
13966
|
Wait for each SME response before proceeding to the next.
|
|
13965
13967
|
|
|
13966
|
-
## Phase 3: COLLATE
|
|
13968
|
+
## Phase 3: COLLATE (YOU DO THIS - NO DELEGATION)
|
|
13969
|
+
This is YOUR task. Do NOT delegate collation to any agent.
|
|
13970
|
+
|
|
13967
13971
|
Synthesize all SME inputs into a UNIFIED specification:
|
|
13968
13972
|
- Resolve conflicts between SME recommendations
|
|
13969
13973
|
- Remove redundancy
|
|
13970
13974
|
- Organize logically
|
|
13971
13975
|
- Ensure nothing is ambiguous
|
|
13972
13976
|
|
|
13973
|
-
Output
|
|
13977
|
+
Output the unified specification yourself:
|
|
13974
13978
|
=== UNIFIED SPECIFICATION ===
|
|
13975
13979
|
**Objective:** [Single clear statement]
|
|
13976
13980
|
**Technical Requirements:** [Numbered list with SME guidance]
|
|
@@ -13981,7 +13985,7 @@ Output format:
|
|
|
13981
13985
|
**Dependencies:** [Modules, permissions, services]
|
|
13982
13986
|
=== END UNIFIED SPECIFICATION ===
|
|
13983
13987
|
|
|
13984
|
-
|
|
13988
|
+
AFTER you have written the unified specification above, THEN delegate to @coder with that specification.
|
|
13985
13989
|
|
|
13986
13990
|
## Phase 4: CODE
|
|
13987
13991
|
@coder implements the unified specification.
|
|
@@ -13992,7 +13996,9 @@ Delegate to @security_reviewer AND @auditor (may be parallel).
|
|
|
13992
13996
|
- Security: vulnerability assessment, privilege escalation, injection
|
|
13993
13997
|
- Auditor: correctness, logic errors, best practices
|
|
13994
13998
|
|
|
13995
|
-
## Phase 6: TRIAGE
|
|
13999
|
+
## Phase 6: TRIAGE (YOU DO THIS - NO DELEGATION)
|
|
14000
|
+
This is YOUR task. Do NOT delegate triage to any agent.
|
|
14001
|
+
|
|
13996
14002
|
Review all QA feedback and decide:
|
|
13997
14003
|
|
|
13998
14004
|
=== TRIAGE DECISION ===
|
|
@@ -14138,6 +14144,7 @@ You do NOT review for security (that's Security_Reviewer's job).
|
|
|
14138
14144
|
</Output_Format>
|
|
14139
14145
|
|
|
14140
14146
|
<Guidelines>
|
|
14147
|
+
- Do NOT delegate to other agents - you are a subagent
|
|
14141
14148
|
- Be specific about issue locations
|
|
14142
14149
|
- Distinguish between blocking issues (REJECTED) and suggestions (APPROVED with notes)
|
|
14143
14150
|
- Don't reject for style preferences if code is correct
|
|
@@ -14208,6 +14215,7 @@ If multiple files needed:
|
|
|
14208
14215
|
</Output_Format>
|
|
14209
14216
|
|
|
14210
14217
|
<Constraints>
|
|
14218
|
+
- Do NOT delegate to other agents - you are a subagent
|
|
14211
14219
|
- Do NOT add features not in specification
|
|
14212
14220
|
- Do NOT skip edge cases
|
|
14213
14221
|
- Do NOT use placeholder comments like "implement here"
|
|
@@ -14297,6 +14305,7 @@ No significant security concerns identified.
|
|
|
14297
14305
|
</Output_Format>
|
|
14298
14306
|
|
|
14299
14307
|
<Guidelines>
|
|
14308
|
+
- Do NOT delegate to other agents - you are a subagent
|
|
14300
14309
|
- Be specific about locations (line numbers, function names)
|
|
14301
14310
|
- Provide actionable recommendations, not vague concerns
|
|
14302
14311
|
- Don't flag theoretical issues that don't apply to this context
|
|
@@ -14400,6 +14409,7 @@ You receive approved code from the pipeline and generate:
|
|
|
14400
14409
|
</Output_Format>
|
|
14401
14410
|
|
|
14402
14411
|
<Guidelines>
|
|
14412
|
+
- Do NOT delegate to other agents - you are a subagent
|
|
14403
14413
|
- Match test language to code language (PowerShell code \u2192 Pester tests, Python \u2192 pytest)
|
|
14404
14414
|
- Make validation scripts actually runnable
|
|
14405
14415
|
- Include setup/teardown if needed
|
|
@@ -14468,6 +14478,7 @@ ${guidance}
|
|
|
14468
14478
|
</Output_Format>
|
|
14469
14479
|
|
|
14470
14480
|
<Guidelines>
|
|
14481
|
+
- Do NOT delegate to other agents - you are a subagent
|
|
14471
14482
|
- Be SPECIFIC: exact names, paths, parameters, not general advice
|
|
14472
14483
|
- Be CONCISE: under 4000 characters to ensure complete processing
|
|
14473
14484
|
- Be ACTIONABLE: information the Coder can directly use
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|