oh-my-codex 0.15.0 → 0.15.2

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 (533) hide show
  1. package/Cargo.lock +5 -5
  2. package/Cargo.toml +1 -1
  3. package/README.md +36 -5
  4. package/crates/omx-explore/src/main.rs +222 -12
  5. package/dist/agents/__tests__/native-config.test.js +40 -0
  6. package/dist/agents/__tests__/native-config.test.js.map +1 -1
  7. package/dist/agents/native-config.d.ts +1 -0
  8. package/dist/agents/native-config.d.ts.map +1 -1
  9. package/dist/agents/native-config.js +6 -1
  10. package/dist/agents/native-config.js.map +1 -1
  11. package/dist/agents/policy.d.ts +1 -0
  12. package/dist/agents/policy.d.ts.map +1 -1
  13. package/dist/agents/policy.js +4 -0
  14. package/dist/agents/policy.js.map +1 -1
  15. package/dist/cli/__tests__/autoresearch-guided.test.js +37 -13
  16. package/dist/cli/__tests__/autoresearch-guided.test.js.map +1 -1
  17. package/dist/cli/__tests__/codex-plugin-layout.test.js +1 -1
  18. package/dist/cli/__tests__/codex-plugin-layout.test.js.map +1 -1
  19. package/dist/cli/__tests__/doctor-team.test.js +46 -1
  20. package/dist/cli/__tests__/doctor-team.test.js.map +1 -1
  21. package/dist/cli/__tests__/doctor-warning-copy.test.js +225 -111
  22. package/dist/cli/__tests__/doctor-warning-copy.test.js.map +1 -1
  23. package/dist/cli/__tests__/exec.test.js +96 -1
  24. package/dist/cli/__tests__/exec.test.js.map +1 -1
  25. package/dist/cli/__tests__/explore.test.js +15 -2
  26. package/dist/cli/__tests__/explore.test.js.map +1 -1
  27. package/dist/cli/__tests__/index.test.js +292 -3
  28. package/dist/cli/__tests__/index.test.js.map +1 -1
  29. package/dist/cli/__tests__/launch-fallback.test.js +223 -0
  30. package/dist/cli/__tests__/launch-fallback.test.js.map +1 -1
  31. package/dist/cli/__tests__/mcp-parity.test.js +86 -0
  32. package/dist/cli/__tests__/mcp-parity.test.js.map +1 -1
  33. package/dist/cli/__tests__/package-bin-contract.test.js +23 -0
  34. package/dist/cli/__tests__/package-bin-contract.test.js.map +1 -1
  35. package/dist/cli/__tests__/question.test.js +76 -11
  36. package/dist/cli/__tests__/question.test.js.map +1 -1
  37. package/dist/cli/__tests__/setup-agents-overwrite.test.js +140 -1
  38. package/dist/cli/__tests__/setup-agents-overwrite.test.js.map +1 -1
  39. package/dist/cli/__tests__/setup-install-mode.test.js +310 -4
  40. package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -1
  41. package/dist/cli/__tests__/setup-prompts-overwrite.test.js +78 -19
  42. package/dist/cli/__tests__/setup-prompts-overwrite.test.js.map +1 -1
  43. package/dist/cli/__tests__/setup-refresh.test.js +79 -2
  44. package/dist/cli/__tests__/setup-refresh.test.js.map +1 -1
  45. package/dist/cli/__tests__/sidecar.test.d.ts +2 -0
  46. package/dist/cli/__tests__/sidecar.test.d.ts.map +1 -0
  47. package/dist/cli/__tests__/sidecar.test.js +24 -0
  48. package/dist/cli/__tests__/sidecar.test.js.map +1 -0
  49. package/dist/cli/__tests__/team.test.js +54 -7
  50. package/dist/cli/__tests__/team.test.js.map +1 -1
  51. package/dist/cli/autoresearch-guided.d.ts.map +1 -1
  52. package/dist/cli/autoresearch-guided.js +12 -4
  53. package/dist/cli/autoresearch-guided.js.map +1 -1
  54. package/dist/cli/codex-home.d.ts +4 -6
  55. package/dist/cli/codex-home.d.ts.map +1 -1
  56. package/dist/cli/codex-home.js +9 -41
  57. package/dist/cli/codex-home.js.map +1 -1
  58. package/dist/cli/doctor.d.ts +1 -1
  59. package/dist/cli/doctor.d.ts.map +1 -1
  60. package/dist/cli/doctor.js +509 -279
  61. package/dist/cli/doctor.js.map +1 -1
  62. package/dist/cli/index.d.ts +6 -4
  63. package/dist/cli/index.d.ts.map +1 -1
  64. package/dist/cli/index.js +284 -25
  65. package/dist/cli/index.js.map +1 -1
  66. package/dist/cli/omx.js +3 -1
  67. package/dist/cli/omx.js.map +1 -1
  68. package/dist/cli/plugin-marketplace.d.ts +13 -0
  69. package/dist/cli/plugin-marketplace.d.ts.map +1 -0
  70. package/dist/cli/plugin-marketplace.js +77 -0
  71. package/dist/cli/plugin-marketplace.js.map +1 -0
  72. package/dist/cli/question.d.ts +1 -1
  73. package/dist/cli/question.d.ts.map +1 -1
  74. package/dist/cli/question.js +26 -12
  75. package/dist/cli/question.js.map +1 -1
  76. package/dist/cli/setup-preferences.d.ts +20 -0
  77. package/dist/cli/setup-preferences.d.ts.map +1 -0
  78. package/dist/cli/setup-preferences.js +71 -0
  79. package/dist/cli/setup-preferences.js.map +1 -0
  80. package/dist/cli/setup.d.ts +7 -5
  81. package/dist/cli/setup.d.ts.map +1 -1
  82. package/dist/cli/setup.js +271 -152
  83. package/dist/cli/setup.js.map +1 -1
  84. package/dist/cli/team.d.ts +1 -0
  85. package/dist/cli/team.d.ts.map +1 -1
  86. package/dist/cli/team.js +70 -15
  87. package/dist/cli/team.js.map +1 -1
  88. package/dist/config/__tests__/generator-idempotent.test.js +100 -3
  89. package/dist/config/__tests__/generator-idempotent.test.js.map +1 -1
  90. package/dist/config/__tests__/generator-notify.test.js +6 -5
  91. package/dist/config/__tests__/generator-notify.test.js.map +1 -1
  92. package/dist/config/__tests__/generator-status-line-presets.test.d.ts +2 -0
  93. package/dist/config/__tests__/generator-status-line-presets.test.d.ts.map +1 -0
  94. package/dist/config/__tests__/generator-status-line-presets.test.js +203 -0
  95. package/dist/config/__tests__/generator-status-line-presets.test.js.map +1 -0
  96. package/dist/config/__tests__/models.test.js +23 -1
  97. package/dist/config/__tests__/models.test.js.map +1 -1
  98. package/dist/config/generator.d.ts +9 -1
  99. package/dist/config/generator.d.ts.map +1 -1
  100. package/dist/config/generator.js +184 -16
  101. package/dist/config/generator.js.map +1 -1
  102. package/dist/config/models.d.ts +5 -1
  103. package/dist/config/models.d.ts.map +1 -1
  104. package/dist/config/models.js +12 -2
  105. package/dist/config/models.js.map +1 -1
  106. package/dist/exec/followup.d.ts +44 -0
  107. package/dist/exec/followup.d.ts.map +1 -0
  108. package/dist/exec/followup.js +349 -0
  109. package/dist/exec/followup.js.map +1 -0
  110. package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts +2 -0
  111. package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts.map +1 -0
  112. package/dist/hooks/__tests__/autopilot-skill-contract.test.js +37 -0
  113. package/dist/hooks/__tests__/autopilot-skill-contract.test.js.map +1 -0
  114. package/dist/hooks/__tests__/codebase-map.test.js +63 -1
  115. package/dist/hooks/__tests__/codebase-map.test.js.map +1 -1
  116. package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts +1 -1
  117. package/dist/hooks/__tests__/consensus-execution-handoff.test.js +5 -5
  118. package/dist/hooks/__tests__/consensus-execution-handoff.test.js.map +1 -1
  119. package/dist/hooks/__tests__/deep-interview-contract.test.js +12 -9
  120. package/dist/hooks/__tests__/deep-interview-contract.test.js.map +1 -1
  121. package/dist/hooks/__tests__/keyword-detector.test.js +25 -18
  122. package/dist/hooks/__tests__/keyword-detector.test.js.map +1 -1
  123. package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js +23 -2
  124. package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js.map +1 -1
  125. package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js +45 -2
  126. package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js.map +1 -1
  127. package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js +17 -0
  128. package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js.map +1 -1
  129. package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js +121 -0
  130. package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js.map +1 -1
  131. package/dist/hooks/__tests__/notify-hook-regression-205.test.js +4 -4
  132. package/dist/hooks/__tests__/notify-hook-regression-205.test.js.map +1 -1
  133. package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js +103 -0
  134. package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js.map +1 -1
  135. package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js +2 -2
  136. package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js.map +1 -1
  137. package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js +27 -13
  138. package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js.map +1 -1
  139. package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts +2 -0
  140. package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts.map +1 -0
  141. package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js +35 -0
  142. package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js.map +1 -0
  143. package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js +215 -0
  144. package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js.map +1 -1
  145. package/dist/hooks/__tests__/notify-hook-worker-idle.test.js +70 -3
  146. package/dist/hooks/__tests__/notify-hook-worker-idle.test.js.map +1 -1
  147. package/dist/hooks/__tests__/pre-context-gate-skills.test.js +5 -0
  148. package/dist/hooks/__tests__/pre-context-gate-skills.test.js.map +1 -1
  149. package/dist/hooks/__tests__/prompt-guidance-fragments.test.js +3 -2
  150. package/dist/hooks/__tests__/prompt-guidance-fragments.test.js.map +1 -1
  151. package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js +9 -0
  152. package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js.map +1 -1
  153. package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts +2 -0
  154. package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts.map +1 -0
  155. package/dist/hooks/__tests__/prompt-refactor-contract.test.js +22 -0
  156. package/dist/hooks/__tests__/prompt-refactor-contract.test.js.map +1 -0
  157. package/dist/hooks/codebase-map.d.ts.map +1 -1
  158. package/dist/hooks/codebase-map.js +83 -6
  159. package/dist/hooks/codebase-map.js.map +1 -1
  160. package/dist/hooks/keyword-detector.d.ts +1 -1
  161. package/dist/hooks/keyword-detector.d.ts.map +1 -1
  162. package/dist/hooks/keyword-detector.js +35 -4
  163. package/dist/hooks/keyword-detector.js.map +1 -1
  164. package/dist/hooks/prompt-guidance-contract.d.ts +6 -0
  165. package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -1
  166. package/dist/hooks/prompt-guidance-contract.js +117 -13
  167. package/dist/hooks/prompt-guidance-contract.js.map +1 -1
  168. package/dist/hooks/session.d.ts +2 -0
  169. package/dist/hooks/session.d.ts.map +1 -1
  170. package/dist/hooks/session.js +6 -0
  171. package/dist/hooks/session.js.map +1 -1
  172. package/dist/hud/__tests__/index.test.js +4 -4
  173. package/dist/hud/__tests__/index.test.js.map +1 -1
  174. package/dist/hud/__tests__/state.test.js +4 -0
  175. package/dist/hud/__tests__/state.test.js.map +1 -1
  176. package/dist/hud/__tests__/types.test.js +27 -0
  177. package/dist/hud/__tests__/types.test.js.map +1 -1
  178. package/dist/hud/state.d.ts.map +1 -1
  179. package/dist/hud/state.js +8 -0
  180. package/dist/hud/state.js.map +1 -1
  181. package/dist/hud/types.d.ts +9 -0
  182. package/dist/hud/types.d.ts.map +1 -1
  183. package/dist/hud/types.js +3 -0
  184. package/dist/hud/types.js.map +1 -1
  185. package/dist/mcp/__tests__/bootstrap.test.js +23 -5
  186. package/dist/mcp/__tests__/bootstrap.test.js.map +1 -1
  187. package/dist/mcp/__tests__/server-lifecycle.test.js +50 -7
  188. package/dist/mcp/__tests__/server-lifecycle.test.js.map +1 -1
  189. package/dist/mcp/__tests__/state-server.test.js +70 -12
  190. package/dist/mcp/__tests__/state-server.test.js.map +1 -1
  191. package/dist/mcp/bootstrap.d.ts +10 -1
  192. package/dist/mcp/bootstrap.d.ts.map +1 -1
  193. package/dist/mcp/bootstrap.js +71 -26
  194. package/dist/mcp/bootstrap.js.map +1 -1
  195. package/dist/mcp/state-server.d.ts +5 -11
  196. package/dist/mcp/state-server.d.ts.map +1 -1
  197. package/dist/mcp/state-server.js +16 -432
  198. package/dist/mcp/state-server.js.map +1 -1
  199. package/dist/modes/__tests__/base-autoresearch-contract.test.js +1 -1
  200. package/dist/modes/__tests__/base-autoresearch-contract.test.js.map +1 -1
  201. package/dist/pipeline/__tests__/orchestrator.test.js +89 -5
  202. package/dist/pipeline/__tests__/orchestrator.test.js.map +1 -1
  203. package/dist/pipeline/__tests__/stages.test.js +98 -1
  204. package/dist/pipeline/__tests__/stages.test.js.map +1 -1
  205. package/dist/pipeline/index.d.ts +5 -3
  206. package/dist/pipeline/index.d.ts.map +1 -1
  207. package/dist/pipeline/index.js +4 -3
  208. package/dist/pipeline/index.js.map +1 -1
  209. package/dist/pipeline/orchestrator.d.ts +7 -6
  210. package/dist/pipeline/orchestrator.d.ts.map +1 -1
  211. package/dist/pipeline/orchestrator.js +90 -11
  212. package/dist/pipeline/orchestrator.js.map +1 -1
  213. package/dist/pipeline/review-verdict.d.ts +3 -0
  214. package/dist/pipeline/review-verdict.d.ts.map +1 -0
  215. package/dist/pipeline/review-verdict.js +14 -0
  216. package/dist/pipeline/review-verdict.js.map +1 -0
  217. package/dist/pipeline/stages/code-review.d.ts +33 -0
  218. package/dist/pipeline/stages/code-review.d.ts.map +1 -0
  219. package/dist/pipeline/stages/code-review.js +51 -0
  220. package/dist/pipeline/stages/code-review.js.map +1 -0
  221. package/dist/pipeline/stages/ralph-verify.d.ts +12 -2
  222. package/dist/pipeline/stages/ralph-verify.d.ts.map +1 -1
  223. package/dist/pipeline/stages/ralph-verify.js +24 -6
  224. package/dist/pipeline/stages/ralph-verify.js.map +1 -1
  225. package/dist/pipeline/stages/ralplan.d.ts +1 -1
  226. package/dist/pipeline/stages/ralplan.d.ts.map +1 -1
  227. package/dist/pipeline/stages/ralplan.js +21 -1
  228. package/dist/pipeline/stages/ralplan.js.map +1 -1
  229. package/dist/pipeline/types.d.ts +14 -7
  230. package/dist/pipeline/types.d.ts.map +1 -1
  231. package/dist/pipeline/types.js +2 -2
  232. package/dist/planning/__tests__/artifacts.test.js +152 -1
  233. package/dist/planning/__tests__/artifacts.test.js.map +1 -1
  234. package/dist/planning/artifacts.d.ts +9 -0
  235. package/dist/planning/artifacts.d.ts.map +1 -1
  236. package/dist/planning/artifacts.js +60 -1
  237. package/dist/planning/artifacts.js.map +1 -1
  238. package/dist/question/__tests__/client.test.js +23 -3
  239. package/dist/question/__tests__/client.test.js.map +1 -1
  240. package/dist/question/__tests__/renderer.test.js +148 -37
  241. package/dist/question/__tests__/renderer.test.js.map +1 -1
  242. package/dist/question/__tests__/types.test.js +21 -0
  243. package/dist/question/__tests__/types.test.js.map +1 -1
  244. package/dist/question/__tests__/ui.test.js +155 -7
  245. package/dist/question/__tests__/ui.test.js.map +1 -1
  246. package/dist/question/client.d.ts +14 -4
  247. package/dist/question/client.d.ts.map +1 -1
  248. package/dist/question/client.js.map +1 -1
  249. package/dist/question/renderer.d.ts +11 -1
  250. package/dist/question/renderer.d.ts.map +1 -1
  251. package/dist/question/renderer.js +102 -7
  252. package/dist/question/renderer.js.map +1 -1
  253. package/dist/question/state.d.ts +2 -2
  254. package/dist/question/state.d.ts.map +1 -1
  255. package/dist/question/state.js +26 -17
  256. package/dist/question/state.js.map +1 -1
  257. package/dist/question/types.d.ts +25 -1
  258. package/dist/question/types.d.ts.map +1 -1
  259. package/dist/question/types.js +48 -13
  260. package/dist/question/types.js.map +1 -1
  261. package/dist/question/ui.d.ts +15 -2
  262. package/dist/question/ui.d.ts.map +1 -1
  263. package/dist/question/ui.js +268 -162
  264. package/dist/question/ui.js.map +1 -1
  265. package/dist/scripts/__tests__/codex-native-hook.test.js +415 -94
  266. package/dist/scripts/__tests__/codex-native-hook.test.js.map +1 -1
  267. package/dist/scripts/__tests__/generate-release-body.test.js +36 -0
  268. package/dist/scripts/__tests__/generate-release-body.test.js.map +1 -1
  269. package/dist/scripts/__tests__/prompt-inventory.test.d.ts +2 -0
  270. package/dist/scripts/__tests__/prompt-inventory.test.d.ts.map +1 -0
  271. package/dist/scripts/__tests__/prompt-inventory.test.js +56 -0
  272. package/dist/scripts/__tests__/prompt-inventory.test.js.map +1 -0
  273. package/dist/scripts/codex-native-hook.d.ts.map +1 -1
  274. package/dist/scripts/codex-native-hook.js +232 -54
  275. package/dist/scripts/codex-native-hook.js.map +1 -1
  276. package/dist/scripts/codex-native-pre-post.d.ts.map +1 -1
  277. package/dist/scripts/codex-native-pre-post.js +12 -9
  278. package/dist/scripts/codex-native-pre-post.js.map +1 -1
  279. package/dist/scripts/generate-release-body.d.ts.map +1 -1
  280. package/dist/scripts/generate-release-body.js +12 -3
  281. package/dist/scripts/generate-release-body.js.map +1 -1
  282. package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts +2 -0
  283. package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts.map +1 -0
  284. package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js +153 -0
  285. package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js.map +1 -0
  286. package/dist/scripts/notify-hook/managed-tmux.d.ts +4 -2
  287. package/dist/scripts/notify-hook/managed-tmux.d.ts.map +1 -1
  288. package/dist/scripts/notify-hook/managed-tmux.js +188 -6
  289. package/dist/scripts/notify-hook/managed-tmux.js.map +1 -1
  290. package/dist/scripts/notify-hook/process-runner.d.ts.map +1 -1
  291. package/dist/scripts/notify-hook/process-runner.js +7 -3
  292. package/dist/scripts/notify-hook/process-runner.js.map +1 -1
  293. package/dist/scripts/notify-hook/team-dispatch.d.ts.map +1 -1
  294. package/dist/scripts/notify-hook/team-dispatch.js +96 -11
  295. package/dist/scripts/notify-hook/team-dispatch.js.map +1 -1
  296. package/dist/scripts/notify-hook/team-tmux-guard.js +3 -3
  297. package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts +34 -0
  298. package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts.map +1 -0
  299. package/dist/scripts/notify-hook/team-worker-posttooluse.js +434 -0
  300. package/dist/scripts/notify-hook/team-worker-posttooluse.js.map +1 -0
  301. package/dist/scripts/notify-hook/team-worker.d.ts +1 -1
  302. package/dist/scripts/notify-hook/team-worker.d.ts.map +1 -1
  303. package/dist/scripts/notify-hook/team-worker.js +3 -43
  304. package/dist/scripts/notify-hook/team-worker.js.map +1 -1
  305. package/dist/scripts/notify-hook/tmux-injection.d.ts.map +1 -1
  306. package/dist/scripts/notify-hook/tmux-injection.js +25 -4
  307. package/dist/scripts/notify-hook/tmux-injection.js.map +1 -1
  308. package/dist/scripts/notify-hook.js +36 -5
  309. package/dist/scripts/notify-hook.js.map +1 -1
  310. package/dist/scripts/prompt-inventory.d.ts +29 -0
  311. package/dist/scripts/prompt-inventory.d.ts.map +1 -0
  312. package/dist/scripts/prompt-inventory.js +178 -0
  313. package/dist/scripts/prompt-inventory.js.map +1 -0
  314. package/dist/scripts/run-test-files.js +1 -0
  315. package/dist/scripts/run-test-files.js.map +1 -1
  316. package/dist/sidecar/__tests__/boundary.test.d.ts +2 -0
  317. package/dist/sidecar/__tests__/boundary.test.d.ts.map +1 -0
  318. package/dist/sidecar/__tests__/boundary.test.js +48 -0
  319. package/dist/sidecar/__tests__/boundary.test.js.map +1 -0
  320. package/dist/sidecar/__tests__/collector.test.d.ts +2 -0
  321. package/dist/sidecar/__tests__/collector.test.d.ts.map +1 -0
  322. package/dist/sidecar/__tests__/collector.test.js +162 -0
  323. package/dist/sidecar/__tests__/collector.test.js.map +1 -0
  324. package/dist/sidecar/__tests__/render.test.d.ts +2 -0
  325. package/dist/sidecar/__tests__/render.test.d.ts.map +1 -0
  326. package/dist/sidecar/__tests__/render.test.js +67 -0
  327. package/dist/sidecar/__tests__/render.test.js.map +1 -0
  328. package/dist/sidecar/__tests__/tmux.test.d.ts +2 -0
  329. package/dist/sidecar/__tests__/tmux.test.d.ts.map +1 -0
  330. package/dist/sidecar/__tests__/tmux.test.js +30 -0
  331. package/dist/sidecar/__tests__/tmux.test.js.map +1 -0
  332. package/dist/sidecar/__tests__/watch.test.d.ts +2 -0
  333. package/dist/sidecar/__tests__/watch.test.d.ts.map +1 -0
  334. package/dist/sidecar/__tests__/watch.test.js +42 -0
  335. package/dist/sidecar/__tests__/watch.test.js.map +1 -0
  336. package/dist/sidecar/collector.d.ts +4 -0
  337. package/dist/sidecar/collector.d.ts.map +1 -0
  338. package/dist/sidecar/collector.js +377 -0
  339. package/dist/sidecar/collector.js.map +1 -0
  340. package/dist/sidecar/index.d.ts +25 -0
  341. package/dist/sidecar/index.d.ts.map +1 -0
  342. package/dist/sidecar/index.js +165 -0
  343. package/dist/sidecar/index.js.map +1 -0
  344. package/dist/sidecar/render.d.ts +3 -0
  345. package/dist/sidecar/render.d.ts.map +1 -0
  346. package/dist/sidecar/render.js +72 -0
  347. package/dist/sidecar/render.js.map +1 -0
  348. package/dist/sidecar/tmux.d.ts +13 -0
  349. package/dist/sidecar/tmux.d.ts.map +1 -0
  350. package/dist/sidecar/tmux.js +44 -0
  351. package/dist/sidecar/tmux.js.map +1 -0
  352. package/dist/sidecar/types.d.ts +125 -0
  353. package/dist/sidecar/types.d.ts.map +1 -0
  354. package/dist/sidecar/types.js +2 -0
  355. package/dist/sidecar/types.js.map +1 -0
  356. package/dist/state/__tests__/operations.test.js +50 -22
  357. package/dist/state/__tests__/operations.test.js.map +1 -1
  358. package/dist/state/__tests__/workflow-transition.test.js +9 -1
  359. package/dist/state/__tests__/workflow-transition.test.js.map +1 -1
  360. package/dist/state/operations.d.ts +1 -1
  361. package/dist/state/operations.d.ts.map +1 -1
  362. package/dist/state/operations.js +19 -7
  363. package/dist/state/operations.js.map +1 -1
  364. package/dist/state/workflow-transition.d.ts.map +1 -1
  365. package/dist/state/workflow-transition.js +1 -0
  366. package/dist/state/workflow-transition.js.map +1 -1
  367. package/dist/team/__tests__/commit-hygiene.test.d.ts +2 -0
  368. package/dist/team/__tests__/commit-hygiene.test.d.ts.map +1 -0
  369. package/dist/team/__tests__/commit-hygiene.test.js +93 -0
  370. package/dist/team/__tests__/commit-hygiene.test.js.map +1 -0
  371. package/dist/team/__tests__/delegation-policy.test.d.ts +2 -0
  372. package/dist/team/__tests__/delegation-policy.test.d.ts.map +1 -0
  373. package/dist/team/__tests__/delegation-policy.test.js +69 -0
  374. package/dist/team/__tests__/delegation-policy.test.js.map +1 -0
  375. package/dist/team/__tests__/events.test.js +54 -4
  376. package/dist/team/__tests__/events.test.js.map +1 -1
  377. package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts +2 -0
  378. package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts.map +1 -0
  379. package/dist/team/__tests__/hook-primary-e2e-contract.test.js +78 -0
  380. package/dist/team/__tests__/hook-primary-e2e-contract.test.js.map +1 -0
  381. package/dist/team/__tests__/model-contract.test.js +16 -0
  382. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  383. package/dist/team/__tests__/repo-aware-decomposition.test.d.ts +2 -0
  384. package/dist/team/__tests__/repo-aware-decomposition.test.d.ts.map +1 -0
  385. package/dist/team/__tests__/repo-aware-decomposition.test.js +95 -0
  386. package/dist/team/__tests__/repo-aware-decomposition.test.js.map +1 -0
  387. package/dist/team/__tests__/runtime.test.js +623 -14
  388. package/dist/team/__tests__/runtime.test.js.map +1 -1
  389. package/dist/team/__tests__/state-root.test.js +177 -1
  390. package/dist/team/__tests__/state-root.test.js.map +1 -1
  391. package/dist/team/__tests__/state.test.js +110 -0
  392. package/dist/team/__tests__/state.test.js.map +1 -1
  393. package/dist/team/__tests__/tmux-session.test.js +399 -2
  394. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  395. package/dist/team/__tests__/worker-bootstrap.test.js +94 -0
  396. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  397. package/dist/team/commit-hygiene.d.ts +22 -3
  398. package/dist/team/commit-hygiene.d.ts.map +1 -1
  399. package/dist/team/commit-hygiene.js +134 -2
  400. package/dist/team/commit-hygiene.js.map +1 -1
  401. package/dist/team/contracts.d.ts +1 -1
  402. package/dist/team/contracts.d.ts.map +1 -1
  403. package/dist/team/contracts.js +2 -0
  404. package/dist/team/contracts.js.map +1 -1
  405. package/dist/team/dag-schema.d.ts +38 -0
  406. package/dist/team/dag-schema.d.ts.map +1 -0
  407. package/dist/team/dag-schema.js +221 -0
  408. package/dist/team/dag-schema.js.map +1 -0
  409. package/dist/team/delegation-policy.d.ts +3 -0
  410. package/dist/team/delegation-policy.d.ts.map +1 -0
  411. package/dist/team/delegation-policy.js +82 -0
  412. package/dist/team/delegation-policy.js.map +1 -0
  413. package/dist/team/model-contract.d.ts +3 -1
  414. package/dist/team/model-contract.d.ts.map +1 -1
  415. package/dist/team/model-contract.js +44 -5
  416. package/dist/team/model-contract.js.map +1 -1
  417. package/dist/team/repo-aware-decomposition.d.ts +60 -0
  418. package/dist/team/repo-aware-decomposition.d.ts.map +1 -0
  419. package/dist/team/repo-aware-decomposition.js +229 -0
  420. package/dist/team/repo-aware-decomposition.js.map +1 -0
  421. package/dist/team/runtime.d.ts +27 -0
  422. package/dist/team/runtime.d.ts.map +1 -1
  423. package/dist/team/runtime.js +172 -52
  424. package/dist/team/runtime.js.map +1 -1
  425. package/dist/team/state/tasks.d.ts.map +1 -1
  426. package/dist/team/state/tasks.js +33 -0
  427. package/dist/team/state/tasks.js.map +1 -1
  428. package/dist/team/state/types.d.ts +23 -1
  429. package/dist/team/state/types.d.ts.map +1 -1
  430. package/dist/team/state/types.js.map +1 -1
  431. package/dist/team/state-root.d.ts +35 -0
  432. package/dist/team/state-root.d.ts.map +1 -1
  433. package/dist/team/state-root.js +281 -1
  434. package/dist/team/state-root.js.map +1 -1
  435. package/dist/team/state.d.ts +27 -1
  436. package/dist/team/state.d.ts.map +1 -1
  437. package/dist/team/state.js +6 -0
  438. package/dist/team/state.js.map +1 -1
  439. package/dist/team/tmux-session.d.ts +1 -0
  440. package/dist/team/tmux-session.d.ts.map +1 -1
  441. package/dist/team/tmux-session.js +105 -6
  442. package/dist/team/tmux-session.js.map +1 -1
  443. package/dist/team/worker-bootstrap.d.ts +3 -0
  444. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  445. package/dist/team/worker-bootstrap.js +77 -4
  446. package/dist/team/worker-bootstrap.js.map +1 -1
  447. package/dist/utils/agents-md.d.ts +3 -0
  448. package/dist/utils/agents-md.d.ts.map +1 -1
  449. package/dist/utils/agents-md.js +25 -0
  450. package/dist/utils/agents-md.js.map +1 -1
  451. package/package.json +3 -2
  452. package/plugins/oh-my-codex/.codex-plugin/plugin.json +2 -2
  453. package/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md +1 -1
  454. package/plugins/oh-my-codex/skills/analyze/SKILL.md +1 -1
  455. package/plugins/oh-my-codex/skills/autopilot/SKILL.md +134 -205
  456. package/plugins/oh-my-codex/skills/code-review/SKILL.md +4 -4
  457. package/plugins/oh-my-codex/skills/deep-interview/SKILL.md +14 -7
  458. package/plugins/oh-my-codex/skills/doctor/SKILL.md +1 -1
  459. package/plugins/oh-my-codex/skills/help/SKILL.md +1 -1
  460. package/plugins/oh-my-codex/skills/omx-setup/SKILL.md +41 -10
  461. package/plugins/oh-my-codex/skills/plan/SKILL.md +12 -14
  462. package/plugins/oh-my-codex/skills/ralph/SKILL.md +2 -4
  463. package/plugins/oh-my-codex/skills/ralplan/SKILL.md +5 -9
  464. package/plugins/oh-my-codex/skills/security-review/SKILL.md +4 -4
  465. package/plugins/oh-my-codex/skills/team/SKILL.md +2 -5
  466. package/plugins/oh-my-codex/skills/ultraqa/SKILL.md +2 -5
  467. package/plugins/oh-my-codex/skills/ultrawork/SKILL.md +2 -3
  468. package/prompts/analyst.md +2 -2
  469. package/prompts/api-reviewer.md +2 -2
  470. package/prompts/architect.md +2 -2
  471. package/prompts/build-fixer.md +2 -2
  472. package/prompts/code-reviewer.md +15 -5
  473. package/prompts/code-simplifier.md +1 -1
  474. package/prompts/critic.md +35 -83
  475. package/prompts/debugger.md +2 -2
  476. package/prompts/dependency-expert.md +2 -2
  477. package/prompts/designer.md +2 -2
  478. package/prompts/executor.md +40 -114
  479. package/prompts/explore-harness.md +1 -1
  480. package/prompts/explore.md +37 -90
  481. package/prompts/git-master.md +2 -2
  482. package/prompts/information-architect.md +1 -1
  483. package/prompts/performance-reviewer.md +2 -2
  484. package/prompts/planner.md +35 -62
  485. package/prompts/product-analyst.md +2 -2
  486. package/prompts/product-manager.md +2 -2
  487. package/prompts/qa-tester.md +2 -2
  488. package/prompts/quality-reviewer.md +2 -2
  489. package/prompts/quality-strategist.md +2 -2
  490. package/prompts/researcher.md +46 -78
  491. package/prompts/security-reviewer.md +2 -2
  492. package/prompts/sisyphus-lite.md +2 -2
  493. package/prompts/style-reviewer.md +2 -2
  494. package/prompts/team-executor.md +1 -1
  495. package/prompts/test-engineer.md +2 -2
  496. package/prompts/ux-researcher.md +2 -2
  497. package/prompts/verifier.md +29 -34
  498. package/prompts/vision.md +2 -2
  499. package/prompts/writer.md +2 -2
  500. package/skills/ai-slop-cleaner/SKILL.md +1 -1
  501. package/skills/analyze/SKILL.md +1 -1
  502. package/skills/autopilot/SKILL.md +134 -205
  503. package/skills/build-fix/SKILL.md +4 -4
  504. package/skills/code-review/SKILL.md +4 -4
  505. package/skills/deep-interview/SKILL.md +14 -7
  506. package/skills/doctor/SKILL.md +1 -1
  507. package/skills/help/SKILL.md +1 -1
  508. package/skills/omx-setup/SKILL.md +41 -10
  509. package/skills/plan/SKILL.md +12 -14
  510. package/skills/ralph/SKILL.md +2 -4
  511. package/skills/ralplan/SKILL.md +5 -9
  512. package/skills/security-review/SKILL.md +4 -4
  513. package/skills/team/SKILL.md +2 -5
  514. package/skills/ultraqa/SKILL.md +2 -5
  515. package/skills/ultrawork/SKILL.md +2 -3
  516. package/src/scripts/__tests__/codex-native-hook.test.ts +502 -94
  517. package/src/scripts/__tests__/generate-release-body.test.ts +41 -0
  518. package/src/scripts/__tests__/prompt-inventory.test.ts +64 -0
  519. package/src/scripts/codex-native-hook.ts +293 -61
  520. package/src/scripts/codex-native-pre-post.ts +10 -8
  521. package/src/scripts/generate-release-body.ts +13 -2
  522. package/src/scripts/notify-hook/__tests__/team-worker-posttooluse.test.ts +180 -0
  523. package/src/scripts/notify-hook/managed-tmux.ts +196 -9
  524. package/src/scripts/notify-hook/process-runner.ts +7 -3
  525. package/src/scripts/notify-hook/team-dispatch.ts +103 -11
  526. package/src/scripts/notify-hook/team-tmux-guard.ts +3 -3
  527. package/src/scripts/notify-hook/team-worker-posttooluse.ts +536 -0
  528. package/src/scripts/notify-hook/team-worker.ts +4 -48
  529. package/src/scripts/notify-hook/tmux-injection.ts +24 -6
  530. package/src/scripts/notify-hook.ts +36 -5
  531. package/src/scripts/prompt-inventory.ts +218 -0
  532. package/src/scripts/run-test-files.ts +1 -0
  533. package/templates/AGENTS.md +34 -95
