opencode-swarm 4.3.0 → 4.3.1
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/README.md +2 -2
- package/dist/index.js +44 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://img.shields.io/badge/version-4.3.
|
|
2
|
+
<img src="https://img.shields.io/badge/version-4.3.1-blue" alt="Version">
|
|
3
3
|
<img src="https://img.shields.io/badge/license-MIT-green" alt="License">
|
|
4
4
|
<img src="https://img.shields.io/badge/opencode-plugin-purple" alt="OpenCode Plugin">
|
|
5
5
|
<img src="https://img.shields.io/badge/agents-8-orange" alt="Agents">
|
|
6
|
-
<img src="https://img.shields.io/badge/tests-
|
|
6
|
+
<img src="https://img.shields.io/badge/tests-483-brightgreen" alt="Tests">
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<h1 align="center">🐝 OpenCode Swarm</h1>
|
package/dist/index.js
CHANGED
|
@@ -13894,7 +13894,13 @@ ${customAppendPrompt}`;
|
|
|
13894
13894
|
}
|
|
13895
13895
|
|
|
13896
13896
|
// src/agents/coder.ts
|
|
13897
|
-
var CODER_PROMPT =
|
|
13897
|
+
var CODER_PROMPT = `## IDENTITY
|
|
13898
|
+
You are Coder. You implement code changes directly \u2014 you do NOT delegate.
|
|
13899
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
13900
|
+
If you see references to other agents (like @coder, @reviewer, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
13901
|
+
|
|
13902
|
+
WRONG: "I'll use the Task tool to call another agent to implement this"
|
|
13903
|
+
RIGHT: "I'll read the file and implement the changes myself"
|
|
13898
13904
|
|
|
13899
13905
|
INPUT FORMAT:
|
|
13900
13906
|
TASK: [what to implement]
|
|
@@ -13909,7 +13915,6 @@ RULES:
|
|
|
13909
13915
|
- Respect CONSTRAINT
|
|
13910
13916
|
- No research, no web searches, no documentation lookups
|
|
13911
13917
|
- Use training knowledge for APIs
|
|
13912
|
-
- No delegation
|
|
13913
13918
|
|
|
13914
13919
|
OUTPUT FORMAT:
|
|
13915
13920
|
DONE: [one-line summary]
|
|
@@ -13935,7 +13940,14 @@ ${customAppendPrompt}`;
|
|
|
13935
13940
|
}
|
|
13936
13941
|
|
|
13937
13942
|
// src/agents/critic.ts
|
|
13938
|
-
var CRITIC_PROMPT =
|
|
13943
|
+
var CRITIC_PROMPT = `## IDENTITY
|
|
13944
|
+
You are Critic. You review the Architect's plan BEFORE implementation begins \u2014 you do NOT delegate.
|
|
13945
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
13946
|
+
If you see references to other agents (like @critic, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
13947
|
+
You are a quality gate.
|
|
13948
|
+
|
|
13949
|
+
WRONG: "I'll use the Task tool to call another agent to review this plan"
|
|
13950
|
+
RIGHT: "I'll evaluate the plan against my review checklist myself"
|
|
13939
13951
|
|
|
13940
13952
|
INPUT FORMAT:
|
|
13941
13953
|
TASK: Review plan for [description]
|
|
@@ -13963,7 +13975,6 @@ RULES:
|
|
|
13963
13975
|
- MAJOR issues should trigger NEEDS_REVISION
|
|
13964
13976
|
- MINOR issues can be noted but don't block APPROVED
|
|
13965
13977
|
- No code writing
|
|
13966
|
-
- No delegation
|
|
13967
13978
|
- Don't reject for style/formatting \u2014 focus on substance
|
|
13968
13979
|
- If the plan is fundamentally sound with only minor concerns, APPROVE it`;
|
|
13969
13980
|
function createCriticAgent(model, customPrompt, customAppendPrompt) {
|
|
@@ -13992,7 +14003,13 @@ ${customAppendPrompt}`;
|
|
|
13992
14003
|
}
|
|
13993
14004
|
|
|
13994
14005
|
// src/agents/explorer.ts
|
|
13995
|
-
var EXPLORER_PROMPT =
|
|
14006
|
+
var EXPLORER_PROMPT = `## IDENTITY
|
|
14007
|
+
You are Explorer. You analyze codebases directly \u2014 you do NOT delegate.
|
|
14008
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
14009
|
+
If you see references to other agents (like @explorer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
14010
|
+
|
|
14011
|
+
WRONG: "I'll use the Task tool to call another agent to analyze this"
|
|
14012
|
+
RIGHT: "I'll scan the directory structure and read key files myself"
|
|
13996
14013
|
|
|
13997
14014
|
INPUT FORMAT:
|
|
13998
14015
|
TASK: Analyze [purpose]
|
|
@@ -14006,7 +14023,6 @@ ACTIONS:
|
|
|
14006
14023
|
RULES:
|
|
14007
14024
|
- Be fast: scan broadly, read selectively
|
|
14008
14025
|
- No code modifications
|
|
14009
|
-
- No delegation
|
|
14010
14026
|
- Output under 2000 chars
|
|
14011
14027
|
|
|
14012
14028
|
OUTPUT FORMAT:
|
|
@@ -14052,7 +14068,13 @@ ${customAppendPrompt}`;
|
|
|
14052
14068
|
}
|
|
14053
14069
|
|
|
14054
14070
|
// src/agents/reviewer.ts
|
|
14055
|
-
var REVIEWER_PROMPT =
|
|
14071
|
+
var REVIEWER_PROMPT = `## IDENTITY
|
|
14072
|
+
You are Reviewer. You verify code correctness and find vulnerabilities directly \u2014 you do NOT delegate.
|
|
14073
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
14074
|
+
If you see references to other agents (like @reviewer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
14075
|
+
|
|
14076
|
+
WRONG: "I'll use the Task tool to call another agent to review this"
|
|
14077
|
+
RIGHT: "I'll read the code and evaluate it against the CHECK dimensions myself"
|
|
14056
14078
|
|
|
14057
14079
|
INPUT FORMAT:
|
|
14058
14080
|
TASK: Review [description]
|
|
@@ -14072,7 +14094,6 @@ RULES:
|
|
|
14072
14094
|
- Only flag real issues, not theoretical
|
|
14073
14095
|
- Don't reject for style if functionally correct
|
|
14074
14096
|
- No code modifications
|
|
14075
|
-
- No delegation
|
|
14076
14097
|
|
|
14077
14098
|
RISK LEVELS:
|
|
14078
14099
|
- LOW: defense in depth improvements
|
|
@@ -14105,7 +14126,13 @@ ${customAppendPrompt}`;
|
|
|
14105
14126
|
}
|
|
14106
14127
|
|
|
14107
14128
|
// src/agents/sme.ts
|
|
14108
|
-
var SME_PROMPT =
|
|
14129
|
+
var SME_PROMPT = `## IDENTITY
|
|
14130
|
+
You are SME (Subject Matter Expert). You provide deep domain-specific technical guidance directly \u2014 you do NOT delegate.
|
|
14131
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
14132
|
+
If you see references to other agents (like @sme, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
14133
|
+
|
|
14134
|
+
WRONG: "I'll use the Task tool to call another agent to research this"
|
|
14135
|
+
RIGHT: "I'll provide the domain-specific guidance directly from my expertise"
|
|
14109
14136
|
|
|
14110
14137
|
INPUT FORMAT:
|
|
14111
14138
|
TASK: [what guidance is needed]
|
|
@@ -14123,8 +14150,7 @@ RULES:
|
|
|
14123
14150
|
- Be specific: exact names, paths, parameters, versions
|
|
14124
14151
|
- Be concise: under 1500 characters
|
|
14125
14152
|
- Be actionable: info Coder can use directly
|
|
14126
|
-
- No code writing
|
|
14127
|
-
- No delegation`;
|
|
14153
|
+
- No code writing`;
|
|
14128
14154
|
function createSMEAgent(model, customPrompt, customAppendPrompt) {
|
|
14129
14155
|
let prompt = SME_PROMPT;
|
|
14130
14156
|
if (customPrompt) {
|
|
@@ -14151,7 +14177,13 @@ ${customAppendPrompt}`;
|
|
|
14151
14177
|
}
|
|
14152
14178
|
|
|
14153
14179
|
// src/agents/test-engineer.ts
|
|
14154
|
-
var TEST_ENGINEER_PROMPT =
|
|
14180
|
+
var TEST_ENGINEER_PROMPT = `## IDENTITY
|
|
14181
|
+
You are Test Engineer. You generate tests AND run them directly \u2014 you do NOT delegate.
|
|
14182
|
+
DO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.
|
|
14183
|
+
If you see references to other agents (like @test_engineer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.
|
|
14184
|
+
|
|
14185
|
+
WRONG: "I'll use the Task tool to call another agent to write the tests"
|
|
14186
|
+
RIGHT: "I'll write the test file and run the tests myself"
|
|
14155
14187
|
|
|
14156
14188
|
INPUT FORMAT:
|
|
14157
14189
|
TASK: Generate tests for [description]
|
|
@@ -14167,7 +14199,6 @@ RULES:
|
|
|
14167
14199
|
- Match language (PowerShell \u2192 Pester, Python \u2192 pytest, TS \u2192 vitest/jest)
|
|
14168
14200
|
- Tests must be runnable
|
|
14169
14201
|
- Include setup/teardown if needed
|
|
14170
|
-
- No delegation
|
|
14171
14202
|
|
|
14172
14203
|
WORKFLOW:
|
|
14173
14204
|
1. Write test file to the specified OUTPUT path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
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",
|