oh-my-opencode 4.5.12 → 4.7.0

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 (189) hide show
  1. package/.agents/skills/opencode-qa/SKILL.md +194 -0
  2. package/.agents/skills/opencode-qa/references/cli-commands.md +188 -0
  3. package/.agents/skills/opencode-qa/references/db-investigation.md +197 -0
  4. package/.agents/skills/opencode-qa/references/events-hooks.md +110 -0
  5. package/.agents/skills/opencode-qa/references/sdk.md +96 -0
  6. package/.agents/skills/opencode-qa/references/server-api.md +200 -0
  7. package/.agents/skills/opencode-qa/references/testing-harness.md +218 -0
  8. package/.agents/skills/opencode-qa/references/tui-tmux.md +52 -0
  9. package/.agents/skills/opencode-qa/scripts/db-session-by-id.sh +53 -0
  10. package/.agents/skills/opencode-qa/scripts/db-session-by-name.sh +57 -0
  11. package/.agents/skills/opencode-qa/scripts/db-session-by-text.sh +158 -0
  12. package/.agents/skills/opencode-qa/scripts/export-roundtrip.sh +57 -0
  13. package/.agents/skills/opencode-qa/scripts/lib/common.sh +216 -0
  14. package/.agents/skills/opencode-qa/scripts/server-smoke.sh +64 -0
  15. package/.agents/skills/opencode-qa/scripts/sse-hook-probe.sh +106 -0
  16. package/.agents/skills/opencode-qa/scripts/tui-smoke.sh +89 -0
  17. package/README.ja.md +13 -3
  18. package/README.ko.md +13 -3
  19. package/README.md +24 -14
  20. package/README.ru.md +13 -3
  21. package/README.zh-cn.md +13 -3
  22. package/bin/oh-my-opencode.js +4 -3
  23. package/bin/oh-my-opencode.test.ts +35 -7
  24. package/bin/platform.d.ts +1 -1
  25. package/bin/platform.js +4 -4
  26. package/bin/platform.test.ts +31 -9
  27. package/bin/version-mismatch.js +47 -0
  28. package/bin/version-mismatch.test.ts +120 -0
  29. package/dist/cli/cleanup-command.d.ts +4 -0
  30. package/dist/cli/cleanup.d.ts +11 -0
  31. package/dist/cli/cli-program.d.ts +2 -1
  32. package/dist/cli/codex-ulw-loop.d.ts +12 -0
  33. package/dist/cli/doctor/checks/tui-plugin-config.d.ts +2 -0
  34. package/dist/cli/index.js +2189 -529
  35. package/dist/cli/install-codex/codex-cache.d.ts +1 -0
  36. package/dist/cli/install-codex/codex-cleanup-config.d.ts +6 -0
  37. package/dist/cli/install-codex/codex-cleanup.d.ts +21 -0
  38. package/dist/cli/install-codex/codex-config-permissions.d.ts +1 -0
  39. package/dist/cli/install-codex/codex-config-reasoning.d.ts +2 -0
  40. package/dist/cli/install-codex/codex-config-toml.d.ts +2 -1
  41. package/dist/cli/install-codex/codex-installation-detection.d.ts +36 -0
  42. package/dist/cli/install-codex/codex-model-catalog.d.ts +13 -0
  43. package/dist/cli/install-codex/codex-package-layout.d.ts +1 -0
  44. package/dist/cli/install-codex/codex-project-local-cleanup-best-effort.d.ts +7 -0
  45. package/dist/cli/install-codex/codex-project-local-cleanup.d.ts +35 -0
  46. package/dist/cli/install-codex/git-bash.d.ts +35 -0
  47. package/dist/cli/install-codex/index.d.ts +4 -0
  48. package/dist/cli/install-codex/toml-section-editor.d.ts +2 -0
  49. package/dist/cli/install-codex/types.d.ts +20 -0
  50. package/dist/cli/run/event-state.d.ts +1 -0
  51. package/dist/cli/run/poll-for-completion.d.ts +1 -0
  52. package/dist/cli/run/prompt-start.d.ts +7 -0
  53. package/dist/cli/star-request.d.ts +9 -0
  54. package/dist/config/schema/hooks.d.ts +0 -1
  55. package/dist/create-hooks.d.ts +0 -1
  56. package/dist/features/background-agent/concurrency.d.ts +1 -0
  57. package/dist/features/background-agent/process-cleanup.d.ts +6 -0
  58. package/dist/features/builtin-skills/skills/debugging.d.ts +2 -0
  59. package/dist/features/builtin-skills/skills/index.d.ts +1 -0
  60. package/dist/features/claude-code-session-state/state.d.ts +1 -0
  61. package/dist/features/opencode-skill-loader/index.d.ts +1 -0
  62. package/dist/features/opencode-skill-loader/opencode-config-skills-reader.d.ts +5 -0
  63. package/dist/features/tmux-subagent/attachable-session-status.d.ts +1 -1
  64. package/dist/features/tmux-subagent/session-status-parser.d.ts +1 -0
  65. package/dist/hooks/comment-checker/cli.d.ts +1 -0
  66. package/dist/hooks/index.d.ts +0 -1
  67. package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +1 -1
  68. package/dist/index.js +1077 -563
  69. package/dist/plugin/hooks/create-core-hooks.d.ts +0 -1
  70. package/dist/plugin/hooks/create-session-hooks.d.ts +1 -2
  71. package/dist/plugin/messages-transform.d.ts +8 -1
  72. package/dist/plugin/user-abort-interrupted-recovery-guard.d.ts +6 -0
  73. package/dist/shared/command-executor/execute-hook-command.d.ts +2 -0
  74. package/dist/shared/prompt-async-gate/recent-dispatches.d.ts +14 -0
  75. package/dist/shared/prompt-async-gate/semantic-dedupe.d.ts +7 -0
  76. package/dist/shared/prompt-async-gate/session-idle-dispatch.d.ts +1 -0
  77. package/dist/shared/prompt-async-gate/timing.d.ts +1 -0
  78. package/dist/shared/prompt-async-gate/types.d.ts +2 -0
  79. package/dist/shared/prompt-async-gate.d.ts +1 -1
  80. package/dist/tools/skill/description-formatter.d.ts +5 -1
  81. package/dist/tools/skill/types.d.ts +1 -0
  82. package/package.json +22 -18
  83. package/packages/ast-grep-mcp/dist/cli.js +53 -9
  84. package/packages/git-bash-mcp/dist/cli.js +367 -0
  85. package/packages/lsp-tools-mcp/dist/lsp/process.js +1 -1
  86. package/packages/omo-codex/plugin/.mcp.json +11 -0
  87. package/packages/omo-codex/plugin/components/comment-checker/README.md +1 -1
  88. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +29 -0
  89. package/packages/omo-codex/plugin/components/git-bash/package.json +23 -0
  90. package/packages/omo-codex/plugin/components/git-bash/src/cli.ts +33 -0
  91. package/packages/omo-codex/plugin/components/git-bash/src/codex-hook.ts +180 -0
  92. package/packages/omo-codex/plugin/components/git-bash/src/index.ts +10 -0
  93. package/packages/omo-codex/plugin/components/git-bash/test/codex-hook.test.ts +195 -0
  94. package/packages/omo-codex/plugin/components/git-bash/tsconfig.build.json +13 -0
  95. package/packages/omo-codex/plugin/components/git-bash/tsconfig.json +25 -0
  96. package/packages/omo-codex/plugin/components/lsp/README.md +1 -1
  97. package/packages/omo-codex/plugin/components/lsp/src/cli.ts +5 -5
  98. package/packages/omo-codex/plugin/components/lsp/src/codex-hook-cli.ts +33 -0
  99. package/packages/omo-codex/plugin/components/lsp/src/codex-hook.ts +19 -27
  100. package/packages/omo-codex/plugin/components/lsp/test/codex-hook-cli.test.ts +28 -0
  101. package/packages/omo-codex/plugin/components/lsp/test/codex-hook-errors.test.ts +55 -0
  102. package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +7 -5
  103. package/packages/omo-codex/plugin/components/rules/README.md +1 -1
  104. package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus.md +6 -4
  105. package/packages/omo-codex/plugin/components/rules/bundled-rules/windows-git-bash.md +10 -0
  106. package/packages/omo-codex/plugin/components/rules/src/post-compact-budget.ts +0 -2
  107. package/packages/omo-codex/plugin/components/rules/test/package-smoke.test.ts +3 -1
  108. package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +97 -0
  109. package/packages/omo-codex/plugin/components/start-work-continuation/directive.md +6 -5
  110. package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +22 -0
  111. package/packages/omo-codex/plugin/components/ultrawork/CHANGELOG.md +1 -1
  112. package/packages/omo-codex/plugin/components/ultrawork/README.md +3 -3
  113. package/packages/omo-codex/plugin/components/ultrawork/agents/codex-ultrawork-reviewer.toml +4 -1
  114. package/packages/omo-codex/plugin/components/ultrawork/agents/librarian.toml +8 -7
  115. package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +9 -8
  116. package/packages/omo-codex/plugin/components/ultrawork/directive.md +32 -6
  117. package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +27 -4
  118. package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +25 -0
  119. package/packages/omo-codex/plugin/components/ulw-loop/README.md +1 -1
  120. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +28 -205
  121. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +231 -0
  122. package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint.ts +12 -1
  123. package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint.test.ts +19 -1
  124. package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +102 -5
  125. package/packages/omo-codex/plugin/hooks/hooks.json +35 -2
  126. package/packages/omo-codex/plugin/model-catalog.json +49 -0
  127. package/packages/omo-codex/plugin/package-lock.json +19 -0
  128. package/packages/omo-codex/plugin/package.json +3 -1
  129. package/packages/omo-codex/plugin/scripts/auto-update.mjs +159 -0
  130. package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +16 -1
  131. package/packages/omo-codex/plugin/scripts/build-components.mjs +2 -1
  132. package/packages/omo-codex/plugin/scripts/migrate-codex-config.mjs +269 -0
  133. package/packages/omo-codex/plugin/scripts/sync-hook-status-messages.mjs +89 -0
  134. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +6 -6
  135. package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +6 -6
  136. package/packages/omo-codex/plugin/skills/lcx-report-bug/SKILL.md +127 -0
  137. package/packages/omo-codex/plugin/skills/lcx-report-bug/agents/openai.yaml +9 -0
  138. package/packages/omo-codex/plugin/skills/refactor/SKILL.md +6 -6
  139. package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +6 -6
  140. package/packages/omo-codex/plugin/skills/review-work/SKILL.md +33 -8
  141. package/packages/omo-codex/plugin/skills/start-work/SKILL.md +25 -5
  142. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +28 -205
  143. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +231 -0
  144. package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +17 -17
  145. package/packages/omo-codex/plugin/test/aggregate.test.mjs +188 -20
  146. package/packages/omo-codex/plugin/test/auto-update.test.mjs +129 -0
  147. package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +58 -11
  148. package/packages/omo-codex/plugin/test/install-time-build-runtime.test.mjs +34 -0
  149. package/packages/omo-codex/plugin/test/mcp-research-servers.test.mjs +21 -0
  150. package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +146 -0
  151. package/packages/omo-codex/plugin/test/node-install-surface.test.mjs +48 -0
  152. package/packages/omo-codex/plugin/test/subagent-guidance.test.mjs +76 -0
  153. package/packages/omo-codex/plugin/test/sync-hook-status-messages.test.mjs +67 -0
  154. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +54 -2
  155. package/packages/omo-codex/scripts/install/cache.mjs +5 -3
  156. package/packages/omo-codex/scripts/install/cli-args.mjs +112 -0
  157. package/packages/omo-codex/scripts/install/config.mjs +23 -1
  158. package/packages/omo-codex/scripts/install/delegated-command.mjs +25 -0
  159. package/packages/omo-codex/scripts/install/git-bash.mjs +99 -0
  160. package/packages/omo-codex/scripts/install/git-bash.test.mjs +174 -0
  161. package/packages/omo-codex/scripts/install/legacy-bins.mjs +1 -0
  162. package/packages/omo-codex/scripts/install/mcp-runtime-cache.mjs +5 -1
  163. package/packages/omo-codex/scripts/install/model-catalog.mjs +66 -0
  164. package/packages/omo-codex/scripts/install/multi-agent-v2-config.mjs +7 -1
  165. package/packages/omo-codex/scripts/install/permissions.d.mts +1 -0
  166. package/packages/omo-codex/scripts/install/permissions.mjs +26 -0
  167. package/packages/omo-codex/scripts/install/project-local-cleanup.mjs +229 -0
  168. package/packages/omo-codex/scripts/install/reasoning-config.mjs +72 -0
  169. package/packages/omo-codex/scripts/install/source-package-build.mjs +20 -0
  170. package/packages/omo-codex/scripts/install/toml-editor.mjs +19 -2
  171. package/packages/omo-codex/scripts/install-bin-links.test.mjs +23 -0
  172. package/packages/omo-codex/scripts/install-cli-args.test.mjs +146 -0
  173. package/packages/omo-codex/scripts/install-config-autonomous.test.mjs +48 -0
  174. package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +141 -0
  175. package/packages/omo-codex/scripts/install-config.test.mjs +205 -0
  176. package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +157 -0
  177. package/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs +145 -0
  178. package/packages/omo-codex/scripts/install-local.mjs +91 -8
  179. package/packages/omo-codex/scripts/install-local.test.mjs +15 -0
  180. package/packages/omo-codex/scripts/install-mcp-runtime.test.mjs +60 -0
  181. package/packages/omo-codex/scripts/install-packaged-local.test.mjs +67 -0
  182. package/packages/omo-codex/scripts/install-project-local-cleanup.test.mjs +277 -0
  183. package/packages/shared-skills/skills/lcx-report-bug/SKILL.md +127 -0
  184. package/packages/shared-skills/skills/lcx-report-bug/agents/openai.yaml +9 -0
  185. package/packages/shared-skills/skills/review-work/SKILL.md +33 -8
  186. package/packages/shared-skills/skills/start-work/SKILL.md +25 -5
  187. package/packages/shared-skills/skills/ulw-plan/SKILL.md +11 -11
  188. package/postinstall.mjs +36 -3
  189. package/dist/hooks/context-window-monitor.d.ts +0 -19
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: lcx-report-bug
3
+ description: "Create a high-signal LazyCodex bug report for code-yeongyu/lazycodex. Use this whenever the user asks to report, file, open, or triage a LazyCodex, lazycodex-ai, omo-codex, or Codex plugin bug, especially when they need root cause, reproduction steps, expected fix guidance, and a GitHub issue."
4
+ metadata:
5
+ short-description: Report LazyCodex bugs with debugging evidence
6
+ ---
7
+
8
+ # lcx-report-bug
9
+
10
+ You are a LazyCodex bug reporter. Produce one useful GitHub issue in English for `code-yeongyu/lazycodex`, backed by runtime evidence rather than guesses.
11
+
12
+ Use GPT-5.5 style: outcome first, concise, evidence-bound. Keep the workflow moving, but do not file an issue until the root cause and reproduction path are concrete enough for a maintainer to act.
13
+
14
+ ## Goal
15
+
16
+ Create or prepare a GitHub issue that includes:
17
+
18
+ - clear title
19
+ - environment
20
+ - reproducible steps
21
+ - expected behavior
22
+ - actual behavior
23
+ - confirmed or strongly evidenced root cause
24
+ - fix approach, including files or components likely involved
25
+ - verification plan
26
+
27
+ ## Required Workflow
28
+
29
+ 1. Read the user's bug report and identify the affected surface: LazyCodex installer, Codex plugin, skill, hook, MCP, CLI alias, GitHub marketplace sync, or web/docs.
30
+ 2. Invoke `$omo:debugging` for the investigation. If Codex exposes only unqualified skill names in the current session, invoke `$debugging` and state that it is the OMO debugging skill.
31
+ 3. Follow the debugging skill far enough to gather runtime evidence:
32
+ - form at least three plausible hypotheses
33
+ - run the smallest reproduction that exercises the real surface
34
+ - confirm the root cause by observing the failing state
35
+ - identify the minimal fix path or maintainer action
36
+ 4. Search for an existing issue before creating a new one:
37
+
38
+ ```bash
39
+ gh issue list --repo code-yeongyu/lazycodex --search "<short error or symptom>" --state open
40
+ ```
41
+
42
+ 5. If a matching open issue exists, add a comment with the new evidence instead of creating a duplicate.
43
+ 6. If no matching issue exists, create the issue with `gh`.
44
+
45
+ ## Issue Body Template
46
+
47
+ Write the issue body in English and keep it direct:
48
+
49
+ ```markdown
50
+ ## Summary
51
+ [One or two sentences describing the user-visible failure.]
52
+
53
+ ## Environment
54
+ - LazyCodex version:
55
+ - Codex version:
56
+ - OS:
57
+ - Install method:
58
+ - Relevant config:
59
+
60
+ ## Reproduction
61
+ 1. [Exact command or UI action]
62
+ 2. [Exact next step]
63
+ 3. [Observed failure trigger]
64
+
65
+ ## Expected Behavior
66
+ [What should have happened.]
67
+
68
+ ## Actual Behavior
69
+ [What happened instead, including exact error text or output.]
70
+
71
+ ## Evidence
72
+ [Commands, logs, screenshots, traces, or links used to confirm the failure.]
73
+
74
+ ## Root Cause
75
+ [Confirmed cause. If not fully confirmed, say what evidence supports it and what remains uncertain.]
76
+
77
+ ## Proposed Fix
78
+ [Concrete implementation or operational fix. Include likely files, components, or commands.]
79
+
80
+ ## Verification Plan
81
+ - [Check that reproduces the original failure]
82
+ - [Check that proves the fix]
83
+ - [Regression check for adjacent LazyCodex/Codex plugin behavior]
84
+ ```
85
+
86
+ ## GitHub Creation Path
87
+
88
+ Prefer `gh`:
89
+
90
+ ```bash
91
+ ISSUE_BODY="/tmp/lcx-report-bug-$(date +%Y%m%d-%H%M%S).md"
92
+ $EDITOR "$ISSUE_BODY"
93
+ gh issue create --repo code-yeongyu/lazycodex --title "<clear title>" --body-file "$ISSUE_BODY"
94
+ ```
95
+
96
+ If `$EDITOR` is not usable, write the file with the available file-editing tool, then run the same `gh issue create` command.
97
+
98
+ After creating or commenting, return the issue URL and a short summary of the evidence used.
99
+
100
+ ## Browser use fallback
101
+
102
+ If `gh` is unavailable, unauthenticated, or blocked, use Browser Use against the real GitHub page:
103
+
104
+ 1. Open `https://github.com/code-yeongyu/lazycodex/issues/new`.
105
+ 2. Fill the title and body from the template.
106
+ 3. Submit the issue only after visually confirming the repo, title, and body.
107
+ 4. Capture the resulting issue URL.
108
+
109
+ ## Computer use fallback
110
+
111
+ If Browser Use is unavailable but a desktop browser is open and authenticated, use Computer Use:
112
+
113
+ 1. Navigate to `https://github.com/code-yeongyu/lazycodex/issues/new`.
114
+ 2. Fill the title and body.
115
+ 3. Verify the target repository and final text before submission.
116
+ 4. Submit and capture the issue URL.
117
+
118
+ ## Stop Conditions
119
+
120
+ Stop and ask one narrow question only when the missing fact changes the issue materially, such as the affected version, a private log the agent cannot access, or whether the user wants a duplicate filed despite an existing matching issue.
121
+
122
+ Do not file:
123
+
124
+ - a vague issue without reproduction steps
125
+ - an issue that claims a root cause not supported by runtime evidence
126
+ - a duplicate when commenting on an existing issue is enough
127
+ - a fix PR unless the user separately asks for one
@@ -0,0 +1,9 @@
1
+ interface:
2
+ display_name: "lcx-report-bug (omo)"
3
+ short_description: "Report LazyCodex bugs with debugging evidence"
4
+ search_terms:
5
+ - "lcx-report-bug"
6
+ - "lazycodex bug"
7
+ - "lazycodex issue"
8
+ - "omo-codex bug"
9
+ default_prompt: "Use $lcx-report-bug to investigate this LazyCodex bug and file a clear issue with reproduction, root cause, and fix guidance."
@@ -8,15 +8,35 @@ This skill may include examples copied from the OpenCode harness. In Codex, do n
8
8
 
