maestro-flow 0.3.1 → 0.3.3

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 (574) hide show
  1. package/.claude/CLAUDE.md +2 -2
  2. package/.claude/agents/cli-explore-agent.md +1 -1
  3. package/.claude/agents/team-worker.md +237 -237
  4. package/.claude/commands/maestro-coordinate.md +65 -65
  5. package/.claude/commands/maestro-link-coordinate.md +71 -71
  6. package/.claude/commands/maestro-overlay.md +178 -122
  7. package/.claude/commands/manage-issue-execute.md +73 -73
  8. package/.claude/skills/team-coordinate/SKILL.md +266 -266
  9. package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
  10. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +94 -94
  11. package/.claude/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -62
  12. package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +85 -85
  13. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +95 -95
  14. package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
  15. package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
  16. package/.claude/skills/team-review/SKILL.md +147 -147
  17. package/.claude/skills/team-review/roles/reviewer/role.md +68 -68
  18. package/.claude/skills/team-review/roles/scanner/role.md +79 -79
  19. package/.claude/skills/team-tech-debt/SKILL.md +128 -128
  20. package/.claude/skills/team-tech-debt/roles/executor/role.md +76 -76
  21. package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
  22. package/.claude/skills/team-tech-debt/roles/validator/role.md +78 -78
  23. package/.claude/skills/team-testing/SKILL.md +143 -143
  24. package/.claude/skills/team-testing/roles/executor/role.md +99 -99
  25. package/.claude/skills/team-testing/roles/generator/role.md +98 -98
  26. package/.codex/skills/maestro-coordinate/SKILL.md +4 -5
  27. package/.codex/skills/manage-issue-analyze/SKILL.md +3 -3
  28. package/.codex/skills/manage-issue-execute/SKILL.md +4 -4
  29. package/.codex/skills/manage-issue-plan/SKILL.md +2 -2
  30. package/.codex/skills/team-coordinate/SKILL.md +7 -7
  31. package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
  32. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
  33. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
  34. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  35. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
  36. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
  37. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  38. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  39. package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
  40. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
  41. package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
  42. package/.codex/skills/team-review/SKILL.md +2 -2
  43. package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
  44. package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
  45. package/.codex/skills/team-review/roles/scanner/role.md +1 -1
  46. package/.codex/skills/team-tech-debt/SKILL.md +2 -2
  47. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
  48. package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
  49. package/.codex/skills/team-tech-debt/roles/scanner/role.md +1 -1
  50. package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
  51. package/.codex/skills/team-testing/SKILL.md +2 -2
  52. package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
  53. package/.codex/skills/team-testing/roles/executor/role.md +1 -1
  54. package/.codex/skills/team-testing/roles/generator/role.md +1 -1
  55. package/README.md +31 -2
  56. package/README.zh-CN.md +23 -1
  57. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  58. package/dist/src/agents/cli-agent-runner.js +6 -15
  59. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  60. package/dist/src/commands/delegate.d.ts.map +1 -1
  61. package/dist/src/commands/delegate.js +77 -1
  62. package/dist/src/commands/delegate.js.map +1 -1
  63. package/dist/src/commands/hooks.d.ts +15 -0
  64. package/dist/src/commands/hooks.d.ts.map +1 -1
  65. package/dist/src/commands/hooks.js +29 -2
  66. package/dist/src/commands/hooks.js.map +1 -1
  67. package/dist/src/commands/install-backend.d.ts +15 -0
  68. package/dist/src/commands/install-backend.d.ts.map +1 -1
  69. package/dist/src/commands/install-backend.js +67 -0
  70. package/dist/src/commands/install-backend.js.map +1 -1
  71. package/dist/src/commands/install-ui/BackupConfig.d.ts +6 -4
  72. package/dist/src/commands/install-ui/BackupConfig.d.ts.map +1 -1
  73. package/dist/src/commands/install-ui/BackupConfig.js +39 -12
  74. package/dist/src/commands/install-ui/BackupConfig.js.map +1 -1
  75. package/dist/src/commands/install-ui/ConfigPanel.d.ts.map +1 -1
  76. package/dist/src/commands/install-ui/ConfigPanel.js +1 -1
  77. package/dist/src/commands/install-ui/ConfigPanel.js.map +1 -1
  78. package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -0
  79. package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
  80. package/dist/src/commands/install-ui/InstallConfirm.js +5 -1
  81. package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
  82. package/dist/src/commands/install-ui/InstallExecution.d.ts +2 -0
  83. package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
  84. package/dist/src/commands/install-ui/InstallExecution.js +30 -5
  85. package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
  86. package/dist/src/commands/install-ui/InstallFlow.d.ts +1 -1
  87. package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
  88. package/dist/src/commands/install-ui/InstallFlow.js +31 -6
  89. package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
  90. package/dist/src/commands/install-ui/InstallHub.d.ts +5 -0
  91. package/dist/src/commands/install-ui/InstallHub.d.ts.map +1 -1
  92. package/dist/src/commands/install-ui/InstallHub.js +24 -0
  93. package/dist/src/commands/install-ui/InstallHub.js.map +1 -1
  94. package/dist/src/commands/install-ui/InstallResult.d.ts.map +1 -1
  95. package/dist/src/commands/install-ui/InstallResult.js +1 -1
  96. package/dist/src/commands/install-ui/InstallResult.js.map +1 -1
  97. package/dist/src/commands/install-ui/StatuslineConfig.d.ts +9 -0
  98. package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -0
  99. package/dist/src/commands/install-ui/StatuslineConfig.js +13 -0
  100. package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -0
  101. package/dist/src/commands/install-ui/index.d.ts +1 -1
  102. package/dist/src/commands/install-ui/index.d.ts.map +1 -1
  103. package/dist/src/commands/install-ui/types.d.ts +6 -0
  104. package/dist/src/commands/install-ui/types.d.ts.map +1 -1
  105. package/dist/src/commands/install-ui/types.js +3 -0
  106. package/dist/src/commands/install-ui/types.js.map +1 -1
  107. package/dist/src/commands/install.d.ts.map +1 -1
  108. package/dist/src/commands/install.js +6 -1
  109. package/dist/src/commands/install.js.map +1 -1
  110. package/dist/src/commands/launcher.js +1 -1
  111. package/dist/src/commands/launcher.js.map +1 -1
  112. package/dist/src/commands/overlay-ui/OverlayList.d.ts +35 -0
  113. package/dist/src/commands/overlay-ui/OverlayList.d.ts.map +1 -0
  114. package/dist/src/commands/overlay-ui/OverlayList.js +143 -0
  115. package/dist/src/commands/overlay-ui/OverlayList.js.map +1 -0
  116. package/dist/src/commands/overlay-ui/index.d.ts +2 -0
  117. package/dist/src/commands/overlay-ui/index.d.ts.map +1 -0
  118. package/dist/src/commands/overlay-ui/index.js +188 -0
  119. package/dist/src/commands/overlay-ui/index.js.map +1 -0
  120. package/dist/src/commands/overlay.d.ts.map +1 -1
  121. package/dist/src/commands/overlay.js +124 -60
  122. package/dist/src/commands/overlay.js.map +1 -1
  123. package/dist/src/commands/team.d.ts +10 -0
  124. package/dist/src/commands/team.d.ts.map +1 -1
  125. package/dist/src/commands/team.js +436 -42
  126. package/dist/src/commands/team.js.map +1 -1
  127. package/dist/src/core/manifest.d.ts.map +1 -1
  128. package/dist/src/core/manifest.js +58 -0
  129. package/dist/src/core/manifest.js.map +1 -1
  130. package/dist/src/core/overlay/applier.d.ts +36 -1
  131. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  132. package/dist/src/core/overlay/applier.js +109 -1
  133. package/dist/src/core/overlay/applier.js.map +1 -1
  134. package/dist/src/hooks/delegate-monitor.js +1 -1
  135. package/dist/src/hooks/delegate-monitor.js.map +1 -1
  136. package/dist/src/hooks/plugins/spec-injection-plugin.d.ts.map +1 -1
  137. package/dist/src/hooks/plugins/spec-injection-plugin.js +17 -1
  138. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  139. package/dist/src/hooks/spec-injector.d.ts +2 -1
  140. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  141. package/dist/src/hooks/spec-injector.js +19 -2
  142. package/dist/src/hooks/spec-injector.js.map +1 -1
  143. package/dist/src/hooks/team-monitor.d.ts.map +1 -1
  144. package/dist/src/hooks/team-monitor.js +17 -0
  145. package/dist/src/hooks/team-monitor.js.map +1 -1
  146. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  147. package/dist/src/i18n/locales/en.js +25 -1
  148. package/dist/src/i18n/locales/en.js.map +1 -1
  149. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  150. package/dist/src/i18n/locales/zh.js +25 -1
  151. package/dist/src/i18n/locales/zh.js.map +1 -1
  152. package/dist/src/i18n/types.d.ts +22 -0
  153. package/dist/src/i18n/types.d.ts.map +1 -1
  154. package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
  155. package/dist/src/mcp/delegate-channel-relay.js +2 -7
  156. package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
  157. package/dist/src/tools/namespace-guard.d.ts +37 -0
  158. package/dist/src/tools/namespace-guard.d.ts.map +1 -0
  159. package/dist/src/tools/namespace-guard.js +126 -0
  160. package/dist/src/tools/namespace-guard.js.map +1 -0
  161. package/dist/src/tools/spec-loader.d.ts +17 -1
  162. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  163. package/dist/src/tools/spec-loader.js +71 -13
  164. package/dist/src/tools/spec-loader.js.map +1 -1
  165. package/dist/src/tools/team-members.d.ts +16 -0
  166. package/dist/src/tools/team-members.d.ts.map +1 -1
  167. package/dist/src/tools/team-members.js +31 -0
  168. package/dist/src/tools/team-members.js.map +1 -1
  169. package/package.json +1 -1
  170. package/workflows/delegate-usage.md +330 -0
  171. package/dist/agents/cli-agent-runner.d.ts +0 -131
  172. package/dist/agents/cli-agent-runner.d.ts.map +0 -1
  173. package/dist/agents/cli-agent-runner.js +0 -688
  174. package/dist/agents/cli-agent-runner.js.map +0 -1
  175. package/dist/agents/cli-history-store.d.ts +0 -63
  176. package/dist/agents/cli-history-store.d.ts.map +0 -1
  177. package/dist/agents/cli-history-store.js +0 -242
  178. package/dist/agents/cli-history-store.js.map +0 -1
  179. package/dist/agents/dashboard-bridge.d.ts +0 -39
  180. package/dist/agents/dashboard-bridge.d.ts.map +0 -1
  181. package/dist/agents/dashboard-bridge.js +0 -76
  182. package/dist/agents/dashboard-bridge.js.map +0 -1
  183. package/dist/agents/parallel-cli-runner.d.ts +0 -46
  184. package/dist/agents/parallel-cli-runner.d.ts.map +0 -1
  185. package/dist/agents/parallel-cli-runner.js +0 -277
  186. package/dist/agents/parallel-cli-runner.js.map +0 -1
  187. package/dist/agents/terminal-adapter.d.ts +0 -94
  188. package/dist/agents/terminal-adapter.d.ts.map +0 -1
  189. package/dist/agents/terminal-adapter.js +0 -132
  190. package/dist/agents/terminal-adapter.js.map +0 -1
  191. package/dist/agents/terminal-backend.d.ts +0 -53
  192. package/dist/agents/terminal-backend.d.ts.map +0 -1
  193. package/dist/agents/terminal-backend.js +0 -286
  194. package/dist/agents/terminal-backend.js.map +0 -1
  195. package/dist/async/delegate-broker-client.d.ts +0 -22
  196. package/dist/async/delegate-broker-client.d.ts.map +0 -1
  197. package/dist/async/delegate-broker-client.js +0 -47
  198. package/dist/async/delegate-broker-client.js.map +0 -1
  199. package/dist/async/delegate-broker.d.ts +0 -180
  200. package/dist/async/delegate-broker.d.ts.map +0 -1
  201. package/dist/async/delegate-broker.js +0 -1040
  202. package/dist/async/delegate-broker.js.map +0 -1
  203. package/dist/async/delegate-control.d.ts +0 -37
  204. package/dist/async/delegate-control.d.ts.map +0 -1
  205. package/dist/async/delegate-control.js +0 -155
  206. package/dist/async/delegate-control.js.map +0 -1
  207. package/dist/async/index.d.ts +0 -3
  208. package/dist/async/index.d.ts.map +0 -1
  209. package/dist/async/index.js +0 -3
  210. package/dist/async/index.js.map +0 -1
  211. package/dist/cli.d.ts +0 -2
  212. package/dist/cli.d.ts.map +0 -1
  213. package/dist/cli.js +0 -40
  214. package/dist/cli.js.map +0 -1
  215. package/dist/commands/cli.d.ts +0 -3
  216. package/dist/commands/cli.d.ts.map +0 -1
  217. package/dist/commands/cli.js +0 -262
  218. package/dist/commands/cli.js.map +0 -1
  219. package/dist/commands/coordinate.d.ts +0 -3
  220. package/dist/commands/coordinate.d.ts.map +0 -1
  221. package/dist/commands/coordinate.js +0 -275
  222. package/dist/commands/coordinate.js.map +0 -1
  223. package/dist/commands/delegate.d.ts +0 -37
  224. package/dist/commands/delegate.d.ts.map +0 -1
  225. package/dist/commands/delegate.js +0 -470
  226. package/dist/commands/delegate.js.map +0 -1
  227. package/dist/commands/ext.d.ts +0 -3
  228. package/dist/commands/ext.d.ts.map +0 -1
  229. package/dist/commands/ext.js +0 -28
  230. package/dist/commands/ext.js.map +0 -1
  231. package/dist/commands/hooks.d.ts +0 -3
  232. package/dist/commands/hooks.d.ts.map +0 -1
  233. package/dist/commands/hooks.js +0 -126
  234. package/dist/commands/hooks.js.map +0 -1
  235. package/dist/commands/install.d.ts +0 -3
  236. package/dist/commands/install.d.ts.map +0 -1
  237. package/dist/commands/install.js +0 -621
  238. package/dist/commands/install.js.map +0 -1
  239. package/dist/commands/launcher.d.ts +0 -3
  240. package/dist/commands/launcher.d.ts.map +0 -1
  241. package/dist/commands/launcher.js +0 -635
  242. package/dist/commands/launcher.js.map +0 -1
  243. package/dist/commands/link-coordinate.d.ts +0 -3
  244. package/dist/commands/link-coordinate.d.ts.map +0 -1
  245. package/dist/commands/link-coordinate.js +0 -225
  246. package/dist/commands/link-coordinate.js.map +0 -1
  247. package/dist/commands/msg.d.ts +0 -3
  248. package/dist/commands/msg.d.ts.map +0 -1
  249. package/dist/commands/msg.js +0 -110
  250. package/dist/commands/msg.js.map +0 -1
  251. package/dist/commands/overlay.d.ts +0 -3
  252. package/dist/commands/overlay.d.ts.map +0 -1
  253. package/dist/commands/overlay.js +0 -243
  254. package/dist/commands/overlay.js.map +0 -1
  255. package/dist/commands/run.d.ts +0 -3
  256. package/dist/commands/run.d.ts.map +0 -1
  257. package/dist/commands/run.js +0 -15
  258. package/dist/commands/run.js.map +0 -1
  259. package/dist/commands/serve.d.ts +0 -3
  260. package/dist/commands/serve.d.ts.map +0 -1
  261. package/dist/commands/serve.js +0 -16
  262. package/dist/commands/serve.js.map +0 -1
  263. package/dist/commands/spec.d.ts +0 -8
  264. package/dist/commands/spec.d.ts.map +0 -1
  265. package/dist/commands/spec.js +0 -147
  266. package/dist/commands/spec.js.map +0 -1
  267. package/dist/commands/stop.d.ts +0 -3
  268. package/dist/commands/stop.d.ts.map +0 -1
  269. package/dist/commands/stop.js +0 -218
  270. package/dist/commands/stop.js.map +0 -1
  271. package/dist/commands/tool.d.ts +0 -3
  272. package/dist/commands/tool.d.ts.map +0 -1
  273. package/dist/commands/tool.js +0 -29
  274. package/dist/commands/tool.js.map +0 -1
  275. package/dist/commands/uninstall.d.ts +0 -3
  276. package/dist/commands/uninstall.d.ts.map +0 -1
  277. package/dist/commands/uninstall.js +0 -77
  278. package/dist/commands/uninstall.js.map +0 -1
  279. package/dist/commands/view.d.ts +0 -3
  280. package/dist/commands/view.d.ts.map +0 -1
  281. package/dist/commands/view.js +0 -337
  282. package/dist/commands/view.js.map +0 -1
  283. package/dist/config/cli-tools-config.d.ts +0 -26
  284. package/dist/config/cli-tools-config.d.ts.map +0 -1
  285. package/dist/config/cli-tools-config.js +0 -49
  286. package/dist/config/cli-tools-config.js.map +0 -1
  287. package/dist/config/cli-tools-config.test.d.ts +0 -2
  288. package/dist/config/cli-tools-config.test.d.ts.map +0 -1
  289. package/dist/config/cli-tools-config.test.js +0 -59
  290. package/dist/config/cli-tools-config.test.js.map +0 -1
  291. package/dist/config/index.d.ts +0 -4
  292. package/dist/config/index.d.ts.map +0 -1
  293. package/dist/config/index.js +0 -27
  294. package/dist/config/index.js.map +0 -1
  295. package/dist/config/paths.d.ts +0 -15
  296. package/dist/config/paths.d.ts.map +0 -1
  297. package/dist/config/paths.js +0 -27
  298. package/dist/config/paths.js.map +0 -1
  299. package/dist/config/template-discovery.d.ts +0 -32
  300. package/dist/config/template-discovery.d.ts.map +0 -1
  301. package/dist/config/template-discovery.js +0 -128
  302. package/dist/config/template-discovery.js.map +0 -1
  303. package/dist/coordinator/cli-executor.d.ts +0 -22
  304. package/dist/coordinator/cli-executor.d.ts.map +0 -1
  305. package/dist/coordinator/cli-executor.js +0 -49
  306. package/dist/coordinator/cli-executor.js.map +0 -1
  307. package/dist/coordinator/expr-evaluator.d.ts +0 -11
  308. package/dist/coordinator/expr-evaluator.d.ts.map +0 -1
  309. package/dist/coordinator/expr-evaluator.js +0 -351
  310. package/dist/coordinator/expr-evaluator.js.map +0 -1
  311. package/dist/coordinator/graph-loader.d.ts +0 -16
  312. package/dist/coordinator/graph-loader.d.ts.map +0 -1
  313. package/dist/coordinator/graph-loader.js +0 -190
  314. package/dist/coordinator/graph-loader.js.map +0 -1
  315. package/dist/coordinator/graph-types.d.ts +0 -304
  316. package/dist/coordinator/graph-types.d.ts.map +0 -1
  317. package/dist/coordinator/graph-types.js +0 -6
  318. package/dist/coordinator/graph-types.js.map +0 -1
  319. package/dist/coordinator/graph-walker.d.ts +0 -51
  320. package/dist/coordinator/graph-walker.d.ts.map +0 -1
  321. package/dist/coordinator/graph-walker.js +0 -666
  322. package/dist/coordinator/graph-walker.js.map +0 -1
  323. package/dist/coordinator/index.d.ts +0 -13
  324. package/dist/coordinator/index.d.ts.map +0 -1
  325. package/dist/coordinator/index.js +0 -14
  326. package/dist/coordinator/index.js.map +0 -1
  327. package/dist/coordinator/intent-router.d.ts +0 -11
  328. package/dist/coordinator/intent-router.d.ts.map +0 -1
  329. package/dist/coordinator/intent-router.js +0 -65
  330. package/dist/coordinator/intent-router.js.map +0 -1
  331. package/dist/coordinator/link-session.d.ts +0 -29
  332. package/dist/coordinator/link-session.d.ts.map +0 -1
  333. package/dist/coordinator/link-session.js +0 -192
  334. package/dist/coordinator/link-session.js.map +0 -1
  335. package/dist/coordinator/link-walker.d.ts +0 -56
  336. package/dist/coordinator/link-walker.d.ts.map +0 -1
  337. package/dist/coordinator/link-walker.js +0 -548
  338. package/dist/coordinator/link-walker.js.map +0 -1
  339. package/dist/coordinator/output-parser.d.ts +0 -5
  340. package/dist/coordinator/output-parser.d.ts.map +0 -1
  341. package/dist/coordinator/output-parser.js +0 -114
  342. package/dist/coordinator/output-parser.js.map +0 -1
  343. package/dist/coordinator/parallel-executor.d.ts +0 -24
  344. package/dist/coordinator/parallel-executor.d.ts.map +0 -1
  345. package/dist/coordinator/parallel-executor.js +0 -43
  346. package/dist/coordinator/parallel-executor.js.map +0 -1
  347. package/dist/coordinator/prompt-assembler.d.ts +0 -15
  348. package/dist/coordinator/prompt-assembler.d.ts.map +0 -1
  349. package/dist/coordinator/prompt-assembler.js +0 -228
  350. package/dist/coordinator/prompt-assembler.js.map +0 -1
  351. package/dist/coordinator/step-analyzer.d.ts +0 -8
  352. package/dist/coordinator/step-analyzer.d.ts.map +0 -1
  353. package/dist/coordinator/step-analyzer.js +0 -82
  354. package/dist/coordinator/step-analyzer.js.map +0 -1
  355. package/dist/core/extension-loader.d.ts +0 -11
  356. package/dist/core/extension-loader.d.ts.map +0 -1
  357. package/dist/core/extension-loader.js +0 -54
  358. package/dist/core/extension-loader.js.map +0 -1
  359. package/dist/core/manifest.d.ts +0 -24
  360. package/dist/core/manifest.d.ts.map +0 -1
  361. package/dist/core/manifest.js +0 -139
  362. package/dist/core/manifest.js.map +0 -1
  363. package/dist/core/mcp-tool-registry.integration.test.d.ts +0 -2
  364. package/dist/core/mcp-tool-registry.integration.test.d.ts.map +0 -1
  365. package/dist/core/mcp-tool-registry.integration.test.js +0 -220
  366. package/dist/core/mcp-tool-registry.integration.test.js.map +0 -1
  367. package/dist/core/overlay/applier.d.ts +0 -73
  368. package/dist/core/overlay/applier.d.ts.map +0 -1
  369. package/dist/core/overlay/applier.js +0 -248
  370. package/dist/core/overlay/applier.js.map +0 -1
  371. package/dist/core/overlay/loader.d.ts +0 -26
  372. package/dist/core/overlay/loader.d.ts.map +0 -1
  373. package/dist/core/overlay/loader.js +0 -199
  374. package/dist/core/overlay/loader.js.map +0 -1
  375. package/dist/core/overlay/patcher.d.ts +0 -26
  376. package/dist/core/overlay/patcher.d.ts.map +0 -1
  377. package/dist/core/overlay/patcher.js +0 -212
  378. package/dist/core/overlay/patcher.js.map +0 -1
  379. package/dist/core/overlay/section-parser.d.ts +0 -25
  380. package/dist/core/overlay/section-parser.d.ts.map +0 -1
  381. package/dist/core/overlay/section-parser.js +0 -99
  382. package/dist/core/overlay/section-parser.js.map +0 -1
  383. package/dist/core/overlay/types.d.ts +0 -51
  384. package/dist/core/overlay/types.d.ts.map +0 -1
  385. package/dist/core/overlay/types.js +0 -15
  386. package/dist/core/overlay/types.js.map +0 -1
  387. package/dist/core/tool-registry.d.ts +0 -10
  388. package/dist/core/tool-registry.d.ts.map +0 -1
  389. package/dist/core/tool-registry.js +0 -29
  390. package/dist/core/tool-registry.js.map +0 -1
  391. package/dist/core/tool-registry.test.d.ts +0 -2
  392. package/dist/core/tool-registry.test.d.ts.map +0 -1
  393. package/dist/core/tool-registry.test.js +0 -78
  394. package/dist/core/tool-registry.test.js.map +0 -1
  395. package/dist/db/connection-pool.d.ts +0 -21
  396. package/dist/db/connection-pool.d.ts.map +0 -1
  397. package/dist/db/connection-pool.js +0 -53
  398. package/dist/db/connection-pool.js.map +0 -1
  399. package/dist/db/index.d.ts +0 -6
  400. package/dist/db/index.d.ts.map +0 -1
  401. package/dist/db/index.js +0 -9
  402. package/dist/db/index.js.map +0 -1
  403. package/dist/db/schema/core/index.d.ts +0 -5
  404. package/dist/db/schema/core/index.d.ts.map +0 -1
  405. package/dist/db/schema/core/index.js +0 -5
  406. package/dist/db/schema/core/index.js.map +0 -1
  407. package/dist/db/schema/core/organizations.d.ts +0 -244
  408. package/dist/db/schema/core/organizations.d.ts.map +0 -1
  409. package/dist/db/schema/core/organizations.js +0 -44
  410. package/dist/db/schema/core/organizations.js.map +0 -1
  411. package/dist/db/schema/core/permissions.d.ts +0 -158
  412. package/dist/db/schema/core/permissions.d.ts.map +0 -1
  413. package/dist/db/schema/core/permissions.js +0 -62
  414. package/dist/db/schema/core/permissions.js.map +0 -1
  415. package/dist/db/schema/core/refresh-tokens.d.ts +0 -147
  416. package/dist/db/schema/core/refresh-tokens.d.ts.map +0 -1
  417. package/dist/db/schema/core/refresh-tokens.js +0 -22
  418. package/dist/db/schema/core/refresh-tokens.js.map +0 -1
  419. package/dist/db/schema/core/users.d.ts +0 -178
  420. package/dist/db/schema/core/users.d.ts.map +0 -1
  421. package/dist/db/schema/core/users.js +0 -14
  422. package/dist/db/schema/core/users.js.map +0 -1
  423. package/dist/db/tenant-migrator.d.ts +0 -11
  424. package/dist/db/tenant-migrator.d.ts.map +0 -1
  425. package/dist/db/tenant-migrator.js +0 -74
  426. package/dist/db/tenant-migrator.js.map +0 -1
  427. package/dist/db/tenant-schema.d.ts +0 -290
  428. package/dist/db/tenant-schema.d.ts.map +0 -1
  429. package/dist/db/tenant-schema.js +0 -32
  430. package/dist/db/tenant-schema.js.map +0 -1
  431. package/dist/hooks/constants.d.ts +0 -40
  432. package/dist/hooks/constants.d.ts.map +0 -1
  433. package/dist/hooks/constants.js +0 -53
  434. package/dist/hooks/constants.js.map +0 -1
  435. package/dist/hooks/context-monitor.d.ts +0 -33
  436. package/dist/hooks/context-monitor.d.ts.map +0 -1
  437. package/dist/hooks/context-monitor.js +0 -117
  438. package/dist/hooks/context-monitor.js.map +0 -1
  439. package/dist/hooks/delegate-monitor.d.ts +0 -24
  440. package/dist/hooks/delegate-monitor.d.ts.map +0 -1
  441. package/dist/hooks/delegate-monitor.js +0 -76
  442. package/dist/hooks/delegate-monitor.js.map +0 -1
  443. package/dist/hooks/index.d.ts +0 -4
  444. package/dist/hooks/index.d.ts.map +0 -1
  445. package/dist/hooks/index.js +0 -4
  446. package/dist/hooks/index.js.map +0 -1
  447. package/dist/hooks/statusline.d.ts +0 -29
  448. package/dist/hooks/statusline.d.ts.map +0 -1
  449. package/dist/hooks/statusline.js +0 -134
  450. package/dist/hooks/statusline.js.map +0 -1
  451. package/dist/index.d.ts +0 -8
  452. package/dist/index.d.ts.map +0 -1
  453. package/dist/index.js +0 -6
  454. package/dist/index.js.map +0 -1
  455. package/dist/mcp/delegate-channel-relay.d.ts +0 -51
  456. package/dist/mcp/delegate-channel-relay.d.ts.map +0 -1
  457. package/dist/mcp/delegate-channel-relay.js +0 -307
  458. package/dist/mcp/delegate-channel-relay.js.map +0 -1
  459. package/dist/mcp/server.d.ts +0 -6
  460. package/dist/mcp/server.d.ts.map +0 -1
  461. package/dist/mcp/server.js +0 -64
  462. package/dist/mcp/server.js.map +0 -1
  463. package/dist/middleware/auth.d.ts +0 -13
  464. package/dist/middleware/auth.d.ts.map +0 -1
  465. package/dist/middleware/auth.js +0 -27
  466. package/dist/middleware/auth.js.map +0 -1
  467. package/dist/middleware/permission.d.ts +0 -9
  468. package/dist/middleware/permission.d.ts.map +0 -1
  469. package/dist/middleware/permission.js +0 -19
  470. package/dist/middleware/permission.js.map +0 -1
  471. package/dist/middleware/rate-limit.d.ts +0 -9
  472. package/dist/middleware/rate-limit.d.ts.map +0 -1
  473. package/dist/middleware/rate-limit.js +0 -40
  474. package/dist/middleware/rate-limit.js.map +0 -1
  475. package/dist/middleware/tenant.d.ts +0 -17
  476. package/dist/middleware/tenant.d.ts.map +0 -1
  477. package/dist/middleware/tenant.js +0 -57
  478. package/dist/middleware/tenant.js.map +0 -1
  479. package/dist/middleware/validation.d.ts +0 -40
  480. package/dist/middleware/validation.d.ts.map +0 -1
  481. package/dist/middleware/validation.js +0 -51
  482. package/dist/middleware/validation.js.map +0 -1
  483. package/dist/routes/auth.d.ts +0 -3
  484. package/dist/routes/auth.d.ts.map +0 -1
  485. package/dist/routes/auth.js +0 -77
  486. package/dist/routes/auth.js.map +0 -1
  487. package/dist/routes/members.d.ts +0 -4
  488. package/dist/routes/members.d.ts.map +0 -1
  489. package/dist/routes/members.js +0 -114
  490. package/dist/routes/members.js.map +0 -1
  491. package/dist/routes/organizations.d.ts +0 -5
  492. package/dist/routes/organizations.d.ts.map +0 -1
  493. package/dist/routes/organizations.js +0 -97
  494. package/dist/routes/organizations.js.map +0 -1
  495. package/dist/services/auth.service.d.ts +0 -24
  496. package/dist/services/auth.service.d.ts.map +0 -1
  497. package/dist/services/auth.service.js +0 -70
  498. package/dist/services/auth.service.js.map +0 -1
  499. package/dist/services/password.service.d.ts +0 -3
  500. package/dist/services/password.service.d.ts.map +0 -1
  501. package/dist/services/password.service.js +0 -18
  502. package/dist/services/password.service.js.map +0 -1
  503. package/dist/services/rbac.service.d.ts +0 -7
  504. package/dist/services/rbac.service.d.ts.map +0 -1
  505. package/dist/services/rbac.service.js +0 -36
  506. package/dist/services/rbac.service.js.map +0 -1
  507. package/dist/services/token.service.d.ts +0 -18
  508. package/dist/services/token.service.d.ts.map +0 -1
  509. package/dist/services/token.service.js +0 -86
  510. package/dist/services/token.service.js.map +0 -1
  511. package/dist/tools/core-memory.d.ts +0 -12
  512. package/dist/tools/core-memory.d.ts.map +0 -1
  513. package/dist/tools/core-memory.js +0 -276
  514. package/dist/tools/core-memory.js.map +0 -1
  515. package/dist/tools/edit-file.d.ts +0 -25
  516. package/dist/tools/edit-file.d.ts.map +0 -1
  517. package/dist/tools/edit-file.js +0 -462
  518. package/dist/tools/edit-file.js.map +0 -1
  519. package/dist/tools/index.d.ts +0 -8
  520. package/dist/tools/index.d.ts.map +0 -1
  521. package/dist/tools/index.js +0 -536
  522. package/dist/tools/index.js.map +0 -1
  523. package/dist/tools/read-file.d.ts +0 -13
  524. package/dist/tools/read-file.d.ts.map +0 -1
  525. package/dist/tools/read-file.js +0 -91
  526. package/dist/tools/read-file.js.map +0 -1
  527. package/dist/tools/read-many-files.d.ts +0 -15
  528. package/dist/tools/read-many-files.d.ts.map +0 -1
  529. package/dist/tools/read-many-files.js +0 -187
  530. package/dist/tools/read-many-files.js.map +0 -1
  531. package/dist/tools/spec-index-builder.d.ts +0 -58
  532. package/dist/tools/spec-index-builder.d.ts.map +0 -1
  533. package/dist/tools/spec-index-builder.js +0 -211
  534. package/dist/tools/spec-index-builder.js.map +0 -1
  535. package/dist/tools/spec-init.d.ts +0 -17
  536. package/dist/tools/spec-init.d.ts.map +0 -1
  537. package/dist/tools/spec-init.js +0 -215
  538. package/dist/tools/spec-init.js.map +0 -1
  539. package/dist/tools/spec-keyword-extractor.d.ts +0 -24
  540. package/dist/tools/spec-keyword-extractor.d.ts.map +0 -1
  541. package/dist/tools/spec-keyword-extractor.js +0 -84
  542. package/dist/tools/spec-keyword-extractor.js.map +0 -1
  543. package/dist/tools/spec-keyword-extractor.test.d.ts +0 -2
  544. package/dist/tools/spec-keyword-extractor.test.d.ts.map +0 -1
  545. package/dist/tools/spec-keyword-extractor.test.js +0 -99
  546. package/dist/tools/spec-keyword-extractor.test.js.map +0 -1
  547. package/dist/tools/spec-loader.d.ts +0 -15
  548. package/dist/tools/spec-loader.d.ts.map +0 -1
  549. package/dist/tools/spec-loader.js +0 -93
  550. package/dist/tools/spec-loader.js.map +0 -1
  551. package/dist/tools/team-msg.d.ts +0 -52
  552. package/dist/tools/team-msg.d.ts.map +0 -1
  553. package/dist/tools/team-msg.js +0 -449
  554. package/dist/tools/team-msg.js.map +0 -1
  555. package/dist/tools/write-file.d.ts +0 -19
  556. package/dist/tools/write-file.d.ts.map +0 -1
  557. package/dist/tools/write-file.js +0 -165
  558. package/dist/tools/write-file.js.map +0 -1
  559. package/dist/types/index.d.ts +0 -47
  560. package/dist/types/index.d.ts.map +0 -1
  561. package/dist/types/index.js +0 -2
  562. package/dist/types/index.js.map +0 -1
  563. package/dist/types/tool-schema.d.ts +0 -37
  564. package/dist/types/tool-schema.d.ts.map +0 -1
  565. package/dist/types/tool-schema.js +0 -24
  566. package/dist/types/tool-schema.js.map +0 -1
  567. package/dist/utils/file-reader.d.ts +0 -74
  568. package/dist/utils/file-reader.d.ts.map +0 -1
  569. package/dist/utils/file-reader.js +0 -217
  570. package/dist/utils/file-reader.js.map +0 -1
  571. package/dist/utils/path-validator.d.ts +0 -52
  572. package/dist/utils/path-validator.d.ts.map +0 -1
  573. package/dist/utils/path-validator.js +0 -151
  574. package/dist/utils/path-validator.js.map +0 -1
