oh-my-codex 0.1.1

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 (182) hide show
  1. package/README.md +269 -0
  2. package/bin/omx.js +25 -0
  3. package/dist/agents/definitions.d.ts +22 -0
  4. package/dist/agents/definitions.d.ts.map +1 -0
  5. package/dist/agents/definitions.js +235 -0
  6. package/dist/agents/definitions.js.map +1 -0
  7. package/dist/cli/doctor.d.ts +11 -0
  8. package/dist/cli/doctor.d.ts.map +1 -0
  9. package/dist/cli/doctor.js +157 -0
  10. package/dist/cli/doctor.js.map +1 -0
  11. package/dist/cli/index.d.ts +6 -0
  12. package/dist/cli/index.d.ts.map +1 -0
  13. package/dist/cli/index.js +266 -0
  14. package/dist/cli/index.js.map +1 -0
  15. package/dist/cli/setup.d.ts +12 -0
  16. package/dist/cli/setup.d.ts.map +1 -0
  17. package/dist/cli/setup.js +175 -0
  18. package/dist/cli/setup.js.map +1 -0
  19. package/dist/cli/version.d.ts +2 -0
  20. package/dist/cli/version.d.ts.map +1 -0
  21. package/dist/cli/version.js +17 -0
  22. package/dist/cli/version.js.map +1 -0
  23. package/dist/config/generator.d.ts +14 -0
  24. package/dist/config/generator.d.ts.map +1 -0
  25. package/dist/config/generator.js +106 -0
  26. package/dist/config/generator.js.map +1 -0
  27. package/dist/hooks/__tests__/agents-overlay.test.d.ts +8 -0
  28. package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +1 -0
  29. package/dist/hooks/__tests__/agents-overlay.test.js +148 -0
  30. package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -0
  31. package/dist/hooks/agents-overlay.d.ts +34 -0
  32. package/dist/hooks/agents-overlay.d.ts.map +1 -0
  33. package/dist/hooks/agents-overlay.js +265 -0
  34. package/dist/hooks/agents-overlay.js.map +1 -0
  35. package/dist/hooks/emulator.d.ts +44 -0
  36. package/dist/hooks/emulator.d.ts.map +1 -0
  37. package/dist/hooks/emulator.js +108 -0
  38. package/dist/hooks/emulator.js.map +1 -0
  39. package/dist/hooks/keyword-detector.d.ts +27 -0
  40. package/dist/hooks/keyword-detector.d.ts.map +1 -0
  41. package/dist/hooks/keyword-detector.js +63 -0
  42. package/dist/hooks/keyword-detector.js.map +1 -0
  43. package/dist/hooks/session.d.ts +38 -0
  44. package/dist/hooks/session.d.ts.map +1 -0
  45. package/dist/hooks/session.js +135 -0
  46. package/dist/hooks/session.js.map +1 -0
  47. package/dist/hud/colors.d.ts +26 -0
  48. package/dist/hud/colors.d.ts.map +1 -0
  49. package/dist/hud/colors.js +71 -0
  50. package/dist/hud/colors.js.map +1 -0
  51. package/dist/hud/index.d.ts +12 -0
  52. package/dist/hud/index.d.ts.map +1 -0
  53. package/dist/hud/index.js +107 -0
  54. package/dist/hud/index.js.map +1 -0
  55. package/dist/hud/render.d.ts +9 -0
  56. package/dist/hud/render.d.ts.map +1 -0
  57. package/dist/hud/render.js +192 -0
  58. package/dist/hud/render.js.map +1 -0
  59. package/dist/hud/state.d.ts +21 -0
  60. package/dist/hud/state.d.ts.map +1 -0
  61. package/dist/hud/state.js +101 -0
  62. package/dist/hud/state.js.map +1 -0
  63. package/dist/hud/types.d.ts +87 -0
  64. package/dist/hud/types.d.ts.map +1 -0
  65. package/dist/hud/types.js +8 -0
  66. package/dist/hud/types.js.map +1 -0
  67. package/dist/index.d.ts +18 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +18 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/mcp/code-intel-server.d.ts +7 -0
  72. package/dist/mcp/code-intel-server.d.ts.map +1 -0
  73. package/dist/mcp/code-intel-server.js +567 -0
  74. package/dist/mcp/code-intel-server.js.map +1 -0
  75. package/dist/mcp/memory-server.d.ts +7 -0
  76. package/dist/mcp/memory-server.d.ts.map +1 -0
  77. package/dist/mcp/memory-server.js +359 -0
  78. package/dist/mcp/memory-server.js.map +1 -0
  79. package/dist/mcp/state-server.d.ts +7 -0
  80. package/dist/mcp/state-server.d.ts.map +1 -0
  81. package/dist/mcp/state-server.js +181 -0
  82. package/dist/mcp/state-server.js.map +1 -0
  83. package/dist/mcp/trace-server.d.ts +7 -0
  84. package/dist/mcp/trace-server.d.ts.map +1 -0
  85. package/dist/mcp/trace-server.js +205 -0
  86. package/dist/mcp/trace-server.js.map +1 -0
  87. package/dist/modes/base.d.ts +50 -0
  88. package/dist/modes/base.d.ts.map +1 -0
  89. package/dist/modes/base.js +140 -0
  90. package/dist/modes/base.js.map +1 -0
  91. package/dist/notifications/notifier.d.ts +30 -0
  92. package/dist/notifications/notifier.d.ts.map +1 -0
  93. package/dist/notifications/notifier.js +124 -0
  94. package/dist/notifications/notifier.js.map +1 -0
  95. package/dist/team/orchestrator.d.ts +54 -0
  96. package/dist/team/orchestrator.d.ts.map +1 -0
  97. package/dist/team/orchestrator.js +106 -0
  98. package/dist/team/orchestrator.js.map +1 -0
  99. package/dist/utils/package.d.ts +9 -0
  100. package/dist/utils/package.d.ts.map +1 -0
  101. package/dist/utils/package.js +31 -0
  102. package/dist/utils/package.js.map +1 -0
  103. package/dist/utils/paths.d.ts +27 -0
  104. package/dist/utils/paths.d.ts.map +1 -0
  105. package/dist/utils/paths.js +60 -0
  106. package/dist/utils/paths.js.map +1 -0
  107. package/dist/verification/verifier.d.ts +32 -0
  108. package/dist/verification/verifier.d.ts.map +1 -0
  109. package/dist/verification/verifier.js +81 -0
  110. package/dist/verification/verifier.js.map +1 -0
  111. package/package.json +54 -0
  112. package/prompts/analyst.md +110 -0
  113. package/prompts/api-reviewer.md +98 -0
  114. package/prompts/architect.md +109 -0
  115. package/prompts/build-fixer.md +89 -0
  116. package/prompts/code-reviewer.md +105 -0
  117. package/prompts/critic.md +87 -0
  118. package/prompts/debugger.md +93 -0
  119. package/prompts/deep-executor.md +112 -0
  120. package/prompts/dependency-expert.md +99 -0
  121. package/prompts/designer.md +103 -0
  122. package/prompts/executor.md +99 -0
  123. package/prompts/explore.md +112 -0
  124. package/prompts/git-master.md +92 -0
  125. package/prompts/information-architect.md +267 -0
  126. package/prompts/performance-reviewer.md +94 -0
  127. package/prompts/planner.md +116 -0
  128. package/prompts/product-analyst.md +299 -0
  129. package/prompts/product-manager.md +255 -0
  130. package/prompts/qa-tester.md +98 -0
  131. package/prompts/quality-reviewer.md +105 -0
  132. package/prompts/quality-strategist.md +227 -0
  133. package/prompts/researcher.md +96 -0
  134. package/prompts/scientist.md +92 -0
  135. package/prompts/security-reviewer.md +125 -0
  136. package/prompts/style-reviewer.md +87 -0
  137. package/prompts/test-engineer.md +103 -0
  138. package/prompts/ux-researcher.md +282 -0
  139. package/prompts/verifier.md +95 -0
  140. package/prompts/vision.md +75 -0
  141. package/prompts/writer.md +86 -0
  142. package/scripts/notify-hook.js +237 -0
  143. package/skills/analyze/SKILL.md +93 -0
  144. package/skills/autopilot/SKILL.md +175 -0
  145. package/skills/build-fix/SKILL.md +123 -0
  146. package/skills/cancel/SKILL.md +387 -0
  147. package/skills/code-review/SKILL.md +208 -0
  148. package/skills/configure-discord/SKILL.md +256 -0
  149. package/skills/configure-telegram/SKILL.md +232 -0
  150. package/skills/deepinit/SKILL.md +320 -0
  151. package/skills/deepsearch/SKILL.md +38 -0
  152. package/skills/doctor/SKILL.md +193 -0
  153. package/skills/ecomode/SKILL.md +114 -0
  154. package/skills/frontend-ui-ux/SKILL.md +34 -0
  155. package/skills/git-master/SKILL.md +29 -0
  156. package/skills/help/SKILL.md +192 -0
  157. package/skills/hud/SKILL.md +97 -0
  158. package/skills/learn-about-omx/SKILL.md +37 -0
  159. package/skills/learner/SKILL.md +135 -0
  160. package/skills/note/SKILL.md +62 -0
  161. package/skills/omx-setup/SKILL.md +1147 -0
  162. package/skills/pipeline/SKILL.md +407 -0
  163. package/skills/plan/SKILL.md +223 -0
  164. package/skills/project-session-manager/SKILL.md +560 -0
  165. package/skills/psm/SKILL.md +20 -0
  166. package/skills/ralph/SKILL.md +197 -0
  167. package/skills/ralph-init/SKILL.md +38 -0
  168. package/skills/ralplan/SKILL.md +34 -0
  169. package/skills/release/SKILL.md +83 -0
  170. package/skills/research/SKILL.md +510 -0
  171. package/skills/review/SKILL.md +30 -0
  172. package/skills/security-review/SKILL.md +284 -0
  173. package/skills/skill/SKILL.md +837 -0
  174. package/skills/swarm/SKILL.md +25 -0
  175. package/skills/tdd/SKILL.md +106 -0
  176. package/skills/team/SKILL.md +860 -0
  177. package/skills/trace/SKILL.md +33 -0
  178. package/skills/ultrapilot/SKILL.md +632 -0
  179. package/skills/ultraqa/SKILL.md +130 -0
  180. package/skills/ultrawork/SKILL.md +143 -0
  181. package/skills/writer-memory/SKILL.md +443 -0
  182. package/templates/AGENTS.md +326 -0
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: ultraqa
3
+ description: QA cycling workflow - test, verify, fix, repeat until goal met
4
+ ---
5
+
6
+ # UltraQA Skill
7
+
8
+ [ULTRAQA ACTIVATED - AUTONOMOUS QA CYCLING]
9
+
10
+ ## Overview
11
+
12
+ You are now in **ULTRAQA** mode - an autonomous QA cycling workflow that runs until your quality goal is met.
13
+
14
+ **Cycle**: qa-tester → architect verification → fix → repeat
15
+
16
+ ## Goal Parsing
17
+
18
+ Parse the goal from arguments. Supported formats:
19
+
20
+ | Invocation | Goal Type | What to Check |
21
+ |------------|-----------|---------------|
22
+ | `/ultraqa --tests` | tests | All test suites pass |
23
+ | `/ultraqa --build` | build | Build succeeds with exit 0 |
24
+ | `/ultraqa --lint` | lint | No lint errors |
25
+ | `/ultraqa --typecheck` | typecheck | No TypeScript errors |
26
+ | `/ultraqa --custom "pattern"` | custom | Custom success pattern in output |
27
+
28
+ If no structured goal provided, interpret the argument as a custom goal.
29
+
30
+ ## Cycle Workflow
31
+
32
+ ### Cycle N (Max 5)
33
+
34
+ 1. **RUN QA**: Execute verification based on goal type
35
+ - `--tests`: Run the project's test command
36
+ - `--build`: Run the project's build command
37
+ - `--lint`: Run the project's lint command
38
+ - `--typecheck`: Run the project's type check command
39
+ - `--custom`: Run appropriate command and check for pattern
40
+ - `--interactive`: Use qa-tester for interactive CLI/service testing:
41
+ ```
42
+ spawn_sub_agent(subagent_type="oh-my-codex:qa-tester", model="sonnet", prompt="TEST:
43
+ Goal: [describe what to verify]
44
+ Service: [how to start]
45
+ Test cases: [specific scenarios to verify]")
46
+ ```
47
+
48
+ 2. **CHECK RESULT**: Did the goal pass?
49
+ - **YES** → Exit with success message
50
+ - **NO** → Continue to step 3
51
+
52
+ 3. **ARCHITECT DIAGNOSIS**: Spawn architect to analyze failure
53
+ ```
54
+ spawn_sub_agent(subagent_type="oh-my-codex:architect", model="opus", prompt="DIAGNOSE FAILURE:
55
+ Goal: [goal type]
56
+ Output: [test/build output]
57
+ Provide root cause and specific fix recommendations.")
58
+ ```
59
+
60
+ 4. **FIX ISSUES**: Apply architect's recommendations
61
+ ```
62
+ spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", prompt="FIX:
63
+ Issue: [architect diagnosis]
64
+ Files: [affected files]
65
+ Apply the fix precisely as recommended.")
66
+ ```
67
+
68
+ 5. **REPEAT**: Go back to step 1
69
+
70
+ ## Exit Conditions
71
+
72
+ | Condition | Action |
73
+ |-----------|--------|
74
+ | **Goal Met** | Exit with success: "ULTRAQA COMPLETE: Goal met after N cycles" |
75
+ | **Cycle 5 Reached** | Exit with diagnosis: "ULTRAQA STOPPED: Max cycles. Diagnosis: ..." |
76
+ | **Same Failure 3x** | Exit early: "ULTRAQA STOPPED: Same failure detected 3 times. Root cause: ..." |
77
+ | **Environment Error** | Exit: "ULTRAQA ERROR: [tmux/port/dependency issue]" |
78
+
79
+ ## Observability
80
+
81
+ Output progress each cycle:
82
+ ```
83
+ [ULTRAQA Cycle 1/5] Running tests...
84
+ [ULTRAQA Cycle 1/5] FAILED - 3 tests failing
85
+ [ULTRAQA Cycle 1/5] Architect diagnosing...
86
+ [ULTRAQA Cycle 1/5] Fixing: auth.test.ts - missing mock
87
+ [ULTRAQA Cycle 2/5] Running tests...
88
+ [ULTRAQA Cycle 2/5] PASSED - All 47 tests pass
89
+ [ULTRAQA COMPLETE] Goal met after 2 cycles
90
+ ```
91
+
92
+ ## State Tracking
93
+
94
+ Use `omx_state` MCP tools for UltraQA lifecycle state.
95
+
96
+ - **On start**:
97
+ `state_write({mode: "ultraqa", active: true, current_phase: "qa", iteration: 1, started_at: "<now>"})`
98
+ - **On each cycle**:
99
+ `state_write({mode: "ultraqa", current_phase: "qa", iteration: <cycle>})`
100
+ - **On diagnose/fix transitions**:
101
+ `state_write({mode: "ultraqa", current_phase: "diagnose"})`
102
+ `state_write({mode: "ultraqa", current_phase: "fix"})`
103
+ - **On completion**:
104
+ `state_write({mode: "ultraqa", active: false, current_phase: "complete", completed_at: "<now>"})`
105
+ - **For resume detection**:
106
+ `state_read({mode: "ultraqa"})`
107
+
108
+ ## Cancellation
109
+
110
+ User can cancel with `/cancel` which clears the state file.
111
+
112
+ ## Important Rules
113
+
114
+ 1. **PARALLEL when possible** - Run diagnosis while preparing potential fixes
115
+ 2. **TRACK failures** - Record each failure to detect patterns
116
+ 3. **EARLY EXIT on pattern** - 3x same failure = stop and surface
117
+ 4. **CLEAR OUTPUT** - User should always know current cycle and status
118
+ 5. **CLEAN UP** - Clear state file on completion or cancellation
119
+
120
+ ## STATE CLEANUP ON COMPLETION
121
+
122
+ When goal is met OR max cycles reached OR exiting early, run `$cancel` or call:
123
+
124
+ `state_clear({mode: "ultraqa"})`
125
+
126
+ Use MCP state cleanup rather than deleting files directly.
127
+
128
+ ---
129
+
130
+ Begin ULTRAQA cycling now. Parse the goal and start cycle 1.
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: ultrawork
3
+ description: Parallel execution engine for high-throughput task completion
4
+ ---
5
+
6
+ <Purpose>
7
+ Ultrawork is a parallel execution engine that runs multiple agents simultaneously for independent tasks. It is a component, not a standalone persistence mode -- it provides parallelism and smart model routing but not persistence, verification loops, or state management.
8
+ </Purpose>
9
+
10
+ <Use_When>
11
+ - Multiple independent tasks can run simultaneously
12
+ - User says "ulw", "ultrawork", or wants parallel execution
13
+ - You need to delegate work to multiple agents at once
14
+ - Task benefits from concurrent execution but the user will manage completion themselves
15
+ </Use_When>
16
+
17
+ <Do_Not_Use_When>
18
+ - Task requires guaranteed completion with verification -- use `ralph` instead (ralph includes ultrawork)
19
+ - Task requires a full autonomous pipeline -- use `autopilot` instead (autopilot includes ralph which includes ultrawork)
20
+ - There is only one sequential task with no parallelism opportunity -- delegate directly to an executor agent
21
+ - User needs session persistence for resume -- use `ralph` which adds persistence on top of ultrawork
22
+ </Do_Not_Use_When>
23
+
24
+ <Why_This_Exists>
25
+ Sequential task execution wastes time when tasks are independent. Ultrawork enables firing multiple agents simultaneously and routing each to the right model tier, reducing total execution time while controlling token costs. It is designed as a composable component that ralph and autopilot layer on top of.
26
+ </Why_This_Exists>
27
+
28
+ <Execution_Policy>
29
+ - Fire all independent agent calls simultaneously -- never serialize independent work
30
+ - Always pass the `model` parameter explicitly when delegating
31
+ - Read `docs/shared/agent-tiers.md` before first delegation for agent selection guidance
32
+ - Use `run_in_background: true` for operations over ~30 seconds (installs, builds, tests)
33
+ - Run quick commands (git status, file reads, simple checks) in the foreground
34
+ </Execution_Policy>
35
+
36
+ <Steps>
37
+ 1. **Read agent reference**: Load `docs/shared/agent-tiers.md` for tier selection
38
+ 2. **Classify tasks by independence**: Identify which tasks can run in parallel vs which have dependencies
39
+ 3. **Route to correct tiers**:
40
+ - Simple lookups/definitions: LOW tier (Haiku)
41
+ - Standard implementation: MEDIUM tier (Sonnet)
42
+ - Complex analysis/refactoring: HIGH tier (Opus)
43
+ 4. **Fire independent tasks simultaneously**: Launch all parallel-safe tasks at once
44
+ 5. **Run dependent tasks sequentially**: Wait for prerequisites before launching dependent work
45
+ 6. **Background long operations**: Builds, installs, and test suites use `run_in_background: true`
46
+ 7. **Verify when all tasks complete** (lightweight):
47
+ - Build/typecheck passes
48
+ - Affected tests pass
49
+ - No new errors introduced
50
+ </Steps>
51
+
52
+ <Tool_Usage>
53
+ - Use `spawn_sub_agent(subagent_type="oh-my-codex:executor-low", model="haiku", ...)` for simple changes
54
+ - Use `spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", ...)` for standard work
55
+ - Use `spawn_sub_agent(subagent_type="oh-my-codex:executor-high", model="opus", ...)` for complex work
56
+ - Use `run_in_background: true` for package installs, builds, and test suites
57
+ - Use foreground execution for quick status checks and file operations
58
+ </Tool_Usage>
59
+
60
+ ## State Management
61
+
62
+ Use `omx_state` MCP tools for ultrawork lifecycle state.
63
+
64
+ - **On start**:
65
+ `state_write({mode: "ultrawork", active: true, reinforcement_count: 1, started_at: "<now>"})`
66
+ - **On each reinforcement/loop step**:
67
+ `state_write({mode: "ultrawork", reinforcement_count: <current>})`
68
+ - **On completion**:
69
+ `state_write({mode: "ultrawork", active: false})`
70
+ - **On cancellation/cleanup**:
71
+ run `$cancel` (which should call `state_clear(mode="ultrawork")`)
72
+
73
+ <Examples>
74
+ <Good>
75
+ Three independent tasks fired simultaneously:
76
+ ```
77
+ spawn_sub_agent(subagent_type="oh-my-codex:executor-low", model="haiku", prompt="Add missing type export for Config interface")
78
+ spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", prompt="Implement the /api/users endpoint with validation")
79
+ spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", prompt="Add integration tests for the auth middleware")
80
+ ```
81
+ Why good: Independent tasks at appropriate tiers, all fired at once.
82
+ </Good>
83
+
84
+ <Good>
85
+ Correct use of background execution:
86
+ ```
87
+ spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", prompt="npm install && npm run build", run_in_background=true)
88
+ spawn_sub_agent(subagent_type="oh-my-codex:executor-low", model="haiku", prompt="Update the README with new API endpoints")
89
+ ```
90
+ Why good: Long build runs in background while short task runs in foreground.
91
+ </Good>
92
+
93
+ <Bad>
94
+ Sequential execution of independent work:
95
+ ```
96
+ result1 = spawn_sub_agent(executor-low, "Add type export") # wait...
97
+ result2 = spawn_sub_agent(executor, "Implement endpoint") # wait...
98
+ result3 = spawn_sub_agent(executor, "Add tests") # wait...
99
+ ```
100
+ Why bad: These tasks are independent. Running them sequentially wastes time.
101
+ </Bad>
102
+
103
+ <Bad>
104
+ Wrong tier selection:
105
+ ```
106
+ spawn_sub_agent(subagent_type="oh-my-codex:executor-high", model="opus", prompt="Add a missing semicolon")
107
+ ```
108
+ Why bad: Opus is expensive overkill for a trivial fix. Use executor-low with Haiku instead.
109
+ </Bad>
110
+ </Examples>
111
+
112
+ <Escalation_And_Stop_Conditions>
113
+ - When ultrawork is invoked directly (not via ralph), apply lightweight verification only -- build passes, tests pass, no new errors
114
+ - For full persistence and comprehensive architect verification, recommend switching to `ralph` mode
115
+ - If a task fails repeatedly across retries, report the issue rather than retrying indefinitely
116
+ - Escalate to the user when tasks have unclear dependencies or conflicting requirements
117
+ </Escalation_And_Stop_Conditions>
118
+
119
+ <Final_Checklist>
120
+ - [ ] All parallel tasks completed
121
+ - [ ] Build/typecheck passes
122
+ - [ ] Affected tests pass
123
+ - [ ] No new errors introduced
124
+ </Final_Checklist>
125
+
126
+ <Advanced>
127
+ ## Relationship to Other Modes
128
+
129
+ ```
130
+ ralph (persistence wrapper)
131
+ \-- includes: ultrawork (this skill)
132
+ \-- provides: parallel execution only
133
+
134
+ autopilot (autonomous execution)
135
+ \-- includes: ralph
136
+ \-- includes: ultrawork (this skill)
137
+
138
+ ecomode (token efficiency)
139
+ \-- modifies: ultrawork's model selection
140
+ ```
141
+
142
+ Ultrawork is the parallelism layer. Ralph adds persistence and verification. Autopilot adds the full lifecycle pipeline. Ecomode adjusts ultrawork's model routing to favor cheaper models.
143
+ </Advanced>