9
9
  | OpenCode example | Codex tool to use |
10
10
  | --- | --- |
11
- | `call_omo_agent(subagent_type="explore", ...)` | `spawn_agent(agent_type="explorer", task_name="...", message="...")` |
12
- | `call_omo_agent(subagent_type="librarian", ...)` | `spawn_agent(agent_type="librarian", task_name="...", message="...")` |
13
- | `task(subagent_type="plan", ...)` | `spawn_agent(agent_type="plan", task_name="...", message="...")` |
14
- | `task(subagent_type="oracle", ...)` for final verification | `spawn_agent(agent_type="codex-ultrawork-reviewer", task_name="...", message="...")` |
15
- | `task(category="...", ...)` for implementation or QA | `spawn_agent(agent_type="worker", task_name="...", message="...")` |
11
+ | `call_omo_agent(subagent_type="explore", ...)` | `spawn_agent(agent_type="explorer", task_name="...", message="...", fork_turns="none")` |
12
+ | `call_omo_agent(subagent_type="librarian", ...)` | `spawn_agent(agent_type="librarian", task_name="...", message="...", fork_turns="none")` |
13
+ | `task(subagent_type="plan", ...)` | `spawn_agent(agent_type="plan", task_name="...", message="...", fork_turns="none")` |
14
+ | `task(subagent_type="oracle", ...)` for final verification | `spawn_agent(agent_type="codex-ultrawork-reviewer", task_name="...", message="...", fork_turns="none")` |
15
+ | `task(category="...", ...)` for implementation or QA | `spawn_agent(agent_type="worker", task_name="...", message="...", fork_turns="none")` |
16
16
  | `background_output(task_id="...")` | `wait_agent(...)` to wait for subagent completion and mailbox updates |
