oh-my-copilot 5.19.2 → 5.19.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 (271) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +70 -67
  4. package/agents/planner.md +4 -4
  5. package/bin/oh-my-copilot.js +5 -1
  6. package/bridge/__pycache__/gyoshu_bridge.cpython-314.pyc +0 -0
  7. package/bridge/claude-md-coordinator.cjs +2 -2
  8. package/bridge/cli.cjs +2820 -2586
  9. package/bridge/mcp-server.cjs +968 -866
  10. package/bridge/runtime-cli.cjs +244 -184
  11. package/bridge/team-bridge.cjs +17 -1
  12. package/bridge/team-mcp.cjs +208 -140
  13. package/bridge/team.js +73 -13
  14. package/copilot/agents/planner.md +4 -4
  15. package/dist/__tests__/copilot-hooks-manifest.test.js +1 -0
  16. package/dist/__tests__/copilot-hooks-manifest.test.js.map +1 -1
  17. package/dist/__tests__/doctor-conflicts.test.js +6 -5
  18. package/dist/__tests__/doctor-conflicts.test.js.map +1 -1
  19. package/dist/__tests__/hud/cli-diagnostic.test.js +4 -3
  20. package/dist/__tests__/hud/cli-diagnostic.test.js.map +1 -1
  21. package/dist/__tests__/mnemosyne/detector.test.js +3 -2
  22. package/dist/__tests__/mnemosyne/detector.test.js.map +1 -1
  23. package/dist/__tests__/session-start-script-context.test.js +1 -1
  24. package/dist/__tests__/session-start-script-context.test.js.map +1 -1
  25. package/dist/__tests__/setup/stub-skill-list-probe.d.ts +2 -0
  26. package/dist/__tests__/setup/stub-skill-list-probe.d.ts.map +1 -0
  27. package/dist/__tests__/setup/stub-skill-list-probe.js +11 -0
  28. package/dist/__tests__/setup/stub-skill-list-probe.js.map +1 -0
  29. package/dist/__tests__/setup-config-script.test.d.ts +2 -0
  30. package/dist/__tests__/setup-config-script.test.d.ts.map +1 -0
  31. package/dist/__tests__/setup-config-script.test.js +350 -0
  32. package/dist/__tests__/setup-config-script.test.js.map +1 -0
  33. package/dist/__tests__/shipyard-seed-locale.test.js +1 -1
  34. package/dist/__tests__/shipyard-seed-locale.test.js.map +1 -1
  35. package/dist/__tests__/shipyard-skills.test.js +9 -9
  36. package/dist/__tests__/shipyard-skills.test.js.map +1 -1
  37. package/dist/__tests__/tier0-docs-consistency.test.js +5 -5
  38. package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
  39. package/dist/__tests__/trusted-publishing-contract.test.js +9 -2
  40. package/dist/__tests__/trusted-publishing-contract.test.js.map +1 -1
  41. package/dist/__tests__/visual-verdict-skill.test.js +1 -1
  42. package/dist/__tests__/visual-verdict-skill.test.js.map +1 -1
  43. package/dist/cli/__tests__/autoresearch.test.js +3 -2
  44. package/dist/cli/__tests__/autoresearch.test.js.map +1 -1
  45. package/dist/cli/autoresearch.d.ts +1 -1
  46. package/dist/cli/autoresearch.d.ts.map +1 -1
  47. package/dist/cli/autoresearch.js +2 -1
  48. package/dist/cli/autoresearch.js.map +1 -1
  49. package/dist/cli/commands/__tests__/factory-init.test.js +2 -1
  50. package/dist/cli/commands/__tests__/factory-init.test.js.map +1 -1
  51. package/dist/cli/commands/__tests__/intake.test.js +26 -4
  52. package/dist/cli/commands/__tests__/intake.test.js.map +1 -1
  53. package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
  54. package/dist/cli/commands/doctor-conflicts.js +5 -4
  55. package/dist/cli/commands/doctor-conflicts.js.map +1 -1
  56. package/dist/cli/commands/factory.d.ts.map +1 -1
  57. package/dist/cli/commands/factory.js +4 -3
  58. package/dist/cli/commands/factory.js.map +1 -1
  59. package/dist/cli/commands/intake.d.ts.map +1 -1
  60. package/dist/cli/commands/intake.js +13 -4
  61. package/dist/cli/commands/intake.js.map +1 -1
  62. package/dist/cli/commands/ship.d.ts +1 -1
  63. package/dist/cli/commands/ship.js +1 -1
  64. package/dist/copilot-run/job.d.ts.map +1 -1
  65. package/dist/copilot-run/job.js +4 -1
  66. package/dist/copilot-run/job.js.map +1 -1
  67. package/dist/copilot-run/sandbox.d.ts +2 -7
  68. package/dist/copilot-run/sandbox.d.ts.map +1 -1
  69. package/dist/copilot-run/sandbox.js +2 -26
  70. package/dist/copilot-run/sandbox.js.map +1 -1
  71. package/dist/factory/__tests__/listener.test.js +22 -4
  72. package/dist/factory/__tests__/listener.test.js.map +1 -1
  73. package/dist/factory/listener.d.ts +2 -2
  74. package/dist/factory/listener.d.ts.map +1 -1
  75. package/dist/factory/listener.js +20 -5
  76. package/dist/factory/listener.js.map +1 -1
  77. package/dist/factory/run/engine.d.ts.map +1 -1
  78. package/dist/factory/run/engine.js +1 -0
  79. package/dist/factory/run/engine.js.map +1 -1
  80. package/dist/features/continuation-enforcement.d.ts.map +1 -1
  81. package/dist/features/continuation-enforcement.js +2 -1
  82. package/dist/features/continuation-enforcement.js.map +1 -1
  83. package/dist/hooks/autopilot/__tests__/pipeline.test.js +2 -1
  84. package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -1
  85. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -1
  86. package/dist/hooks/autopilot/adapters/execution-adapter.js +3 -2
  87. package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -1
  88. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -1
  89. package/dist/hooks/autopilot/adapters/ralplan-adapter.js +2 -1
  90. package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -1
  91. package/dist/hooks/learner/detector.d.ts.map +1 -1
  92. package/dist/hooks/learner/detector.js +2 -6
  93. package/dist/hooks/learner/detector.js.map +1 -1
  94. package/dist/hooks/mode-registry/index.d.ts.map +1 -1
  95. package/dist/hooks/mode-registry/index.js +2 -1
  96. package/dist/hooks/mode-registry/index.js.map +1 -1
  97. package/dist/hooks/persistent-mode/index.d.ts +1 -1
  98. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  99. package/dist/hooks/persistent-mode/index.js +6 -5
  100. package/dist/hooks/persistent-mode/index.js.map +1 -1
  101. package/dist/hooks/ralph/loop.d.ts +1 -1
  102. package/dist/hooks/ralph/loop.js +1 -1
  103. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  104. package/dist/hooks/ralph/prd.js +2 -1
  105. package/dist/hooks/ralph/prd.js.map +1 -1
  106. package/dist/hooks/ralph/stale-prd.d.ts +2 -2
  107. package/dist/hooks/ralph/stale-prd.js +3 -3
  108. package/dist/hooks/ralph/stale-prd.js.map +1 -1
  109. package/dist/hooks/ralph/verifier.d.ts +1 -1
  110. package/dist/hooks/ralph/verifier.d.ts.map +1 -1
  111. package/dist/hooks/ralph/verifier.js +4 -3
  112. package/dist/hooks/ralph/verifier.js.map +1 -1
  113. package/dist/hooks/session-end/__tests__/spawn-next.test.js +31 -4
  114. package/dist/hooks/session-end/__tests__/spawn-next.test.js.map +1 -1
  115. package/dist/hooks/session-end/spawn-next.d.ts +6 -3
  116. package/dist/hooks/session-end/spawn-next.d.ts.map +1 -1
  117. package/dist/hooks/session-end/spawn-next.js +19 -6
  118. package/dist/hooks/session-end/spawn-next.js.map +1 -1
  119. package/dist/hud/index.d.ts.map +1 -1
  120. package/dist/hud/index.js +3 -2
  121. package/dist/hud/index.js.map +1 -1
  122. package/dist/installer/__tests__/hook-templates.test.js +3 -1
  123. package/dist/installer/__tests__/hook-templates.test.js.map +1 -1
  124. package/dist/installer/hooks.d.ts +1 -1
  125. package/dist/installer/hooks.d.ts.map +1 -1
  126. package/dist/installer/hooks.js +2 -1
  127. package/dist/installer/hooks.js.map +1 -1
  128. package/dist/ship/__tests__/exec-env.test.d.ts +2 -0
  129. package/dist/ship/__tests__/exec-env.test.d.ts.map +1 -0
  130. package/dist/ship/__tests__/exec-env.test.js +26 -0
  131. package/dist/ship/__tests__/exec-env.test.js.map +1 -0
  132. package/dist/ship/__tests__/exec-plant.test.d.ts +2 -0
  133. package/dist/ship/__tests__/exec-plant.test.d.ts.map +1 -0
  134. package/dist/ship/__tests__/exec-plant.test.js +34 -0
  135. package/dist/ship/__tests__/exec-plant.test.js.map +1 -0
  136. package/dist/ship/__tests__/workflow-checks.test.js +22 -4
  137. package/dist/ship/__tests__/workflow-checks.test.js.map +1 -1
  138. package/dist/ship/config.js +3 -3
  139. package/dist/ship/config.js.map +1 -1
  140. package/dist/ship/exec.d.ts.map +1 -1
  141. package/dist/ship/exec.js +10 -2
  142. package/dist/ship/exec.js.map +1 -1
  143. package/dist/skills/__tests__/mingw-escape.test.js +0 -35
  144. package/dist/skills/__tests__/mingw-escape.test.js.map +1 -1
  145. package/dist/skills/__tests__/omc-setup-optout.test.js +4 -3
  146. package/dist/skills/__tests__/omc-setup-optout.test.js.map +1 -1
  147. package/dist/smoke/copilot-sdk-scenarios.d.ts.map +1 -1
  148. package/dist/smoke/copilot-sdk-scenarios.js +2 -1
  149. package/dist/smoke/copilot-sdk-scenarios.js.map +1 -1
  150. package/dist/team/__tests__/git-worktree.test.js +10 -1
  151. package/dist/team/__tests__/git-worktree.test.js.map +1 -1
  152. package/dist/team/__tests__/tmux-session.test.js +16 -2
  153. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  154. package/dist/team/__tests__/worker-launch-ack.test.js +14 -0
  155. package/dist/team/__tests__/worker-launch-ack.test.js.map +1 -1
  156. package/dist/team/git-worktree.d.ts.map +1 -1
  157. package/dist/team/git-worktree.js +13 -5
  158. package/dist/team/git-worktree.js.map +1 -1
  159. package/dist/team/tmux-session.d.ts.map +1 -1
  160. package/dist/team/tmux-session.js +8 -6
  161. package/dist/team/tmux-session.js.map +1 -1
  162. package/dist/ultragoal/goal-record.d.ts.map +1 -1
  163. package/dist/ultragoal/goal-record.js +2 -1
  164. package/dist/ultragoal/goal-record.js.map +1 -1
  165. package/dist/utils/__tests__/skill-slash.test.d.ts +2 -0
  166. package/dist/utils/__tests__/skill-slash.test.d.ts.map +1 -0
  167. package/dist/utils/__tests__/skill-slash.test.js +307 -0
  168. package/dist/utils/__tests__/skill-slash.test.js.map +1 -0
  169. package/dist/utils/__tests__/windows-search.test.d.ts +2 -0
  170. package/dist/utils/__tests__/windows-search.test.d.ts.map +1 -0
  171. package/dist/utils/__tests__/windows-search.test.js +154 -0
  172. package/dist/utils/__tests__/windows-search.test.js.map +1 -0
  173. package/dist/utils/skill-registry.d.ts +51 -0
  174. package/dist/utils/skill-registry.d.ts.map +1 -0
  175. package/dist/utils/skill-registry.js +168 -0
  176. package/dist/utils/skill-registry.js.map +1 -0
  177. package/dist/utils/skill-slash.d.ts +18 -0
  178. package/dist/utils/skill-slash.d.ts.map +1 -0
  179. package/dist/utils/skill-slash.js +20 -0
  180. package/dist/utils/skill-slash.js.map +1 -0
  181. package/dist/utils/windows-search.d.ts +42 -0
  182. package/dist/utils/windows-search.d.ts.map +1 -0
  183. package/dist/utils/windows-search.js +94 -0
  184. package/dist/utils/windows-search.js.map +1 -0
  185. package/docs/ARCHITECTURE.md +29 -29
  186. package/docs/CLAUDE.md +4 -4
  187. package/docs/FIELD-TESTING.md +563 -0
  188. package/docs/GETTING-STARTED.md +11 -11
  189. package/docs/HOOKS.md +8 -8
  190. package/docs/MIGRATION.md +100 -100
  191. package/docs/PERFORMANCE-MONITORING.md +2 -2
  192. package/docs/REFERENCE.md +130 -130
  193. package/docs/TOOLS.md +1 -1
  194. package/docs/cancel-skill-active-state-gap.md +2 -2
  195. package/docs/copilot-instructions.md +3 -3
  196. package/docs/design/P2-RUN-LEDGER-AND-INTAKE-PLAN.md +1 -1
  197. package/docs/design/project-session-manager.md +1 -1
  198. package/docs/field-testing-first-prompt.md +36 -0
  199. package/docs/shared/features.md +5 -5
  200. package/docs/shipyard.md +8 -8
  201. package/package.json +2 -2
  202. package/plugin.json +1 -1
  203. package/scripts/build-workflow-stage-prompts.mjs +15 -6
  204. package/scripts/copilot/dispatch.cjs +3 -0
  205. package/scripts/find-node.sh +1 -1
  206. package/scripts/keyword-detector.mjs +5 -4
  207. package/scripts/lib/copilot-hook-adapter.cjs +3 -0
  208. package/scripts/lib/hud-wrapper-template.txt +2 -2
  209. package/scripts/lib/skill-slash.mjs +11 -0
  210. package/scripts/lib/windows-search.cjs +40 -0
  211. package/scripts/lib/windows-search.mjs +7 -0
  212. package/scripts/lib/workflow-stage-prompts.mjs +6 -2
  213. package/scripts/persistent-mode.cjs +11 -10
  214. package/scripts/persistent-mode.mjs +12 -11
  215. package/scripts/plugin-shipping-surface.mjs +1 -0
  216. package/scripts/pre-tool-enforcer.mjs +1 -1
  217. package/scripts/session-start.mjs +3 -3
  218. package/scripts/setup-claude-md.mjs +3 -0
  219. package/scripts/setup-config.mjs +420 -0
  220. package/scripts/setup-progress.mjs +3 -0
  221. package/scripts/shipyard-audit.mjs +2 -1
  222. package/scripts/stale-run-reporter.mjs +2 -1
  223. package/skills/AGENTS.md +4 -4
  224. package/skills/ai-slop-cleaner/SKILL.md +3 -3
  225. package/skills/ask/SKILL.md +7 -7
  226. package/skills/ask-navigator/SKILL.md +11 -11
  227. package/skills/autopilot/SKILL.md +5 -5
  228. package/skills/cancel/SKILL.md +5 -5
  229. package/skills/configure-notifications/SKILL.md +10 -10
  230. package/skills/critique/SKILL.md +1 -1
  231. package/skills/discover/SKILL.md +1 -1
  232. package/skills/drydock/SKILL.md +5 -5
  233. package/skills/external-context/SKILL.md +4 -4
  234. package/skills/graph/SKILL.md +2 -2
  235. package/skills/harbor/SKILL.md +7 -7
  236. package/skills/hud/SKILL.md +10 -10
  237. package/skills/intent/SKILL.md +1 -1
  238. package/skills/launch/SKILL.md +13 -13
  239. package/skills/loft/SKILL.md +2 -2
  240. package/skills/map/SKILL.md +1 -1
  241. package/skills/omc-ado-auto-review/SKILL.md +2 -2
  242. package/skills/omc-ado-review/SKILL.md +2 -2
  243. package/skills/omc-ado-setup/SKILL.md +1 -1
  244. package/skills/omc-ado-sprint/SKILL.md +2 -2
  245. package/skills/omc-ado-triage/SKILL.md +2 -2
  246. package/skills/omc-doctor/SKILL.md +1 -1
  247. package/skills/omc-gh-auto-review/SKILL.md +2 -2
  248. package/skills/omc-gh-project/SKILL.md +2 -2
  249. package/skills/omc-gh-review/SKILL.md +2 -2
  250. package/skills/omc-gh-setup/SKILL.md +2 -2
  251. package/skills/omc-gh-triage/SKILL.md +3 -3
  252. package/skills/omc-setup/SKILL.md +16 -14
  253. package/skills/omc-setup/phases/01-install-claude-md.md +1 -18
  254. package/skills/omc-setup/phases/02-configure.md +10 -30
  255. package/skills/omc-setup/phases/03-integrations.md +5 -5
  256. package/skills/omc-setup/phases/04-welcome.md +7 -7
  257. package/skills/plan/SKILL.md +1 -1
  258. package/skills/project-session-manager/SKILL.md +1 -1
  259. package/skills/ralph/SKILL.md +6 -6
  260. package/skills/ralph-experiment/SKILL.md +3 -3
  261. package/skills/ralplan/SKILL.md +4 -4
  262. package/skills/release/SKILL.md +1 -1
  263. package/skills/self-improve/SKILL.md +1 -1
  264. package/skills/skill/SKILL.md +12 -12
  265. package/skills/team/SKILL.md +8 -8
  266. package/skills/trace/SKILL.md +1 -1
  267. package/skills/visual-verdict/SKILL.md +1 -1
  268. package/templates/hooks/keyword-detector.mjs +4 -4
  269. package/templates/hooks/lib/workflow-stage-prompts.mjs +6 -2
  270. package/templates/hooks/persistent-mode.mjs +8 -8
  271. package/templates/hooks/session-start.mjs +1 -1