@@ -1,98 +1,98 @@
1
- ---
2
- role: generator
3
- prefix: TESTGEN
4
- inner_loop: true
5
- message_types:
6
- success: tests_generated
7
- revision: tests_revised
8
- error: error
9
- ---
10
-
11
- # Test Generator
12
-
13
- Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
14
-
15
- ## Phase 2: Context Loading
16
-
17
- | Input | Source | Required |
18
- |-------|--------|----------|
19
- | Task description | From task subject/description | Yes |
20
- | Session path | Extracted from task description | Yes |
21
- | Test strategy | <session>/strategy/test-strategy.md | Yes |
22
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
23
-
24
- 1. Extract session path and layer from task description
25
- 2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
26
- 3. Read test strategy:
27
-
28
- ```
29
- Read("<session>/strategy/test-strategy.md")
30
- ```
31
-
32
- 3. Read source files to test (from strategy priority_files, limit 20)
33
- 4. Read .msg/meta.json for framework and scope context
34
-
35
- 5. Detect revision mode:
36
-
37
- | Condition | Mode |
38
- |-----------|------|
39
- | Task subject contains "fix" or "revised" | Revision -- load previous failures |
40
- | Otherwise | Fresh generation |
41
-
42
- For revision mode:
43
- - Read latest result file for failure details
44
- - Read effective test patterns from .msg/meta.json
45
-
46
- 6. Read wisdom files if available
47
-
48
- ## Phase 3: Test Generation
49
-
50
- **Strategy selection by complexity**:
51
-
52
- | File Count | Strategy |
53
- |------------|----------|
54
- | <= 3 files | Direct: inline Write/Edit |
55
- | 3-5 files | Single code-developer agent |
56
- | > 5 files | Batch: group by module, one agent per batch |
57
-
58
- **Direct generation** (per source file):
59
- 1. Generate test path: `<session>/tests/<layer>/<test-file>`
60
- 2. Generate test code: happy path, edge cases, error handling
61
- 3. Write test file
62
-
63
- **CLI delegation** (medium/high complexity):
64
-
65
- ```
66
- Bash({
67
- command: `maestro cli -p "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
68
- TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
69
- MODE: write
70
- CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
71
- <if-revision: Previous failures: <failure-details>
72
- Effective patterns: <patterns-from-meta>>
73
- EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
74
- CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
75
- Source files to test:
76
- <file-list-with-content>" --tool gemini --mode write --cd <session>`,
77
- run_in_background: false
78
- })
79
- ```
80
-
81
- **Output verification**:
82
-
83
- ```
84
- Glob("<session>/tests/<layer>/**/*")
85
- ```
86
-
87
- ## Phase 4: Self-Validation & State Update
88
-
89
- **Validation checks**:
90
-
91
- | Check | Method | Action on Fail |
92
- |-------|--------|----------------|
93
- | Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
94
- | File count | Count generated files | Report issue |
95
- | Import resolution | Check broken imports | Fix import paths |
96
-
97
- Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
98
- - Merge `{ "generator": { test_files, layer, round, is_revision } }`
1
+ ---
2
+ role: generator
3
+ prefix: TESTGEN
4
+ inner_loop: true
5
+ message_types:
6
+ success: tests_generated
7
+ revision: tests_revised
8
+ error: error
9
+ ---
10
+
11
+ # Test Generator
12
+
13
+ Generate test code by layer (L1 unit / L2 integration / L3 E2E). Acts as the Generator in the Generator-Critic loop. Supports revision mode for GC loop iterations.
14
+
15
+ ## Phase 2: Context Loading
16
+
17
+ | Input | Source | Required |
18
+ |-------|--------|----------|
19
+ | Task description | From task subject/description | Yes |
20
+ | Session path | Extracted from task description | Yes |
21
+ | Test strategy | <session>/strategy/test-strategy.md | Yes |
22
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
23
+
24
+ 1. Extract session path and layer from task description
25
+ 2. Load test specs: Run `ccw spec load --category test` for test framework conventions and coverage targets
26
+ 3. Read test strategy:
27
+
28
+ ```
29
+ Read("<session>/strategy/test-strategy.md")
30
+ ```
31
+
32
+ 3. Read source files to test (from strategy priority_files, limit 20)
33
+ 4. Read .msg/meta.json for framework and scope context
34
+
35
+ 5. Detect revision mode:
36
+
37
+ | Condition | Mode |
38
+ |-----------|------|
39
+ | Task subject contains "fix" or "revised" | Revision -- load previous failures |
40
+ | Otherwise | Fresh generation |
41
+
42
+ For revision mode:
43
+ - Read latest result file for failure details
44
+ - Read effective test patterns from .msg/meta.json
45
+
46
+ 6. Read wisdom files if available
47
+
48
+ ## Phase 3: Test Generation
49
+
50
+ **Strategy selection by complexity**:
51
+
52
+ | File Count | Strategy |
53
+ |------------|----------|
54
+ | <= 3 files | Direct: inline Write/Edit |
55
+ | 3-5 files | Single code-developer agent |
56
+ | > 5 files | Batch: group by module, one agent per batch |
57
+
58
+ **Direct generation** (per source file):
59
+ 1. Generate test path: `<session>/tests/<layer>/<test-file>`
60
+ 2. Generate test code: happy path, edge cases, error handling
61
+ 3. Write test file
62
+
63
+ **CLI delegation** (medium/high complexity):
64
+
65
+ ```
66
+ Bash({
67
+ command: `maestro delegate "PURPOSE: Generate <layer> tests using <framework> to achieve coverage target; success = all priority files covered with quality tests
68
+ TASK: • Analyze source files • Generate test cases (happy path, edge cases, errors) • Write test files with proper structure • Ensure import resolution
69
+ MODE: write
70
+ CONTEXT: @<source-files> @<session>/strategy/test-strategy.md | Memory: Framework: <framework>, Layer: <layer>, Round: <round>
71
+ <if-revision: Previous failures: <failure-details>
72
+ Effective patterns: <patterns-from-meta>>
73
+ EXPECTED: Test files in <session>/tests/<layer>/ with: proper test structure, comprehensive coverage, correct imports, framework conventions
74
+ CONSTRAINTS: Follow test strategy priorities | Use framework best practices | <layer>-appropriate assertions
75
+ Source files to test:
76
+ <file-list-with-content>" --tool gemini --mode write --cd <session>`,
77
+ run_in_background: false
78
+ })
79
+ ```
80
+
81
+ **Output verification**:
82
+
83
+ ```
84
+ Glob("<session>/tests/<layer>/**/*")
85
+ ```
86
+
87
+ ## Phase 4: Self-Validation & State Update
88
+
89
+ **Validation checks**:
90
+
91
+ | Check | Method | Action on Fail |
92
+ |-------|--------|----------------|
93
+ | Syntax | `tsc --noEmit` or equivalent | Auto-fix imports/types |
94
+ | File count | Count generated files | Report issue |
95
+ | Import resolution | Check broken imports | Fix import paths |
96
+
97
+ Update `<session>/wisdom/.msg/meta.json` under `generator` namespace:
98
+ - Merge `{ "generator": { test_files, layer, round, is_revision } }`
@@ -61,7 +61,7 @@ Intent → Resolve Chain → Step 1 → Step 2 → … → Step N →
61
61
 
62
62
  ## Implementation
63
63
 
64
- > **Full implementation reference**: The complete `detectTaskType`, `detectNextAction`, and `chainMap` definitions (35+ intent patterns, 40+ chain types) are in `~/workflows/maestro-coordinate.codex.md`. Read that file for authoritative logic before executing any step.
64
+ > **Full implementation reference**: The complete `detectTaskType`, `detectNextAction`, and `chainMap` definitions (35+ intent patterns, 40+ chain types) are in `~/.maestro/workflows/maestro-coordinate.codex.md`. Read that file for authoritative logic before executing any step.
65
65
 
66
66
  ### Session Initialization
67
67
 
@@ -213,9 +213,8 @@ The assembled prompt embeds the skill call so the agent knows exactly what to in
213
213
  ## TASK ASSIGNMENT
214
214
 
215
215
  ### MANDATORY FIRST STEPS
216
- 1. Read: ~/.codex/agents/universal-executor.md
217
- 2. Read: ~/workflows/maestro-coordinate.codex.md
218
- 3. Read: ~/.codex/skills/{skill}/SKILL.md
216
+ 1. Read: ~/.maestro/workflows/maestro-coordinate.codex.md
217
+ 2. Read: ~/.codex/skills/{skill}/SKILL.md
219
218
 
220
219
  ---
221
220
 
@@ -308,4 +307,4 @@ Resume: $maestro-coordinate --continue
308
307
  6. **Close before spawn**: Always `close_agent` the current step agent before spawning the next
309
308
  7. **Dry-run is read-only**: Stop after displaying the chain plan — never spawn agents
310
309
  8. **Timeout handling**: One urge via `send_message`; if still timed out → mark `failed`
311
- 9. **No CLI fallback**: All execution is agent-native — no `exec_command("maestro cli ...")`
310
+ 9. **No CLI fallback**: All execution is agent-native — no `exec_command("maestro delegate ...")`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-issue-analyze
3
- description: Root cause analysis for a specific issue via CLI exploration. Gathers codebase context (grep or semantic deep search), runs maestro cli gemini analysis, and attaches a structured analysis record to the issue in issues.jsonl.
3
+ description: Root cause analysis for a specific issue via CLI exploration. Gathers codebase context (grep or semantic deep search), runs maestro delegate gemini analysis, and attaches a structured analysis record to the issue in issues.jsonl.
4
4
  argument-hint: "<ISS-ID> [--tool gemini|qwen] [--depth standard|deep]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep
6
6
  ---
@@ -26,7 +26,7 @@ $maestro-issue-analyze "ISS-20260401-001 --tool qwen --depth standard"
26
26
 
27
27
  ## Overview
28
28
 
29
- Sequential 4-step pipeline: load issue → gather codebase context → run CLI analysis → attach analysis record. The CLI analysis step invokes `maestro cli --tool gemini --mode analysis` to produce a structured root-cause record written back into issues.jsonl. This is the first step in the issue resolution workflow: **analyze → plan → execute**.
29
+ Sequential 4-step pipeline: load issue → gather codebase context → run CLI analysis → attach analysis record. The CLI analysis step invokes `maestro delegate --to gemini --mode analysis` to produce a structured root-cause record written back into issues.jsonl. This is the first step in the issue resolution workflow: **analyze → plan → execute**.
30
30
 
31
31
  ```