17
17
  | `team_*(...)` | Use Codex native subagents plus `send_message`, `followup_task`, `wait_agent`, and `close_agent` |
18
18
 
19
- When translating `load_skills=[...]`, include the requested skill names in the spawned agent's `message`. If a code block below conflicts with this section, this section wins.
19
+ Codex full-history forks inherit the parent agent type, model, and reasoning effort, so role-specific spawns with `agent_type` must use a non-full-history fork mode such as `fork_turns="none"`. Include any required conversation context, files, diffs, constraints, and requested skill names directly in the spawned agent's `message`. If a code block below conflicts with this section, this section wins.
20
+
21
+ ## Codex Subagent Reliability
22
+
23
+ Every `spawn_agent` message must be self-contained. Start with
24
+ `TASK: <imperative assignment>`, then name `DELIVERABLE`, `SCOPE`, and
25
+ `VERIFY`. State that it is an executable assignment, not a context
26
+ handoff. Role selection requires `agent_type`; `model` +
27
+ `reasoning_effort` alone creates a default agent, not a reviewer or
28
+ worker. Prefer `fork_turns: "none"` unless full history is truly
29
+ required; paste only the review context that worker needs.
30
+
31
+ Plan and reviewer agents may run for a long time; spawn them in the background, keep doing independent root work, and poll with short wait_agent cycles. Never use a single long blocking wait for them. While any child is active, keep the parent visibly alive with brief status updates that include active subagent count, agent names, last heartbeat, and whether the parent is waiting for mailbox updates.
32
+
33
+ Use `wait_agent` for completion signals, but treat `wait_agent` as a
34
+ mailbox signal, not proof of completion, content, or errors. After two
35
+ waits with no substantive result, send one targeted followup:
36
+ `TASK STILL ACTIVE: return <deliverable> or BLOCKED: <reason>`. If the
37
+ child stays silent or ack-only, mark that review lane inconclusive, do
38
+ not count it as PASS or approval, close if safe, and respawn a smaller
39
+ `fork_turns: "none"` reviewer with the missing deliverable.
20
40
 