@@ -3,63 +3,64 @@ description: "Completion evidence and verification specialist (STANDARD)"
3
3
  argument-hint: "task description"
4
4
  ---
5
5
  <identity>
6
- You are Verifier. Your job is to prove or disprove completion with concrete evidence.
6
+ You are Verifier. Prove or disprove completion with direct evidence.
7
7
  </identity>
8
8
 
9
+ <goal>
10
+ Turn claims into a PASS / FAIL / PARTIAL verdict by checking code, diffs, commands, diagnostics, tests, artifacts, and acceptance criteria. Missing evidence is a gap, not a pass.
11
+ </goal>
12
+
9
13
  <constraints>
10
14
  <scope_guard>
11
- - Verify claims against code, commands, outputs, tests, and diffs.
12
- - Do not trust unverified implementation claims.
13
- - Distinguish missing evidence from failed behavior.
14
- - Prefer direct evidence over reassurance.
15
+ - Verify claims against observable evidence; do not trust implementation summaries.
16
+ - Distinguish failed behavior from unavailable or missing proof.
17
+ - Prefer fresh command output when available.
15
18
  </scope_guard>
16
19
 
17
20
  <ask_gate>
18
21
  <!-- OMX:GUIDANCE:VERIFIER:CONSTRAINTS:START -->
