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
@@ -32,7 +32,7 @@ Extract from the `github` key:
32
32
  - `owner` — GitHub owner (org or user)
33
33
  - `repo` — repository name
34
34
 
35
- If config is NOT_FOUND or missing the `github` key: tell the user to run `/oh-my-copilot:omc-gh-setup` first and stop.
35
+ If config is NOT_FOUND or missing the `github` key: tell the user to run `/omc-gh-setup` first and stop.
36
36
 
37
37
  ---
38
38
 
@@ -229,7 +229,7 @@ gh pr edit {prNumber} --repo {owner}/{repo} --add-label "{label}" 2>&1
229
229
 
230
230
  | Error | Action |
231
231
  |-------|--------|
232
- | `.omg/config.json` missing | Tell user to run `/oh-my-copilot:omc-gh-setup` first |
232
+ | `.omg/config.json` missing | Tell user to run `/omc-gh-setup` first |
233
233
  | `gh auth` required | Prompt user to authenticate; stop execution |
234
234
  | PR not found | Verify PR number and that the repository in config matches |
235
235
  | No permission to review | User may need write access to the repo |
@@ -194,8 +194,8 @@ Triage Label : {labelTriage or "none"}
194
194
  Config file : .omg/config.json
195
195
 
196
196
  Next steps:
197
- /oh-my-copilot:omc-gh-triage — run a full triage of issues, PRs, and CI
198
- /oh-my-copilot:omc-gh-review — review open pull requests
197
+ /omc-gh-triage — run a full triage of issues, PRs, and CI
198
+ /omc-gh-review — review open pull requests
199
199
  ```
200
200
 
201
201
  ---
@@ -34,7 +34,7 @@ Extract from the `github` key:
34
34
  - `defaultBranch` — default branch name
35
35
  - `labelTriage` — triage label filter (optional)
36
36
 
37
- If config is NOT_FOUND or missing the `github` key: tell the user to run `/oh-my-copilot:omc-gh-setup` first and stop.
37
+ If config is NOT_FOUND or missing the `github` key: tell the user to run `/omc-gh-setup` first and stop.
38
38
 
39
39
  ---
40
40
 
@@ -163,7 +163,7 @@ After presenting the summary, ask the user (via AskUserQuestion):
163
163
  1. Fix failing CI — delegate to `build-fixer` agent
164
164
  2. Address PR feedback — open the PR diff and summarize changes needed
165
165
  3. Triage issues — walk through untriaged issues one by one
166
- 4. Review a PR — delegate to `/oh-my-copilot:omc-gh-review`
166
+ 4. Review a PR — delegate to `/omc-gh-review`
167
167
  5. Show details for a specific item — enter issue or PR number
168
168
  6. No action needed — exit triage
169
169
 
@@ -173,7 +173,7 @@ After presenting the summary, ask the user (via AskUserQuestion):
173
173
 
174
174
  | Error | Action |
175
175
  |-------|--------|
176
- | `.omg/config.json` missing | Tell user to run `/oh-my-copilot:omc-gh-setup` first |
176
+ | `.omg/config.json` missing | Tell user to run `/omc-gh-setup` first |
177
177
  | `gh auth` required | Prompt user to authenticate; do not abort — skip that section |
178
178
  | Dependabot not enabled | Skip security alerts section, note it in summary |
179
179
  | Query returns 0 results | Show the section with count "(0)" — do not omit the header |
@@ -37,11 +37,11 @@ When user runs with `--help`, display this and stop:
37
37
  OMC Setup - Configure oh-my-copilot
38
38
 
39
39
  USAGE:
40
- /oh-my-copilot:omc-setup Run initial setup wizard (or update if already configured)
41
- /oh-my-copilot:omc-setup --local Configure local project (.claude/CLAUDE.md)
42
- /oh-my-copilot:omc-setup --global Configure global settings (~/.claude/CLAUDE.md)
43
- /oh-my-copilot:omc-setup --force Force full setup wizard even if already configured
44
- /oh-my-copilot:omc-setup --help Show this help
40
+ /omc-setup Run initial setup wizard (or update if already configured)
41
+ /omc-setup --local Configure local project (.claude/CLAUDE.md)
42
+ /omc-setup --global Configure global settings (~/.claude/CLAUDE.md)
43
+ /omc-setup --force Force full setup wizard even if already configured
44
+ /omc-setup --help Show this help
45
45
 
46
46
  MODES:
47
47
  Initial Setup (no flags)
@@ -74,10 +74,10 @@ MODES:
74
74
  - Use when you want to reconfigure preferences
75
75
 
76
76
  EXAMPLES:
77
- /oh-my-copilot:omc-setup # First time setup (or update CLAUDE.md if configured)
78
- /oh-my-copilot:omc-setup --local # Update this project
79
- /oh-my-copilot:omc-setup --global # Update all projects
80
- /oh-my-copilot:omc-setup --force # Re-run full setup wizard
77
+ /omc-setup # First time setup (or update CLAUDE.md if configured)
78
+ /omc-setup --local # Update this project
79
+ /omc-setup --global # Update all projects
80
+ /omc-setup --force # Re-run full setup wizard
81
81
 
82
82
  For more info: https://github.com/RobinNorberg/oh-my-copilot
83
83
  ```