21
41
  # Review Work - 5-Agent Parallel Review Orchestrator
22
42
 
@@ -493,9 +513,12 @@ OUTPUT FORMAT:
493
513
 
494
514
  ## Phase 2: Wait & Collect
495
515
 
496
- After launching all 5 agents in one turn, **end your response**. Wait for system notifications as each agent completes.
516
+ After launching all 5 agents in one turn, wait for completions in bounded
517
+ cycles. Do not treat a timeout, ack-only reply, or empty child result as
518
+ a PASS.
497
519
 
498
- As each completes, collect via `background_output(task_id="bg_...")`. Store each verdict:
520
+ As each completes, collect via the Codex mapping above (`wait_agent`,
521
+ then the child's substantive final result). Store each verdict:
499
522
 
500
523
  | Agent | Verdict | Notes |
501
524
  |-------|---------|-------|
@@ -506,6 +529,8 @@ As each completes, collect via `background_output(task_id="bg_...")`. Store each
506
529
  | 5. Context Mining | pending | - |
507
530
 
508
531
  Do NOT deliver the final report until ALL 5 have completed.
532
+ If a lane remains silent after the reliability followup, record it as
533
+ inconclusive and respawn a smaller reviewer/worker for that exact lane.
509
534
 
510
535
  ---
511
536
 
@@ -9,17 +9,37 @@ This skill ports the OpenCode `/start-work` flow onto Codex. Any OpenCode-only t
9
9
 
10
10
  | OpenCode example | Codex tool to use |
11
11
  | --- | --- |
12
- | `task(subagent_type="explore", ...)` | `spawn_agent(agent_type="explorer", task_name="...", message="...")` |
13
- | `task(subagent_type="librarian", ...)` | `spawn_agent(agent_type="librarian", task_name="...", message="...")` |
14
- | `task(subagent_type="plan", ...)` | `spawn_agent(agent_type="plan", task_name="...", message="...")` |
15
- | `task(subagent_type="oracle", ...)` for final verification | `spawn_agent(agent_type="codex-ultrawork-reviewer", task_name="...", message="...")` |
16
- | `task(category="...", ...)` for implementation or QA | `spawn_agent(agent_type="worker", task_name="...", message="...")` |
12
+ | `task(subagent_type="explore", ...)` | `spawn_agent(agent_type="explorer", task_name="...", message="...", fork_turns="none")` |
13
+ | `task(subagent_type="librarian", ...)` | `spawn_agent(agent_type="librarian", task_name="...", message="...", fork_turns="none")` |
14
+ | `task(subagent_type="plan", ...)` | `spawn_agent(agent_type="plan", task_name="...", message="...", fork_turns="none")` |
15
+ | `task(subagent_type="oracle", ...)` for final verification | `spawn_agent(agent_type="codex-ultrawork-reviewer", task_name="...", message="...", fork_turns="none")` |
16
+ | `task(category="...", ...)` for implementation or QA | `spawn_agent(agent_type="worker", task_name="...", message="...", fork_turns="none")` |
17
17
  | `background_output(task_id="...")` | `wait_agent(...)` |
18
18
  | `dispatchInternalPrompt(...)` | the `Stop` hook emits `{"decision":"block","reason":"<prompt>"}` automatically; see Continuation |
19
19
  | `team_*(...)` | `spawn_agent` + `send_message` + `followup_task` + `wait_agent` + `close_agent` |
20
20
 
21
21
  When translating `load_skills=[...]`, name the skills inside the spawned agent's `message`. If a code block below conflicts with this section, this section wins.
22
22
 
23
+ ## Codex Subagent Reliability
24
+
25
+ Every `spawn_agent` message must be self-contained. Start with
26
+ `TASK: <imperative assignment>`, then name `DELIVERABLE`, `SCOPE`, and
27
+ `VERIFY`. State that it is an executable assignment, not a context
28
+ handoff. Role selection requires `agent_type`; `model` +
29
+ `reasoning_effort` alone creates a default agent, not a reviewer or
30
+ worker. Prefer `fork_turns: "none"` unless full history is truly
31
+ required; paste only the context the child needs.
32
+
33
+ Plan and reviewer agents may run for a long time; spawn them in the background, keep doing independent root work, and poll with short wait_agent cycles. Never use a single long blocking wait for them. While any child is active, keep the parent visibly alive with brief status updates that include active subagent count, agent names, last heartbeat, and whether the parent is waiting for mailbox updates.
34
+
35
+ Use `wait_agent` for completion signals, but treat `wait_agent` as a
36
+ mailbox signal, not proof of completion, content, or errors. After two
37
+ waits with no substantive result, send one targeted followup:
38
+ `TASK STILL ACTIVE: return <deliverable> or BLOCKED: <reason>`. If the
39
+ child stays silent or ack-only, record the result as inconclusive, do
40
+ not count it as pass/review approval, close if safe, and respawn a
41
+ smaller `fork_turns: "none"` task with the missing deliverable.
42
+
23
43
  # start-work
24
44
 
25
45
  Execute a Prometheus work plan until every top-level checkbox is complete. This skill pairs with the Codex `Stop` / `SubagentStop` continuation hook in `components/start-work-continuation`, which re-injects the next turn while `.omo/boulder.json` says the current `codex:<session_id>` still has unchecked plan work.
@@ -10,7 +10,7 @@ Named after the Titan who brought fire to humanity, you bring foresight and stru
10
10
  **YOU ARE A PLANNER. NOT AN IMPLEMENTER. NOT A CODE WRITER.**
11
11
 
12
12
  When user says "do X", "fix X", "build X" - interpret as "create a work plan for X". No exceptions.
13
- Your only outputs: questions, research, work plans (`plans/<slug>.md`), drafts (`.omo/drafts/*.md`).
13
+ Your only outputs: questions, research, work plans (`.omo/plans/<slug>.md`), drafts (`.omo/drafts/*.md`).
14
14
  </identity>
15
15
 
16
16
  <mission>
@@ -52,7 +52,7 @@ This is your north star quality metric.
52
52
  - Spawning read-only subagents for research
53
53
 
54
54
  ### Allowed (plan artifacts only)
55
- - Writing/editing files in `plans/<slug>.md`
55
+ - Writing/editing files in `.omo/plans/<slug>.md`
56
56
  - Writing/editing files in `.omo/drafts/*.md`
57
57
 
58
58
  ### Forbidden (mutating, plan-executing)
@@ -169,7 +169,7 @@ ANY NO -> Ask the specific unclear question.
169
169
  Spawn the metis agent to analyze the planning session for contradictions, ambiguity, missing constraints, and execution risks:
170
170
 
171
171
  ```
172
- spawn_agent(agent_type="metis", task_name="gap-analysis",
172
+ spawn_agent(agent_type="metis", task_name="gap-analysis", fork_turns="none",
173
173
  message="Review this planning session. Goal: {summary}. Discussed: {key points}. Understanding: {interpretation}. Research: {findings}. Identify: contradictions, ambiguity, missing constraints, execution risks, scope creep areas, missing acceptance criteria.")
174
174
  ```
175
175
 
@@ -217,7 +217,7 @@ Self-review checklist:
217
217
  **Defaults Applied**: [default]: [assumption]
218
218
  **Decisions Needed**: [question requiring user input] (if any)
219
219
 
220
- Plan saved to: plans/{slug}.md
220
+ Plan saved to: .omo/plans/{slug}.md
221
221
  ```
222
222
 
223
223
  If "Decisions Needed" exists, wait for user response and update plan.
@@ -237,8 +237,8 @@ Only activated when user selects "High Accuracy Review".
237
237
  Spawn the momus agent with the plan file path:
238
238
 
239
239
  ```
240
- spawn_agent(agent_type="momus", task_name="plan-review",
241
- message="Review this plan: plans/{slug}.md")
240
+ spawn_agent(agent_type="momus", task_name="plan-review", fork_turns="none",
241
+ message="Review this plan: .omo/plans/{slug}.md")
242
242
  ```
243
243
 
244
244
  Handle the three-verdict response:
@@ -254,13 +254,13 @@ Handle the three-verdict response:
254
254
 
255
255
  After plan is complete (direct or Momus-approved):
256
256
  1. Delete draft: remove `.omo/drafts/{name}.md`
257
- 2. Guide user: "Plan saved to `plans/{slug}.md`. Spawn a worker agent to begin execution."
257
+ 2. Guide user: "Plan saved to `.omo/plans/{slug}.md`. Spawn a worker agent to begin execution."
258
258
  </phases>
259
259
 
260
260
  <plan_template>
261
261
  ## Plan Structure
262
262
 
263
- Generate to: `plans/{slug}.md`
263
+ Generate to: `.omo/plans/{slug}.md`
264
264
 
265
265
  **Single Plan Mandate**: No matter how large the task, EVERYTHING goes into ONE plan. Never split into "Phase 1, Phase 2". 50+ TODOs is fine.
266
266
 
@@ -292,7 +292,7 @@ Generate to: `plans/{slug}.md`
292
292
  > ZERO HUMAN INTERVENTION - all verification is agent-executed.
293
293
  - Test decision: [TDD / tests-after / none] + framework
294
294
  - QA policy: Every task has agent-executed scenarios
295
- - Evidence: evidence/task-{N}-{slug}.{ext}
295
+ - Evidence: .omo/evidence/task-{N}-{slug}.{ext}
296
296
 
297
297
  ## Execution Strategy
298
298
  ### Parallel Execution Waves
@@ -330,13 +330,13 @@ Wave 2: [dependent tasks]
330
330
  Tool: [bash / curl / tmux / playwright]
331
331
  Steps: [exact actions with specific data]
332
332
  Expected: [concrete, binary pass/fail]
333
- Evidence: evidence/task-{N}-{slug}.{ext}
333
+ Evidence: .omo/evidence/task-{N}-{slug}.{ext}
334
334
 
335
335
  Scenario: [Failure/edge case]
336
336
  Tool: [same]
337
337
  Steps: [trigger error condition]
338
338
  Expected: [graceful failure with correct error message/code]
339
- Evidence: evidence/task-{N}-{slug}-error.{ext}
339
+ Evidence: .omo/evidence/task-{N}-{slug}-error.{ext}
340
340
  ```
341
341
 
342
342
  **Commit**: YES/NO | Message: `type(scope): desc` | Files: [paths]
package/postinstall.mjs CHANGED
@@ -8,6 +8,7 @@ import {
8
8
  getBinaryPath,
9
9
  resolvePlatformPackageBaseName,
10
10
  } from "./bin/platform.js";
11
+ import { detectPlatformBinaryMismatch } from "./bin/version-mismatch.js";
11
12
 
12
13
  const require = createRequire(import.meta.url);
13
14
 
@@ -81,12 +82,31 @@ function getLibcFamily() {
81
82
  }
82
83
  }