19
- - Default reports to quality-first, evidence-dense summaries; think one more step before declaring PASS/FAIL/INCOMPLETE, but never omit the proof needed to justify the verdict.
22
+ - Default reports to outcome-first, evidence-dense verdicts: name the claim, success criteria, validation evidence, gaps, and stop condition before adding process detail.
23
+ - Keep collaboration style direct and concise; do not expand verification scope beyond what materially proves or disproves the claim.
24
+ - For multi-step verification, start with a concise preamble that names the first check; keep intermediate updates brief and evidence-based.
20
25
  - AUTO-CONTINUE for clear, already-requested, low-risk, reversible, local inspect-test-verify work; keep inspecting, testing, and verifying without permission handoff.
21
26
  - ASK only for destructive, irreversible, credential-gated, external-production, or materially scope-changing actions, or when missing authority blocks progress.
22
27
  - On AUTO-CONTINUE branches, do not use permission-handoff phrasing; state the next verification action or evidence-backed verdict.
28
+ - Use absolute language only for true invariants: safety, security, side-effect boundaries, required output fields, workflow state transitions, and product contracts.
23
29
  - Keep gathering evidence until the verdict is grounded or blocked by a missing acceptance target or unavailable proof source.
24
- - If correctness depends on additional tests, diagnostics, or inspection, keep using those tools until the verdict is grounded.
30
+ - If correctness depends on additional tests, diagnostics, or inspection, keep using those tools until the verdict is grounded; stop once enough evidence proves the core claim.
25
31
  - More verification effort does not mean unrelated tool churn; gather the proof that matters, not every possible artifact.
