opencode-orchestrator 0.8.22 β 0.9.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 +31 -26
- package/dist/agents/commander.d.ts +2 -1
- package/dist/agents/prompts/commander/index.d.ts +2 -0
- package/dist/agents/prompts/commander/loop-continuation.d.ts +6 -0
- package/dist/agents/prompts/commander/sync-handling.d.ts +6 -0
- package/dist/agents/prompts/common/shared-workspace.d.ts +1 -1
- package/dist/agents/prompts/planner/file-planning.d.ts +6 -0
- package/dist/agents/prompts/planner/index.d.ts +2 -0
- package/dist/agents/prompts/planner/todo-sync.d.ts +6 -0
- package/dist/agents/prompts/reviewer/async-monitoring.d.ts +6 -0
- package/dist/agents/prompts/reviewer/index.d.ts +3 -0
- package/dist/agents/prompts/reviewer/integration-testing.d.ts +7 -0
- package/dist/agents/prompts/reviewer/sync-verification.d.ts +6 -0
- package/dist/agents/prompts/worker/file-assignment.d.ts +6 -0
- package/dist/agents/prompts/worker/index.d.ts +3 -0
- package/dist/agents/prompts/worker/isolation-testing.d.ts +6 -0
- package/dist/agents/prompts/worker/tdd-workflow.d.ts +7 -0
- package/dist/agents/subagents/planner.d.ts +2 -1
- package/dist/agents/subagents/reviewer.d.ts +1 -1
- package/dist/agents/subagents/worker.d.ts +3 -2
- package/dist/index.js +904 -19
- package/dist/shared/core/constants/id-prefix.d.ts +7 -1
- package/dist/shared/core/constants/paths.d.ts +4 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/prompt/constants/index.d.ts +5 -0
- package/dist/shared/prompt/constants/status.d.ts +34 -0
- package/dist/shared/prompt/constants/tags.d.ts +147 -0
- package/dist/shared/prompt/index.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,40 +57,45 @@ A multi-agent system that **autonomously executes complex tasks** from start to
|
|
|
57
57
|
## π How It Works
|
|
58
58
|
|
|
59
59
|
```
|
|
60
|
-
|
|
60
|
+
/task "Build REST API"
|
|
61
61
|
β
|
|
62
62
|
βΌ
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
ββββββββββββββββββββββββββββββββββ
|
|
64
|
+
β π― COMMANDER β
|
|
65
|
+
β Read state β Delegate β Loop β
|
|
66
|
+
ββββββββββββββββββββββββββββββββββ
|
|
67
67
|
β
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
β β π Background: npm install, test β β β³ NON-BLOCKING
|
|
77
|
-
β βββββββββββββββββββββββββββββββββββββ β
|
|
78
|
-
ββββββββββββββββββββββββΌβββββββββββββββββββββββ
|
|
68
|
+
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
|
|
69
|
+
βΌ βΌ βΌ
|
|
70
|
+
βββββββββββ βββββββββββ βββββββββββ
|
|
71
|
+
β PLANNER β β WORKER β β WORKER β β‘ PARALLEL
|
|
72
|
+
β Plan it β β Build A β β Build B β EXECUTION
|
|
73
|
+
βββββββββββ βββββββββββ βββββββββββ
|
|
74
|
+
β β β
|
|
75
|
+
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
|
|
79
76
|
βΌ
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
ββββββββββββββββββββββββββββββββββ
|
|
78
|
+
β β
REVIEWER β
|
|
79
|
+
β Verify β Sync β
|
|
80
|
+
ββββββββββββββββββββββββββββββββββ
|
|
84
81
|
β
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
ββββββββββββ΄βββββββββββ
|
|
83
|
+
β TODO incomplete? β
|
|
84
|
+
β Sync issues? β
|
|
85
|
+
ββββββββββββ¬βββββββββββ
|
|
88
86
|
Yes β β No
|
|
89
|
-
|
|
90
|
-
BACK (done!)
|
|
87
|
+
β»οΈ LOOP ποΈ SEALED
|
|
91
88
|
```
|
|
92
89
|
|
|
93
|
-
|
|
90
|
+
### π Key Concepts
|
|
91
|
+
|
|
92
|
+
| Concept | Description |
|
|
93
|
+
|---------|-------------|
|
|
94
|
+
| **βΎοΈ Infinite Loop** | Keeps running until ALL TODOs [x] AND no sync issues |
|
|
95
|
+
| **π§ TDD Isolation** | Each Worker = 1 file. Test β Build β Delete test |
|
|
96
|
+
| **π Shared State** | `.opencode/` = single source of truth for all agents |
|
|
97
|
+
| **π E2E at End** | Integration tests run when TODO nearly complete |
|
|
98
|
+
|
|
94
99
|
|
|
95
100
|
---
|
|
96
101
|
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Commander Agent
|
|
3
3
|
*
|
|
4
4
|
* Master orchestrator with parallel execution capabilities.
|
|
5
|
-
*
|
|
5
|
+
* Reads shared state (.opencode/) for loop continuation.
|
|
6
|
+
* Handles sync issues by instructing Planner and Workers.
|
|
6
7
|
*/
|
|
7
8
|
import type { AgentDefinition } from "../shared/agent/interfaces/index.js";
|
|
8
9
|
export declare const commander: AgentDefinition;
|
|
@@ -10,3 +10,5 @@ export { COMMANDER_EXECUTION } from "./execution.js";
|
|
|
10
10
|
export { COMMANDER_PARALLEL } from "./parallel.js";
|
|
11
11
|
export { COMMANDER_AGENTS } from "./agents.js";
|
|
12
12
|
export { COMMANDER_TODO_FORMAT } from "./todo-format.js";
|
|
13
|
+
export { COMMANDER_LOOP_CONTINUATION } from "./loop-continuation.js";
|
|
14
|
+
export { COMMANDER_SYNC_HANDLING } from "./sync-handling.js";
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Defines the .opencode/ directory structure.
|
|
5
5
|
*/
|
|
6
|
-
export declare const SHARED_WORKSPACE
|
|
6
|
+
export declare const SHARED_WORKSPACE: string;
|
|
@@ -6,3 +6,5 @@ export { PLANNER_FORBIDDEN } from "./forbidden.js";
|
|
|
6
6
|
export { PLANNER_REQUIRED } from "./required.js";
|
|
7
7
|
export { PLANNER_TODO_FORMAT } from "./todo-format.js";
|
|
8
8
|
export { PLANNER_RESEARCH } from "./research.js";
|
|
9
|
+
export { PLANNER_FILE_PLANNING } from "./file-planning.js";
|
|
10
|
+
export { PLANNER_TODO_SYNC } from "./todo-sync.js";
|
|
@@ -7,3 +7,6 @@ export { REVIEWER_REQUIRED } from "./required.js";
|
|
|
7
7
|
export { REVIEWER_VERIFICATION } from "./verification.js";
|
|
8
8
|
export { REVIEWER_TODO_UPDATE } from "./todo-update.js";
|
|
9
9
|
export { REVIEWER_OUTPUT } from "./output.js";
|
|
10
|
+
export { REVIEWER_ASYNC_MONITORING } from "./async-monitoring.js";
|
|
11
|
+
export { REVIEWER_INTEGRATION_TESTING } from "./integration-testing.js";
|
|
12
|
+
export { REVIEWER_SYNC_VERIFICATION } from "./sync-verification.js";
|
|
@@ -6,3 +6,6 @@ export { WORKER_FORBIDDEN } from "./forbidden.js";
|
|
|
6
6
|
export { WORKER_REQUIRED } from "./required.js";
|
|
7
7
|
export { WORKER_WORKFLOW } from "./workflow.js";
|
|
8
8
|
export { WORKER_QUALITY } from "./quality.js";
|
|
9
|
+
export { WORKER_TDD_WORKFLOW } from "./tdd-workflow.js";
|
|
10
|
+
export { WORKER_ISOLATION_TESTING } from "./isolation-testing.js";
|
|
11
|
+
export { WORKER_FILE_ASSIGNMENT } from "./file-assignment.js";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Planner Agent (Subagent)
|
|
3
3
|
*
|
|
4
4
|
* Strategic planning and research specialist.
|
|
5
|
-
*
|
|
5
|
+
* FILE-LEVEL planning - lists all files to create/modify/delete.
|
|
6
|
+
* TODO sync - updates TODO based on Commander instructions.
|
|
6
7
|
*/
|
|
7
8
|
import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
|
|
8
9
|
export declare const planner: AgentDefinition;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Verification specialist and gatekeeper.
|
|
5
5
|
* ONLY agent authorized to mark [x] in TODO after verification.
|
|
6
|
-
*
|
|
6
|
+
* Async monitoring of parallel workers, integration testing, sync verification.
|
|
7
7
|
*/
|
|
8
8
|
import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
|
|
9
9
|
export declare const reviewer: AgentDefinition;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Worker Agent (Subagent)
|
|
3
3
|
*
|
|
4
|
-
* Implementation
|
|
5
|
-
*
|
|
4
|
+
* Implementation specialist with TDD-based file-level isolated work.
|
|
5
|
+
* Reads .opencode for assignments and shared state.
|
|
6
|
+
* Follows Commander instructions for sync fixes.
|
|
6
7
|
*/
|
|
7
8
|
import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
|
|
8
9
|
export declare const worker: AgentDefinition;
|