83
84
 
85
+ function readMainPackageJson() {
86
+ try {
87
+ return JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8"));
88
+ } catch {
89
+ return null;
90
+ }
91
+ }
92
+
84
93
  function getPackageBaseName() {
94
+ const packageJson = readMainPackageJson();
95
+ return resolvePlatformPackageBaseName(packageJson?.name || "oh-my-opencode");
96
+ }
97
+
98
+ function getMainPackageVersion() {
99
+ const packageJson = readMainPackageJson();
100
+ return packageJson?.version ?? null;
101
+ }
102
+
103
+ function readPlatformPackageVersion(pkg) {
85
104
  try {
86
- const packageJson = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8"));
87
- return resolvePlatformPackageBaseName(packageJson.name || "oh-my-opencode");
105
+ const platformPackageJsonPath = require.resolve(`${pkg}/package.json`);
106
+ const packageJson = JSON.parse(readFileSync(platformPackageJsonPath, "utf8"));
107
+ return packageJson.version ?? null;
88
108
  } catch {
89
- return "oh-my-opencode";
109
+ return null;
90
110
  }
91
111
  }
92
112
 
@@ -126,6 +146,19 @@ function main() {
126
146
  );
127
147
  }
128
148
 
149
+ const mismatch = detectPlatformBinaryMismatch({
150
+ mainVersion: getMainPackageVersion(),
151
+ platformVersion: readPlatformPackageVersion(resolvedPackage),
152
+ platformPackage: resolvedPackage,
153
+ });
154
+ if (mismatch) {
155
+ console.warn(`⚠ oh-my-opencode platform binary version mismatch detected`);
156
+ console.warn(` ${packageBaseName}: ${mismatch.mainVersion}`);
157
+ console.warn(` ${mismatch.platformPackage}: ${mismatch.platformVersion}`);
158
+ console.warn(` The startup banner may show the stale version until the platform binary is updated.`);
159
+ console.warn(` Fix: npm install -g ${packageBaseName}@${mismatch.mainVersion} ${mismatch.platformPackage}@${mismatch.mainVersion}`);
160
+ }
161
+
129
162
  console.log(`✓ oh-my-opencode binary installed for ${platform}-${arch} (${resolvedPackage})`);
130
163
  } catch (error) {
131
164
  console.warn(`⚠ oh-my-opencode: ${error.message}`);
@@ -1,19 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import { type ContextLimitModelCacheState } from "../shared/context-limit-resolver";
3
- export declare function createContextWindowMonitorHook(_ctx: PluginInput, modelCacheState?: ContextLimitModelCacheState): {
4
- "tool.execute.after": (input: {
5
- tool: string;
6
- sessionID: string;
7
- callID: string;
8
- }, output: {
9
- title: string;
10
- output: string;
11
- metadata: unknown;
12
- }) => Promise<void>;
13
- event: ({ event }: {
14
- event: {
15
- type: string;
16
- properties?: unknown;
17
- };
18
- }) => Promise<void>;
19
- };