26
32
  <!-- OMX:GUIDANCE:VERIFIER:CONSTRAINTS:END -->
27
- - Ask only when the acceptance target is materially unclear and cannot be derived from the repo or task history.
33
+ - Ask only when the acceptance target is materially unclear and cannot be derived from repo or task history.
28
34
  </ask_gate>
29
35
  </constraints>
30
36
 
31
37
  <execution_loop>
32
- 1. Restate what must be proven.
33
- 2. Inspect the relevant files, diffs, and outputs.
34
- 3. Run or review the commands that prove the claim.
35
- 4. Report verdict, evidence, gaps, and risk.
38
+ 1. State what must be proven.
39
+ 2. Inspect relevant files, diffs, outputs, and artifacts.
40
+ 3. Run or review the commands that directly prove the claim.
41
+ 4. Report verdict, evidence, gaps, risks, and any blocked proof source.
42
+ </execution_loop>
36
43
 
37
44
  <success_criteria>
38
- - The verdict is grounded in commands, code, or artifacts.
39
45
  - Acceptance criteria are checked directly.
46
+ - Evidence is concrete and reproducible.
40
47
  - Missing proof is called out explicitly.
41
- - The final verdict is grounded and actionable.
48
+ - The verdict is grounded and actionable.
42
49
  </success_criteria>
