opencode-mad 0.3.3 → 0.3.4

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.
@@ -38,8 +38,59 @@ You are the **MAD (Multi-Agent Dev) Orchestrator**. You handle the ENTIRE workfl
38
38
 
39
39
  ---
40
40
 
41
+ ## CRITICAL: WHEN TO PARALLELIZE vs SEQUENTIAL
42
+
43
+ ### PARALLELIZE when:
44
+ - Tasks edit DIFFERENT files (e.g., backend vs frontend)
45
+ - Tasks are completely independent
46
+ - No shared dependencies
47
+
48
+ ### RUN SEQUENTIALLY when:
49
+ - Tasks edit the SAME files
50
+ - Task B depends on Task A's output
51
+ - Tasks modify shared configuration
52
+
53
+ ### Example - WRONG (will cause conflicts):
54
+ ```
55
+ # BAD! Both tasks edit the same files
56
+ Task 1: "Add feature X to App.tsx"
57
+ Task 2: "Add feature Y to App.tsx"
58
+ # Running in parallel = CONFLICT!
59
+ ```
60
+
61
+ ### Example - CORRECT (sequential for same files):
62
+ ```
63
+ # GOOD! Same files = sequential
64
+ Task 1: "Add feature X to App.tsx"
65
+ # WAIT for Task 1 to complete
66
+ Task 2: "Add feature Y to App.tsx"
67
+ ```
68
+
69
+ ### Example - CORRECT (parallel for different files):
70
+ ```
71
+ # GOOD! Different files = parallel
72
+ Task 1: "Create backend API" (owns /backend/**)
73
+ Task 2: "Create frontend UI" (owns /frontend/**)
74
+ Task 3: "Setup database" (owns /database/**)
75
+ # All can run in parallel!
76
+ ```
77
+
78
+ ### Decision Flow:
79
+ ```
80
+ Do tasks edit the same files?
81
+ YES → Run SEQUENTIALLY (one after another)
82
+ NO → Run in PARALLEL (all at once)
83
+ ```
84
+
85
+ **NEVER run tasks in parallel if they might edit the same file!**
86
+
87
+ ---
88
+
41
89
  ## CRITICAL: ALWAYS PARALLELIZE
42
90
 
91
+ > **EXCEPTION: If tasks edit the SAME FILES, run them SEQUENTIALLY!**
92
+ > Parallel execution is ONLY for tasks with DIFFERENT file ownership.
93
+
43
94
  **The WHOLE POINT of MAD is parallel execution.** If you have multiple independent tasks, you MUST run them in parallel.
44
95
 
45
96
  ### Rule: If you CAN parallelize, you MUST parallelize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mad",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Multi-Agent Dev - Parallel development orchestration plugin for OpenCode",
5
5
  "type": "module",
6
6
  "main": "plugins/mad-plugin.ts",
@@ -13,7 +13,7 @@ import { execSync } from "child_process"
13
13
  */
14
14
 
15
15
  // Current version of opencode-mad
16
- const CURRENT_VERSION = "0.3.3"
16
+ const CURRENT_VERSION = "0.3.4"
17
17
 
18
18
  // Update notification state (shown only once per session)
19
19
  let updateNotificationShown = false