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.
Files changed (29) hide show
  1. package/README.md +31 -26
  2. package/dist/agents/commander.d.ts +2 -1
  3. package/dist/agents/prompts/commander/index.d.ts +2 -0
  4. package/dist/agents/prompts/commander/loop-continuation.d.ts +6 -0
  5. package/dist/agents/prompts/commander/sync-handling.d.ts +6 -0
  6. package/dist/agents/prompts/common/shared-workspace.d.ts +1 -1
  7. package/dist/agents/prompts/planner/file-planning.d.ts +6 -0
  8. package/dist/agents/prompts/planner/index.d.ts +2 -0
  9. package/dist/agents/prompts/planner/todo-sync.d.ts +6 -0
  10. package/dist/agents/prompts/reviewer/async-monitoring.d.ts +6 -0
  11. package/dist/agents/prompts/reviewer/index.d.ts +3 -0
  12. package/dist/agents/prompts/reviewer/integration-testing.d.ts +7 -0
  13. package/dist/agents/prompts/reviewer/sync-verification.d.ts +6 -0
  14. package/dist/agents/prompts/worker/file-assignment.d.ts +6 -0
  15. package/dist/agents/prompts/worker/index.d.ts +3 -0
  16. package/dist/agents/prompts/worker/isolation-testing.d.ts +6 -0
  17. package/dist/agents/prompts/worker/tdd-workflow.d.ts +7 -0
  18. package/dist/agents/subagents/planner.d.ts +2 -1
  19. package/dist/agents/subagents/reviewer.d.ts +1 -1
  20. package/dist/agents/subagents/worker.d.ts +3 -2
  21. package/dist/index.js +904 -19
  22. package/dist/shared/core/constants/id-prefix.d.ts +7 -1
  23. package/dist/shared/core/constants/paths.d.ts +4 -0
  24. package/dist/shared/index.d.ts +2 -0
  25. package/dist/shared/prompt/constants/index.d.ts +5 -0
  26. package/dist/shared/prompt/constants/status.d.ts +34 -0
  27. package/dist/shared/prompt/constants/tags.d.ts +147 -0
  28. package/dist/shared/prompt/index.d.ts +4 -0
  29. 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
- πŸ‘€ You: /task "Build a REST API with authentication"
60
+ /task "Build REST API"
61
61
  β”‚
62
62
  β–Ό
63
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
64
- β”‚ 🎯 COMMANDER β”‚ ← Master Session
65
- β”‚ Creates TODO, delegates β”‚
66
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
63
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
64
+ β”‚ 🎯 COMMANDER β”‚
65
+ β”‚ Read state β†’ Delegate β†’ Loop β”‚
66
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
67
67
  β”‚
68
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
69
- β–Ό β–Ό β–Ό
70
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
71
- β”‚ PLANNER β”‚ β”‚ WORKER β”‚ β”‚ WORKER β”‚
72
- β”‚ ses_001 β”‚ β”‚ ses_002 β”‚ β”‚ ses_003 β”‚ ⚑ PARALLEL
73
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ SESSIONS
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
- β”‚ βœ… REVIEWER β”‚
82
- β”‚ Verifies, updates TODOs β”‚
83
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
77
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
78
+ β”‚ βœ… REVIEWER β”‚
79
+ β”‚ Verify β†’ Sync β”‚
80
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
84
81
  β”‚
85
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
86
- β”‚ TODOs remain? β”‚
87
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
82
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
83
+ β”‚ TODO incomplete? β”‚
84
+ β”‚ Sync issues? β”‚
85
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
88
86
  Yes ↓ ↓ No
89
- ♻️ LOOP πŸŽ–οΈ SEALED
90
- BACK (done!)
87
+ ♻️ LOOP πŸŽ–οΈ SEALED
91
88
  ```
92
89
 
93
- **♾️ Runs until complete** β€” Keeps looping until ALL TODOs are checked, then seals the mission.
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
- * Uses modular prompt fragments for flexible composition.
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";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Commander Loop Continuation
3
+ *
4
+ * Logic for reading shared state and continuing work loop.
5
+ */
6
+ export declare const COMMANDER_LOOP_CONTINUATION: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Commander Sync Issue Handling
3
+ *
4
+ * How Commander reads sync issues and instructs agents to fix.
5
+ */
6
+ export declare const COMMANDER_SYNC_HANDLING: string;
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * Defines the .opencode/ directory structure.
5
5
  */
6
- export declare const SHARED_WORKSPACE = "<shared_workspace>\n .opencode/ - Shared Context Directory\n\n```\n.opencode/\n\u251C\u2500\u2500 todo.md - Master task list\n\u251C\u2500\u2500 context.md - Project context summary\n\u251C\u2500\u2500 docs/ - Cached documentation\n\u2502 \u251C\u2500\u2500 [topic].md\n\u2502 \u2514\u2500\u2500 ...\n\u2514\u2500\u2500 archive/ - Old context\n```\n\nRULES:\n- ALL agents share this workspace\n- context.md < 150 lines (compress if larger)\n- docs/ = official documentation ONLY\n- todo.md = single source of truth for tasks\n</shared_workspace>";
6
+ export declare const SHARED_WORKSPACE: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Planner File-Level Planning
3
+ *
4
+ * Plans work at FILE LEVEL - listing all files to create/modify/delete.
5
+ */
6
+ export declare const PLANNER_FILE_PLANNING: 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";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Planner TODO Sync
3
+ *
4
+ * Syncs TODO list based on Commander instructions after sync issues.
5
+ */
6
+ export declare const PLANNER_TODO_SYNC: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Reviewer Async Monitoring
3
+ *
4
+ * Asynchronous monitoring of parallel worker sessions.
5
+ */
6
+ export declare const REVIEWER_ASYNC_MONITORING: string;
@@ -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";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reviewer Integration Testing
3
+ *
4
+ * E2E testing when TODO is almost done or at the end.
5
+ * Language-agnostic.
6
+ */
7
+ export declare const REVIEWER_INTEGRATION_TESTING: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Reviewer Sync Verification
3
+ *
4
+ * Verify file synchronization and report issues for next iteration.
5
+ */
6
+ export declare const REVIEWER_SYNC_VERIFICATION: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Worker File Assignment
3
+ *
4
+ * How Worker receives and processes file-level assignments.
5
+ */
6
+ export declare const WORKER_FILE_ASSIGNMENT: string;
@@ -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";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Worker Isolation Testing Rules
3
+ *
4
+ * Rules for creating isolated unit tests that test ONLY the target file.
5
+ */
6
+ export declare const WORKER_ISOLATION_TESTING: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Worker TDD Workflow
3
+ *
4
+ * Test-Driven Development workflow for file-level isolated work.
5
+ * Language-agnostic - works with any programming language.
6
+ */
7
+ export declare const WORKER_TDD_WORKFLOW: string;
@@ -2,7 +2,8 @@
2
2
  * Planner Agent (Subagent)
3
3
  *
4
4
  * Strategic planning and research specialist.
5
- * Uses modular prompt fragments for flexible composition.
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
- * Uses modular prompt fragments for flexible composition.
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 and documentation specialist.
5
- * Uses modular prompt fragments for flexible composition.
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;