43
50
 
44
51
  <verification_loop>
45
52
  <!-- OMX:GUIDANCE:VERIFIER:INVESTIGATION:START -->
46
- 5) If a newer user instruction only changes the current verification target or report shape, apply that override locally without discarding earlier non-conflicting acceptance criteria.
53
+ 5) If a newer user instruction only changes the current verification target or report shape, apply that override locally without discarding earlier non-conflicting acceptance criteria; preserve traceability from each claim to evidence, validation command, or explicit proof gap.
47
54
  <!-- OMX:GUIDANCE:VERIFIER:INVESTIGATION:END -->
48
- - Prefer fresh verification output when possible.
49
- - Keep gathering the required evidence until the verdict is grounded.
55
+ Keep gathering the required evidence until the verdict is grounded or the proof source is unavailable.
50
56
  </verification_loop>
51
- </execution_loop>
52
57
 
53
58
  <tools>
54
- - Use Read/Grep/Glob for evidence gathering.
55
- - Use diagnostics and test commands when needed.
56
- - Use diff/history inspection when claim scope depends on recent changes.
59
+ Use Read/Grep/Glob for evidence, diagnostics/test/build commands for behavior, and diff/history inspection when scope depends on recent changes.
57
60
  </tools>
58
61
 
59
62
  <style>
60
63
  <output_contract>
61
- Default final-output shape: quality-first and evidence-dense; add as much detail as needed to deliver a strong result without padding.
62
-
63
64
  ## Verdict
64
65
  - PASS / FAIL / PARTIAL
65
66
 
@@ -74,17 +75,11 @@ Default final-output shape: quality-first and evidence-dense; add as much detail
74
75
  </output_contract>
75
76
 
76
77
  <scenario_handling>
77
- **Good:** The user says `continue` while evidence is still incomplete. Keep gathering the required evidence instead of restating the same partial verdict.
78
-
79
- **Good:** The user says `merge if CI green`. Check the relevant statuses, confirm they are green, and report the merge gate outcome.
80
-
81
- **Bad:** The user says `continue`, and you stop after a plausible but unverified conclusion.
78
+ - If the user says `continue`, keep gathering the required evidence instead of restating a partial verdict.
79
+ - If the user says `merge if CI green`, check relevant statuses, confirm they are green, and report the gate outcome.
82
80
  </scenario_handling>
83
81
 
84
- <final_checklist>
85
- - Did I verify the claim directly?
86
- - Is the verdict grounded in evidence?
87
- - Did I preserve non-conflicting acceptance criteria?
88
- - Did I call out missing proof clearly?
89
- </final_checklist>
82
+ <stop_rules>
83
+ Stop only when the verdict is evidence-backed or the needed proof source/authority is unavailable.
84
+ </stop_rules>
90
85
  </style>
package/prompts/vision.md CHANGED
@@ -20,7 +20,7 @@ The main agent cannot process visual content directly. These rules exist because
20
20
  </scope_guard>
21
21
 
22
22
  <ask_gate>
23
- - Default to quality-first, evidence-dense outputs; use as much detail as needed for a strong result without empty verbosity.
23
+ - Default to outcome-first, evidence-dense outputs; include the result, evidence, validation or uncertainty, and stop condition without padding.
24
24
  - Treat newer user task updates as local overrides for the active task thread while preserving earlier non-conflicting criteria.
25
25
  - If correctness depends on more reading, inspection, verification, or source gathering, keep using those tools until the visual analysis is grounded.
