maestro-flow 0.3.9 → 0.3.10

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 (125) hide show
  1. package/.claude/commands/maestro-analyze.md +46 -3
  2. package/.claude/commands/maestro-execute.md +14 -0
  3. package/.claude/commands/maestro-plan.md +16 -0
  4. package/.claude/commands/manage-harvest.md +1 -1
  5. package/.claude/commands/manage-issue-discover.md +2 -2
  6. package/.claude/commands/manage-issue.md +3 -3
  7. package/.codex/skills/maestro/SKILL.md +463 -0
  8. package/.codex/skills/maestro-analyze/SKILL.md +28 -7
  9. package/.codex/skills/maestro-chain/SKILL.md +248 -0
  10. package/.codex/skills/maestro-coordinate/SKILL.md +279 -224
  11. package/.codex/skills/maestro-execute/SKILL.md +8 -0
  12. package/.codex/skills/maestro-plan/SKILL.md +9 -1
  13. package/README.md +7 -7
  14. package/README.zh-CN.md +7 -7
  15. package/chains/issue-lifecycle.json +13 -13
  16. package/chains/singles/issue-analyze.json +3 -3
  17. package/chains/singles/issue-execute.json +3 -3
  18. package/chains/singles/issue-plan.json +3 -3
  19. package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js +2 -2
  20. package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js.map +1 -1
  21. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +3 -3
  22. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  23. package/dashboard/dist-server/dashboard/src/server/routes/issues.js +34 -0
  24. package/dashboard/dist-server/dashboard/src/server/routes/issues.js.map +1 -1
  25. package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js +2 -3
  26. package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js.map +1 -1
  27. package/dashboard/dist-server/dashboard/src/shared/issue-types.d.ts +5 -0
  28. package/dashboard/dist-server/dashboard/src/shared/issue-types.js.map +1 -1
  29. package/dashboard/dist-server/dashboard/src/shared/normalize-task.d.ts +2 -0
  30. package/dashboard/dist-server/dashboard/src/shared/normalize-task.js +75 -0
  31. package/dashboard/dist-server/dashboard/src/shared/normalize-task.js.map +1 -0
  32. package/dashboard/dist-server/src/hooks/constants.d.ts +90 -12
  33. package/dashboard/dist-server/src/hooks/constants.js +149 -16
  34. package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
  35. package/dashboard/dist-server/src/types/index.d.ts +5 -0
  36. package/dist/src/commands/collab.d.ts +1 -34
  37. package/dist/src/commands/collab.d.ts.map +1 -1
  38. package/dist/src/commands/collab.js +4 -72
  39. package/dist/src/commands/collab.js.map +1 -1
  40. package/dist/src/commands/hooks.d.ts +5 -1
  41. package/dist/src/commands/hooks.d.ts.map +1 -1
  42. package/dist/src/commands/hooks.js +50 -10
  43. package/dist/src/commands/hooks.js.map +1 -1
  44. package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -1
  45. package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
  46. package/dist/src/commands/install-ui/InstallConfirm.js +3 -1
  47. package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
  48. package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
  49. package/dist/src/commands/install-ui/InstallExecution.js +5 -1
  50. package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
  51. package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
  52. package/dist/src/commands/install-ui/InstallFlow.js +7 -3
  53. package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
  54. package/dist/src/commands/install-ui/StatuslineConfig.d.ts +6 -1
  55. package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -1
  56. package/dist/src/commands/install-ui/StatuslineConfig.js +27 -5
  57. package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -1
  58. package/dist/src/hooks/__tests__/statusline-visual-test.d.ts +7 -0
  59. package/dist/src/hooks/__tests__/statusline-visual-test.d.ts.map +1 -0
  60. package/dist/src/hooks/__tests__/statusline-visual-test.js +236 -0
  61. package/dist/src/hooks/__tests__/statusline-visual-test.js.map +1 -0
  62. package/dist/src/hooks/constants.d.ts +90 -12
  63. package/dist/src/hooks/constants.d.ts.map +1 -1
  64. package/dist/src/hooks/constants.js +149 -16
  65. package/dist/src/hooks/constants.js.map +1 -1
  66. package/dist/src/hooks/guards/index.d.ts +1 -0
  67. package/dist/src/hooks/guards/index.d.ts.map +1 -1
  68. package/dist/src/hooks/guards/index.js +1 -0
  69. package/dist/src/hooks/guards/index.js.map +1 -1
  70. package/dist/src/hooks/guards/preflight-guard.d.ts +29 -0
  71. package/dist/src/hooks/guards/preflight-guard.d.ts.map +1 -0
  72. package/dist/src/hooks/guards/preflight-guard.js +95 -0
  73. package/dist/src/hooks/guards/preflight-guard.js.map +1 -0
  74. package/dist/src/hooks/index.d.ts +1 -0
  75. package/dist/src/hooks/index.d.ts.map +1 -1
  76. package/dist/src/hooks/index.js +1 -0
  77. package/dist/src/hooks/index.js.map +1 -1
  78. package/dist/src/hooks/preflight-core.d.ts +37 -0
  79. package/dist/src/hooks/preflight-core.d.ts.map +1 -0
  80. package/dist/src/hooks/preflight-core.js +86 -0
  81. package/dist/src/hooks/preflight-core.js.map +1 -0
  82. package/dist/src/hooks/statusline.d.ts +8 -17
  83. package/dist/src/hooks/statusline.d.ts.map +1 -1
  84. package/dist/src/hooks/statusline.js +269 -112
  85. package/dist/src/hooks/statusline.js.map +1 -1
  86. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  87. package/dist/src/i18n/locales/en.js +5 -0
  88. package/dist/src/i18n/locales/en.js.map +1 -1
  89. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  90. package/dist/src/i18n/locales/zh.js +5 -0
  91. package/dist/src/i18n/locales/zh.js.map +1 -1
  92. package/dist/src/i18n/types.d.ts +5 -0
  93. package/dist/src/i18n/types.d.ts.map +1 -1
  94. package/dist/src/tools/collab-adapter.d.ts +17 -0
  95. package/dist/src/tools/collab-adapter.d.ts.map +1 -1
  96. package/dist/src/tools/collab-adapter.js +138 -0
  97. package/dist/src/tools/collab-adapter.js.map +1 -1
  98. package/dist/src/tools/merge-validator.d.ts +24 -0
  99. package/dist/src/tools/merge-validator.d.ts.map +1 -0
  100. package/dist/src/tools/merge-validator.js +220 -0
  101. package/dist/src/tools/merge-validator.js.map +1 -0
  102. package/dist/src/types/index.d.ts +5 -0
  103. package/dist/src/types/index.d.ts.map +1 -1
  104. package/package.json +1 -1
  105. package/templates/cli/prompts/workflow-skill-conflict-patterns.txt +3 -3
  106. package/templates/cli/prompts/workflow-skill-lessons-learned.txt +3 -3
  107. package/templates/search-tools.md +1 -1
  108. package/workflows/cli-tools-usage.md +44 -27
  109. package/workflows/delegate-usage.md +3 -3
  110. package/workflows/issue-analyze.md +6 -2
  111. package/workflows/issue-discover.md +4 -4
  112. package/workflows/issue-execute.md +6 -3
  113. package/workflows/issue-plan.md +5 -2
  114. package/workflows/maestro-coordinate.codex.md +281 -470
  115. package/workflows/maestro-coordinate.md +14 -14
  116. package/workflows/maestro-link-coordinate.md +2 -2
  117. package/workflows/maestro.codex.md +710 -0
  118. package/workflows/maestro.md +10 -11
  119. package/workflows/retrospective.md +1 -1
  120. package/.claude/commands/manage-issue-analyze.md +0 -62
  121. package/.claude/commands/manage-issue-execute.md +0 -73
  122. package/.claude/commands/manage-issue-plan.md +0 -62
  123. package/.codex/skills/manage-issue-analyze/SKILL.md +0 -207
  124. package/.codex/skills/manage-issue-execute/SKILL.md +0 -200
  125. package/.codex/skills/manage-issue-plan/SKILL.md +0 -186