32
32
  Load Issue → Gather Context → CLI Analysis → Attach Record
@@ -119,7 +119,7 @@ CONSTRAINTS: Evidence required — file:line for each claim`
119
119
 
120
120
  Write(`/tmp/iss-analyze-${issue.id}.txt`, promptContent)
121
121
  functions.exec_command({
122
- cmd: `maestro cli -p "$(cat /tmp/iss-analyze-${issue.id}.txt)" --tool ${tool} --mode analysis`,
122
+ cmd: `maestro delegate "$(cat /tmp/iss-analyze-${issue.id}.txt)" --to ${tool} --mode analysis`,
123
123
  workdir: "."
124
124
  })
125
125
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-issue-execute
3
- description: Execute a planned solution for an issue via dual-mode dispatch. Auto-detects server UP (POST to /api/execution/dispatch) or DOWN (direct maestro cli). Updates issue status on completion with next-step routing to close, debug, or verify.
3
+ description: Execute a planned solution for an issue via dual-mode dispatch. Auto-detects server UP (POST to /api/execution/dispatch) or DOWN (direct maestro delegate). Updates issue status on completion with next-step routing to close, debug, or verify.
4
4
  argument-hint: "<ISS-ID> [--executor claude-code|codex|gemini] [--dry-run]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep
6
6
  ---
@@ -27,7 +27,7 @@ $maestro-issue-execute "ISS-20260401-001 --executor gemini"
27
27
 
28
28
  ## Overview
29
29
 
30
- Sequential 4-step pipeline with conditional dispatch: load issue → dry-run check → detect mode → execute + update. Server-UP path posts to the orchestration API; Server-DOWN path invokes `maestro cli` directly. This is the third step in the issue resolution workflow: **analyze → plan → execute**.
30
+ Sequential 4-step pipeline with conditional dispatch: load issue → dry-run check → detect mode → execute + update. Server-UP path posts to the orchestration API; Server-DOWN path invokes `maestro delegate` directly. This is the third step in the issue resolution workflow: **analyze → plan → execute**.
31
31
 
32
32
  ```