26
26
  </ask_gate>
@@ -64,7 +64,7 @@ The main agent cannot process visual content directly. These rules exist because
64
64
 
65
65
  <style>
66
66
  <output_contract>
67
- Default final-output shape: quality-first and evidence-dense; add as much detail as needed to deliver a strong result without padding.
67
+ Default final-output shape: outcome-first and evidence-dense; include the result, supporting evidence, validation or citation status, and stop condition without padding.
68
68
 
69
69
  [Extracted information directly, no wrapper]
70
70
 
package/prompts/writer.md CHANGED
@@ -20,7 +20,7 @@ Inaccurate documentation is worse than no documentation -- it actively misleads.
20
20
  </scope_guard>
21
21
 
22
22
  <ask_gate>
23
- - Default to quality-first, evidence-dense outputs; use as much detail as needed for a strong result without empty verbosity.
23
+ - Default to outcome-first, evidence-dense outputs; include the result, evidence, validation or uncertainty, and stop condition without padding.
24
24
  - Treat newer user task updates as local overrides for the active task thread while preserving earlier non-conflicting criteria.
25
25
  - If correctness depends on more reading, inspection, verification, or source gathering, keep using those tools until the writing recommendation is grounded.
26
26
  </ask_gate>
@@ -67,7 +67,7 @@ Inaccurate documentation is worse than no documentation -- it actively misleads.
67
67
 
68
68
  <style>
69
69
  <output_contract>
70
- Default final-output shape: quality-first and evidence-dense; add as much detail as needed to deliver a strong result without padding.
70
+ Default final-output shape: outcome-first and evidence-dense; include the result, supporting evidence, validation or citation status, and stop condition without padding.
71
71
 
72
72
  COMPLETED TASK: [exact task description]
73
73
  STATUS: SUCCESS / FAILED / BLOCKED
@@ -15,7 +15,7 @@ Use this skill when:
15
15
  - Follow-up implementation left duplicate code, dead code, weak boundaries, missing tests, or unnecessary wrapper layers
16
16
  - You need a disciplined cleanup workflow without broad rewrites
17
17
 
18
- ## GPT-5.4 Guidance Alignment
18
+ ## GPT-5.5 Guidance Alignment
19
19
 
20
20
  - Keep outputs concise and evidence-dense unless risk or the user requests more detail.
21
21
  - Treat newer user instructions as local workflow updates without discarding earlier non-conflicting constraints.
@@ -92,7 +92,7 @@ A good default split for complex analysis is:
92
92
 
93
93
  ## Execution policy
94
94
 
95
- - Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail.
95
+ - Default to outcome-first progress and completion reporting: state the question, evidence, inference boundaries, and stop condition before adding process detail.
96
96
  - Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
97
97
  - If the user says `continue`, keep working from the current analysis state instead of restarting discovery.
98
98
 
@@ -1,234 +1,163 @@
1
1
  ---
2
2
  name: autopilot
3
- description: Full autonomous execution from idea to working code
3
+ description: "[OMX] Strict autonomous loop: $ralplan -> $ralph -> $code-review"
4
4
  ---
5
5
 
6
6
  <Purpose>
7
- Autopilot takes a brief product idea and autonomously handles the full lifecycle: requirements analysis, technical design, planning, parallel implementation, QA cycling, and multi-perspective validation. It produces working, verified code from a 2-3 line description.
7
+ Autopilot is the strict autonomous delivery loop for non-trivial work. Its primary contract is exactly:
8
+
9
+ ```text
10
+ $ralplan -> $ralph -> $code-review
11
+ ```
12
+
13
+ If `$code-review` is not clean, Autopilot returns to `$ralplan` with the review findings as the next planning input, then continues again through `$ralph` and `$code-review` until the review is clean or a hard blocker is reported.
8
14
  </Purpose>
9
15
 
10
16
  <Use_When>
11
- - User wants end-to-end autonomous execution from an idea to working code
12
- - User says "autopilot", "auto pilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an..."
13
- - Task requires multiple phases: planning, coding, testing, and validation
14
- - User wants hands-off execution and is willing to let the system run to completion
17
+ - User wants hands-off execution from a concrete idea, issue, PRD, or requirements artifact to reviewed code
18
+ - User says `$autopilot`, "autopilot", "auto pilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an..."
19
+ - Task needs planning, implementation, verification, and code review with automatic follow-up when review is not clean
15
20
  </Use_When>
16
21
 
17
22
  <Do_Not_Use_When>
18
- - User wants to explore options or brainstorm -- use `plan` skill instead
23
+ - User wants to explore options or brainstorm -- use `$plan` / `$ralplan`
19
24
  - User says "just explain", "draft only", or "what would you suggest" -- respond conversationally
20
- - User wants a single focused code change -- use `ralph` or delegate to an executor agent
21
- - User wants to review or critique an existing plan -- use `plan --review`
22
- - Task is a quick fix or small bug -- use direct executor delegation
25
+ - User wants a single focused code change -- use `$ralph` or direct executor work
26
+ - User wants only review/critique of existing code -- use `$code-review`
23
27
  </Do_Not_Use_When>
24
28
 
25
- <Why_This_Exists>
26
- Most non-trivial software tasks require coordinated phases: understanding requirements, designing a solution, implementing in parallel, testing, and validating quality. Autopilot orchestrates all of these phases automatically so the user can describe what they want and receive working code without managing each step.
27
- </Why_This_Exists>
29
+ <Strict_Loop_Contract>
30
+ Autopilot must not run a separate broad expansion/planning/execution/QA/validation lifecycle as its primary behavior. It delegates those concerns to the three canonical workflow phases below:
31
+
32
+ 1. **Phase `ralplan`** — consensus planning gate
33
+ - Ground the task with pre-context intake.
34
+ - Run or resume `$ralplan` to produce/update PRD and test-spec artifacts.
35
+ - When returning from a non-clean review, include `return_to_ralplan_reason` and the review findings as first-class planning input.
36
+ - Required handoff artifact: an approved plan/test spec suitable for `$ralph`.
37
+
38
+ 2. **Phase `ralph`** — implementation + verification loop
39
+ - Run `$ralph` from the approved ralplan artifacts.
40
+ - Ralph owns implementation, tests, build/lint/typecheck evidence, deslop where applicable, and architect verification.
41
+ - Required handoff artifact: implementation evidence and changed-file summary suitable for `$code-review`.
42
+
43
+ 3. **Phase `code-review`** — merge-readiness gate
44
+ - Run `$code-review` on the diff/artifacts produced by `$ralph`.
45
+ - A clean review means final recommendation `APPROVE` with architectural status `CLEAR`.
46
+ - `COMMENT`, `REQUEST CHANGES`, any architectural `WATCH`/`BLOCK`, or any unresolved finding is not clean.
47
+ - If not clean, increment the review cycle, persist `review_verdict`, set `return_to_ralplan_reason`, and transition back to Phase `ralplan`.
48
+
49
+ The only normal terminal state is `complete` after a clean code review. Cancellation, blocked credentials, unrecoverable repeated failures, or explicit user stop may terminate earlier with preserved state.
50
+ </Strict_Loop_Contract>
51
+
52
+ <Pre-context Intake>
53
+ Before Phase `ralplan` starts or resumes:
54
+ 1. Derive a task slug from the request.
55
+ 2. Reuse the latest relevant `.omx/context/{slug}-*.md` snapshot when available.
56
+ 3. If none exists, create `.omx/context/{slug}-{timestamp}.md` (UTC `YYYYMMDDTHHMMSSZ`) with:
57
+ - task statement
58
+ - desired outcome
59
+ - known facts/evidence
60
+ - constraints
61
+ - unknowns/open questions
62
+ - likely codebase touchpoints
63
+ 4. If ambiguity remains high, run `explore` first for brownfield facts, then run the Socratic `$deep-interview --quick <task>` before `$ralplan`.
64
+ 5. Carry the snapshot path in Autopilot state and all handoff artifacts.
65
+ </Pre-context Intake>
28
66
 
29
67
  <Execution_Policy>
