opencode-orchestrator 0.1.9 → 0.1.20
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 +5 -5
- package/dist/index.js +57 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
[](https://www.npmjs.com/package/opencode-orchestrator)
|
|
9
|
+
[](https://www.npmjs.com/package/opencode-orchestrator)
|
|
9
10
|
[](https://opencode.ai)
|
|
10
|
-
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
---
|
|
@@ -27,7 +27,7 @@ A 6-agent collaborative system that turns any LLM into a reliable coding team.
|
|
|
27
27
|
| One big prompt → Hope it works | Atomic tasks → Verified every step |
|
|
28
28
|
| Expensive model required | Any model works |
|
|
29
29
|
| Errors compound silently | Self-correcting loop |
|
|
30
|
-
| Unpredictable results |
|
|
30
|
+
| Unpredictable results | **Relentless execution until success** |
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
@@ -37,8 +37,8 @@ A 6-agent collaborative system that turns any LLM into a reliable coding team.
|
|
|
37
37
|
- **🧠 Micro-Task Architecture** — Atomic task decomposition for reliability
|
|
38
38
|
- **🔄 Self-Correcting Loop** — Every change reviewed, errors auto-fixed
|
|
39
39
|
- **👥 6-Agent Team** — Specialized roles working together
|
|
40
|
-
- **🛡️
|
|
41
|
-
- **⚡ Full Autonomy** — `/auto`
|
|
40
|
+
- **🛡️ Resilient Execution** — Never stops on errors. Pivots strategy (Plan/Search) until success.
|
|
41
|
+
- **⚡ Full Autonomy** — `/auto` is all you need. Relentless execution until 100% complete.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -59,7 +59,7 @@ User Request
|
|
|
59
59
|
│ Search → Code → Review → Fix │
|
|
60
60
|
│ ↑ │ │
|
|
61
61
|
│ └──────────────────────┘ │
|
|
62
|
-
│ (
|
|
62
|
+
│ (Never gives up) │
|
|
63
63
|
└──────────────────────────────────────────┘
|
|
64
64
|
│
|
|
65
65
|
▼
|
package/dist/index.js
CHANGED
|
@@ -12348,6 +12348,7 @@ var AGENTS = {
|
|
|
12348
12348
|
## Mission
|
|
12349
12349
|
Coordinate agents to complete user tasks with ZERO errors.
|
|
12350
12350
|
Keep iterating until the task is 100% complete and working.
|
|
12351
|
+
FAILURE IS NOT AN OPTION. If you get stuck, change strategy.
|
|
12351
12352
|
|
|
12352
12353
|
## Your Team
|
|
12353
12354
|
- **planner**: Decomposes complex tasks into atomic units
|
|
@@ -12364,7 +12365,7 @@ Keep iterating until the task is 100% complete and working.
|
|
|
12364
12365
|
b. CODE: Call coder with single atomic task
|
|
12365
12366
|
c. VERIFY: Call reviewer (MANDATORY after every code change)
|
|
12366
12367
|
d. FIX: If reviewer finds error \u2192 call fixer \u2192 verify again
|
|
12367
|
-
e. LOOP: Repeat fix/verify until PASS
|
|
12368
|
+
e. LOOP: Repeat fix/verify until PASS.
|
|
12368
12369
|
4. NEXT: Move to next task only after current passes
|
|
12369
12370
|
5. COMPLETE: All tasks done with all reviews passed
|
|
12370
12371
|
|
|
@@ -12376,22 +12377,24 @@ Keep iterating until the task is 100% complete and working.
|
|
|
12376
12377
|
\u274C "Refactor the entire auth module" (too big)
|
|
12377
12378
|
\u274C "Fix all bugs" (not atomic)
|
|
12378
12379
|
|
|
12379
|
-
## Error Recovery Protocol
|
|
12380
|
+
## Error Recovery Protocol (Resilient Mode)
|
|
12380
12381
|
- Error from reviewer \u2192 Call fixer with EXACT error details
|
|
12381
|
-
- Same error 3 times \u2192
|
|
12382
|
+
- Same error 3 times \u2192 DO NOT STOP.
|
|
12383
|
+
- Option A: Call searcher to find better context/examples
|
|
12384
|
+
- Option B: Call planner to break task down further
|
|
12385
|
+
- Option C: Try a completely different implementation approach
|
|
12382
12386
|
- Coder confused \u2192 Provide more context from searcher
|
|
12383
|
-
- Stuck on approach \u2192 Try different strategy
|
|
12384
12387
|
|
|
12385
12388
|
## Progress Tracking (show after each step)
|
|
12386
12389
|
\uD83D\uDCCB Task: [current task]
|
|
12387
12390
|
\u2705 Completed: [list]
|
|
12388
12391
|
\u23F3 Remaining: [list]
|
|
12389
|
-
\uD83D\uDD04 Retry: [X
|
|
12392
|
+
\uD83D\uDD04 Retry: [X] (Reset counter if strategy changes)
|
|
12390
12393
|
|
|
12391
12394
|
## Critical Rules
|
|
12392
12395
|
- NEVER skip reviewer after code changes
|
|
12393
12396
|
- One atomic task at a time
|
|
12394
|
-
-
|
|
12397
|
+
- NEVER GIVE UP. Find a way.
|
|
12395
12398
|
- Always show progress`,
|
|
12396
12399
|
canWrite: false,
|
|
12397
12400
|
canBash: false
|
|
@@ -12547,7 +12550,17 @@ Find ALL issues in the code. Be thorough but specific.
|
|
|
12547
12550
|
- Consistent naming
|
|
12548
12551
|
- Proper indentation
|
|
12549
12552
|
|
|
12550
|
-
###
|
|
12553
|
+
### 1. Syntax & Formatting (Top Priority)
|
|
12554
|
+
- All brackets paired: { } ( ) [ ]
|
|
12555
|
+
- Indentation is consistent
|
|
12556
|
+
- Semicolons present where needed
|
|
12557
|
+
- No obvious syntax typos
|
|
12558
|
+
|
|
12559
|
+
### 2. Consistency & Sync (Critical)
|
|
12560
|
+
- Export/Import names match EXACTLY
|
|
12561
|
+
- Function signatures match usage (arguments, return types)
|
|
12562
|
+
|
|
12563
|
+
### 7. Security (if applicable)
|
|
12551
12564
|
- No hardcoded secrets
|
|
12552
12565
|
- Input validation present
|
|
12553
12566
|
|
|
@@ -12557,7 +12570,11 @@ Find ALL issues in the code. Be thorough but specific.
|
|
|
12557
12570
|
\`\`\`
|
|
12558
12571
|
\u2705 PASS
|
|
12559
12572
|
|
|
12560
|
-
|
|
12573
|
+
Summary:
|
|
12574
|
+
- Checked syntax, types, and imports
|
|
12575
|
+
- Verified export/import name consistency
|
|
12576
|
+
- Confirmed logic implementation
|
|
12577
|
+
|
|
12561
12578
|
Status: All checks passed
|
|
12562
12579
|
\`\`\`
|
|
12563
12580
|
|
|
@@ -12565,10 +12582,11 @@ Status: All checks passed
|
|
|
12565
12582
|
\`\`\`
|
|
12566
12583
|
\u274C FAIL
|
|
12567
12584
|
|
|
12568
|
-
[ERROR-001] <category>
|
|
12585
|
+
[ERROR-001] <category: Syntax | Type | Name Mismatch | Import | Logic>
|
|
12569
12586
|
\u251C\u2500\u2500 File: <path>
|
|
12570
12587
|
\u251C\u2500\u2500 Line: <number>
|
|
12571
12588
|
\u251C\u2500\u2500 Issue: <specific problem>
|
|
12589
|
+
\u251C\u2500\u2500 Root Cause: <Typo / Sync Mismatch / Logic Error>
|
|
12572
12590
|
\u251C\u2500\u2500 Found: \`<problematic code>\`
|
|
12573
12591
|
\u251C\u2500\u2500 Expected: \`<correct code>\`
|
|
12574
12592
|
\u2514\u2500\u2500 Fix: <exact fix instruction>
|
|
@@ -12577,10 +12595,10 @@ Status: All checks passed
|
|
|
12577
12595
|
\`\`\`
|
|
12578
12596
|
|
|
12579
12597
|
## Rules
|
|
12580
|
-
-
|
|
12581
|
-
-
|
|
12582
|
-
-
|
|
12583
|
-
-
|
|
12598
|
+
- Check specifically for 'Name Mismatch' (e.g., export 'foo' vs import 'Foo')
|
|
12599
|
+
- Verify function signatures match calls
|
|
12600
|
+
- List ALL errors found
|
|
12601
|
+
- Be SPECIFIC about location and fix`,
|
|
12584
12602
|
canWrite: false,
|
|
12585
12603
|
canBash: true
|
|
12586
12604
|
},
|
|
@@ -12605,26 +12623,30 @@ You receive error reports like:
|
|
|
12605
12623
|
\`\`\`
|
|
12606
12624
|
|
|
12607
12625
|
## Fixing Process
|
|
12608
|
-
1. Read
|
|
12609
|
-
2.
|
|
12610
|
-
3. Apply minimal fix
|
|
12611
|
-
4.
|
|
12626
|
+
1. ANALYZE: Read errors and identify if it's a simple typo, sync issue, or logic bug.
|
|
12627
|
+
2. SUMMARIZE: Briefly state what went wrong (e.g., "Export name mismatch in api.ts").
|
|
12628
|
+
3. FIX: Apply minimal fix to address the root cause.
|
|
12629
|
+
4. VERIFY: Ensure fix doesn't create new issues.
|
|
12612
12630
|
|
|
12613
12631
|
## Rules
|
|
12614
12632
|
- Fix ALL reported errors
|
|
12615
12633
|
- Make MINIMAL changes
|
|
12616
12634
|
- Don't "improve" unrelated code
|
|
12617
|
-
-
|
|
12635
|
+
- Check for name mismatches (case sensitivity)
|
|
12618
12636
|
- Keep existing style
|
|
12637
|
+
- **ANTI-OVERENGINEERING**:
|
|
12638
|
+
- If Syntax/Indent error: ONLY fix the character/spacing. NO logic changes.
|
|
12639
|
+
- If Typo: ONLY fix the name.
|
|
12619
12640
|
|
|
12620
12641
|
## Output Format
|
|
12621
|
-
\`\`\`<language>
|
|
12622
|
-
// Fixed code with all errors addressed
|
|
12623
12642
|
\`\`\`
|
|
12643
|
+
### Analysis
|
|
12644
|
+
- [ERROR-001]: <cause> (e.g., Missing closing brace at line 42)
|
|
12624
12645
|
|
|
12625
|
-
###
|
|
12626
|
-
|
|
12627
|
-
|
|
12646
|
+
### Fixes Applied
|
|
12647
|
+
\`\`\`<language>
|
|
12648
|
+
// Fixed code
|
|
12649
|
+
\`\`\`
|
|
12628
12650
|
|
|
12629
12651
|
## If Fix Unclear
|
|
12630
12652
|
- Ask for clarification
|
|
@@ -12796,8 +12818,7 @@ Execute according to your role. Be thorough and precise.
|
|
|
12796
12818
|
var COMMANDS = {
|
|
12797
12819
|
auto: {
|
|
12798
12820
|
description: "Autonomous execution with self-correcting loop",
|
|
12799
|
-
template:
|
|
12800
|
-
\uD83D\uDE80 AUTO MODE - Self-Correcting Agent Loop
|
|
12821
|
+
template: `\uD83D\uDE80 AUTO MODE - Self-Correcting Agent Loop
|
|
12801
12822
|
|
|
12802
12823
|
## Protocol
|
|
12803
12824
|
1. Call planner to decompose into atomic tasks
|
|
@@ -12805,18 +12826,18 @@ var COMMANDS = {
|
|
|
12805
12826
|
- Call searcher if context needed
|
|
12806
12827
|
- Call coder to implement
|
|
12807
12828
|
- Call reviewer to verify (MANDATORY)
|
|
12808
|
-
- If FAIL: Call fixer \u2192 reviewer again
|
|
12829
|
+
- If FAIL: Call fixer \u2192 reviewer again
|
|
12809
12830
|
- If PASS: Move to next task
|
|
12810
12831
|
3. Continue until all tasks complete with PASS
|
|
12811
12832
|
|
|
12812
|
-
## Error Recovery
|
|
12813
|
-
- Same error 3x \u2192
|
|
12814
|
-
-
|
|
12815
|
-
-
|
|
12833
|
+
## Error Recovery (Resilient Strategy)
|
|
12834
|
+
- Same error 3x \u2192 DO NOT STOP.
|
|
12835
|
+
- Resolve the blocker by finding more context or breaking down the task.
|
|
12836
|
+
- Keep iterating until the task is 100% COMPLETE and VERIFIED.
|
|
12816
12837
|
|
|
12817
12838
|
## Goal
|
|
12818
|
-
Complete "$ARGUMENTS" with
|
|
12819
|
-
|
|
12839
|
+
Complete "$ARGUMENTS" with ZERO errors.
|
|
12840
|
+
Relentless execution until absolute success.
|
|
12820
12841
|
</command-instruction>
|
|
12821
12842
|
|
|
12822
12843
|
<user-task>
|
|
@@ -12996,12 +13017,13 @@ Review progress and continue manually.`;
|
|
|
12996
13017
|
const retries = (session.taskRetries.get(errorId) || 0) + 1;
|
|
12997
13018
|
session.taskRetries.set(errorId, retries);
|
|
12998
13019
|
if (retries >= state.maxRetries) {
|
|
12999
|
-
session.enabled = false;
|
|
13000
13020
|
output.output += `
|
|
13001
13021
|
|
|
13002
13022
|
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
|
|
13003
|
-
\
|
|
13004
|
-
|
|
13023
|
+
\u26A0\uFE0F RETRY LIMIT (${state.maxRetries}x)
|
|
13024
|
+
DO NOT GIVE UP.
|
|
13025
|
+
SYSTEM ALERT: Stop repeating the same fix.
|
|
13026
|
+
REQUIRED: Call 'planner' (break down) or 'searcher' (find context) NOW.`;
|
|
13005
13027
|
return;
|
|
13006
13028
|
}
|
|
13007
13029
|
output.output += `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "6-Agent collaborative architecture for OpenCode - Make any model reliable",
|
|
5
5
|
"author": "agnusdei1207",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"release:patch": "bun run build:full && bun run test && bun run version:patch && bun run publish:npm && bun run release:git",
|
|
55
55
|
"release:minor": "bun run build:full && bun run test && bun run version:minor && bun run publish:npm && bun run release:git",
|
|
56
56
|
"release:major": "bun run build:full && bun run test && bun run version:major && bun run publish:npm && bun run release:git",
|
|
57
|
-
"release:git": "git add -A && git commit -m \"Release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\" && git push && git push --tags",
|
|
57
|
+
"release:git": "git add -A && git commit -m \"Release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\" && git push && git push --tags && gh release create \"v$(node -p \"require('./package.json').version\")\" bin/orchestrator --title \"v$(node -p \"require('./package.json').version\")\" --generate-notes",
|
|
58
58
|
"postinstall": "node dist/scripts/postinstall.js 2>/dev/null || true"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|