33
33
  Load Issue → [dry-run?] → Detect Mode → Dispatch → Update Status
@@ -79,7 +79,7 @@ const serverUp = healthCheck.stdout.trim() === "200"
79
79
  | Mode | Condition | Action |
80
80
  |------|-----------|--------|
81
81
  | Server UP | HTTP 200 from /health | POST to `/api/execution/dispatch` |
82
- | Server DOWN | Any other result | Direct `maestro cli` execution |
82
+ | Server DOWN | Any other result | Direct `maestro delegate` execution |
83
83
 
84
84
  ```javascript
85
85
  functions.update_plan({
@@ -124,7 +124,7 @@ functions.exec_command({
124
124
  // Write prompt to temp file to avoid shell injection
125
125
  Write(`/tmp/iss-exec-${issue.id}.txt`, execPrompt)
126
126
  functions.exec_command({
127
- cmd: `maestro cli -p "$(cat /tmp/iss-exec-${issue.id}.txt)" --tool ${executor === 'codex' ? 'codex' : 'claude'} --mode write`,
127
+ cmd: `maestro delegate "$(cat /tmp/iss-exec-${issue.id}.txt)" --to ${executor === 'codex' ? 'codex' : 'claude'} --mode write`,
128
128
  workdir: "."
129
129
  })
130
130
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-issue-plan
3
- description: Solution planning for a specific issue. Auto-detects analysis context, runs maestro cli planning, and attaches a structured solution record with ordered steps and verification criteria to the issue in issues.jsonl.
3
+ description: Solution planning for a specific issue. Auto-detects analysis context, runs maestro delegate planning, and attaches a structured solution record with ordered steps and verification criteria to the issue in issues.jsonl.
4
4
  argument-hint: "<ISS-ID> [--tool gemini|qwen] [--from-analysis]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep
6
6
  ---
@@ -82,7 +82,7 @@ CONSTRAINTS: Concrete steps only | File:line references required | No speculativ
82
82
  // Write prompt to temp file to avoid shell injection
83
83
  Write(`/tmp/iss-plan-${issueId}.txt`, prompt)
84
84
  functions.exec_command({
85
- cmd: `maestro cli -p "$(cat /tmp/iss-plan-${issueId}.txt)" --tool ${tool} --mode analysis`,
85
+ cmd: `maestro delegate "$(cat /tmp/iss-plan-${issueId}.txt)" --to ${tool} --mode analysis`,
86
86
  workdir: "."
87
87
  })
88
88
  ```