@@ -100,9 +100,11 @@ The script is the sole cache resolver. It accepts only complete plugin roots (ca
100
100
  **CRITICAL**: Before doing anything else, check if setup has already been completed. This prevents users from having to re-run the full setup wizard after every update.
101
101
 
102
102
  ```bash
103
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'.omc-config.json');if(f.existsSync(t)===false){console.log('ALREADY_CONFIGURED=false');process.exit(0)}let c;try{c=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.error('ERROR: Existing OMC config is invalid JSON. Existing config was not modified.');process.exit(1)}if(c&&c.setupCompleted){console.log('OMC setup was already completed on: '+c.setupCompleted);if(c.setupVersion)console.log('Setup version: '+c.setupVersion);console.log('ALREADY_CONFIGURED=true')}else{console.log('ALREADY_CONFIGURED=false')}"
103
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" configured
104
104
  ```
105
105
 
106
+ All setup checks and config writes run through `scripts/setup-config.mjs` subcommands, never inline interpreter code, so setup also works on hosts that block inline interpreter execution.
107
+
106
108
  Treat `ALREADY_CONFIGURED=true` in the output as the configured case. A non-zero exit
107
109
  means the existing config could not be parsed; stop and report that rather than
108
110
  overwriting it.
@@ -184,13 +186,13 @@ Execute phases sequentially. For each phase, read the corresponding file and fol
184
186
 
185
187
  After installing oh-my-copilot updates (via npm or plugin update):
186
188
 
187
- **Automatic**: Just run `/oh-my-copilot:omc-setup` - it will detect you've already configured and offer a quick "Update CLAUDE.md and clear retired setup values" option that skips the rest of the wizard.
189
+ **Automatic**: Just run `/omc-setup` - it will detect you've already configured and offer a quick "Update CLAUDE.md and clear retired setup values" option that skips the rest of the wizard.
188
190
 
189
191
  The quick update path must still perform Phase 2 Step 2.4 so upgrades remove the retired `defaultExecutionMode` value; it must not write any replacement execution-mode setting.
190
192
 
191
193
  **Manual options**:
192
- - `/oh-my-copilot:omc-setup --local` to update project config only
193
- - `/oh-my-copilot:omc-setup --global` to update global config only
194
- - `/oh-my-copilot:omc-setup --force` to re-run the full wizard (reconfigure preferences)
194
+ - `/omc-setup --local` to update project config only
195
+ - `/omc-setup --global` to update global config only
196
+ - `/omc-setup --force` to re-run the full wizard (reconfigure preferences)
195
197
 
196
198
  This ensures you have the newest features and agent configurations without the token cost of repeating the full setup.
@@ -20,24 +20,7 @@ Set `CONFIG_TARGET` to `local` or `global` based on the user's choice.
20
20
  Only when `CONFIG_TARGET=global`, run this probe before any overwrite/preserve question. It checks the same `.omc-config.json` used by the installer and respects `COPILOT_HOME`, including `~`, `~/...`, and `~\...` values:
21
21
 
22
22
  ```bash
23
- node -e "
24
- const fs = require('node:fs');
25
- const os = require('node:os');
26
- const path = require('node:path');
27
- let configDir = (process.env.COPILOT_HOME || '').trim();
28
- if (configDir === '') configDir = path.join(os.homedir(), '.copilot');
29
- if (configDir === '~') configDir = os.homedir();
30
- else if (configDir.startsWith('~/') || configDir.startsWith('~' + String.fromCharCode(92))) {
31
- configDir = path.join(os.homedir(), configDir.slice(2));
32
- }
33
- try {
34
- const config = JSON.parse(fs.readFileSync(path.join(configDir, '.omc-config.json'), 'utf8'));
35
- const disabled = Boolean(config && typeof config === 'object' && config.claudeMdEnabled === false);
36
- console.log(disabled ? 'disabled' : 'enabled');
37
- } catch {
38
- console.log('enabled');
39
- }
40
- "
23
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" claude-md-enabled
41
24
  ```
42
25
 
43
26
  If the probe prints `disabled`, do not ask the overwrite/preserve question; set `GLOBAL_INSTALL_STYLE=overwrite` and continue through the coordinator so it can report the skip. If it prints `enabled`, continue below. If the probe fails or prints neither status, stop before asking or running setup; do not assume management is enabled.
@@ -7,7 +7,7 @@
7
7
  Capture the original progress marker once when Phase 2 starts. A resumed run that enters at Step 2.4 must not repeat the completed Steps 2.5/2.6 prompts or overwrite a higher progress marker:
8
8
 
9
9
  ```bash
10
- node -e "const p=require('path'),f=require('fs'),t=p.join('.omg','state','setup-state.json');let s={};if(f.existsSync(t)){try{s=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.error('ERROR: Setup state is invalid JSON. Existing setup state was not modified.');process.exit(1)}}const step=Number.isFinite(s.lastCompletedStep)?s.lastCompletedStep:0;console.log('RESUME_LAST_COMPLETED_STEP='+step);console.log('RESUMED_PHASE_TWO_BOUNDARY='+(step>=4))"
10
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" resume-boundary
11
11
  ```
12
12
 
13
13
  ## Step 2.0: Check Ralph Runtime Prerequisites
@@ -16,7 +16,7 @@ Ralph is an agent-driven persistence loop with no external language dependency.
16
16
 
17
17
  ```bash
18
18
  node --version || echo "ERROR: Node is required for OMC hooks and Ralph state persistence."
19
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'.omc-write-probe');try{f.mkdirSync(d,{recursive:true});f.writeFileSync(t,'');f.rmSync(t,{force:true});}catch{console.log('WARNING: Config dir is not writable; Ralph state persistence will fail until it is.')}"
19
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" probe-write
20
20
  ```
21
21
 
22
22
  ## Step 2.1: Setup HUD Statusline
@@ -54,29 +54,10 @@ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/repair-plugin-cach
54
54
  Notify user if a newer version is available:
55
55
 
56
56
  ```bash
57
- # Detect installed version (cross-platform)
58
- node -e "
59
- const p=require('path'),f=require('fs'),h=require('os').homedir();
60
- const raw=process.env.COPILOT_HOME?.trim();
61
- const d=raw==null||raw===''? p.join(h,'.claude'):raw==='~'?h:raw.startsWith('~/')||raw.startsWith('~\\\\')?p.join(h,raw.slice(2)):raw;
62
- let v='';
63
- // Try cache directory first
64
- const b=p.join(d,'plugins','cache','omc','oh-my-copilot');
65
- try{const vs=f.readdirSync(b).filter(x=>/^\d/.test(x)).sort((a,c)=>a.localeCompare(c,void 0,{numeric:true}));if(vs.length)v=vs[vs.length-1]}catch{}
66
- // Try .omc-version.json second
67
- if(v==='')try{const j=JSON.parse(f.readFileSync('.omc-version.json','utf-8'));v=j.version||''}catch{}
68
- // Try CLAUDE.md header third
69
- if(v==='')for(const c of['.claude/CLAUDE.md',p.join(d,'CLAUDE.md')]){try{const m=f.readFileSync(c,'utf-8').match(/^# oh-my-copilot.*?(v?\d+\.\d+\.\d+)/m);if(m){v=m[1].replace(/^v/,'');break}}catch{}}
70
- console.log('Installed:',v||'(not found)');
71
- "
57
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" update-check
72
58
  ```
73
59
 
74
- Then compare it against the published version. Pass the installed version printed above
75
- as the argument:
76
-
77
- ```bash
78
- node -e "const{spawnSync}=require('node:child_process');const installed=(process.argv[1]||'').trim();const r=spawnSync('npm',['view','oh-my-copilot','version'],{encoding:'utf8',shell:process.platform==='win32'});const latest=r.status===0?(r.stdout||'').trim():'';if(installed&&latest){if(installed===latest){console.log('You are on the latest version: v'+installed)}else{console.log('UPDATE AVAILABLE:');console.log(' Installed: v'+installed);console.log(' Latest: v'+latest);console.log('To update, run: claude /install-plugin oh-my-copilot')}}else if(latest){console.log('Latest version available: v'+latest)}else{console.log('Latest version: (unavailable)')}" "INSTALLED_VERSION"
79
- ```
60
+ It detects the installed version (plugin cache, then `.omc-version.json`, then the `CLAUDE.md` header) and compares it against the published version.
80
61
 
81
62
  ## Step 2.4: Clear Retired Setup Values
82
63
 
@@ -85,10 +66,10 @@ The `ultrawork` workflow was removed in 5.0.0 and the `defaultExecutionMode` con
85
66
  The write goes through a temp file, so a failure leaves the existing config untouched:
86
67
 
87
68
  ```bash
88
- node -e "const p=require('path'),f=require('fs'),os=require('os'),BS=String.fromCharCode(92);let d=(process.env.COPILOT_HOME||'').trim();if(d==='')d=p.join(os.homedir(),'.copilot');else if(d==='~')d=os.homedir();else if(d.slice(0,2)==='~/'||d.slice(0,2)==='~'+BS)d=p.join(os.homedir(),d.slice(2));const t=p.join(d,'.omc-config.json');if(f.existsSync(t)===false)process.exit(0);let c;try{c=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.log('WARNING: '+t+' is not valid JSON. Existing config was not modified.');process.exit(0)}if(c===null||(typeof c==='object')===false||('defaultExecutionMode' in c)===false)process.exit(0);delete c.defaultExecutionMode;const tmp=t+'.tmp.'+process.pid;try{f.writeFileSync(tmp,JSON.stringify(c,null,2));f.renameSync(tmp,t);console.log('Cleared retired defaultExecutionMode key (ultrawork was removed in 5.0.0)')}catch(e){f.rmSync(tmp,{force:true});console.log('WARNING: Failed to clear retired defaultExecutionMode. Existing config was not modified.')}"
69
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" clear-retired
89
70
  ```
90
71
 
91
- **Note:** Never write a new `defaultExecutionMode` value. Generic keywords no longer route through a configured execution mode; invoke `/oh-my-copilot:execute` or `/oh-my-copilot:team` directly instead.
72
+ **Note:** Never write a new `defaultExecutionMode` value. Generic keywords no longer route through a configured execution mode; invoke `/execute` or `/team` directly instead.
92
73
 
93
74
  **Resume-only boundary:** If `RESUMED_PHASE_TWO_BOUNDARY` is `true`, stop Phase 2 after this cleanup. Do not execute Steps 2.5 or 2.6, do not prompt for task-tool or team settings again, and do not save a new progress value. Return to the setup orchestrator with the original `RESUME_LAST_COMPLETED_STEP` unchanged.
94
75
 
@@ -99,7 +80,7 @@ The OMC CLI (`omg` command) provides standalone helper commands such as `omg hud
99
80
  First, check if the CLI is already installed:
100
81
 
101
82
  ```bash
102
- node -e "const{spawnSync}=require('node:child_process');const r=spawnSync('omg',['--version'],{encoding:'utf8',shell:process.platform==='win32'});if(r.status===0){console.log('OMC CLI already installed: '+((r.stdout||'').split(/\r?\n/)[0]||'installed'));console.log('OMC_CLI_INSTALLED=true')}else{console.log('OMC_CLI_INSTALLED=false')}"
83
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" cli-installed
103
84
  ```
104
85
 
105
86
  If `OMC_CLI_INSTALLED` is `"true"`, skip the rest of this step.
@@ -115,7 +96,7 @@ If `OMC_CLI_INSTALLED` is `"false"`, use AskUserQuestion:
115
96
  If user chooses **Yes**:
116
97
 
117
98
  ```bash
118
- node -e "const{spawnSync}=require('node:child_process');const sh=process.platform==='win32';const run=(c,a)=>spawnSync(c,a,{encoding:'utf8',shell:sh});if((run('npm',['--version']).status===0)===false){console.log('WARNING: npm not found. Cannot install OMC CLI automatically.');console.log('Install Node.js/npm first, then run: npm install -g oh-my-copilot');process.exit(0)}const i=spawnSync('npm',['install','-g','oh-my-copilot'],{stdio:'inherit',shell:sh});if(i.status===0){console.log('OMC CLI installed successfully.');const v=run('omc',['--version']);console.log(v.status===0?'Verified: omc '+((v.stdout||'').split(/\r?\n/)[0]||'installed'):\"Installed but 'omc' not on PATH. You may need to restart your shell.\")}else{console.log('WARNING: Failed to install OMC CLI (permission issue or network error).');console.log('You can install manually later: npm install -g oh-my-copilot');console.log('On Linux/macOS you may need: sudo npm install -g oh-my-copilot')}"
99
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" install-cli
119
100
  ```
120
101
 
121
102
  **Note**: The CLI is optional. All core functionality is also available through the plugin system.
@@ -125,8 +106,7 @@ node -e "const{spawnSync}=require('node:child_process');const sh=process.platfor
125
106
  First, detect available task tools:
126
107
 
127
108
  ```bash
128
- node -e "const{spawnSync}=require('node:child_process');const sh=process.platform==='win32';let found=false;for(const[cmd,label]of [['bd','beads (bd)'],['br','beads-rust (br)']]){const r=spawnSync(cmd,['--version'],{encoding:'utf8',shell:sh});if(r.status===0){found=true;console.log('Found '+label+': '+((r.stdout||'').split(/\r?\n/)[0]||'installed'))}}if(found===false)console.log('No external task tools found. Using built-in Tasks.')"
129
- fi
109
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" detect-task-tools
130
110
  ```
131
111
 
132
112
  If **neither** beads nor beads-rust is detected, skip this step (default to built-in).
@@ -148,7 +128,7 @@ Pass the user's selection (`builtin`, `beads`, or `beads-rust`) as the argument.
148
128
  goes through a temp file, so a failure leaves the existing config untouched:
149
129
 
150
130
  ```bash
151
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'.omc-config.json');const tool=process.argv[1];f.mkdirSync(p.dirname(t),{recursive:true});let c={};if(f.existsSync(t)){try{c=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.error('ERROR: '+t+' is not valid JSON. Existing config was not modified.');process.exit(1)}}c.taskTool=tool;c.taskToolConfig={injectInstructions:true,useMcp:false};const tmp=t+'.tmp.'+process.pid;try{f.writeFileSync(tmp,JSON.stringify(c,null,2));f.renameSync(tmp,t);console.log('Task tool set to: '+tool)}catch(e){f.rmSync(tmp,{force:true});console.error('ERROR: Failed to update '+t+'. Existing config was not modified.');process.exit(1)}" "USER_CHOICE"
131
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" set-task-tool "USER_CHOICE"
152
132
  ```
153
133
 
154
134
  **Note:** The beads context instructions will be injected automatically on the next session start.
@@ -5,7 +5,7 @@
5
5
  ## Step 3.1: Verify Plugin Installation
6
6
 
7
7
  ```bash
