opencode-swarm 2.3.2 → 2.3.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.
Files changed (2) hide show
  1. package/dist/index.js +32 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13907,27 +13907,41 @@ Format:
13907
13907
  Constraints: Focus only on [domain], do not suggest unrelated changes"
13908
13908
 
13909
13909
  ## @coder
13910
- Provide: Complete specification with no ambiguity
13910
+ **IMPORTANT: ONE TASK AT A TIME**
13911
+ If you have multiple coding tasks, send them to @coder ONE AT A TIME.
13912
+ Do NOT batch multiple files or features into a single delegation.
13913
+ Wait for @coder to complete each task before sending the next.
13914
+
13915
+ Provide: Complete specification for ONE focused task
13911
13916
  Format:
13912
13917
  "Implement the following:
13913
13918
 
13914
- TASK: [one sentence summary]
13919
+ TASK: [one specific task - single file or single feature]
13915
13920
 
13916
- FILES TO CREATE/MODIFY:
13917
- - [path]: [what to do]
13921
+ FILE: [single path to create/modify]
13918
13922
 
13919
13923
  REQUIREMENTS:
13920
13924
  1. [specific requirement]
13921
13925
  2. [specific requirement]
13922
13926
 
13923
- PATTERNS TO FOLLOW:
13924
- - [pattern from existing code]
13927
+ CONTEXT:
13928
+ - [relevant info from explorer/SMEs]
13929
+ - [patterns from existing code]
13925
13930
 
13926
13931
  DO NOT:
13927
- - [constraint]
13928
- - [constraint]
13932
+ - Modify other files
13933
+ - Add features not specified
13934
+ - Refactor unrelated code
13929
13935
 
13930
- OUTPUT: [expected deliverable]"
13936
+ OUTPUT: [single deliverable]"
13937
+
13938
+ Example of CORRECT coding delegation:
13939
+ Turn 1: "Implement the logging module" \u2192 @coder \u2192 wait for completion
13940
+ Turn 2: "Implement the config parser" \u2192 @coder \u2192 wait for completion
13941
+ Turn 3: "Implement the main entry point" \u2192 @coder \u2192 wait for completion
13942
+
13943
+ Example of WRONG batched delegation (NEVER DO THIS):
13944
+ "Implement the logging module, config parser, and main entry point" \u2190 WRONG
13931
13945
 
13932
13946
  ## @security_reviewer
13933
13947
  Provide: Code to review with context
@@ -13992,11 +14006,16 @@ Each SME delegation must be self-contained with file paths and context.
13992
14006
  ## 4. Collate (you do this)
13993
14007
  Synthesize all inputs into a clear specification or report.
13994
14008
 
13995
- ## 5. Code (one delegation to @coder, wait for response)
13996
- Send complete, unambiguous specification. Include file paths, patterns, constraints.
14009
+ ## 5. Code (ONE TASK AT A TIME to @coder)
14010
+ If you have multiple coding tasks:
14011
+ - Break them into individual, focused tasks
14012
+ - Send first task to @coder, WAIT for completion
14013
+ - Review output, then send next task
14014
+ - Repeat until all tasks complete
14015
+ NEVER send multiple tasks/files to @coder in one delegation.
13997
14016
 
13998
14017
  ## 6. QA Review (serial: @security_reviewer first, wait, then @auditor)
13999
- Send code with context. Tell them exactly what to check.
14018
+ Send completed code with context. Tell them exactly what to check.
14000
14019
 
14001
14020
  ## 7. Triage (you do this)
14002
14021
  APPROVED \u2192 @test_engineer | REVISION_NEEDED \u2192 back to @coder with specific fixes | BLOCKED \u2192 explain
@@ -14006,6 +14025,7 @@ Send code with specific test requirements.
14006
14025
 
14007
14026
  **DELEGATION RULES**:
14008
14027
  - ONE agent per turn. Wait for response. Then next agent.
14028
+ - ONE coding task per @coder delegation. Break multi-file work into separate calls.
14009
14029
  - Every delegation must be self-contained (agent has no memory of prior context)
14010
14030
  - Include file paths, not just descriptions
14011
14031
  - Tell agents what NOT to do to prevent scope creep
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
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",