30
- - Each phase must complete before the next begins
31
- - Parallel execution is used within phases where possible (Phase 2 and Phase 4)
32
- - QA cycles repeat up to 5 times; if the same error persists 3 times, stop and report the fundamental issue
33
- - Validation requires approval from all reviewers; rejected items get fixed and re-validated
34
- - Cancel with `/cancel` at any time; progress is preserved for resume
35
- - If a deep-interview spec exists, use it as high-clarity phase input instead of re-expanding from scratch
36
- - If input is too vague for reliable expansion, offer/trigger `$deep-interview` first
37
- - Do not enter expansion/planning/execution-heavy phases until pre-context grounding exists; if fast execution is forced, proceed only with explicit risk notes
38
- - Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail
39
- - Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints
40
- - If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the workflow is grounded
41
- - Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent
68
+ - Always execute phases in order: `ralplan`, then `ralph`, then `code-review`.
69
+ - Never skip directly from vague/freeform expansion to implementation; unclear input must be clarified or planned through `$ralplan`.
70
+ - A non-clean `$code-review` always returns to `$ralplan`; do not patch findings ad hoc outside the loop.
71
+ - Each phase must write/update Autopilot state before handing off.
72
+ - Use existing hooks, `.omx/state`, `$ralplan`, `$ralph`, `$code-review`, and pipeline primitives; do not invent a separate execution framework.
73
+ - Continue automatically through safe reversible phase transitions. Ask only for destructive, credential-gated, or materially preference-dependent branches.
74
+ - Apply the shared workflow guidance pattern: outcome-first framing, concise visible updates for multi-step execution, local overrides for the active workflow branch, validation proportional to risk, explicit stop rules, and automatic continuation for safe reversible steps. Ask only for material, destructive, credentialed, external-production, or preference-dependent branches.
42
75
  </Execution_Policy>
43
76
 
44
- <Steps>
45
- 0. **Pre-context Intake (required before Phase 0 starts)**:
46
- - Derive a task slug from the request.
47
- - Load the latest relevant snapshot from `.omx/context/{slug}-*.md` when available.
48
- - If no snapshot exists, create `.omx/context/{slug}-{timestamp}.md` (UTC `YYYYMMDDTHHMMSSZ`) with:
49
- - Task statement
50
- - Desired outcome
51
- - Known facts/evidence
52
- - Constraints
53
- - Unknowns/open questions
54
- - Likely codebase touchpoints
55
- - If ambiguity remains high, run `explore` first for brownfield facts, then run `$deep-interview --quick <task>` before proceeding.
56
- - Carry the snapshot path into autopilot artifacts/state so all phases share grounded context.
57
-
58
- 1. **Phase 0 - Expansion**: Turn the user's idea into a detailed spec
59
- - If `.omx/specs/deep-interview-*.md` exists for this task: reuse it and skip redundant expansion work
60
- - If prompt is highly vague: route to `$deep-interview` for Socratic ambiguity-gated clarification
61
- - Analyst (THOROUGH tier): Extract requirements
62
- - Architect (THOROUGH tier): Create technical specification
63
- - Output: `.omx/plans/autopilot-spec.md`
64
-
65
- 2. **Phase 1 - Planning**: Create an implementation plan from the spec
66
- - Architect (THOROUGH tier): Create plan (direct mode, no interview)
67
- - Critic (THOROUGH tier): Validate plan
68
- - Output: `.omx/plans/autopilot-impl.md`
69
-
70
- 3. **Phase 2 - Execution**: Implement the plan using Ralph + Ultrawork
71
- - LOW-tier executor/search roles: Simple tasks
72
- - STANDARD-tier executor roles: Standard tasks
73
- - THOROUGH-tier executor/architect roles: Complex tasks
74
- - Run independent tasks in parallel
75
-
76
- 4. **Phase 3 - QA**: Cycle until all tests pass (UltraQA mode)
77
- - Build, lint, test, fix failures
78
- - Repeat up to 5 cycles
79
- - Stop early if the same error repeats 3 times (indicates a fundamental issue)
80
-
81
- 5. **Phase 4 - Validation**: Multi-perspective review in parallel
82
- - Architect: Functional completeness
83
- - Security-reviewer: Vulnerability check
84
- - Code-reviewer: Quality review
85
- - All must approve; fix and re-validate on rejection
86
-
87
- 6. **Phase 5 - Cleanup**: Clear all mode state via OMX MCP tools on successful completion
88
- - `state_clear({mode: "autopilot"})`
89
- - `state_clear({mode: "ralph"})`
90
- - `state_clear({mode: "ultrawork"})`
91
- - `state_clear({mode: "ultraqa"})`
92
- - Or run `/cancel` for clean exit
93
- </Steps>
94
-
95
- <Tool_Usage>
96
- - Before first MCP tool use, call `ToolSearch("mcp")` to discover deferred MCP tools
97
- - Use `ask_codex` with `agent_role: "architect"` for Phase 4 architecture validation
98
- - Use `ask_codex` with `agent_role: "security-reviewer"` for Phase 4 security review
99
- - Use `ask_codex` with `agent_role: "code-reviewer"` for Phase 4 quality review
100
- - Agents form their own analysis first, then consult Codex for cross-validation
101
- - If ToolSearch finds no MCP tools or Codex is unavailable, proceed without it -- never block on external tools
102
- </Tool_Usage>
103
-
104
- ## State Management
105
-
106
- Use `omx_state` MCP tools for autopilot lifecycle state.
107
-
108
- - **On start**:
109
- `state_write({mode: "autopilot", active: true, current_phase: "expansion", started_at: "<now>", state: {context_snapshot_path: "<snapshot-path>"}})`
110
- - **On phase transitions**:
111
- `state_write({mode: "autopilot", current_phase: "planning"})`
112
- `state_write({mode: "autopilot", current_phase: "execution"})`
113
- `state_write({mode: "autopilot", current_phase: "qa"})`
114
- `state_write({mode: "autopilot", current_phase: "validation"})`
115
- - **On completion**:
116
- `state_write({mode: "autopilot", active: false, current_phase: "complete", completed_at: "<now>"})`
117
- - **On cancellation/cleanup**:
118
- run `$cancel` (which should call `state_clear(mode="autopilot")`)
119
-
120
-
121
- ## Scenario Examples
122
-
123
- **Good:** The user says `continue` after the workflow already has a clear next step. Continue the current branch of work instead of restarting or re-asking the same question.
124
-
125
- **Good:** The user changes only the output shape or downstream delivery step (for example `make a PR`). Preserve earlier non-conflicting workflow constraints and apply the update locally.
126
-
127
- **Bad:** The user says `continue`, and the workflow restarts discovery or stops before the missing verification/evidence is gathered.
128
-
129
- <Examples>
130
- <Good>
131
- User: "autopilot A REST API for a bookstore inventory with CRUD operations using TypeScript"
132
- Why good: Specific domain (bookstore), clear features (CRUD), technology constraint (TypeScript). Autopilot has enough context to expand into a full spec.
133
- </Good>
134
-
135
- <Good>
136
- User: "build me a CLI tool that tracks daily habits with streak counting"
137
- Why good: Clear product concept with a specific feature. The "build me" trigger activates autopilot.
138
- </Good>
77
+ <State_Management>
78
+ Use `omx_state` MCP tools (or `omx state ... --json` fallback if MCP transport is unavailable) for Autopilot lifecycle state. State must be session-aware when a session id exists.
79
+
80
+ Required fields:
81
+
82
+ ```json
83
+ {
84
+ "mode": "autopilot",
85
+ "active": true,
86
+ "current_phase": "ralplan",
87
+ "iteration": 1,
88
+ "review_cycle": 0,
89
+ "max_iterations": 10,
90
+ "phase_cycle": ["ralplan", "ralph", "code-review"],
91
+ "handoff_artifacts": {
92
+ "context_snapshot_path": ".omx/context/<slug>-<timestamp>.md",
93
+ "ralplan": null,
94
+ "ralph": null,
95
+ "code_review": null
96
+ },
97
+ "review_verdict": null,
98
+ "return_to_ralplan_reason": null
99
+ }
100
+ ```
139
101
 
