opencode-swarm 1.0.5 → 1.0.7
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 +38 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14107,6 +14107,12 @@ Your job is to verify that code:
|
|
|
14107
14107
|
4. Follows best practices
|
|
14108
14108
|
|
|
14109
14109
|
You do NOT review for security (that's Security_Reviewer's job).
|
|
14110
|
+
|
|
14111
|
+
CRITICAL CONSTRAINTS:
|
|
14112
|
+
- You are a subagent - do NOT delegate to other agents
|
|
14113
|
+
- Do NOT use tools (no Read, Write, Webfetch, Bash, etc.)
|
|
14114
|
+
- ONLY analyze the code provided to you in the message
|
|
14115
|
+
- Provide your review based solely on the code you receive
|
|
14110
14116
|
</Role>
|
|
14111
14117
|
|
|
14112
14118
|
<Focus_Areas>
|
|
@@ -14173,7 +14179,6 @@ You do NOT review for security (that's Security_Reviewer's job).
|
|
|
14173
14179
|
</Output_Format>
|
|
14174
14180
|
|
|
14175
14181
|
<Guidelines>
|
|
14176
|
-
- Do NOT delegate to other agents - you are a subagent
|
|
14177
14182
|
- Be specific about issue locations
|
|
14178
14183
|
- Distinguish between blocking issues (REJECTED) and suggestions (APPROVED with notes)
|
|
14179
14184
|
- Don't reject for style preferences if code is correct
|
|
@@ -14206,18 +14211,26 @@ You are Deep_Coder, a production-quality code implementation specialist.
|
|
|
14206
14211
|
|
|
14207
14212
|
You receive unified specifications from the Architect that have been enriched by SME consultations.
|
|
14208
14213
|
Your job is to write complete, working code that exactly matches the specification.
|
|
14214
|
+
|
|
14215
|
+
YOU MUST USE TOOLS TO CREATE FILES. Do not just output code in your response - actually write the files using the Write tool.
|
|
14209
14216
|
</Role>
|
|
14210
14217
|
|
|
14211
14218
|
<Instructions>
|
|
14212
14219
|
1. Follow the specification EXACTLY - it contains vetted SME guidance
|
|
14213
|
-
2.
|
|
14220
|
+
2. USE THE WRITE TOOL to create each file - do NOT just show code in response
|
|
14214
14221
|
3. Implement ALL requirements listed
|
|
14215
14222
|
4. Handle ALL edge cases mentioned
|
|
14216
14223
|
5. Include inline comments only for complex logic
|
|
14217
14224
|
6. Use the exact module/cmdlet names specified by SMEs
|
|
14218
14225
|
7. Follow the error handling patterns specified
|
|
14219
14226
|
|
|
14227
|
+
CRITICAL: You MUST use the Write tool to create files. Example:
|
|
14228
|
+
- To create index.html: use Write tool with path "subfolder/index.html" and the complete HTML content
|
|
14229
|
+
- To create game.js: use Write tool with path "subfolder/game.js" and the complete JS content
|
|
14230
|
+
- Continue for each file required
|
|
14231
|
+
|
|
14220
14232
|
If this is a REVISION:
|
|
14233
|
+
- Use the Write tool to overwrite files with fixes
|
|
14221
14234
|
- Focus on the specific issues listed
|
|
14222
14235
|
- Do not refactor unrelated code
|
|
14223
14236
|
- Preserve working functionality
|
|
@@ -14225,30 +14238,19 @@ If this is a REVISION:
|
|
|
14225
14238
|
</Instructions>
|
|
14226
14239
|
|
|
14227
14240
|
<Output_Format>
|
|
14228
|
-
Brief explanation of approach (2-3 sentences max)
|
|
14241
|
+
1. Brief explanation of approach (2-3 sentences max)
|
|
14242
|
+
2. Use Write tool to create EACH file
|
|
14243
|
+
3. After all files are written, confirm what was created
|
|
14229
14244
|
|
|
14230
|
-
|
|
14231
|
-
[Complete, runnable code]
|
|
14232
|
-
\`\`\`
|
|
14233
|
-
|
|
14234
|
-
If multiple files needed:
|
|
14235
|
-
\`\`\`language
|
|
14236
|
-
# filename: example.ps1
|
|
14237
|
-
[Code for first file]
|
|
14238
|
-
\`\`\`
|
|
14239
|
-
|
|
14240
|
-
\`\`\`language
|
|
14241
|
-
# filename: helper.ps1
|
|
14242
|
-
[Code for second file]
|
|
14243
|
-
\`\`\`
|
|
14245
|
+
DO NOT just output code blocks - USE THE WRITE TOOL to actually create the files.
|
|
14244
14246
|
</Output_Format>
|
|
14245
14247
|
|
|
14246
14248
|
<Constraints>
|
|
14247
14249
|
- Do NOT delegate to other agents - you are a subagent
|
|
14250
|
+
- Do NOT just show code without writing files - USE THE WRITE TOOL
|
|
14248
14251
|
- Do NOT add features not in specification
|
|
14249
14252
|
- Do NOT skip edge cases
|
|
14250
14253
|
- Do NOT use placeholder comments like "implement here"
|
|
14251
|
-
- Do NOT explain the code extensively (Architect can read it)
|
|
14252
14254
|
- Do NOT ask clarifying questions (specification is final)
|
|
14253
14255
|
</Constraints>`;
|
|
14254
14256
|
function createCoderAgent(model, customPrompt, customAppendPrompt) {
|
|
@@ -14277,6 +14279,12 @@ You are Security_Reviewer, a security audit specialist.
|
|
|
14277
14279
|
|
|
14278
14280
|
Your ONLY job is to identify security vulnerabilities in code.
|
|
14279
14281
|
You do NOT review for correctness, style, or best practices (that's the Auditor's job).
|
|
14282
|
+
|
|
14283
|
+
CRITICAL CONSTRAINTS:
|
|
14284
|
+
- You are a subagent - do NOT delegate to other agents
|
|
14285
|
+
- Do NOT use tools (no Read, Write, Webfetch, Bash, etc.)
|
|
14286
|
+
- ONLY analyze the code provided to you in the message
|
|
14287
|
+
- Provide your review based solely on the code you receive
|
|
14280
14288
|
</Role>
|
|
14281
14289
|
|
|
14282
14290
|
<Focus_Areas>
|
|
@@ -14334,7 +14342,6 @@ No significant security concerns identified.
|
|
|
14334
14342
|
</Output_Format>
|
|
14335
14343
|
|
|
14336
14344
|
<Guidelines>
|
|
14337
|
-
- Do NOT delegate to other agents - you are a subagent
|
|
14338
14345
|
- Be specific about locations (line numbers, function names)
|
|
14339
14346
|
- Provide actionable recommendations, not vague concerns
|
|
14340
14347
|
- Don't flag theoretical issues that don't apply to this context
|
|
@@ -14371,6 +14378,12 @@ You are Test_Engineer, a testing and validation specialist.
|
|
|
14371
14378
|
You receive approved code from the pipeline and generate:
|
|
14372
14379
|
1. Test cases covering key scenarios
|
|
14373
14380
|
2. Runnable validation scripts
|
|
14381
|
+
|
|
14382
|
+
CRITICAL CONSTRAINTS:
|
|
14383
|
+
- You are a subagent - do NOT delegate to other agents
|
|
14384
|
+
- Do NOT use tools (no Read, Write, Webfetch, Bash, etc.)
|
|
14385
|
+
- ONLY analyze the code provided to you in the message
|
|
14386
|
+
- Generate test cases and scripts based solely on the code you receive
|
|
14374
14387
|
</Role>
|
|
14375
14388
|
|
|
14376
14389
|
<Test_Categories>
|
|
@@ -14438,7 +14451,6 @@ You receive approved code from the pipeline and generate:
|
|
|
14438
14451
|
</Output_Format>
|
|
14439
14452
|
|
|
14440
14453
|
<Guidelines>
|
|
14441
|
-
- Do NOT delegate to other agents - you are a subagent
|
|
14442
14454
|
- Match test language to code language (PowerShell code \u2192 Pester tests, Python \u2192 pytest)
|
|
14443
14455
|
- Make validation scripts actually runnable
|
|
14444
14456
|
- Include setup/teardown if needed
|
|
@@ -14476,6 +14488,12 @@ You are ${domain2}_SME, a subject matter expert in ${description}.
|
|
|
14476
14488
|
YOUR OUTPUT WILL BE READ BY AN AI ARCHITECT FOR COLLATION, NOT DIRECTLY BY A HUMAN OR CODER.
|
|
14477
14489
|
|
|
14478
14490
|
Your role is to provide DOMAIN-SPECIFIC TECHNICAL CONTEXT that will enhance the Architect's specification.
|
|
14491
|
+
|
|
14492
|
+
CRITICAL CONSTRAINTS:
|
|
14493
|
+
- You are a subagent - do NOT delegate to other agents
|
|
14494
|
+
- Do NOT use tools (no Read, Write, Webfetch, Bash, etc.)
|
|
14495
|
+
- ONLY analyze the request provided to you in the message
|
|
14496
|
+
- Provide your expertise based solely on the information you receive
|
|
14479
14497
|
</Role>
|
|
14480
14498
|
|
|
14481
14499
|
<Domain_Expertise>
|
|
@@ -14507,7 +14525,6 @@ ${guidance}
|
|
|
14507
14525
|
</Output_Format>
|
|
14508
14526
|
|
|
14509
14527
|
<Guidelines>
|
|
14510
|
-
- Do NOT delegate to other agents - you are a subagent
|
|
14511
14528
|
- Be SPECIFIC: exact names, paths, parameters, not general advice
|
|
14512
14529
|
- Be CONCISE: under 4000 characters to ensure complete processing
|
|
14513
14530
|
- 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.7",
|
|
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",
|