package/docs/shipyard.md CHANGED
@@ -4,7 +4,7 @@ Shipyard is the delivery methodology behind seven opt-in skills: `drydock`, `ask
4
4
 
5
5
  > **Everyone ships, and nobody ships randomly** — agents continuously run everything repeatable and acceptable-by-evidence; humans decide what cannot be judged by the system or what fails expensively.
6
6
 
7
- This page is the map of the methodology: the boundary principle, the roles, the four pillars, the surface layout, the working metaphor, and how the seven skills compose. The skills themselves (`/oh-my-copilot:drydock`, `/oh-my-copilot:ask-navigator`, `/oh-my-copilot:loft`, `/oh-my-copilot:harbor`, `/oh-my-copilot:launch`, `/oh-my-copilot:architecture-survey`, `/oh-my-copilot:minimal-code-discipline`) are the executable form.
7
+ This page is the map of the methodology: the boundary principle, the roles, the four pillars, the surface layout, the working metaphor, and how the seven skills compose. The skills themselves (`/drydock`, `/ask-navigator`, `/loft`, `/harbor`, `/launch`, `/architecture-survey`, `/minimal-code-discipline`) are the executable form.
8
8
 
9
9
  ## The verifiability boundary
10
10
 
@@ -33,7 +33,7 @@ The premise sentence is the role model compressed: **everyone ships** is the adm
33
33
 
34
34
  ## The four pillars → five surfaces
35
35
 
36
- A repo that humans and agents both build on carries four pillars across five conceptual surfaces. `/oh-my-copilot:drydock` lays them; every later session inherits them by reading.
36
+ A repo that humans and agents both build on carries four pillars across five conceptual surfaces. `/drydock` lays them; every later session inherits them by reading.
37
37
 
38
38
  | Conceptual surface | Concrete paths | Carries / filled by |
39
39
  | --- | --- | --- |
@@ -50,13 +50,13 @@ A repo that humans and agents both build on carries four pillars across five con
50
50
  | The shipyard | The whole harness | A shared facility; everyone comes here to build |
51
51
  | The keel | Shared context + rules surfaces | Lay the skeleton first; the hull grows upward |
52
52
  | The fog | An effort whose destination isn't stateable yet | Nobody ships randomly — and nobody ships into fog without a chart |
53
- | The navigator | `/oh-my-copilot:ask-navigator` | Charts the fog as a map of decision tickets; hands off, never builds |
54
- | The loft | `/oh-my-copilot:loft` | Cut no steel until the shape is fair: a throwaway artifact answers a design question before real work begins |
55
- | The harbor | `/oh-my-copilot:harbor` | The port's gate: external requests inspected, dispositioned, and turned into work orders — never merges, never decides |
53
+ | The navigator | `/ask-navigator` | Charts the fog as a map of decision tickets; hands off, never builds |
54
+ | The loft | `/loft` | Cut no steel until the shape is fair: a throwaway artifact answers a design question before real work begins |
55
+ | The harbor | `/harbor` | The port's gate: external requests inspected, dispositioned, and turned into work orders — never merges, never decides |
56
56
  | The classification society | `docs/standards/` + `design-system/` | A ship must pass class to sail = changes must pass standards to merge |
57
57
  | The charts | specs + tickets | Launch's output; build from the chart |
58
58
  | The logbook | `docs/adr/` | Decisions, auditable after the fact |
59
- | The launch | `/oh-my-copilot:launch` | Everyone may launch — and not one class check may be skipped |
59
+ | The launch | `/launch` | Everyone may launch — and not one class check may be skipped |
60
60
  | The lookout | `omg lookout` | The mast watch: before an unattended run, scan the briefing and the workspace for danger — the lookout reports, the captain decides |
61
61
 
62
62
  ## The seven skills compose
@@ -81,7 +81,7 @@ Two levers every checkpoint pulls: **push right** — a checkpoint is deferred a
81
81
 
82
82
  Every shipyard skill — the seven compose skills plus the `agent-doc-discipline` companion — sits on one of two axes:
83
83
 
84
- - **User-invoked** — reachable only by the human typing the skill (`/oh-my-copilot:launch`). Other skills may point the human at them, but never invoke them through the Skill tool. `launch`, `harbor`, `ask-navigator`, and `architecture-survey` are user-invoked entry points, marked `disable-model-invocation: true` in frontmatter where the harness honors it.
84
+ - **User-invoked** — reachable only by the human typing the skill (`/launch`). Other skills may point the human at them, but never invoke them through the Skill tool. `launch`, `harbor`, `ask-navigator`, and `architecture-survey` are user-invoked entry points, marked `disable-model-invocation: true` in frontmatter where the harness honors it.
85
85
  - **Model-invoked** — reachable by the model when the task fits, and callable by other skills ("call the Skill tool with ..."). `drydock`, `loft`, `minimal-code-discipline`, and `agent-doc-discipline` stay model-invoked.
86
86
 
87
87
  The iron rule: a user-invoked skill never invokes another user-invoked skill. The one deliberate exception is `drydock` — it is a human keel-laying entry point *and* the gate chain's callable audit: launch's yard gate and the navigator's charting mechanically call `drydock --check`, so it must remain model-invoked. The shipyard contract test suite pins the assignment in both directions and rejects skill text that invokes a user-invoked skill by name through the Skill tool.
@@ -125,7 +125,7 @@ The joins, each named as a gate:
125
125
 
126
126
  The cross-cutting express surfaces — **diagram** and **show-me** — are callable from any stage of the circuit; they are express lanes, not stages.
127
127
 
128
- Shipyard corrects itself through its file-backed paper trail; `/oh-my-copilot:drydock --check` audits harness drift. These skills do not add a separate findings store, shipped/wontfixed state machine, hidden ledger, or `sy check`/`context-lint` commands.
128
+ Shipyard corrects itself through its file-backed paper trail; `/drydock --check` audits harness drift. These skills do not add a separate findings store, shipped/wontfixed state machine, hidden ledger, or `sy check`/`context-lint` commands.
129
129
 
130
130
  ## Shipyard and the factory
131
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-copilot",
3
- "version": "5.19.2",
3
+ "version": "5.19.3",
4
4
  "description": "Multi-agent orchestration system for Copilot CLI - Inspired by oh-my-opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -168,5 +168,5 @@
168
168
  "publishConfig": {
169
169
  "access": "public"
170
170
  },
171
- "gitHead": "d48a413a46eb31031952ef702250edf2e50cfc32"
171
+ "gitHead": "45b3551ffa8434296433ca605dba2913aca49b41"
172
172
  }
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-copilot",
3
- "version": "5.19.2",
3
+ "version": "5.19.3",
4
4
  "description": "Multi-agent orchestration system for GitHub Copilot CLI",
5
5
  "author": {
6
6
  "name": "oh-my-copilot contributors"
@@ -14,6 +14,12 @@ const taskDisplayToken = '__OMC_NAMED_WORKFLOW_TASK_DISPLAY__';
14
14
  const analystPromptToken = '__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__';
15
15
  const architectPromptToken = '__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__';
16
16
 
17
+ // Skill slashes differ per host (src/utils/skill-slash.ts): render the prompts
18
+ // under the Claude Code form, then turn each slash into a token the hook
19
+ // resolves for its own host.
20
+ for (const key of ['COPILOT_CLI', 'COPILOT_AGENT_SESSION_ID']) delete process.env[key];
21
+ process.env.CLAUDE_CODE_ENTRYPOINT = 'build-workflow-stage-prompts';
22
+
17
23
  function serializeTaskContexts(prompt) {
18
24
  const serialized = prompt
19
25
  .replaceAll(`**Original Idea:** "${taskToken}"`, `**Original Idea:**\n\n ${taskDisplayToken}`)
@@ -28,7 +34,7 @@ function serializeTaskContexts(prompt) {
28
34
  if (serialized.includes(taskToken)) {
29
35
  throw new Error("Unclassified named workflow task placeholder in stage prompt");
30
36
  }
31
- return serialized;
37
+ return serialized.replace(/\/oh-my-copilot:([a-z][a-z0-9-]*)/g, '__OMC_SKILL_SLASH_$1__');
32
38
  }
33
39
 
34
40
 
@@ -49,11 +55,14 @@ const prompts = Object.fromEntries(stages.map((stage) => [
49
55
  })),
50
56
  ]));
51
57
 
52
- const generated = `// Generated by scripts/build-workflow-stage-prompts.mjs from the canonical TypeScript stage adapters.\n// Do not edit this file directly.\n\nconst TASK_DISPLAY_TOKEN = ${JSON.stringify(taskDisplayToken)};\nconst ANALYST_PROMPT_TOKEN = ${JSON.stringify(analystPromptToken)};\nconst ARCHITECT_PROMPT_TOKEN = ${JSON.stringify(architectPromptToken)};\nconst PROMPTS = Object.freeze(${JSON.stringify(prompts, null, 2)});\n\nfunction analystPrompt(task) {\n return \`REQUIREMENTS ANALYSIS for: \${task}\\n\\nExtract and document:\\n1. Functional requirements (what it must do)\\n2. Non-functional requirements (performance, UX, etc.)\\n3. Implicit requirements (things user didn't say but needs)\\n4. Out of scope items\\n\\nOutput as structured markdown with clear sections.\`;\n}\n\nfunction architectPrompt(task) {\n return \`TECHNICAL SPECIFICATION for: \${task}\\n\\nBased on the requirements analysis above, create:\\n1. Tech stack decisions with rationale\\n2. Architecture overview (patterns, layers)\\n3. File structure (directory tree)\\n4. Dependencies list (packages)\\n5. API/interface definitions\\n\\nOutput as structured markdown.\`;\n}\n\nexport function resolveCanonicalWorkflowStagePrompt(stageId, task) {\n const prompt = PROMPTS[stageId];\n if (typeof prompt !== 'string' || typeof task !== 'string' || task.trim().length === 0) return null;\n const normalizedTask = task.trim();\n const replacements = {\n [TASK_DISPLAY_TOKEN]: JSON.stringify(normalizedTask),\n [ANALYST_PROMPT_TOKEN]: JSON.stringify(analystPrompt(normalizedTask)),\n [ARCHITECT_PROMPT_TOKEN]: JSON.stringify(architectPrompt(normalizedTask)),\n };\n return prompt.replace(/__OMC_NAMED_WORKFLOW_(?:TASK_DISPLAY|ANALYST_PROMPT|ARCHITECT_PROMPT)__/g, (token) => replacements[token]);\n}\n`;
58
+ const generated = `// Generated by scripts/build-workflow-stage-prompts.mjs from the canonical TypeScript stage adapters.\n// Do not edit this file directly.\n\nimport { skillSlash } from './skill-slash.mjs';\n\nconst TASK_DISPLAY_TOKEN = ${JSON.stringify(taskDisplayToken)};\nconst ANALYST_PROMPT_TOKEN = ${JSON.stringify(analystPromptToken)};\nconst ARCHITECT_PROMPT_TOKEN = ${JSON.stringify(architectPromptToken)};\nconst PROMPTS = Object.freeze(${JSON.stringify(prompts, null, 2)});\n\nfunction analystPrompt(task) {\n return \`REQUIREMENTS ANALYSIS for: \${task}\\n\\nExtract and document:\\n1. Functional requirements (what it must do)\\n2. Non-functional requirements (performance, UX, etc.)\\n3. Implicit requirements (things user didn't say but needs)\\n4. Out of scope items\\n\\nOutput as structured markdown with clear sections.\`;\n}\n\nfunction architectPrompt(task) {\n return \`TECHNICAL SPECIFICATION for: \${task}\\n\\nBased on the requirements analysis above, create:\\n1. Tech stack decisions with rationale\\n2. Architecture overview (patterns, layers)\\n3. File structure (directory tree)\\n4. Dependencies list (packages)\\n5. API/interface definitions\\n\\nOutput as structured markdown.\`;\n}\n\nexport function resolveCanonicalWorkflowStagePrompt(stageId, task) {\n const prompt = PROMPTS[stageId];\n if (typeof prompt !== 'string' || typeof task !== 'string' || task.trim().length === 0) return null;\n const normalizedTask = task.trim();\n const replacements = {\n [TASK_DISPLAY_TOKEN]: JSON.stringify(normalizedTask),\n [ANALYST_PROMPT_TOKEN]: JSON.stringify(analystPrompt(normalizedTask)),\n [ARCHITECT_PROMPT_TOKEN]: JSON.stringify(architectPrompt(normalizedTask)),\n };\n return prompt\n .replace(/__OMC_NAMED_WORKFLOW_(?:TASK_DISPLAY|ANALYST_PROMPT|ARCHITECT_PROMPT)__/g, (token) => replacements[token])\n .replace(/__OMC_SKILL_SLASH_([a-z][a-z0-9-]*)__/g, (_token, name) => skillSlash(name));\n}\n`;
53
59
 