@@ -17,7 +17,7 @@ Semantic Search → Grep (pattern) → Glob (files) → CLI (deep analysis)
17
17
  | Find by intent/behavior | Semantic search tool (see above) |
18
18
  | Known identifier/regex | `Grep` |
19
19
  | Find files by name/ext | `Glob` |
20
- | Complex cross-file reasoning | `maestro cli --tool gemini --mode analysis` |
20
+ | Complex cross-file reasoning | `maestro delegate --to gemini --mode analysis` |
21
21
  | Read identified file | `Read` |
22
22
 
23
23
  ## Fallback
@@ -1,7 +1,7 @@
1
- # CLI Tools Execution Specification
1
+ # Delegate Execution Specification
2
2
 
3
3
  <purpose>
4
- Unified reference for `maestro cli` — runs agent tools (gemini, qwen, codex, claude, opencode) with a shared interface for prompt, mode, model, directory, templates, and session resume.
4
+ Unified reference for `maestro delegate` — synchronous task delegation with broker-managed lifecycle, message injection, and MCP notifications.
5
5
  </purpose>
6
6
 
7
7
  **References**: `~/.maestro/cli-tools.json` (tool config), `~/.maestro/templates/cli/` (protocol + prompt templates)
@@ -15,15 +15,14 @@ Unified reference for `maestro cli` — runs agent tools (gemini, qwen, codex, c
15
15
  ### Command Syntax
16
16
 
17
17
  ```bash
18
- maestro cli -p "<PROMPT>" [options]
18
+ maestro delegate "<PROMPT>" [options]
19
19
  ```
20
20
 
21
21
  ### Options
22
22
 
23
23
  | Option | Description | Default |
24
24
  |--------|-------------|---------|
25
- | `-p, --prompt` | **Required**. Prompt text | |
26
- | `--tool <name>` | Tool: gemini, qwen, codex, claude, opencode | First enabled in config |
25
+ | `--to <name>` | Tool: gemini, qwen, codex, claude, opencode | First enabled in config |
27
26
  | `--mode <mode>` | `analysis` (read-only) or `write` (create/modify/delete) | `analysis` |
28
27
  | `--model <model>` | Model override | Tool's `primaryModel` |
29
28
  | `--cd <dir>` | Working directory | Current directory |
@@ -31,6 +30,7 @@ maestro cli -p "<PROMPT>" [options]
31
30
  | `--rule <template>` | Load protocol + prompt template | — (optional) |
32
31
  | `--id <id>` | Execution ID | Auto: `{prefix}-{HHmmss}-{rand4}` |
33
32
  | `--resume [id]` | Resume session (last if no id, comma-separated for merge) | — |
33
+ | `--backend <type>` | Adapter backend: `direct` or `terminal` (tmux/wezterm) | `direct` |
34
34
 
35
35
  ### Mode Definition (Authoritative)
36
36
 
@@ -39,7 +39,7 @@ maestro cli -p "<PROMPT>" [options]
39
39
  | `analysis` | Read-only | Yes | Review, exploration, diagnosis, architecture analysis |
40
40
  | `write` | Create/Modify/Delete | No — requires explicit intent | Implementation, bug fixes, refactoring |
41
41
 
42
- > `--mode` is the **authoritative** permission control for maestro cli. The `MODE:` field inside prompt text is a hint for the agent — both should be consistent, but `--mode` governs actual behavior.
42
+ > `--mode` is the **authoritative** permission control. The `MODE:` field inside prompt text is a hint for the agent — both should be consistent, but `--mode` governs actual behavior.
43
43
  </context>
44
44
 
45
45
  ---
@@ -72,8 +72,8 @@ maestro cli -p "<PROMPT>" [options]
72
72
 
73
73
  ### Tool Selection
74
74
 
75
- 1. Explicit `--tool` specified → use it (validate enabled)
76
- 2. No `--tool` → first enabled tool in config order
75
+ 1. Explicit `--to` specified → use it (validate enabled)
76
+ 2. No `--to` → first enabled tool in config order
77
77
 
78
78
  ### Fallback Chain
79
79
 
@@ -88,10 +88,10 @@ Primary model fails → `secondaryModel` → next enabled tool → first enabled
88
88
 
89
89
  ### Assembly Order
90
90
 
91
- `maestro cli` builds the final prompt as:
91
+ `maestro delegate` builds the final prompt as:
92
92
 
93
93
  1. **Mode protocol** — `~/.maestro/templates/cli/protocols/{mode}-protocol.md`
94
- 2. **User prompt** — the `-p` value
94
+ 2. **User prompt** — the positional `"<PROMPT>"` value
95
95
  3. **Rule template** — `~/.maestro/templates/cli/prompts/{rule}.txt` (if `--rule` specified)
96
96
 
97
97
  ### Prompt Template (6 Fields)
@@ -122,7 +122,7 @@ CONSTRAINTS: [scope limits] | [special requirements]
122
122
 
123
123
  ```bash
124
124
  # Cross-directory example
125
- maestro cli -p "CONTEXT: @**/* @../shared/**/*" --tool gemini --mode analysis \
125
+ maestro delegate "CONTEXT: @**/* @../shared/**/*" --to gemini --mode analysis \
126
126
  --cd "src/auth" --includeDirs "../shared"
127
127
  ```
128
128
 
@@ -148,13 +148,13 @@ Memory: Integration with auth module, using shared error patterns
148
148
  ### Complete Example
149
149
 
150
150
  ```bash
151
- maestro cli -p "PURPOSE: Identify OWASP Top 10 vulnerabilities in auth module; success = all critical/high documented with remediation
151
+ maestro delegate "PURPOSE: Identify OWASP Top 10 vulnerabilities in auth module; success = all critical/high documented with remediation
152
152
  TASK: Scan for injection flaws | Check auth bypass vectors | Evaluate session management | Assess data exposure
153
153
  MODE: analysis
154
154
  CONTEXT: @src/auth/**/* @src/middleware/auth.ts | Memory: Using bcrypt + JWT
155
155
  EXPECTED: Severity matrix, file:line references, remediation snippets, priority ranking
156
156
  CONSTRAINTS: Focus on authentication | Ignore test files
157
- " --tool gemini --mode analysis --rule analysis-assess-security-risks --cd "src/auth"
157
+ " --to gemini --mode analysis --rule analysis-assess-security-risks --cd "src/auth"
158
158
  ```
159
159
  </context>
160
160
 
@@ -164,6 +164,24 @@ CONSTRAINTS: Focus on authentication | Ignore test files
164
164
 
165
165
  <execution>
166
166
 
167
+ ### Calling Convention
168
+
169
+ `maestro delegate` runs synchronously — it blocks until the delegate completes. To avoid blocking the conversation, **always** use `run_in_background: true` on the Bash tool call, then stop output immediately and wait for the background completion callback.
170
+
171
+ ```
172
+ Bash({
173
+ command: "maestro delegate \"<PROMPT>\" --to gemini --mode analysis",
174
+ run_in_background: true
175
+ })
176
+ // STOP — do not output anything further
177
+ // Wait for Bash background completion callback to receive results
178
+ ```
179
+
180
+ **Rules:**
181
+ - **Never** use foreground Bash for delegate calls — it blocks the conversation for the entire execution duration
182
+ - After the `Bash(run_in_background: true)` call, **stop immediately** — no follow-up text, no polling, no `delegate status` checks
183
+ - When the background callback arrives, retrieve output with `maestro delegate output <id>`
184
+
167
185
  ### Execution ID
168
186
 
169
187
  ID prefix: gemini→`gem`, qwen→`qwn`, codex→`cdx`, claude→`cld`, opencode→`opc`
@@ -171,16 +189,16 @@ ID prefix: gemini→`gem`, qwen→`qwn`, codex→`cdx`, claude→`cld`, opencode
171
189
  Output to stderr: `[MAESTRO_EXEC_ID=<id>]`
172
190
 
173
191
  ```bash
174
- maestro cli -p "<PROMPT>" --tool gemini --mode analysis # auto-ID: gem-143022-a7f2
175
- maestro cli -p "<PROMPT>" --tool gemini --mode write --id my-task-1 # custom ID
192
+ maestro delegate "<PROMPT>" --to gemini --mode analysis # auto-ID: gem-143022-a7f2
193
+ maestro delegate "<PROMPT>" --to gemini --mode write --id my-task-1 # custom ID
176
194
  ```
177
195
 
178
196
  ### Session Resume
179
197
 
180
198
  ```bash
181
- maestro cli -p "<PROMPT>" --tool gemini --resume # last session
182
- maestro cli -p "<PROMPT>" --tool gemini --mode write --resume <id> # specific
183
- maestro cli -p "<PROMPT>" --tool gemini --resume <id1>,<id2> # merge multiple
199
+ maestro delegate "<PROMPT>" --to gemini --resume # last session
200
+ maestro delegate "<PROMPT>" --to gemini --mode write --resume <id> # specific
201
+ maestro delegate "<PROMPT>" --to gemini --resume <id1>,<id2> # merge multiple
184
202
  ```
185
203
 
186
204
  Resume auto-assembles previous conversation context. Warning emitted when context exceeds 32KB.
@@ -188,14 +206,13 @@ Resume auto-assembles previous conversation context. Warning emitted when contex
188
206
  ### Subcommands
189
207
 
190
208
  ```bash
191
- maestro cli show # recent 20 executions
192
- maestro cli show --all # up to 100
193
- maestro cli output <id> # assistant output (always shows status header)
194
- maestro cli output <id> --verbose # include start/end timestamps
195
- maestro cli output <id> --tail 20 # last 20 lines of output
196
- maestro cli output <id> --lines 10 # alias for --tail
197
- maestro cli watch <id> # stream output in real-time until completion
198
- maestro cli watch <id> --timeout 60000 # auto-exit after 60s
209
+ maestro delegate show # recent 20 executions
210
+ maestro delegate show --all # up to 100
211
+ maestro delegate output <id> # assistant output
212
+ maestro delegate output <id> --verbose # include start/end timestamps
213
+ maestro delegate status <id> # broker + history + snapshot preview
214
+ maestro delegate tail <id> # recent events + history
215
+ maestro delegate cancel <id> # request cancellation
199
216
  ```
200
217
  </execution>
201
218
 
@@ -205,7 +222,7 @@ maestro cli watch <id> --timeout 60000 # auto-exit after 60s
205
222
 
206
223
  <execution>
207
224
 
208
- Proactively invoke `maestro cli` when these conditions are met — no user confirmation needed for `analysis` mode:
225
+ Proactively invoke `maestro delegate` when these conditions are met — no user confirmation needed for `analysis` mode:
209
226
 
210
227
  | Trigger | Suggested Rule |
211
228
  |---------|---------------|
@@ -1,7 +1,7 @@
1
1
  # Delegate Execution Specification
2
2
 
3
3
  <purpose>
4
- Unified reference for `maestro delegate` — synchronous task delegation with broker-managed lifecycle, message injection, and MCP notifications. Superset of `maestro cli` with cancellation and message chaining.
4
+ Unified reference for `maestro delegate` — synchronous task delegation with broker-managed lifecycle, message injection, and MCP notifications.
5
5
  </purpose>
6
6
 
7
7
  **References**: `~/.maestro/cli-tools.json` (tool config), `~/.maestro/templates/cli/` (protocol + prompt templates)
@@ -87,7 +87,7 @@ With MCP connected, all delegate tools are available programmatically.
87
87
 
88
88
  ### Assembly Order
89
89
 
90
- `maestro delegate` builds the final prompt identically to `maestro cli`:
90
+ `maestro delegate` builds the final prompt as:
91
91
 
92
92
  1. **Mode protocol** — `~/.maestro/templates/cli/protocols/{mode}-protocol.md`
93
93
  2. **User prompt** — the positional `"<PROMPT>"` value
@@ -243,7 +243,7 @@ All subcommands are also available as MCP tools for programmatic access:
243
243
 
244
244
  ### Snapshot & Preview
245
245
 
246
- `delegate status` includes a `Preview:` field showing the agent's latest output — built from `assistant_message`, `tool_use` completions, and `file_change` events. This serves the same purpose as `maestro cli watch` without requiring real-time streaming.
246
+ `delegate status` includes a `Preview:` field showing the agent's latest output — built from `assistant_message`, `tool_use` completions, and `file_change` events.
247
247
 
248
248
  ### Job Lifecycle
249
249
 
@@ -1,5 +1,9 @@
1
1
  # Workflow: Issue Analysis
2
2
 
3
+ > **DEPRECATED**: This workflow was used by the deleted `manage-issue-analyze` command.
4
+ > Use `maestro-analyze --gaps [ISS-ID]` instead, which integrates issue root cause analysis
5
+ > into the unified analyze pipeline. See `~/.maestro/workflows/issue-gaps-analyze.md`.
6
+
3
7
  Root cause analysis for a specific issue using CLI exploration and codebase context gathering.
4
8
 
5
9
  ## Input
@@ -87,7 +91,7 @@ Root cause analysis for a specific issue using CLI exploration and codebase cont
87
91
  ```
88
92
  1. Build analysis prompt:
89
93
 
90
- maestro cli -p "PURPOSE: Root cause analysis for issue {ISS-ID}: {ISSUE.title}
94
+ maestro delegate "PURPOSE: Root cause analysis for issue {ISS-ID}: {ISSUE.title}
91
95
  Identify the root cause, assess impact, and suggest an approach.
92
96
 
93
97
  ISSUE DETAILS:
@@ -116,7 +120,7 @@ Root cause analysis for a specific issue using CLI exploration and codebase cont
116
120
  confidence: 'high'|'medium'|'low',
117
121
  suggested_approach: string (actionable fix direction)
118
122
  CONSTRAINTS: Only cite evidence found in codebase, no speculation
119
- " --tool {TOOL} --mode analysis
123
+ " --to {TOOL} --mode analysis
120
124
 
121
125
  2. Parse CLI output:
122
126
  - Extract JSON object from response
@@ -115,7 +115,7 @@ Batch 2: scalability, ux, accessibility, compliance
115
115
 
116
116
  For each perspective, launch a CLI analysis:
117
117
 
118
- maestro cli -p "PURPOSE: Discover {PERSPECTIVE} issues in the codebase.
118
+ maestro delegate "PURPOSE: Discover {PERSPECTIVE} issues in the codebase.
119
119
  Focus: {FOCUS_AREA}
120
120
  Guiding question: {QUESTION}
121
121
 
@@ -130,7 +130,7 @@ For each perspective, launch a CLI analysis:
130
130
  EXPECTED: JSON array of findings, each with:
131
131
  title, severity, description, location (file:line), fix_direction, affected_components[]
132
132
  CONSTRAINTS: Only report real issues with evidence, no speculative findings
133
- " --tool gemini --mode analysis
133
+ " --to gemini --mode analysis
134
134
 
135
135
  Store results per perspective in:
136
136
  .workflow/issues/discoveries/{SESSION_ID}/{PERSPECTIVE}-findings.json
@@ -262,7 +262,7 @@ For each unique finding:
262
262
  ```
263
263
  Use Gemini CLI to decompose the user prompt into exploration dimensions:
264
264
 
265
- maestro cli -p "PURPOSE: Decompose this issue discovery prompt into 3-5 specific exploration dimensions.
265
+ maestro delegate "PURPOSE: Decompose this issue discovery prompt into 3-5 specific exploration dimensions.
266
266
 
267
267
  User wants to find: {USER_PROMPT}
268
268
 
@@ -280,7 +280,7 @@ Use Gemini CLI to decompose the user prompt into exploration dimensions:
280
280
  file_patterns: string[],
281
281
  finding_criteria: string
282
282
  }]