@@ -28,8 +28,8 @@ Universal team coordination skill: analyze task -> generate role-specs -> dispat
28
28
  (roles generated at runtime from task analysis)
29
29
 
30
30
  CLI Tools (callable by any worker):
31
- maestro cli --mode analysis - analysis and exploration
32
- maestro cli --mode write - code generation and modification
31
+ maestro delegate --mode analysis - analysis and exploration
32
+ maestro delegate --mode write - code generation and modification
33
33
  ```
34
34
 
35
35
  ## Delegation Lock
@@ -48,7 +48,7 @@ Before calling ANY tool, apply this check:
48
48
  | `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
49
49
  | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
50
50
  | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
51
- | `Bash("maestro cli ...")` | BLOCKED | Only workers call CLI |
51
+ | `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
52
52
  | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
53
53
 
54
54
  **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
@@ -65,8 +65,8 @@ Before calling ANY tool, apply this check:
65
65
  | Session path | `.workflow/.team/TC-<slug>-<date>/` |
66
66
  | Worker agent | `team-worker` |
67
67
  | Message bus | `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)` |
68
- | CLI analysis | `maestro cli --mode analysis` |
69
- | CLI write | `maestro cli --mode write` |
68
+ | CLI analysis | `maestro delegate --mode analysis` |
69
+ | CLI write | `maestro delegate --mode write` |
70
70
  | Max roles | 5 |
71
71
 
72
72
  ## Role Router
@@ -92,8 +92,8 @@ Workers can use CLI tools for analysis and code operations:
92
92
 
93
93
  | Tool | Purpose |
94
94
  |------|---------|
95
- | maestro cli --mode analysis | Analysis, exploration, pattern discovery |
96
- | maestro cli --mode write | Code generation, modification, refactoring |
95
+ | maestro delegate --mode analysis | Analysis, exploration, pattern discovery |
96
+ | maestro delegate --mode write | Code generation, modification, refactoring |
97
97
 
98
98
  ### Dispatch
99
99
 
@@ -18,7 +18,7 @@ Orchestrate the team-coordinate workflow: task analysis, dynamic role-spec gener
18
18
  ```
