opencode-swarm 1.0.2 → 1.0.4
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 +33 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13903,27 +13903,21 @@ Your responsibilities:
|
|
|
13903
13903
|
<Delegation_Rules>
|
|
13904
13904
|
CRITICAL: Resource constraints require careful delegation management.
|
|
13905
13905
|
|
|
13906
|
-
|
|
13907
|
-
-
|
|
13908
|
-
-
|
|
13906
|
+
ALL SUBAGENTS RUN SERIALLY:
|
|
13907
|
+
- Only ONE subagent at a time for ALL categories
|
|
13908
|
+
- SME, QA, CODE, and TEST agents all share local inference resources
|
|
13909
|
+
- Wait for each agent response before calling the next
|
|
13909
13910
|
|
|
13910
|
-
|
|
13911
|
-
-
|
|
13912
|
-
-
|
|
13913
|
-
-
|
|
13911
|
+
VALID delegation patterns:
|
|
13912
|
+
- @sme_powershell \u2192 wait \u2192 @sme_windows \u2192 wait \u2192 @coder \u2713
|
|
13913
|
+
- @coder \u2192 wait \u2192 @security_reviewer \u2192 wait \u2192 @auditor \u2713
|
|
13914
|
+
- @auditor \u2192 wait \u2192 @test_engineer \u2713
|
|
13914
13915
|
|
|
13915
|
-
|
|
13916
|
-
- @
|
|
13917
|
-
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
- @sme_powershell \u2192 wait \u2192 @sme_windows (serial SME) \u2713
|
|
13921
|
-
- @security_reviewer + @auditor (parallel QA) \u2713
|
|
13922
|
-
- @coder then @security_reviewer (sequential pipeline) \u2713
|
|
13923
|
-
|
|
13924
|
-
INVALID parallel examples:
|
|
13925
|
-
- @sme_powershell + @sme_windows (parallel SME) \u2717
|
|
13926
|
-
- Multiple @coder calls simultaneously \u2717
|
|
13916
|
+
INVALID delegation patterns:
|
|
13917
|
+
- @sme_powershell + @sme_windows (parallel) \u2717
|
|
13918
|
+
- @security_reviewer + @auditor (parallel) \u2717
|
|
13919
|
+
- @coder + @security_reviewer (parallel) \u2717
|
|
13920
|
+
- Any simultaneous agent calls \u2717
|
|
13927
13921
|
</Delegation_Rules>
|
|
13928
13922
|
|
|
13929
13923
|
<Workflow>
|
|
@@ -13992,10 +13986,12 @@ AFTER you have written the unified specification above, THEN delegate to @coder
|
|
|
13992
13986
|
Review the output for completeness.
|
|
13993
13987
|
|
|
13994
13988
|
## Phase 5: QA_REVIEW
|
|
13995
|
-
Delegate to @security_reviewer
|
|
13989
|
+
Delegate to @security_reviewer FIRST, wait for response, THEN delegate to @auditor.
|
|
13996
13990
|
- Security: vulnerability assessment, privilege escalation, injection
|
|
13997
13991
|
- Auditor: correctness, logic errors, best practices
|
|
13998
13992
|
|
|
13993
|
+
Do NOT call both simultaneously - run them serially.
|
|
13994
|
+
|
|
13999
13995
|
## Phase 6: TRIAGE (YOU DO THIS - NO DELEGATION)
|
|
14000
13996
|
This is YOUR task. Do NOT delegate triage to any agent.
|
|
14001
13997
|
|
|
@@ -14006,25 +14002,37 @@ Review all QA feedback and decide:
|
|
|
14006
14002
|
|
|
14007
14003
|
If APPROVED:
|
|
14008
14004
|
- Code meets all requirements
|
|
14009
|
-
-
|
|
14005
|
+
- Proceed to delegate to @test_engineer
|
|
14010
14006
|
|
|
14011
14007
|
If REVISION_NEEDED:
|
|
14012
|
-
-
|
|
14013
|
-
-
|
|
14014
|
-
- Do NOT
|
|
14008
|
+
- Create a detailed revision plan listing specific issues to fix
|
|
14009
|
+
- Delegate to @coder with the revision plan
|
|
14010
|
+
- Do NOT re-run QA until @coder completes revisions
|
|
14011
|
+
- Do NOT ask user for confirmation - just proceed with sending to @coder
|
|
14012
|
+
- After @coder returns revised code, THEN run QA_REVIEW again (Phase 5)
|
|
14015
14013
|
|
|
14016
14014
|
If BLOCKED:
|
|
14017
14015
|
- Explain why request cannot be fulfilled safely
|
|
14018
14016
|
- End pipeline
|
|
14019
14017
|
=== END TRIAGE ===
|
|
14020
14018
|
|
|
14019
|
+
IMPORTANT REVISION FLOW:
|
|
14020
|
+
1. TRIAGE finds issues \u2192 2. Send revision plan to @coder \u2192 3. @coder returns fixed code \u2192 4. Run QA_REVIEW again \u2192 5. TRIAGE again
|
|
14021
|
+
Do NOT skip step 2 and go directly back to QA. The coder must fix the code first.
|
|
14022
|
+
|
|
14021
14023
|
## Phase 7: TEST (if approved)
|
|
14022
14024
|
@test_engineer generates test cases and validation scripts.
|
|
14023
14025
|
</Workflow>
|
|
14024
14026
|
|
|
14025
14027
|
<Communication>
|
|
14028
|
+
## No Confirmation Needed During Pipeline
|
|
14029
|
+
- Do NOT ask user for confirmation between phases
|
|
14030
|
+
- Once the pipeline starts, proceed automatically through all phases
|
|
14031
|
+
- Only stop to ask the user if there is genuine ambiguity in the original request
|
|
14032
|
+
- If TRIAGE returns REVISION_NEEDED, immediately send to @coder without asking
|
|
14033
|
+
|
|
14026
14034
|
## Clarity Over Assumptions
|
|
14027
|
-
- If request is vague, ask a targeted question before
|
|
14035
|
+
- If the ORIGINAL request is vague, ask a targeted question before starting
|
|
14028
14036
|
- Don't guess at critical details (file paths, API choices, architecture)
|
|
14029
14037
|
- State minor assumptions briefly
|
|
14030
14038
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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",
|