283
- " --tool gemini --mode analysis
283
+ " --to gemini --mode analysis
284
284
 
285
285
  Store dimensions in:
286
286
  .workflow/issues/discoveries/{SESSION_ID}/exploration-plan.json
@@ -1,5 +1,8 @@
1
1
  # Workflow: Issue Execution
2
2
 
3
+ > **DEPRECATED**: This workflow was used by the deleted `manage-issue-execute` command.
4
+ > Use `maestro-execute` instead, which handles wave-based execution with automatic issue status sync.
5
+
3
6
  Execute a planned solution for an issue via dual-mode agent dispatch (server or direct CLI).
4
7
 
5
8
  ## Input
@@ -182,8 +185,8 @@ If SERVER_UP == false (or server dispatch failed):
182
185
  }
183
186
  - Rewrite file
184
187
 
185
- 3. Execute via CLI:
186
- maestro cli -p "{EXEC_PROMPT}" --tool {CLI_TOOL} --mode write
188
+ 3. Execute via delegate:
189
+ maestro delegate "{EXEC_PROMPT}" --to {CLI_TOOL} --mode write
187
190
 
188
191
  4. Evaluate result:
189
192
  - If CLI exits successfully → EXEC_SUCCESS = true
@@ -274,7 +277,7 @@ If execution failed:
274
277
  ## Output