19
19
  WRONG: Read("src/components/Button.tsx") — worker work
20
20
  WRONG: Grep(pattern="useState", path="src/") — worker work
21
- WRONG: Bash("maestro cli -p '...' --tool gemini") — worker work
21
+ WRONG: Bash("maestro delegate '...' --to gemini") — worker work
22
22
  WRONG: Edit("src/utils/helper.ts", ...) — worker work
23
23
  WRONG: Bash("npm test") — worker work
24
24
  WRONG: mcp__ace-tool__search_context(query="...") — worker work
@@ -71,7 +71,7 @@ Before calling ANY tool, apply this check:
71
71
  | `Read` on `roles/`, `commands/`, `specs/`, `templates/` | ALLOWED | Loading own instructions |
72
72
  | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
73
73
  | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
74
- | `Bash("maestro cli ...")` | BLOCKED | Only workers call CLI |
74
+ | `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
75
75
  | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
76
76
 
77
77
  **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
@@ -86,7 +86,7 @@ Before calling ANY tool, apply this check:
86
86
  - **Session path**: `.workflow/.team/TLV4-<slug>-<date>/`
87
87
  - **State file**: `<session>/tasks.json`
88
88
  - **Discovery files**: `<session>/discoveries/{task_id}.json`
89
- - **CLI tools**: `maestro cli --mode analysis` (read-only), `maestro cli --mode write` (modifications)
89
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
90
90
 
91
91
  ## Worker Spawn Template
92
92
 
@@ -27,7 +27,7 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
27
27
 
28
28
  2. **Explore domain** (use CLI analysis tools):
29
29
  ```bash