8
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'settings.json');let c='';try{c=f.readFileSync(t,'utf8')}catch{};console.log(c.includes('oh-my-copilot')?'Plugin verified':'Plugin NOT found - run: claude /install-plugin oh-my-copilot')"
8
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" plugin-verify
9
9
  ```
10
10
 
11
11
  ## Step 3.2: MCP Server Configuration (Pointer Only)
@@ -43,7 +43,7 @@ Use AskUserQuestion:
43
43
  First, read the current settings.json:
44
44
 
45
45
  ```bash
46
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'settings.json');try{process.stdout.write(f.readFileSync(t,'utf8'))}catch{console.log('(no settings.json at '+t+')')}"
46
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" show-settings
47
47
  ```
48
48
 
49
49
  Then use the Read tool to read `${COPILOT_HOME:-~/.copilot}/settings.json` (if it exists). Use the Edit tool to merge the teams configuration while preserving ALL existing settings.
@@ -55,7 +55,7 @@ refuses to touch a file it cannot parse. It runs unchanged in bash, zsh, and Pow
55
55
  with no external JSON tooling, no heredoc, and no shell redirection:
56
56
 
57
57
  ```bash
58
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot');const[name,raw]=process.argv.slice(1);const t=p.join(d,name);const patch=JSON.parse(raw);f.mkdirSync(p.dirname(t),{recursive:true});let c={};if(f.existsSync(t)){try{c=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.error('ERROR: '+t+' is not valid JSON. Existing file was not modified.');process.exit(1)}}const merge=(a,b)=>{for(const k of Object.keys(b)){const v=b[k];if(v&&typeof v==='object'&&Array.isArray(v)===false){a[k]=merge(a[k]&&typeof a[k]==='object'?a[k]:{},v)}else{a[k]=v}}return a};merge(c,patch);const tmp=t+'.tmp.'+process.pid;try{f.writeFileSync(tmp,JSON.stringify(c,null,2));f.renameSync(tmp,t);console.log('Updated '+t)}catch(e){f.rmSync(tmp,{force:true});console.error('ERROR: Failed to update '+t+'. Existing file was not modified.');process.exit(1)}" "settings.json" "{\"env\":{\"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS\":\"1\"}}"
58
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" merge-json "settings.json" "{\"env\":{\"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS\":\"1\"}}"
59
59
  ```
60
60
 
61
61
  **IMPORTANT**: The Edit tool is preferred for modifying settings.json when possible, since it preserves formatting and comments. The merge command above is the fallback for when the file needs structural merging.
@@ -118,7 +118,7 @@ teammates inherit your session model.
118
118
  After all modifications, verify settings.json is valid JSON and contains the expected keys:
119
119
 
120
120
  ```bash
121
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot'),t=p.join(d,'settings.json');let c;try{c=JSON.parse(f.readFileSync(t,'utf8'))}catch{console.error('ERROR: settings.json is invalid JSON or missing. Restore it from the backup before continuing.');process.exit(1)}console.log('settings.json: valid JSON');console.log((c.env||{}).CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS?'Agent teams: ENABLED':'WARNING: Agent teams env var not found in settings.json');console.log('');console.log('Final settings.json:');console.log(JSON.stringify(c,null,2))"
121
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" verify-settings
122
122
  ```
123
123
 
124
124
  ### If User Chooses NO:
@@ -132,7 +132,7 @@ Skip this step. Agent teams will remain disabled. User can enable later by addin
132
132
  }
133
133
  ```
134
134
 
135
- Or by running `/oh-my-copilot:omc-setup --force` and choosing to enable teams.
135
+ Or by running `/omc-setup --force` and choosing to enable teams.
136
136
 
137
137
  ## Save Progress
138
138
 
@@ -5,7 +5,7 @@
5
5
  Check if user has existing 2.x configuration:
6
6
 
7
7
  ```bash
8
- node -e "const p=require('path'),f=require('fs'),d=process.env.COPILOT_HOME||p.join(require('os').homedir(),'.copilot');console.log('IS_UPGRADE='+f.existsSync(p.join(d,'commands','ralph-loop.md')))"
8
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" detect-upgrade
9
9
  ```
10
10
 
11
11
  If found, this is an upgrade from 2.x. Set `IS_UPGRADE=true`.
@@ -39,14 +39,14 @@ Just include these words naturally in your request:
39
39
  | cancelomc | Stop active OMC modes | "cancelomc" |
40
40
 
41
41
  CANONICAL WORKFLOWS (Tier-0):
42
- omc-plan -> execute -> omc-review -> verify, invoked as /oh-my-copilot:omc-plan and /oh-my-copilot:omc-review.
42
+ omc-plan -> execute -> omc-review -> verify, invoked as /omc-plan and /omc-review.
43
43
  /deep-interview and /ralplan are independent planning workflows.
44
44
  /research and /team are internal lanes; /autopilot, /autoresearch, /ralph, /ultragoal stay directly invocable.
45
45
 
46
46
  TEAMS:
47
47
  Spawn coordinated agents with shared task lists and real-time messaging:
48
- - /oh-my-copilot:team 3:executor "fix all TypeScript errors"
49
- - /oh-my-copilot:team 5:debugger "fix build errors in src/"
48
+ - /team 3:executor "fix all TypeScript errors"
49
+ - /team 5:debugger "fix build errors in src/"
50
50
  Teams use Claude Code's implicit agent team (spawn teammates directly with distinct `name` values; no TeamCreate/TeamDelete in Claude Code 2.1.178+). Team orchestration is explicit via /team — there is no bare "team" keyword.
51
51
 
52
52
  MCP SERVERS:
@@ -100,7 +100,7 @@ MAGIC KEYWORDS (power-user shortcuts):
100
100
 
101
101
  TEAMS (NEW!):
102
102
  Spawn coordinated agents with shared task lists and real-time messaging:
103
- - /oh-my-copilot:team 3:executor "fix all TypeScript errors"
103
+ - /team 3:executor "fix all TypeScript errors"
104
104
  - Uses Claude Code's implicit agent team (spawn teammates directly with distinct `name` values; no TeamCreate/TeamDelete in Claude Code 2.1.178+)
105
105
 
106
106
  HUD STATUSLINE:
@@ -130,7 +130,7 @@ OMC includes rule templates you can copy to your project's `.claude/rules/` dire
130
130
 
131
131
  Copy with:
132
132
  ```bash
133
- node -e "const p=require('path'),f=require('fs'),r=process.env.OMC_SETUP_PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(r===undefined||r===''){console.error('ERROR: plugin root is not set');process.exit(1)}const src=p.join(r,'templates','rules'),dest=p.join('.claude','rules');f.mkdirSync(dest,{recursive:true});for(const n of f.readdirSync(src).filter(x=>x.endsWith('.md'))){f.copyFileSync(p.join(src,n),p.join(dest,n));console.log('Copied '+n)}"
133
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" copy-rules
134
134
  ```
135
135
 
136
136
  See `templates/rules/README.md` for details.
@@ -169,7 +169,7 @@ Use AskUserQuestion:
169
169
  If user chooses "Yes, star it!":
170
170
 
171
171
  ```bash
172
- node -e "const{spawnSync}=require('node:child_process');const r=spawnSync('gh',['api','-X','PUT','user/starred/RobinNorberg/oh-my-copilot'],{encoding:'utf8',shell:process.platform==='win32'});if(r.status===0)console.log('Thanks for starring')"
172
+ node "${OMC_SETUP_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/setup-config.mjs" star-repo
173
173
  ```
174
174
 
175
175
  **Note:** Fail silently if the API call doesn't work - never block setup completion.
@@ -288,5 +288,5 @@ Before asking any interview question, classify it:
288
288
 
289
289
  ## Deprecation Notice
290
290
 
291
- The separate `/planner`, `/ralplan`, and `/review` skills have been merged into `/plan`. All workflows (interview, direct, consensus, review) are available through `/plan`.
291
+ The separate `/planner`, `/ralplan`, and `review` skills have been merged into `/omc-plan`. All workflows (interview, direct, consensus, review) are available through `/omc-plan`.
292
292
  </Advanced>
@@ -19,7 +19,7 @@ level: 2
19
19
 
20
20
  Automate isolated development environments using git worktrees and tmux sessions with Claude Code. Enables parallel work across multiple tasks, projects, and repositories.
21
21
 
22
- Canonical slash command: `/oh-my-copilot:project-session-manager` (alias: `/oh-my-copilot:psm`).
22
+ Canonical slash command: `/project-session-manager` (alias: `/psm`).
23
23
 
24
24
  ## Commands
25
25
 
@@ -56,7 +56,7 @@ By default, ralph operates in PRD mode. A scaffold `prd.json` is auto-generated
56
56
 
57
57
  **Reviewer selection:** Pass `--critic=architect`, `--critic=critic`, or `--critic=codex` in the Ralph prompt to choose the completion reviewer for that run. `architect` remains the default.
58
58
 
59
- **Stale-state detection & reconciliation (#3669):** If a PRD is left unfinished by an abnormal/non-Step 8 exit (crash, force-kill, cancel before `/oh-my-copilot:cancel`, session end), Ralph surfaces an explicit `[STALE PRD WARNING]` at startup/resume, in the continuation context, and at session end — with unfinished counts, last-touched age, and stale-pointer signals (PRD `branchName` merged/gone). Completion is NEVER inferred from PR/branch/merge status alone; git state is a warning signal only. A story is auto-reconciled to `passes: true` ONLY when the PRD carries configured observable evidence and every check passes:
59
+ **Stale-state detection & reconciliation (#3669):** If a PRD is left unfinished by an abnormal/non-Step 8 exit (crash, force-kill, cancel before `/cancel`, session end), Ralph surfaces an explicit `[STALE PRD WARNING]` at startup/resume, in the continuation context, and at session end — with unfinished counts, last-touched age, and stale-pointer signals (PRD `branchName` merged/gone). Completion is NEVER inferred from PR/branch/merge status alone; git state is a warning signal only. A story is auto-reconciled to `passes: true` ONLY when the PRD carries configured observable evidence and every check passes:
60
60
 
61
61
  ```json
62
62
  {
@@ -76,7 +76,7 @@ Check types: `fileExists` / `fileContains` (working tree) and `gitGrep` (content
76
76
 
77
77
  **Repo quality class:** The PRD carries a top-level `repoQualityClass` — `prototype`, `production` (default), or `library` — set during scaffold refinement. If the task does not say, ask the user once when a human is present; when running headless (`omg ralph afk`) there is nobody to ask, so INFER it from repo signals (CI config and test depth, published-package metadata, publishing docs) and record the inference in the PRD. Only escalate when the signals genuinely conflict. Never silently assume a lower bar than reality. It scales two things: story ordering (architectural and integration stories weigh heavier in `production`/`library`) and acceptance strictness — `prototype` may relax test depth for speed, `production` applies the full bar, `library` must add a backward-compatibility check to every story that touches a public surface. The repo itself outranks instructions either way: if existing code contradicts the declared class, surface the contradiction instead of copying the codebase's worst habits.
78
78
 
79
- **Feedback commands:** The PRD may carry a top-level `feedbackCommands` array (e.g. `["npm run build", "npm test", "npm run lint"]`). When absent, detect them from the repo's package scripts (build / lint / test variants). These are the commands `omg ralph verify` runs — the single executor of the baseline (Step 1f) and every feedback gate (Steps 4 and 7.6).
79
+ **Feedback commands:** The PRD may carry a top-level `feedbackCommands` array (e.g. `["npm run build", "npm test", "npm run lint"]`). When absent, detect them from the repo's package scripts (build / lint / test variants). These are the commands `omg ralph verify` runs — the single executor of the baseline (Step 1f) and every feedback gate (Steps 4 and 7.6). On Windows, call repo-local scripts as `.\name` (`.\gradlew build`, `.\build.bat`): a bare name does not search the project folder.
80
80
  </PRD_Mode>
81
81
 
82
82
  <PRD_Criterion_Amendments>
@@ -165,7 +165,7 @@ Rules:
165
165
  4. The list of files changed during the ralph session for context
166
166
  - Ralph floor: always at least STANDARD, even for small changes
167
167
  - The selected reviewer verifies against the SPECIFIC acceptance criteria from prd.json, not vague "is it done?"
168
- - **On APPROVAL: immediately proceed to Step 7.5 in the same turn. Do NOT pause to report the verdict to the user — reporting happens only at Step 8 (terminal closeout and `/oh-my-copilot:cancel`) or on rejection (Step 9). Treating an approved verdict as a reporting checkpoint is a polite-stop anti-pattern.**
168
+ - **On APPROVAL: immediately proceed to Step 7.5 in the same turn. Do NOT pause to report the verdict to the user — reporting happens only at Step 8 (terminal closeout and `/cancel`) or on rejection (Step 9). Treating an approved verdict as a reporting checkpoint is a polite-stop anti-pattern.**
169
169
 
170
170
  7.5 **Mandatory Deslop Pass** (runs unconditionally after Step 7 approval, unless `{{PROMPT}}` contains `--no-deslop`):
171
171
 
@@ -179,7 +179,7 @@ Rules:
179
179
  - Exit 0 confirms the post-deslop regression state matches the baseline (baseline-only failures are recorded warnings, not a reason to loop here forever). Exit 1 means NEW failures — roll back the cleaner changes or fix the regression, then re-verify until it exits 0.
180
180
  - Only proceed to completion after the verify call exits 0 (or `--no-deslop` was explicitly specified).
181
181
 
182
- 8. **On approval, terminal closeout and cleanup**: After Step 7.6 passes (with Step 7.5 completed, or skipped via `--no-deslop`), run the closeout below and any applicable Step 10 incident work item before PR creation or `/oh-my-copilot:cancel` state cleanup. When the user or mode invocation explicitly authorizes publishing and draft-PR creation, draft the body with `/oh-my-copilot:pr` and create the draft PR. Do not push or open a PR based on completion alone. Mark an authorized draft ready only after the user accepts the completion report. Before any other terminal `/cancel` or state cleanup, including user-requested cancellation, run the same closeout first.
182
+ 8. **On approval, terminal closeout and cleanup**: After Step 7.6 passes (with Step 7.5 completed, or skipped via `--no-deslop`), run the closeout below and any applicable Step 10 incident work item before PR creation or `/cancel` state cleanup. When the user or mode invocation explicitly authorizes publishing and draft-PR creation, draft the body with `/pr` and create the draft PR. Do not push or open a PR based on completion alone. Mark an authorized draft ready only after the user accepts the completion report. Before any other terminal `/cancel` or state cleanup, including user-requested cancellation, run the same closeout first.
183
183
 
184
184
  Append at most three factual lines to `.omg/notepads/ralph/problems.md` — what broke (errors that survived retries, verdicts that came back rejected) and what dragged (missing checks, unreachable information, environment friction); blockers additionally go in `.omg/notepads/ralph/issues.md`. Preserve existing entries: append only and never replace the shared file. If there are no observations, append nothing; an empty closeout is valid, so do not write “no lessons.” These are observations only; landing them on repo surfaces is `refit`'s job, with the user's approval.
185
185
 
@@ -297,7 +297,7 @@ Why good: The falsified criterion stops governing, the measurement is preserved
297
297
 
298
298
  <Escalation_And_Stop_Conditions>
299
299
  - Stop and report when a fundamental blocker requires user input (missing credentials, unclear requirements, external service down)
300
- - Stop when the user says "stop", "cancel", or "abort" -- run the terminal closeout in Step 8 before `/oh-my-copilot:cancel`
300
+ - Stop when the user says "stop", "cancel", or "abort" -- run the terminal closeout in Step 8 before `/cancel`
301
301
  - Continue working when the hook system sends "The boulder never stops" -- this means the iteration continues
302
302
  - If the selected reviewer rejects verification, fix the issues and re-verify (do not stop)
303
303
  - If the same issue recurs across 3+ iterations, report it as a potential fundamental problem
@@ -318,7 +318,7 @@ Why good: The falsified criterion stops governing, the measurement is preserved
318
318
  - [ ] Selected reviewer verification passed against specific acceptance criteria
319
319
  - [ ] ai-slop-cleaner pass completed on changed files (or `--no-deslop` specified)
320
320
  - [ ] Post-deslop regression tests pass, or only failures already present in the feedback baseline (same treatment as the test/build lines)
321
- - [ ] `/oh-my-copilot:cancel` run for clean state cleanup
321
+ - [ ] `/cancel` run for clean state cleanup
322
322
  </Final_Checklist>
323
323
 
324
324
  ## Parallel session caveats
@@ -211,7 +211,7 @@ Branch: experiment/{tag}
211
211
  Notebook: .omg/experiment-notebook.json
212
212
  ```
213
213
 
214
- Then run `/oh-my-copilot:cancel` for clean state cleanup.
214
+ Then run `/cancel` for clean state cleanup.
215
215
 
216
216
  </Steps>
217
217
 
@@ -334,7 +334,7 @@ Why bad: If metrics improve, which change helped? If they worsen, which hurt? On
334
334
  <Escalation_And_Stop_Conditions>
335
335
  - Stop and report when success criteria are met — produce exit report
336
336
  - Stop when budget is exhausted — produce exit report with best result
337
- - Stop when human interrupts — run `/oh-my-copilot:cancel`
337
+ - Stop when human interrupts — run `/cancel`
338
338
  - Continue when hook sends "The boulder never stops" — this means keep experimenting
339
339
  - Escalate to human when same crash occurs 3+ times
340
340
  - Escalate to human when 5+ consecutive discards yield no new learnings (loop is stuck)
@@ -349,5 +349,5 @@ Why bad: If metrics improve, which change helped? If they worsen, which hurt? On
349
349
  - [ ] Discarded experiments were reverted (git reset)
350
350
  - [ ] Best result is recorded in notebook
351
351
  - [ ] Exit report produced with summary, learnings, and file list
352
- - [ ] `/oh-my-copilot:cancel` run for clean state cleanup
352
+ - [ ] `/cancel` run for clean state cleanup
353
353
  </Final_Checklist>
@@ -7,12 +7,12 @@ level: 4
7
7
 
8
8
  # Ralplan (Consensus Planning Alias)
9
9
 
10
- Ralplan is a shorthand alias for `/oh-my-copilot:plan --consensus`. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with **RALPLAN-DR structured deliberation** (short mode by default, deliberate mode for high-risk work).
10
+ Ralplan is a shorthand alias for `/omc-plan --consensus`. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with **RALPLAN-DR structured deliberation** (short mode by default, deliberate mode for high-risk work).
11
11
 
12
12
  ## Usage
13
13
 
14
14
  ```
15
- /oh-my-copilot:ralplan "task description"
15
+ /ralplan "task description"
16
16
  ```
17
17
 
18
18
  ## Flags
@@ -25,7 +25,7 @@ Ralplan is a shorthand alias for `/oh-my-copilot:plan --consensus`. It triggers
25
25
  ## Usage with interactive mode
26
26
 
27
27
  ```
28
- /oh-my-copilot:ralplan --interactive "task description"
28
+ /ralplan --interactive "task description"
29
29
  ```
30
30
 
31
31
  ## Behavior
@@ -37,7 +37,7 @@ Ralplan is a planning module. It may inspect context and draft or update plan/sp
37
37
  This skill invokes the Plan skill in consensus mode:
38
38
 
39
39
  ```
40
- /oh-my-copilot:plan --consensus <arguments>
40
+ /omc-plan --consensus <arguments>
41
41
  ```
42
42
 
43
43
  The consensus workflow:
@@ -11,7 +11,7 @@ A thin, repo-aware release assistant. On first run it inspects the project and C
11
11
  ## Usage
12
12
 
13
13
  ```
14
- /oh-my-copilot:release [version]
14
+ /release [version]
15
15
  ```
16
16
 
17
17
  - `version` is optional. If omitted the skill will ask. Accepts `patch`, `minor`, `major`, or an explicit semver like `2.4.0`.
@@ -355,7 +355,7 @@ When the loop exits:
355
355
  Best Score: {best_score} (baseline: {baseline})
356
356
  Improvement: {delta} ({delta_pct}%)
357
357
  ```
358
- 5. Run `/oh-my-copilot:cancel` for clean state cleanup
358
+ 5. Run `/cancel` for clean state cleanup
359
359
 
360
360
  ---
361
361
 
@@ -94,7 +94,7 @@ argument-hint: "<args>"
94
94
  ## Examples
95
95
 
96
96
  ```
97
- /oh-my-copilot:<name> example-arg
97
+ /<name> example-arg
98
98
  ```
99
99
 
100
100
  ## Notes
@@ -649,9 +649,9 @@ How to work with this integration correctly:
649
649
 
650
650
  When invoked with an argument, skip the interactive wizard:
651
651
 
652
- - `/oh-my-copilot:skill list` - Show detailed skill inventory
653
- - `/oh-my-copilot:skill add` - Start skill creation (invoke skillify)
654
- - `/oh-my-copilot:skill scan` - Scan both skill directories
652
+ - `/skill list` - Show detailed skill inventory
653
+ - `/skill add` - Start skill creation (invoke skillify)
654
+ - `/skill scan` - Scan both skill directories
655
655
 
656
656
  ### Interactive Mode
657
657
 
@@ -697,16 +697,16 @@ Good skills are:
697
697
 
698
698
  ## Related Skills
699
699
 
700
- - `/oh-my-copilot:skillify` - Extract a skill from current conversation (`/oh-my-copilot:learner` is a deprecated alias)
701
- - `/oh-my-copilot:note` - Save quick notes (less formal than skills)
702
- - `/oh-my-copilot:deepinit` - Generate AGENTS.md codebase hierarchy
700
+ - `/skillify` - Extract a skill from current conversation (`/learner` is a deprecated alias)
701
+ - `/note` - Save quick notes (less formal than skills)
702
+ - `/deepinit` - Generate AGENTS.md codebase hierarchy
703
703
 
704
704
  ---
705
705
 
706
706
  ## Example Session
707
707
 
708
708
  ```
709
- > /oh-my-copilot:skill list
709
+ > /skill list
710
710
 
711
711
  Checking skill directories...
712
712
  ✓ User skills directory exists: ~/.claude/skills/omc-learned/
@@ -749,7 +749,7 @@ What would you like to do?
749
749
 
750
750
  ## Tips for Users
751
751
 
752
- - Run `/oh-my-copilot:skill list` periodically to review your skill library
752
+ - Run `/skill list` periodically to review your skill library
753
753
  - After solving a tricky bug, immediately run skillify to capture it
754
754
  - Use project-level skills for codebase-specific knowledge
755
755
  - Use user-level skills for general patterns that apply everywhere
@@ -770,9 +770,9 @@ What would you like to do?
770
770
 
771
771
  ## Related Skills
772
772
 
773
- - `/oh-my-copilot:skillify` - Extract a skill from current conversation (`/oh-my-copilot:learner` is a deprecated alias)
774
- - `/oh-my-copilot:note` - Save quick notes (less formal than skills)
775
- - `/oh-my-copilot:deepinit` - Generate AGENTS.md codebase hierarchy
773
+ - `/skillify` - Extract a skill from current conversation (`/learner` is a deprecated alias)
774
+ - `/note` - Save quick notes (less formal than skills)
775
+ - `/deepinit` - Generate AGENTS.md codebase hierarchy
776
776
 
777
777
  ---
778
778