275
278
 
276
279
  - **Updated**: `.workflow/issues/issues.jsonl` -- issue status transitions (open -> in_progress -> resolved/open)
277
- - **Execution modes**: Server dispatch (POST /api/execution/dispatch) or Direct CLI (maestro cli --mode write)
280
+ - **Execution modes**: Server dispatch (POST /api/execution/dispatch) or Direct delegate (maestro delegate --mode write)
278
281
 
279
282
  ## Quality Criteria
280
283
 
@@ -1,5 +1,8 @@
1
1
  # Workflow: Issue Planning
2
2
 
3
+ > **DEPRECATED**: This workflow was used by the deleted `manage-issue-plan` command.
4
+ > Use `maestro-plan --gaps` instead, which generates TASK files linked to issues via `task_refs`.
5
+
3
6
  Solution planning for a specific issue with codebase-aware step generation and prompt template construction.
4
7
 
5
8
  ## Input
@@ -91,7 +94,7 @@ Solution planning for a specific issue with codebase-aware step generation and p
91
94
  ```
92
95
  1. Build planning prompt:
93
96
 
94
- maestro cli -p "PURPOSE: Generate a step-by-step solution plan for issue {ISS-ID}: {ISSUE.title}
97
+ maestro delegate "PURPOSE: Generate a step-by-step solution plan for issue {ISS-ID}: {ISSUE.title}
95
98
  Produce an actionable, ordered list of implementation steps.
96
99
 
97
100
  ISSUE DETAILS:
@@ -116,7 +119,7 @@ Solution planning for a specific issue with codebase-aware step generation and p
116
119
  context: string (approach summary),
117
120
  promptTemplate: string (execution prompt for the agent)
118
121
  CONSTRAINTS: Steps must be concrete and file-specific, not vague
119
- " --tool {TOOL} --mode analysis
122
+ " --to {TOOL} --mode analysis
120
123
 
121
124
  2. Parse CLI output:
122
125
  - Extract JSON object from response