30
- maestro cli -p "PURPOSE: Research domain for {requirement}
30
+ maestro delegate "PURPOSE: Research domain for {requirement}
31
31
  TASK: • Identify problem statement • Define target users • Extract constraints • Map integration points
32
32
  CONTEXT: @**/* | Memory: {requirement}
33
33
  EXPECTED: Structured research context with problem/users/domain/constraints
@@ -294,7 +294,7 @@ This instruction is loaded by team-worker agents when spawned with roles: `analy
294
294
 
295
295
  2. **Explore codebase** (use CLI analysis tools):
296
296
  ```bash
297
- maestro cli -p "PURPOSE: Explore codebase for {requirement}
297
+ maestro delegate "PURPOSE: Explore codebase for {requirement}
298
298
  TASK: • Identify relevant files • Find existing patterns • Locate integration points
299
299
  CONTEXT: @**/* | Memory: {requirement}
300
300
  EXPECTED: Exploration findings with file paths and patterns
@@ -36,7 +36,7 @@ Research and codebase exploration for context gathering.
36
36
  4. If topic references file (@path or .md/.txt) -> read it
37
37
  5. CLI seed analysis:
38
38
  ```
39
- Bash({ command: `maestro cli -p "PURPOSE: Analyze topic, extract structured seed info.
39
+ Bash({ command: `maestro delegate "PURPOSE: Analyze topic, extract structured seed info.
40
40
  TASK: * Extract problem statement * Identify target users * Determine domain
41
41
  * List constraints * Identify 3-5 exploration dimensions
42
42
  TOPIC: <topic-content>
@@ -54,7 +54,7 @@ Research and codebase exploration for context gathering.
54
54
 
55
55
  When project detected:
56
56
  ```
57
- Bash({ command: `maestro cli -p "PURPOSE: Explore codebase for context
57
+ Bash({ command: `maestro delegate "PURPOSE: Explore codebase for context
58
58
  TASK: * Identify tech stack * Map architecture patterns * Document conventions * List integration points
59
59
  MODE: analysis
60
60
  CONTEXT: @**/*
@@ -14,7 +14,7 @@ Orchestrate team-lifecycle-v4: analyze -> dispatch -> spawn -> monitor -> report
14
14
  ```
15
15
  WRONG: Read("src/...") — worker work
16
16
  WRONG: Grep/Glob on project source — worker work
17
- WRONG: Bash("maestro cli -p '...' --tool gemini") — worker work
17
+ WRONG: Bash("maestro delegate '...' --to gemini") — worker work
18
18
  WRONG: Edit/Write on project source files — worker work
19
19
  WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
20
20
  ```
@@ -47,7 +47,7 @@ WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
47
47
  - Modify task output artifacts
48
48
  - Spawn workers with general-purpose agent (MUST use team_worker)
49
49
  - Generate more than 5 worker roles
50
- - Call CLI tools (maestro cli) — only workers use CLI
50
+ - Call CLI tools (maestro delegate) — only workers use CLI
51
51
 
52
52
  ## Command Execution Protocol
53
53
  When coordinator needs to execute a specific phase:
@@ -51,7 +51,7 @@ CONSTRAINTS: Only modify listed files | Follow existing patterns
51
51
 
52
52
  CLI call:
53
53
  ```
54
- Bash(`maestro cli -p "<prompt>" --tool <tool> --mode write --rule development-implement-feature`)
54
+ Bash(`maestro delegate "<prompt>" --to <tool> --mode write --rule development-implement-feature`)
55
55
  ```
56
56
 
57
57
  Resume strategy:
@@ -36,7 +36,7 @@ Codebase-informed implementation planning with complexity assessment.
36
36
  3. Check <session>/explorations/cache-index.json for cached explorations
37
37
  4. Explore codebase (cache-aware):
38
38
  ```
39
- Bash({ command: `maestro cli -p "PURPOSE: Explore codebase to inform planning
39
+ Bash({ command: `maestro delegate "PURPOSE: Explore codebase to inform planning
40
40
  TASK: * Search for relevant patterns * Identify files to modify * Document integration points
41
41
  MODE: analysis
42
42
  CONTEXT: @**/*
@@ -48,7 +48,7 @@ Codebase-informed implementation planning with complexity assessment.
48
48
 
49
49
  Generate plan.json + .task/TASK-*.json:
50
50
  ```
51
- Bash({ command: `maestro cli -p "PURPOSE: Generate implementation plan from exploration results
51
+ Bash({ command: `maestro delegate "PURPOSE: Generate implementation plan from exploration results
52
52
  TASK: * Create plan.json overview * Generate TASK-*.json files (2-7 tasks) * Define dependencies * Set convergence criteria
53
53
  MODE: write
54
54
  CONTEXT: @<session>/explorations/*.json
@@ -61,7 +61,7 @@ Template-driven document generation with progressive dependency loading.
61
61
 
62
62
  CLI generation:
63
63
  ```
64
- Bash({ command: `maestro cli -p "PURPOSE: Generate <doc-type> document following template
64
+ Bash({ command: `maestro delegate "PURPOSE: Generate <doc-type> document following template
65
65
  TASK: * Load template * Apply spec config and discovery context * Integrate prior feedback * Generate all sections
66
66
  MODE: write
67
67
  CONTEXT: @<session>/spec/*.json @<template-path>
@@ -63,7 +63,7 @@ Before calling ANY tool, apply this check:
63
63
  | `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
64
64
  | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
65
65
  | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
66
- | `Bash("maestro cli ...")` | BLOCKED | Only workers call CLI |
66
+ | `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
67
67
  | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
68
68
 
69
69
  **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
@@ -77,7 +77,7 @@ Before calling ANY tool, apply this check:
77
77
  - **Session prefix**: `QA`
78
78
  - **Session path**: `.workflow/.team/QA-<slug>-<date>/`
79
79
  - **Team name**: `quality-assurance`
80
- - **CLI tools**: `maestro cli --mode analysis` (read-only), `maestro cli --mode write` (modifications)
80
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
81
81
  - **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
82
82
 
83
83
  ## Worker Spawn Template
@@ -12,7 +12,7 @@ Orchestrate team-quality-assurance: analyze -> dispatch -> spawn -> monitor -> r
12
12
  **FORBIDDEN** (even if the task seems trivial):
13
13
  ```
14
14
  WRONG: Read/Grep/Glob on project source code — worker work
15
- WRONG: Bash("maestro cli ...") — worker work
15
+ WRONG: Bash("maestro delegate ...") — worker work
16
16
  WRONG: Edit/Write on project source files — worker work
17
17
  WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
18
18
  ```
@@ -45,7 +45,7 @@ WRONG: Bash("npm test"), Bash("tsc"), etc. — worker work
45
45
  - Modify test files or source code
46
46
  - Spawn workers with general-purpose agent (MUST use team-worker)
47
47
  - Generate more than 6 worker roles
48
- - Call CLI tools (maestro cli) — only workers use CLI
48
+ - Call CLI tools (maestro delegate) — only workers use CLI
49
49
 
50
50
  ## Command Execution Protocol
51
51
  When coordinator needs to execute a specific phase:
@@ -39,7 +39,7 @@ Scan codebase from multiple perspectives (bug, security, test-coverage, code-qua
39
39
 
40
40
  **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
41
41
 
42
- **Medium/High complexity**: CLI fan-out -- one `maestro cli --mode analysis` per perspective:
42
+ **Medium/High complexity**: CLI fan-out -- one `maestro delegate --mode analysis` per perspective:
43
43
 
44
44
  For each active perspective, build prompt:
45
45
  ```
@@ -50,7 +50,7 @@ CONTEXT: @<scan-scope>
50
50
  EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
51
51
  CONSTRAINTS: Focus on actionable findings only
52
52
  ```
53
- Execute via: `maestro cli -p "<prompt>" --tool gemini --mode analysis`
53
+ Execute via: `maestro delegate "<prompt>" --to gemini --mode analysis`
54
54
 
55
55
  After all perspectives complete:
56
56
  - Parse CLI outputs into structured findings
@@ -61,7 +61,7 @@ Before calling ANY tool, apply this check:
61
61
  | `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
62
62
  | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
63
63
  | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
64
- | `Bash("maestro cli ...")` | BLOCKED | Only workers call CLI |
64
+ | `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
65
65
  | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
66
66
 
67
67
  **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
@@ -75,7 +75,7 @@ Before calling ANY tool, apply this check:
75
75
  - **Session prefix**: `RV`
76
76
  - **Session path**: `.workflow/.team/RV-<slug>-<date>/`
77
77
  - **Team name**: `review`
78
- - **CLI tools**: `maestro cli --mode analysis` (read-only), `maestro cli --mode write` (modifications)
78
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
79
79
  - **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
80
80
 
81
81
  ## Worker Spawn Template
@@ -12,7 +12,7 @@ Orchestrate team-review: parse target -> detect mode -> dispatch task chain -> m
12
12
  **FORBIDDEN** (even if the task seems trivial):
13
13
  ```
14
14
  WRONG: Read/Grep/Glob on project source code — worker work
15
- WRONG: Bash("maestro cli ...") — worker work
15
+ WRONG: Bash("maestro delegate ...") — worker work
16
16
  WRONG: Bash("semgrep/eslint/tsc ...") — worker work
17
17
  WRONG: Edit/Write on project source files — worker work
18
18
  ```
@@ -45,7 +45,7 @@ WRONG: Edit/Write on project source files — worker work
45
45
  - Perform code review or scanning directly
46
46
  - Bypass worker roles
47
47
  - Spawn workers with general-purpose agent (MUST use team_worker)
48
- - Call CLI tools (maestro cli) — only workers use CLI
48
+ - Call CLI tools (maestro delegate) — only workers use CLI
49
49
 
50
50
  ## Command Execution Protocol
51
51
  When coordinator needs to execute a specific phase:
@@ -52,7 +52,7 @@ Build prompt per group requesting 6 enrichment fields per finding:
52
52
  - `fix_complexity`: low / medium / high
53
53
  - `fix_dependencies`: finding IDs that must be fixed first
54
54
 
55
- Execute via `maestro cli --tool gemini --mode analysis --rule analysis-diagnose-bug-root-cause` (fallback: qwen -> codex). Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
55
+ Execute via `maestro delegate --to gemini --mode analysis --rule analysis-diagnose-bug-root-cause` (fallback: qwen -> codex). Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
56
56
 
57
57
  ## Phase 4: Report Generation
58
58
 
@@ -59,7 +59,7 @@ Build prompt with target file patterns, toolchain dedup summary, and per-dimensi
59
59
  - PRF: Algorithm complexity, N+1 queries, unnecessary sync, memory leaks, missing caching
60
60
  - MNT: Architectural coupling, abstraction leaks, convention violations, dead code
61
61
 
62
- Execute via `maestro cli --tool gemini --mode analysis --rule analysis-review-code-quality` (fallback: qwen -> codex). Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
62
+ Execute via `maestro delegate --to gemini --mode analysis --rule analysis-review-code-quality` (fallback: qwen -> codex). Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
63
63
 
64
64
  ## Phase 4: Aggregate & Output
65
65
 
@@ -63,7 +63,7 @@ Before calling ANY tool, apply this check:
63
63
  | `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
64
64
  | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
65
65
  | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
66
- | `Bash("maestro cli ...")` | BLOCKED | Only workers call CLI |
66
+ | `Bash("maestro delegate ...")` | BLOCKED | Only workers call CLI |
67
67
  | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
68
68
 
69
69
  **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
@@ -76,7 +76,7 @@ Before calling ANY tool, apply this check:
76
76
 
77
77
  - **Session prefix**: `TD`
78
78
  - **Session path**: `.workflow/.team/TD-<slug>-<date>/`
79
- - **CLI tools**: `maestro cli --mode analysis` (read-only), `maestro cli --mode write` (modifications)
79
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
80
80
  - **Message bus**: `mcp__maestro-tools__team_msg(session_id=<session-id>, ...)`
81
81
  - **Max GC rounds**: 3
82
82
 
@@ -12,7 +12,7 @@
12
12
  **FORBIDDEN** (even if the task seems trivial):
13
13
  ```
14
14
  WRONG: Read/Grep/Glob on project source code — worker work
15
- WRONG: Bash("maestro cli ...") — worker work
15
+ WRONG: Bash("maestro delegate ...") — worker work
16
16
  WRONG: Edit/Write on project source files — worker work
17
17
  ```
18
18
 
@@ -37,7 +37,7 @@ For each batch, use CLI tool for implementation:
37
37
  **Per-batch delegation**:
38
38
 
39
39
  ```bash
40
- maestro cli -p "PURPOSE: Apply tech debt fixes in batch; success = all items fixed without breaking changes
40
+ maestro delegate "PURPOSE: Apply tech debt fixes in batch; success = all items fixed without breaking changes
41
41
  TASK: <batch-type-specific-tasks>
42
42
  MODE: write
43
43
  CONTEXT: @<worktree-path>/**/* | Memory: Remediation plan context
@@ -56,7 +56,7 @@ Multi-dimension tech debt scanner. Scan codebase across 5 dimensions (code, arch
56
56
  - Classify findings into dimensions
57
57
 
58
58
  **Medium/High Complexity** (Fan-out):
59
- - Fan-out A: CLI exploration (structure, patterns, dependencies angles) via `maestro cli --tool gemini --mode analysis`
59
+ - Fan-out A: CLI exploration (structure, patterns, dependencies angles) via `maestro delegate --to gemini --mode analysis`
60
60
  - Fan-out B: CLI dimension analysis (parallel gemini per dimension -- code, architecture, testing, dependency, documentation)
61
61
  - Fan-out C (High only): Multi-perspective Gemini analysis (security, performance, code-quality, architecture)
62
62
  - Fan-in: Merge results, cross-deduplicate by file:line, boost severity for multi-source findings