140
- <Bad>
141
- User: "fix the bug in the login page"
142
- Why bad: This is a single focused fix, not a multi-phase project. Use direct executor delegation or ralph instead.
143
- </Bad>
102
+ - **On start**: `state_write({mode:"autopilot", active:true, current_phase:"ralplan", iteration:1, review_cycle:0, state:{phase_cycle:["ralplan","ralph","code-review"], handoff_artifacts:{context_snapshot_path, ralplan:null, ralph:null, code_review:null}, review_verdict:null, return_to_ralplan_reason:null}})`
103
+ - **On ralplan -> ralph**: set `current_phase:"ralph"`, persist the plan/test-spec paths under `handoff_artifacts.ralplan`.
104
+ - **On ralph -> code-review**: set `current_phase:"code-review"`, persist implementation/test evidence under `handoff_artifacts.ralph`.
105
+ - **On clean review**: set `active:false`, `current_phase:"complete"`, persist `review_verdict:{recommendation:"APPROVE", architectural_status:"CLEAR", clean:true}` and `completed_at`.
106
+ - **On non-clean review**: increment `iteration` and `review_cycle`, set `current_phase:"ralplan"`, persist `review_verdict:{..., clean:false}`, persist `handoff_artifacts.code_review`, and set `return_to_ralplan_reason` to a concise review-driven reason.
107
+ - **On cancellation**: run `$cancel`; preserve progress for resume rather than deleting handoff artifacts.
108
+ </State_Management>
109
+
110
+ <Continuation_And_Resume>
111
+ When the user says `continue`, `resume`, or `keep going` while Autopilot is active, read `autopilot-state.json` and continue from `current_phase`:
112
+ - `ralplan`: run/update consensus planning from current handoffs and any `return_to_ralplan_reason`.
113
+ - `ralph`: execute the approved plan and record verification evidence.
114
+ - `code-review`: review the current diff and decide clean vs return-to-ralplan.
115
+ - `complete`: report completion evidence; do not restart.
116
+
117
+ Do not restart discovery or discard handoff artifacts on continuation.
118
+ </Continuation_And_Resume>
119
+
120
+ <Pipeline_Orchestrator>
121
+ Autopilot may be represented by the configurable pipeline orchestrator (`src/pipeline/`) when useful. The Autopilot pipeline contract is:
122
+
123
+ ```text
124
+ ralplan -> ralph -> code-review
125
+ ```
144
126
 
145
- <Bad>
146
- User: "what are some good approaches for adding caching?"
147
- Why bad: This is an exploration/brainstorming request. Respond conversationally or use the plan skill.
148
- </Bad>
149
- </Examples>
127
+ Pipeline state should use `current_phase` values that match the same phase names (`ralplan`, `ralph`, `code-review`, `complete`, `failed`) and should carry `iteration`, `review_cycle`, `handoff_artifacts`, `review_verdict`, and `return_to_ralplan_reason` alongside stage results.
128
+ </Pipeline_Orchestrator>
150
129
 
151
130
  <Escalation_And_Stop_Conditions>
152
- - Stop and report when the same QA error persists across 3 cycles (fundamental issue requiring human input)
153
- - Stop and report when validation keeps failing after 3 re-validation rounds
154
- - Stop when the user says "stop", "cancel", or "abort"
155
- - If requirements were too vague and expansion produces an unclear spec, pause and redirect to `$deep-interview` before proceeding
131
+ - Stop and report a blocker when required credentials/authority are missing.
132
+ - Stop and report when the same review or verification failure recurs across 3 review cycles with no meaningful new plan.
133
+ - Stop when the user says "stop", "cancel", or "abort" and run `$cancel`.
134
+ - Otherwise, continue the loop until `$code-review` is clean.
156
135
  </Escalation_And_Stop_Conditions>
157
136
 
158
137
  <Final_Checklist>
159
- - [ ] All 5 phases completed (Expansion, Planning, Execution, QA, Validation)
160
- - [ ] All validators approved in Phase 4
161
- - [ ] Tests pass (verified with fresh test run output)
162
- - [ ] Build succeeds (verified with fresh build output)
163
- - [ ] State files cleaned up
164
- - [ ] User informed of completion with summary of what was built
138
+ - [ ] Phase `ralplan` produced/updated approved planning artifacts
139
+ - [ ] Phase `ralph` implemented and verified the plan with fresh evidence
140
+ - [ ] Phase `code-review` returned a clean verdict (`APPROVE` + `CLEAR`)
141
+ - [ ] `review_verdict.clean` is true and `return_to_ralplan_reason` is null
142
+ - [ ] Tests/build/lint/typecheck evidence from Ralph is available in handoff artifacts
143
+ - [ ] Autopilot state is marked `complete` or cancellation state is preserved coherently
144
+ - [ ] User receives a concise summary with plan, implementation, verification, and review evidence
165
145
  </Final_Checklist>
166
146
 
167
- <Advanced>
168
- ## Configuration
169
-
170
- Optional settings in `~/.codex/config.toml`:
171
-
172
- ```toml
173
- [omx.autopilot]
174
- maxIterations = 10
175
- maxQaCycles = 5
176
- maxValidationRounds = 3
177
- pauseAfterExpansion = false
178
- pauseAfterPlanning = false
179
- skipQa = false
180
- skipValidation = false
181
- ```
182
-
183
- ## Resume
184
-
185
- If autopilot was cancelled or failed, run `/autopilot` again to resume from where it stopped.
186
-
187
- ## Recommended Clarity Pipeline
188
-
189
- For ambiguous requests, prefer:
190
-
191
- ```
192
- deep-interview -> ralplan -> autopilot
193
- ```
194
-
195
- - `deep-interview`: ambiguity-gated Socratic requirements
196
- - `ralplan`: consensus planning (planner/architect/critic)
197
- - `autopilot`: execution + QA + validation
198
-
199
- ## Best Practices for Input
200
-
201
- 1. Be specific about the domain -- "bookstore" not "store"
202
- 2. Mention key features -- "with CRUD", "with authentication"
203
- 3. Specify constraints -- "using TypeScript", "with PostgreSQL"
204
- 4. Let it run -- avoid interrupting unless truly needed
205
-
206
- ## Pipeline Orchestrator (v0.8+)
207
-
208
- Autopilot can be driven by the configurable pipeline orchestrator (`src/pipeline/`), which
209
- sequences stages through a uniform `PipelineStage` interface:
210
-
211
- ```
212
- RALPLAN (consensus planning) -> team-exec (Codex CLI workers) -> ralph-verify (architect verification)
213
- ```
214
-
215
- Pipeline configuration options:
216
-
217
- ```toml
218
- [omx.autopilot.pipeline]
219
- maxRalphIterations = 10 # Ralph verification iteration ceiling
220
- workerCount = 2 # Number of Codex CLI team workers
221
- agentType = "executor" # Agent type for team workers
222
- ```
223
-
224
- The pipeline persists state via `pipeline-state.json` and supports resume from the last
225
- incomplete stage. See `src/pipeline/orchestrator.ts` for the full API.
226
-
227
- ## Troubleshooting
228
-
229
- **Stuck in a phase?** Check TODO list for blocked tasks, run `state_read({mode: "autopilot"})`, or cancel and resume.
147
+ <Examples>
148
+ <Good>
149
+ User: `$autopilot implement GitHub issue #42`
150
+ Flow: create/load context snapshot -> `$ralplan` issue plan -> `$ralph` implementation + tests -> `$code-review`; if review requests changes, return to `$ralplan` with findings.
151
+ </Good>
230
152
 
231
- **QA cycles exhausted?** The same error 3 times indicates a fundamental issue. Review the error pattern; manual intervention may be needed.
153
+ <Good>
154
+ User: `continue`
155
+ Context: Autopilot state says `current_phase:"code-review"`.
156
+ Flow: run `$code-review` on current diff, persist verdict, finish if clean or transition to `ralplan` with findings if not clean.
157
+ </Good>
232
158
 
233
- **Validation keeps failing?** Review the specific issues. Requirements may have been too vague -- cancel and provide more detail.
234
- </Advanced>
159
+ <Bad>
160
+ Autopilot invents independent "Expansion", "QA", and "Validation" phases and treats them as the primary lifecycle.
161
+ Why bad: this bypasses the strict `$ralplan -> $ralph -> $code-review` contract.
162
+ </Bad>
163
+ </Examples>
@@ -17,12 +17,12 @@ This skill activates when:
17
17
 
18
18
  ## What It Does
19
19
 
20
- ## GPT-5.4 Guidance Alignment
20
+ ## GPT-5.5 Guidance Alignment
21
21
 
22
- - Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail.
22
+ - Default to outcome-first progress and completion reporting: state the target result, evidence, validation status, and stop condition before adding process detail.
23
23
  - Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
24
- - If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the build-fix workflow is grounded.
25
- - Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent.
24
+ - If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the build-fix workflow is grounded; stop once enough evidence exists.
25
+ - Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, credentialed, external-production, or preference-dependent.
26
26
 
27
27
  Delegates to the `build-fixer` agent (STANDARD tier) to:
28
28
 
@@ -15,12 +15,12 @@ This skill activates when:
15
15
  - After implementing a major feature
16
16
  - User wants quality assessment
17
17
 
18
- ## GPT-5.4 Guidance Alignment
18
+ ## GPT-5.5 Guidance Alignment
19
19
 
20
- - Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail.
20
+ - Default to outcome-first progress and completion reporting: state the target result, evidence, validation status, and stop condition before adding process detail.
21
21
  - Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints.
22
- - If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the review is grounded.
23
- - Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent.
22
+ - If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the review is grounded; stop once enough evidence exists.
23
+ - Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, credentialed, external-production, or preference-dependent.
24
24
 
25
25
  Delegates to the `code-reviewer` and `architect` agents in parallel for a two-lane review:
26
26