54
- for (const relativePath of [
55
- 'scripts/lib/workflow-stage-prompts.mjs',
56
- 'templates/hooks/lib/workflow-stage-prompts.mjs',
60
+ // Standalone hooks run under Copilot CLI with the skills in the user skills
61
+ // directory, so their copy always resolves the bare name.
62
+ const skillSlashImport = "import { skillSlash } from './skill-slash.mjs';\n";
63
+ for (const [relativePath, content] of [
64
+ ['scripts/lib/workflow-stage-prompts.mjs', generated],
65
+ ['templates/hooks/lib/workflow-stage-prompts.mjs', generated.replace(skillSlashImport, 'const skillSlash = (name) => `/${name}`;\n')],
57
66
  ]) {
58
- writeFileSync(join(root, relativePath), generated);
67
+ writeFileSync(join(root, relativePath), content);
59
68
  }
@@ -82,6 +82,9 @@ const { transform, parseHookOutput, writeAllSync } = require('../lib/copilot-hoo
82
82
  const { normalizeHookPayload } = require('../lib/copilot-payload.cjs');
83
83
  const { getCopilotConfigDir } = require('../lib/config-dir.cjs');
84
84
  const { isChildSessionPayload } = require('../lib/child-session.cjs');
85
+ const { hardenWindowsExeSearch } = require('../lib/windows-search.cjs');
86
+
87
+ hardenWindowsExeSearch();
85
88
 
86
89
  const SCRIPTS_DIR = path.join(__dirname, '..');
87
90
  const RUN_CJS = path.join(SCRIPTS_DIR, 'run.cjs');
@@ -145,7 +145,7 @@ fi
145
145
  # Invoke node with all provided arguments
146
146
  # ---------------------------------------------------------------------------
147
147
  if [ -z "$NODE_BIN" ]; then
148
- printf '[OMC] Error: Could not find node binary. Run /oh-my-copilot:omc-setup to fix.\n' >&2
148
+ printf '[OMC] Error: Could not find node binary. Run /omc-setup (Claude Code: /oh-my-copilot:omc-setup) to fix.\n' >&2
149
149
  exit 0 # exit 0 so this hook does not block Claude Code
150
150
  fi
151
151
 
@@ -34,6 +34,7 @@ import { parseWorkflowInvocation, selectWorkflowProfile, createWorkflowState, is
34
34
  import { isJevShadowOptedIn, recordJevShadow } from './lib/jev-shadow.mjs';
35
35
  import { initializeRalphStateForSkill, createPrdScaffold } from './lib/ralph-startup.mjs';
36
36
  import { isCopilotHookHost } from './lib/hook-host.mjs';
37
+ import { skillSlash } from './lib/skill-slash.mjs';
37
38
  import { isCopilotSubagentKickoffPrompt, isOmcContinuationPrompt } from './lib/copilot-continuation.mjs';
38
39
 
39
40
  // Resolve OMC package root: CLAUDE_PLUGIN_ROOT (plugin system) or derive from this script's location
@@ -452,7 +453,7 @@ const QUESTION_FOLLOWUP_PATTERNS = [
452
453
  // recognized block header. They must be stripped only in that context —
453
454
  // never standalone — because a user might legitimately start a prompt with
454
455
  // "Task: …" or similar (Codex automated review P1/P2 on #2795).
455
- const ECHO_CONTINUATION = '(?:\\r?\\n[ \\t]*(?:Task:\\s|(?:Claude \\/goal objective|Goal objective|Missing evidence|No OMG goal record yet):\\s|When FULLY complete \\(after Architect verification\\)|run\\s+\\/oh-my-copilot:cancel).*)*';
456
+ const ECHO_CONTINUATION = '(?:\\r?\\n[ \\t]*(?:Task:\\s|(?:Claude \\/goal objective|Goal objective|Missing evidence|No OMG goal record yet):\\s|When FULLY complete \\(after Architect verification\\)|run\\s+\\/(?:oh-my-copilot:)?cancel).*)*';
456
457
 
457
458
  // NOTE: each pattern is a SINGLE LOGICAL BLOCK: the block header line +
458
459
  // zero-or-more continuation lines that hooks emit right after it. The whole
@@ -491,7 +492,7 @@ const SYSTEM_ECHO_BLOCK_PATTERNS = [
491
492
  // All patterns use `i` because hasActionableKeyword sees a lowercased prompt.
492
493
  const SYSTEM_ECHO_SIGNATURES = [
493
494
  /\bWhen FULLY complete \(after Architect verification\)\b/i,
494
- /\brun\s+\/oh-my-copilot:cancel\b/i,
495
+ /\brun\s+\/(?:oh-my-copilot:)?cancel\b/i,
495
496
  /\[RALPH LOOP\s*-\s*ITERATION\b/i,
496
497
  ];
497
498
 
@@ -1713,7 +1714,7 @@ Arguments: ${args}` : '';
1713
1714
  return `[MAGIC KEYWORD: ${skillName.toUpperCase()}]
1714
1715
 
1715
1716
  Skill routing detected: ${skillName}
1716
- Preferred invocation: /oh-my-copilot:${skillName}${args ? ` ${args}` : ''}
1717
+ Preferred invocation: ${skillSlash(skillName)}${args ? ` ${args}` : ''}
1717
1718
  ${pathStatus}${argsSection}${ralphLoopNotice ? `
1718
1719
 
1719
1720
  ${ralphLoopNotice}` : ''}
@@ -1740,7 +1741,7 @@ function createMultiSkillInvocation(skills, originalPrompt, directory = '') {
1740
1741
  ? `Read fallback: ${skillPath}`
1741
1742
  : `Read fallback: locate skills/${s.name}/SKILL.md in the active oh-my-copilot plugin/install`;
1742
1743
  return `### Skill ${i + 1}: ${s.name.toUpperCase()}
1743
- Preferred invocation: /oh-my-copilot:${s.name}${argsText}
1744
+ Preferred invocation: ${skillSlash(s.name)}${argsText}
1744
1745
  ${pathStatus}`;
1745
1746
  }).join('\n\n');
1746
1747
  // Multi-skill routing (e.g. `/ralph deep-interview`) must carry the same
@@ -46,6 +46,9 @@
46
46
 
47
47
  const fs = require('fs');
48
48
  const path = require('path');
49
+ const { hardenWindowsExeSearch } = require('./windows-search.cjs');
50
+
51
+ hardenWindowsExeSearch();
49
52
 
50
53
  const STDERR_TAIL_BYTES = 4096;
51
54
  const STOP_EVENTS = new Set(['Stop', 'SubagentStop']);
@@ -245,9 +245,9 @@ async function main() {
245
245
  console.log(`[OMC HUD] Plugin HUD load failed${detail}. Run: cd "${pluginCacheDir}" && npm install && npm run build`);
246
246
  }
247
247
  } else if (existsSync(pluginCacheBase)) {
248
- console.log(`[OMC HUD] Plugin cache found but no versions installed. Run: /oh-my-copilot:omc-setup`);
248
+ console.log(`[OMC HUD] Plugin cache found but no versions installed. Run: /omc-setup (Claude Code: /oh-my-copilot:omc-setup)`);
249
249
  } else {
250
- console.log("[OMC HUD] Plugin not installed. Run: /oh-my-copilot:omc-setup");
250
+ console.log("[OMC HUD] Plugin not installed. Run: /omc-setup (Claude Code: /oh-my-copilot:omc-setup)");
251
251
  }
252
252
  }
253
253
 
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook-script twin of src/utils/skill-slash.ts: the slash command the running
3
+ * host resolves for a bundled skill. Copilot CLI registers plugin skills by
4
+ * their bare name (`/cancel`) and rejects `/oh-my-copilot:cancel`; Claude Code
5
+ * registers them as `/oh-my-copilot:<name>`. The host comes from hook-host.mjs.
6
+ */
7
+ import { isCopilotHookHost } from './hook-host.mjs';
8
+
9
+ export function skillSlash(name, env = process.env) {
10
+ return isCopilotHookHost(env) ? `/${name}` : `/oh-my-copilot:${name}`;
11
+ }
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+ /**
3
+ * Windows executable search hardening (CJS hook/script runtime).
4
+ *
5
+ * Without NoDefaultCurrentDirectoryInExePath, Windows looks up a bare command
6
+ * name (`git`, `npm`) in the current directory before PATH, so an executable
7
+ * planted in the project folder runs. Entry points call
8
+ * hardenWindowsExeSearch() first; explicit child envs go through childEnv().
9
+ * Imports evaluate before the entry's call, so nothing an entry point imports
10
+ * may spawn at module-load time.
11
+ *
12
+ * Multi-surface mirrors (keep in sync):
13
+ * src/utils/windows-search.ts — TypeScript runtime (source of truth)
14
+ * scripts/lib/windows-search.mjs — ESM re-export of this file
15
+ */
16
+
17
+ const VARIABLE = 'NoDefaultCurrentDirectoryInExePath';
18
+
19
+ function isVariable(key) {
20
+ return key.toUpperCase() === VARIABLE.toUpperCase();
21
+ }
22
+
23
+ function hardenWindowsExeSearch() {
24
+ if (process.platform !== 'win32') return;
25
+ for (const key of Object.keys(process.env)) {
26
+ if (isVariable(key)) delete process.env[key];
27
+ }
28
+ process.env[VARIABLE] = '1';
29
+ }
30
+
31
+ function childEnv(env) {
32
+ const out = {};
33
+ for (const [key, value] of Object.entries(env)) {
34
+ if (process.platform !== 'win32' || !isVariable(key)) out[key] = value;
35
+ }
36
+ if (process.platform === 'win32') out[VARIABLE] = '1';
37
+ return out;
38
+ }
39
+
40
+ module.exports = { hardenWindowsExeSearch, childEnv };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Windows executable search hardening (ESM runtime): re-exports
3
+ * scripts/lib/windows-search.cjs so both module systems share one copy.
4
+ * Source of truth: src/utils/windows-search.ts.
5
+ */
6
+
7
+ export { hardenWindowsExeSearch, childEnv } from './windows-search.cjs';
@@ -1,11 +1,13 @@
1
1
  // Generated by scripts/build-workflow-stage-prompts.mjs from the canonical TypeScript stage adapters.
2
2
  // Do not edit this file directly.
3
3
 
4
+ import { skillSlash } from './skill-slash.mjs';
5
+
4
6
  const TASK_DISPLAY_TOKEN = "__OMC_NAMED_WORKFLOW_TASK_DISPLAY__";
5
7
  const ANALYST_PROMPT_TOKEN = "__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__";
6
8
  const ARCHITECT_PROMPT_TOKEN = "__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__";
7
9
  const PROMPTS = Object.freeze({
8
- "ralplan": "## PIPELINE STAGE: RALPLAN (Consensus Planning)\n\nYour task: Expand the idea into a detailed spec and implementation plan using consensus-driven planning.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Part 1: Idea Expansion (Spec Creation)\n\n## AUTOPILOT PHASE 0: IDEA EXPANSION\n\nYour task: Expand this product idea into detailed requirements and technical spec.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Step 1: Spawn Analyst for Requirements\n\n```\nTask(\n subagent_type=\"oh-my-copilot:analyst\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__\n)\n```\n\nWAIT for Analyst to complete before proceeding.\n\n### Step 2: Spawn Architect for Technical Spec\n\nAfter Analyst completes, spawn Architect:\n\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__\n)\n```\n\n### Step 2.5: Persist Open Questions\n\nIf the Analyst output includes a `### Open Questions` section, extract those items and save them to `.omg/plans/open-questions.md` using the standard format:\n\n```\n## [Topic] - [Date]\n- [ ] [Question] — [Why it matters]\n```\n\nThe Analyst is read-only and cannot write files, so you must persist its open questions on its behalf.\n\n### Step 3: Save Combined Spec\n\nCombine Analyst requirements + Architect technical spec into a single document.\nSave to: `.omg/autopilot/spec.md`\n\n\n\n\n### Part 2: Consensus Planning\n\nAfter the spec is created at `.omg/autopilot/spec.md`, invoke the RALPLAN consensus workflow:\n\nUse the `/oh-my-copilot:ralplan` skill to create a consensus-driven implementation plan.\nThe plan should be saved to: `.omg/plans/autopilot-impl.md`\n\nThe RALPLAN process will:\n1. **Planner** creates initial implementation plan from the spec\n2. **Architect** reviews for technical feasibility and design quality\n3. **Critic** challenges assumptions and identifies gaps\n4. Iterate until consensus is reached\n\n### Completion\n\nWhen both the spec AND the consensus plan are complete and approved:\n\nSignal: PIPELINE_RALPLAN_COMPLETE\n",
10
+ "ralplan": "## PIPELINE STAGE: RALPLAN (Consensus Planning)\n\nYour task: Expand the idea into a detailed spec and implementation plan using consensus-driven planning.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Part 1: Idea Expansion (Spec Creation)\n\n## AUTOPILOT PHASE 0: IDEA EXPANSION\n\nYour task: Expand this product idea into detailed requirements and technical spec.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Step 1: Spawn Analyst for Requirements\n\n```\nTask(\n subagent_type=\"oh-my-copilot:analyst\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__\n)\n```\n\nWAIT for Analyst to complete before proceeding.\n\n### Step 2: Spawn Architect for Technical Spec\n\nAfter Analyst completes, spawn Architect:\n\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__\n)\n```\n\n### Step 2.5: Persist Open Questions\n\nIf the Analyst output includes a `### Open Questions` section, extract those items and save them to `.omg/plans/open-questions.md` using the standard format:\n\n```\n## [Topic] - [Date]\n- [ ] [Question] — [Why it matters]\n```\n\nThe Analyst is read-only and cannot write files, so you must persist its open questions on its behalf.\n\n### Step 3: Save Combined Spec\n\nCombine Analyst requirements + Architect technical spec into a single document.\nSave to: `.omg/autopilot/spec.md`\n\n\n\n\n### Part 2: Consensus Planning\n\nAfter the spec is created at `.omg/autopilot/spec.md`, invoke the RALPLAN consensus workflow:\n\nUse the `__OMC_SKILL_SLASH_ralplan__` skill to create a consensus-driven implementation plan.\nThe plan should be saved to: `.omg/plans/autopilot-impl.md`\n\nThe RALPLAN process will:\n1. **Planner** creates initial implementation plan from the spec\n2. **Architect** reviews for technical feasibility and design quality\n3. **Critic** challenges assumptions and identifies gaps\n4. Iterate until consensus is reached\n\n### Completion\n\nWhen both the spec AND the consensus plan are complete and approved:\n\nSignal: PIPELINE_RALPLAN_COMPLETE\n",
9
11
  "execution": "## PIPELINE STAGE: EXECUTION (Solo Mode)\n\nExecute the implementation plan using single-session execution.\n\n### Setup\n\nRead the implementation plan at: `.omg/plans/autopilot-impl.md`\n\n### Solo Execution\n\nExecute tasks sequentially (or with limited parallelism via background agents):\n\n1. Read and understand each task from the plan\n2. Execute tasks in dependency order\n3. Use executor agents for independent tasks that can run in parallel\n4. Track progress in the TODO list\n\n### Output Contract\n\nEvery spawned executor response must return ONLY a short execution summary under 100 words covering what changed, files touched, verification status, and blockers. Store bulky logs/details in files or artifacts and reference them briefly.\n\n### Agent Spawning\n\n```\n// For simple tasks (single file, straightforward logic)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"haiku\", prompt=\"...\")\n\n// For standard implementation (feature, multiple methods)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"sonnet\", prompt=\"...\")\n\n// For complex work (architecture, debugging, refactoring)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"opus\", prompt=\"...\")\n```\n\n### Progress Tracking\n\nUpdate TODO list as tasks complete:\n- Mark task `in_progress` when starting\n- Mark task `completed` when done\n- Add new tasks if discovered during implementation\n\n### Completion\n\nWhen ALL tasks from the plan are implemented:\n\nSignal: PIPELINE_EXECUTION_COMPLETE\n",
10
12
  "ralph": "## PIPELINE STAGE: RALPH (Verification)\n\nVerify the implementation against the specification using the Ralph verification loop.\n\n**Max Iterations:** 100\n\n### Verification Process\n\nSpawn parallel verification reviewers:\n\nEach reviewer must return ONLY a concise review summary under 100 words covering verdict, evidence highlights, files checked, and blockers. Avoid dumping long logs or transcripts into the main session.\n\n```\n// Functional Completeness Review\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=\"FUNCTIONAL COMPLETENESS REVIEW\n\nRead the original spec at: .omg/autopilot/spec.md\n\nVerify:\n1. All functional requirements are implemented\n2. All non-functional requirements are addressed\n3. All acceptance criteria from the plan are met\n4. No missing features or incomplete implementations\n\nVerdict: APPROVED (all requirements met) or REJECTED (with specific gaps)\"\n)\n\n// Security Review\nTask(\n subagent_type=\"oh-my-copilot:security-reviewer\",\n model=\"opus\",\n prompt=\"SECURITY REVIEW\n\nCheck the implementation for:\n1. OWASP Top 10 vulnerabilities\n2. Input validation and sanitization\n3. Authentication/authorization issues\n4. Sensitive data exposure\n5. Injection vulnerabilities (SQL, command, XSS)\n6. Hardcoded secrets or credentials\n\nVerdict: APPROVED (no vulnerabilities) or REJECTED (with specific issues)\"\n)\n\n// Code Quality Review\nTask(\n subagent_type=\"oh-my-copilot:code-reviewer\",\n model=\"opus\",\n prompt=\"CODE QUALITY REVIEW\n\nReview the implementation for:\n1. Code organization and structure\n2. Design patterns and best practices\n3. Error handling completeness\n4. Test coverage adequacy\n5. Maintainability and readability\n\nVerdict: APPROVED (high quality) or REJECTED (with specific issues)\"\n)\n```\n\n### Fix and Re-verify Loop\n\nIf any reviewer rejects:\n1. Collect all rejection reasons\n2. Fix each issue identified\n3. Re-run verification (up to 100 iterations)\n\n### Completion\n\nWhen all reviewers approve:\n\nSignal: PIPELINE_RALPH_COMPLETE\n",
11
13
  "qa": "## PIPELINE STAGE: QA (Quality Assurance)\n\nRun build/lint/test cycling until all checks pass.\n\n## AUTOPILOT PHASE 3: QUALITY ASSURANCE\n\nRun build/lint/test cycles until all pass.\n\n### QA Sequence\n\n1. **Build**: Run the project's build command:\n - JavaScript/TypeScript: `npm run build` (or yarn/pnpm equivalent)\n - Python: `python -m build` (if applicable)\n - Go: `go build ./...`\n - Rust: `cargo build`\n - Java: `mvn compile` or `gradle build`\n2. **Lint**: Run the project's linter:\n - JavaScript/TypeScript: `npm run lint`\n - Python: `ruff check .` or `flake8`\n - Go: `golangci-lint run`\n - Rust: `cargo clippy`\n3. **Test**: Run the project's tests:\n - JavaScript/TypeScript: `npm test`\n - Python: `pytest`\n - Go: `go test ./...`\n - Rust: `cargo test`\n - Java: `mvn test` or `gradle test`\n\n### Fix Cycle\n\nFor each failure:\n\n1. **Diagnose** - Understand the error\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"haiku\",\n prompt=\"Diagnose this error and suggest fix: [ERROR]\"\n)\n```\n\n2. **Fix** - Apply the fix\n```\nTask(\n subagent_type=\"oh-my-copilot:debugger\",\n model=\"sonnet\",\n prompt=\"Fix this error with minimal changes: [ERROR]\"\n)\n```\n\n3. **Re-run** - Verify the fix worked\n4. **Repeat** - Until pass or max cycles (5)\n\n### Exit Conditions\n\n- All checks pass\n- Max cycles reached → Report failures\n- Same error 3 times → Escalate to user\n\n\n\n\n### Completion\n\nWhen all QA checks pass:\n\nSignal: PIPELINE_QA_COMPLETE\n"
@@ -28,5 +30,7 @@ export function resolveCanonicalWorkflowStagePrompt(stageId, task) {
28
30
  [ANALYST_PROMPT_TOKEN]: JSON.stringify(analystPrompt(normalizedTask)),
29
31
  [ARCHITECT_PROMPT_TOKEN]: JSON.stringify(architectPrompt(normalizedTask)),
30
32
  };
31
- return prompt.replace(/__OMC_NAMED_WORKFLOW_(?:TASK_DISPLAY|ANALYST_PROMPT|ARCHITECT_PROMPT)__/g, (token) => replacements[token]);
33
+ return prompt
34
+ .replace(/__OMC_NAMED_WORKFLOW_(?:TASK_DISPLAY|ANALYST_PROMPT|ARCHITECT_PROMPT)__/g, (token) => replacements[token])
35
+ .replace(/__OMC_SKILL_SLASH_([a-z][a-z0-9-]*)__/g, (_token, name) => skillSlash(name));
32
36
  }
@@ -906,6 +906,7 @@ function isScheduledWakeupStop(data) {
906
906
  }
907
907
 
908
908
  async function main() {
909
+ const { skillSlash } = await import(require("url").pathToFileURL(join(__dirname, "lib", "skill-slash.mjs")).href);
909
910
  try {
910
911
  const input = await readStdin();
911
912
  let data = {};
@@ -993,7 +994,7 @@ async function main() {
993
994
  // Fire-and-forget notification
994
995
  sendStopNotification('ralph', ralph.state, sessionId, directory).catch(() => {});
995
996
 
996
- const ralphReason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run /oh-my-copilot:cancel to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with /oh-my-copilot:cancel --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
997
+ const ralphReason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run ${skillSlash("cancel")} to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with ${skillSlash("cancel")} --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
997
998
  console.log(
998
999
  JSON.stringify({
999
1000
  decision: "block",
@@ -1011,7 +1012,7 @@ async function main() {
1011
1012
  return;
1012
1013
  }
1013
1014
  writeJsonFile(ralph.path, ralph.state);
1014
- const extendReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run /oh-my-copilot:cancel (or --force).`;
1015
+ const extendReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run ${skillSlash("cancel")} (or --force).`;
1015
1016
  console.log(JSON.stringify({ decision: "block", reason: extendReason }));
1016
1017
  return;
1017
1018
  }
@@ -1037,7 +1038,7 @@ async function main() {
1037
1038
  sendStopNotification('autopilot', autopilot.state, sessionId, directory).catch(() => {});
1038
1039
 
1039
1040
  const cancelGuidance = typeof autopilot.state.session_id === "string" && autopilot.state.session_id === sessionId
1040
- ? " When all phases are complete, run /oh-my-copilot:cancel to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with /oh-my-copilot:cancel --force."
1041
+ ? ` When all phases are complete, run ${skillSlash("cancel")} to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`
1041
1042
  : "";
1042
1043
  console.log(
1043
1044
  JSON.stringify({
@@ -1100,7 +1101,7 @@ async function main() {
1100
1101
  writeStopBreaker(stateDir, "team-pipeline", breakerCount, sessionId);
1101
1102
  sendStopNotification("team", team.state, sessionId, directory).catch(() => {});
1102
1103
 
1103
- const teamPipelineReason = `[TEAM PIPELINE - PHASE: ${phase.toUpperCase()} | REINFORCEMENT ${breakerCount}/${TEAM_PIPELINE_STOP_BLOCKER_MAX}] The team pipeline is active in phase "${phase}". Continue working on the team workflow. Do not stop until the pipeline reaches a terminal state (complete/failed/cancelled). When done, run /oh-my-copilot:cancel to cleanly exit.`;
1104
+ const teamPipelineReason = `[TEAM PIPELINE - PHASE: ${phase.toUpperCase()} | REINFORCEMENT ${breakerCount}/${TEAM_PIPELINE_STOP_BLOCKER_MAX}] The team pipeline is active in phase "${phase}". Continue working on the team workflow. Do not stop until the pipeline reaches a terminal state (complete/failed/cancelled). When done, run ${skillSlash("cancel")} to cleanly exit.`;
1104
1105
  console.log(JSON.stringify({
1105
1106
  decision: "block",
1106
1107
  reason: teamPipelineReason,
@@ -1142,7 +1143,7 @@ async function main() {
1142
1143
 
1143
1144
  sendStopNotification("ralplan", ralplan.state, sessionId, directory).catch(() => {});
1144
1145
 
1145
- const ralplanReason = `[RALPLAN - CONSENSUS PLANNING | REINFORCEMENT ${breakerCount}/${RALPLAN_STOP_BLOCKER_MAX}] The ralplan consensus workflow is active. Continue the Planner/Architect/Critic planning loop only. Ralplan is read-only/planning mode: do not implement, invoke execution skills, edit source, commit, push, or open PRs from this continuation. When consensus is reached, stop at a pending-approval handoff and require explicit user approval before execution. When done, run /oh-my-copilot:cancel to cleanly exit.`;
1146
+ const ralplanReason = `[RALPLAN - CONSENSUS PLANNING | REINFORCEMENT ${breakerCount}/${RALPLAN_STOP_BLOCKER_MAX}] The ralplan consensus workflow is active. Continue the Planner/Architect/Critic planning loop only. Ralplan is read-only/planning mode: do not implement, invoke execution skills, edit source, commit, push, or open PRs from this continuation. When consensus is reached, stop at a pending-approval handoff and require explicit user approval before execution. When done, run ${skillSlash("cancel")} to cleanly exit.`;
1146
1147
  console.log(JSON.stringify({
1147
1148
  decision: "block",
1148
1149
  reason: ralplanReason,
@@ -1171,7 +1172,7 @@ async function main() {
1171
1172
  console.log(
1172
1173
  JSON.stringify({
1173
1174
  decision: "block",
1174
- reason: `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`,
1175
+ reason: `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
1175
1176
  }),
1176
1177
  );
1177
1178
  return;
@@ -1196,7 +1197,7 @@ async function main() {
1196
1197
  console.log(
1197
1198
  JSON.stringify({
1198
1199
  decision: "block",
1199
- reason: `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`,
1200
+ reason: `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
1200
1201
  }),
1201
1202
  );
1202
1203
  return;
@@ -1221,7 +1222,7 @@ async function main() {
1221
1222
  console.log(
1222
1223
  JSON.stringify({
1223
1224
  decision: "block",
1224
- reason: `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`,
1225
+ reason: `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
1225
1226
  }),
1226
1227
  );
1227
1228
  return;
@@ -1245,7 +1246,7 @@ async function main() {
1245
1246
  console.log(
1246
1247
  JSON.stringify({
1247
1248
  decision: "block",
1248
- reason: `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run /oh-my-copilot:cancel to cleanly exit. If cancel fails, retry with /oh-my-copilot:cancel --force.`,
1249
+ reason: `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
1249
1250
  }),
1250
1251
  );
1251
1252
  return;
@@ -1269,7 +1270,7 @@ async function main() {
1269
1270
  console.log(
1270
1271
  JSON.stringify({
1271
1272
  decision: "block",
1272
- reason: `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run /oh-my-copilot:cancel to cleanly exit. If cancel fails, retry with /oh-my-copilot:cancel --force.`,
1273
+ reason: `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
1273
1274
  }),
1274
1275
  );
1275
1276
  return;
@@ -159,6 +159,7 @@ const { readStdin } = await import(
159
159
  );
160
160
  const { resolveOmcStateRoot } = await import(pathToFileURL(join(__dirname, "lib", "state-root.mjs")).href);
161
161
  const { isCopilotHookHost } = await import(pathToFileURL(join(__dirname, "lib", "hook-host.mjs")).href);
162
+ const { skillSlash } = await import(pathToFileURL(join(__dirname, "lib", "skill-slash.mjs")).href);
162
163
  const { incrementCopilotStopChain, isCopilotNativeAutopilot, readCopilotStopChain, resetCopilotStopChain, resolveCopilotStopChainMax } = await import(pathToFileURL(join(__dirname, "lib", "copilot-continuation.mjs")).href);
163
164
  const { goalRecordMatches, isGoalRecordComplete, missingGoalCriteria, readOmgGoalRecord, ultragoalStatePlanId } = await import(pathToFileURL(join(__dirname, "lib", "omg-goal-record.mjs")).href);
164
165
 
@@ -1458,7 +1459,7 @@ async function main() {
1458
1459
  console.log(
1459
1460
  JSON.stringify({
1460
1461
  decision: "block",
1461
- reason: `[RALPH LOOP - HARD LIMIT] Reached hard max iterations (${hardMax}). Mode auto-disabled. Restart with /oh-my-copilot:ralph if needed.`,
1462
+ reason: `[RALPH LOOP - HARD LIMIT] Reached hard max iterations (${hardMax}). Mode auto-disabled. Restart with ${skillSlash("ralph")} if needed.`,
1462
1463
  }),
1463
1464
  );
1464
1465
  return;
@@ -1476,7 +1477,7 @@ async function main() {
1476
1477
  }
1477
1478
  writeJsonFile(ralph.path, ralph.state);
1478
1479
 
1479
- let reason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run /oh-my-copilot:cancel to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with /oh-my-copilot:cancel --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
1480
+ let reason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run ${skillSlash("cancel")} to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with ${skillSlash("cancel")} --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
1480
1481
  if (errorGuidance) {
1481
1482
  reason = errorGuidance + reason;
1482
1483
  }
@@ -1522,7 +1523,7 @@ async function main() {
1522
1523
  }
1523
1524
  writeJsonFile(ralph.path, ralph.state);
1524
1525
 
1525
- const ralphExtendedReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run /oh-my-copilot:cancel (or --force).`;
1526
+ const ralphExtendedReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run ${skillSlash("cancel")} (or --force).`;
1526
1527
  recordLoopContinuationShadow({
1527
1528
  mode_name: "ralph",
1528
1529
  session_id: sessionId || null,
@@ -1594,14 +1595,14 @@ async function main() {
1594
1595
  const objective = getUltragoalObjective(ultragoal.state, omcRoot);
1595
1596
  let reason;
1596
1597
  if (copilotHost) {
1597
- reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, record evidence for every acceptance criterion with omg ultragoal goal-evidence --criterion <id> --evidence "<evidence>", and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run /oh-my-copilot:cancel to cleanly exit.`;
1598
+ reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, record evidence for every acceptance criterion with omg ultragoal goal-evidence --criterion <id> --evidence "<evidence>", and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run ${skillSlash("cancel")} to cleanly exit.`;
1598
1599
  const goalObjective = goalRecord?.record.objective || objective;
1599
1600
  if (goalObjective) reason += `\nGoal objective: ${goalObjective}`;
1600
1601
  reason += goalRecord
1601
1602
  ? `\nMissing evidence: ${missingGoalCriteria(goalRecord.record).map((criterion) => `${criterion.id} ${criterion.text}`).join("; ")}`
1602
1603
  : `\nNo OMG goal record yet: run omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion).`;
1603
1604
  } else {
1604
- reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, keep the matching Claude /goal active, and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run /oh-my-copilot:cancel to cleanly exit.`;
1605
+ reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, keep the matching Claude /goal active, and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run ${skillSlash("cancel")} to cleanly exit.`;
1605
1606
  if (objective) reason += `\nClaude /goal objective: ${objective}`;
1606
1607
  }
1607
1608
  if (errorGuidance) {
@@ -1709,7 +1710,7 @@ async function main() {
1709
1710
  autopilot.state = reinforced;
1710
1711
 
1711
1712
  const cancelGuidance = hasValidSessionId && autopilot.state.session_id === sessionId
1712
- ? " When all phases are complete, run /oh-my-copilot:cancel to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with /oh-my-copilot:cancel --force."
1713
+ ? ` When all phases are complete, run ${skillSlash("cancel")} to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`
1713
1714
  : "";
1714
1715
  let reason = `[AUTOPILOT - Phase: ${phase}] Autopilot not complete. Continue working.${cancelGuidance}`;
1715
1716
  if (errorGuidance) {
@@ -1765,7 +1766,7 @@ async function main() {
1765
1766
  ultrapilot.state.last_checked_at = new Date().toISOString();
1766
1767
  writeJsonFile(ultrapilot.path, ultrapilot.state);
1767
1768
 
1768
- let reason = `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`;
1769
+ let reason = `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
1769
1770
  if (errorGuidance) {
1770
1771
  reason = errorGuidance + reason;
1771
1772
  }
@@ -1800,7 +1801,7 @@ async function main() {
1800
1801
  swarmSummary.last_checked_at = new Date().toISOString();
1801
1802
  writeJsonFile(join(stateDir, "swarm-summary.json"), swarmSummary);
1802
1803
 
1803
- let reason = `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`;
1804
+ let reason = `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
1804
1805
  if (errorGuidance) {
1805
1806
  reason = errorGuidance + reason;
1806
1807
  }
@@ -1837,7 +1838,7 @@ async function main() {
1837
1838
  pipeline.state.last_checked_at = new Date().toISOString();
1838
1839
  writeJsonFile(pipeline.path, pipeline.state);
1839
1840
 
1840
- let reason = `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run /oh-my-copilot:cancel to cleanly exit and clean up state files. If cancel fails, retry with /oh-my-copilot:cancel --force.`;
1841
+ let reason = `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
1841
1842
  if (errorGuidance) {
1842
1843
  reason = errorGuidance + reason;
1843
1844
  }
@@ -1874,7 +1875,7 @@ async function main() {
1874
1875
  team.state.last_checked_at = new Date().toISOString();
1875
1876
  writeJsonFile(team.path, team.state);
1876
1877
 
1877
- let reason = `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run /oh-my-copilot:cancel to cleanly exit. If cancel fails, retry with /oh-my-copilot:cancel --force.`;
1878
+ let reason = `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
1878
1879
  if (errorGuidance) {
1879
1880
  reason = errorGuidance + reason;
1880
1881
  }
@@ -1912,7 +1913,7 @@ async function main() {
1912
1913
  omcTeams.state.last_checked_at = new Date().toISOString();
1913
1914
  writeJsonFile(omcTeams.path, omcTeams.state);
1914
1915
 
1915
- let reason = `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run /oh-my-copilot:cancel to cleanly exit. If cancel fails, retry with /oh-my-copilot:cancel --force.`;
1916
+ let reason = `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
1916
1917
  if (errorGuidance) {
1917
1918
  reason = errorGuidance + reason;
1918
1919
  }
@@ -272,6 +272,7 @@ function collectManifestEntrypoints(root) {
272
272
  // Node setup lifecycle: the documented, bash-free entry points.
273
273
  if (existsSync(join(root, 'scripts', 'setup-claude-md.mjs'))) paths.add('scripts/setup-claude-md.mjs');
274
274
  if (existsSync(join(root, 'scripts', 'setup-progress.mjs'))) paths.add('scripts/setup-progress.mjs');
275
+ if (existsSync(join(root, 'scripts', 'setup-config.mjs'))) paths.add('scripts/setup-config.mjs');
275
276
  if (existsSync(join(root, 'scripts', 'uninstall.mjs'))) paths.add('scripts/uninstall.mjs');
276
277
  if (existsSync(join(root, 'scripts', 'lib', 'config-dir.mjs'))) paths.add('scripts/lib/config-dir.mjs');
277
278
  for (const path of OPTIONAL_BRIDGE_PAYLOADS) if (existsSync(join(root, path))) paths.add(path);
@@ -1447,7 +1447,7 @@ function evaluateUltragoalPreToolEnforcement(stateDir, directory, sessionId, dat
1447
1447
  : !recordUsable
1448
1448
  ? `the OMG goal record is ${record.status || 'missing a status'}.`
1449
1449
  : `the OMG goal record objective does not match: "${record.objective}".`;
1450
- return `[ULTRAGOAL GOAL RECORD REQUIRED] Active ultragoal state requires an OMG goal record before tools run on GitHub Copilot CLI (it has no Claude /goal); ${problem} Record the objective and its acceptance criteria with: omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion; it defaults to the expected objective). Or run /oh-my-copilot:cancel, or set ALLOW_ULTRAGOAL_WITHOUT_GOAL=1 to bypass this guard intentionally. Expected objective: ${expected || '<the objective passed to goal-start>'}`;
1450
+ return `[ULTRAGOAL GOAL RECORD REQUIRED] Active ultragoal state requires an OMG goal record before tools run on GitHub Copilot CLI (it has no Claude /goal); ${problem} Record the objective and its acceptance criteria with: omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion; it defaults to the expected objective). Or run /cancel, or set ALLOW_ULTRAGOAL_WITHOUT_GOAL=1 to bypass this guard intentionally. Expected objective: ${expected || '<the objective passed to goal-start>'}`;
1451
1451
  }
1452
1452
 
1453
1453
  const mismatch = actualObjective
@@ -1034,7 +1034,7 @@ function formatUpdateNoticeForUser(updateInfo, options = {}) {
1034
1034
  if (updateInfo?.source === 'copilot-plugin') {
1035
1035
  action = 'To update the plugin, run: /plugin update oh-my-copilot@omc (from a shell: copilot plugin update oh-my-copilot@omc)';
1036
1036
  } else if (updateInfo?.source === 'marketplace') {
1037
- action = 'To update the plugin channel, run: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /oh-my-copilot:omc-setup';
1037
+ action = 'To update the plugin channel, run: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup';
1038
1038
  } else if (options.copilotHost) {
1039
1039
  // Copilot's /update updates Copilot CLI itself, not this package.
1040
1040
  action = 'To update, run: npm i -g oh-my-copilot@latest';
@@ -1731,7 +1731,7 @@ async function main() {
1731
1731
  driftMsg += `\nRun '/plugin update oh-my-copilot@omc' to sync plugin-managed components.`;
1732
1732
  } else {
1733
1733
  driftMsg += driftInfo.source === 'marketplace'
1734
- ? `\nRun 'copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /oh-my-copilot:omc-setup' to sync plugin-managed components.`
1734
+ ? `\nRun 'copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup' to sync plugin-managed components.`
1735
1735
  : `\nRun 'omg update' to sync all components.`;
1736
1736
  }
1737
1737
 
@@ -1748,7 +1748,7 @@ async function main() {
1748
1748
  const omcConfigPath = join(configDir, '.omc-config.json');
1749
1749
  const omcConfig = readJsonFile(omcConfigPath);
1750
1750
  if (omcConfig?.silentAutoUpdate) {
1751
- messages.push(`<session-restore>\n\n[OMC] silentAutoUpdate is enabled in .omc-config.json but has no effect in plugin mode.\nTo update, use: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /oh-my-copilot:omc-setup\nOr run manually: omg update\n\n</session-restore>\n\n---\n`);
1751
+ messages.push(`<session-restore>\n\n[OMC] silentAutoUpdate is enabled in .omc-config.json but has no effect in plugin mode.\nTo update, use: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup\nOr run manually: omg update\n\n</session-restore>\n\n---\n`);
1752
1752
  }
1753
1753
  } catch {}
1754
1754
  }
@@ -6,6 +6,7 @@
6
6
  // POSIX toolchain; this one needs only the Node that already runs the coordinator,
7
7
  // so setup works identically on Windows without Git Bash.
8
8
 
9
+ import { hardenWindowsExeSearch } from './lib/windows-search.mjs';
9
10
  import { spawnSync } from 'node:child_process';
10
11
  import { createHash } from 'node:crypto';
11
12
  import {
@@ -24,6 +25,8 @@ import { fileURLToPath } from 'node:url';
24
25
 
25
26
  import { getCopilotConfigDir } from './lib/config-dir.mjs';
26
27
 
28
+ hardenWindowsExeSearch();
29
+
27
30
  const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url));
28
31
  const SCRIPT_PLUGIN_ROOT = resolve(SCRIPT_DIR, '..');
29
32
  const MAX_REEXEC_DEPTH = 2;