oh-my-codex 0.3.3 → 0.3.5

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 (68) hide show
  1. package/README.md +128 -271
  2. package/dist/cli/__tests__/index.test.js +30 -1
  3. package/dist/cli/__tests__/index.test.js.map +1 -1
  4. package/dist/cli/index.d.ts +3 -0
  5. package/dist/cli/index.d.ts.map +1 -1
  6. package/dist/cli/index.js +125 -5
  7. package/dist/cli/index.js.map +1 -1
  8. package/dist/cli/setup.d.ts.map +1 -1
  9. package/dist/cli/setup.js +48 -1
  10. package/dist/cli/setup.js.map +1 -1
  11. package/dist/team/__tests__/tmux-session.test.js +116 -0
  12. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  13. package/dist/team/tmux-session.d.ts +1 -1
  14. package/dist/team/tmux-session.d.ts.map +1 -1
  15. package/dist/team/tmux-session.js +44 -4
  16. package/dist/team/tmux-session.js.map +1 -1
  17. package/package.json +1 -1
  18. package/prompts/analyst.md +102 -105
  19. package/prompts/api-reviewer.md +90 -93
  20. package/prompts/architect.md +102 -104
  21. package/prompts/build-fixer.md +81 -84
  22. package/prompts/code-reviewer.md +98 -100
  23. package/prompts/critic.md +79 -82
  24. package/prompts/debugger.md +85 -88
  25. package/prompts/deep-executor.md +105 -107
  26. package/prompts/dependency-expert.md +91 -94
  27. package/prompts/designer.md +96 -98
  28. package/prompts/executor.md +92 -94
  29. package/prompts/explore.md +104 -107
  30. package/prompts/git-master.md +84 -87
  31. package/prompts/information-architect.md +28 -29
  32. package/prompts/performance-reviewer.md +86 -89
  33. package/prompts/planner.md +108 -111
  34. package/prompts/product-analyst.md +28 -29
  35. package/prompts/product-manager.md +33 -34
  36. package/prompts/qa-tester.md +90 -93
  37. package/prompts/quality-reviewer.md +98 -100
  38. package/prompts/quality-strategist.md +33 -34
  39. package/prompts/researcher.md +88 -91
  40. package/prompts/scientist.md +84 -87
  41. package/prompts/security-reviewer.md +119 -121
  42. package/prompts/style-reviewer.md +79 -82
  43. package/prompts/test-engineer.md +96 -98
  44. package/prompts/ux-researcher.md +28 -29
  45. package/prompts/verifier.md +87 -90
  46. package/prompts/vision.md +67 -70
  47. package/prompts/writer.md +78 -81
  48. package/skills/analyze/SKILL.md +1 -1
  49. package/skills/autopilot/SKILL.md +11 -16
  50. package/skills/code-review/SKILL.md +1 -1
  51. package/skills/configure-discord/SKILL.md +6 -6
  52. package/skills/configure-telegram/SKILL.md +6 -6
  53. package/skills/doctor/SKILL.md +47 -45
  54. package/skills/ecomode/SKILL.md +1 -1
  55. package/skills/frontend-ui-ux/SKILL.md +2 -2
  56. package/skills/help/SKILL.md +1 -1
  57. package/skills/learner/SKILL.md +5 -5
  58. package/skills/omx-setup/SKILL.md +47 -1109
  59. package/skills/plan/SKILL.md +1 -1
  60. package/skills/project-session-manager/SKILL.md +5 -5
  61. package/skills/release/SKILL.md +3 -3
  62. package/skills/research/SKILL.md +10 -15
  63. package/skills/security-review/SKILL.md +1 -1
  64. package/skills/skill/SKILL.md +20 -20
  65. package/skills/tdd/SKILL.md +1 -1
  66. package/skills/ultrapilot/SKILL.md +11 -16
  67. package/skills/writer-memory/SKILL.md +1 -1
  68. package/templates/AGENTS.md +7 -7
package/README.md CHANGED
@@ -4,337 +4,190 @@
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Node.js](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](https://nodejs.org)
6
6
 
7
- Multi-agent orchestration for [OpenAI Codex CLI](https://github.com/openai/codex). Inspired by [oh-my-claudecode](https://github.com/Yeachan-Heo/oh-my-claudecode).
7
+ Multi-agent orchestration layer for [OpenAI Codex CLI](https://github.com/openai/codex).
8
8
 
9
- ## Why oh-my-codex?
9
+ OMX turns Codex from a single-session agent into a coordinated system with:
10
+ - Role prompts (`/prompts:name`) for specialized agents
11
+ - Workflow skills (`$name`) for repeatable execution modes
12
+ - Team orchestration in tmux (`omx team`, `$team`)
13
+ - Persistent state + memory via MCP servers
10
14
 
11
- Codex CLI is powerful on its own. OMX makes it **orchestrated**:
15
+ ## Why OMX
12
16
 
13
- | Vanilla Codex CLI | With oh-my-codex |
14
- |-------------------|-------------------|
15
- | Single agent, single prompt | 30 specialized agents with role-specific prompts |
16
- | Manual workflow management | 39 workflow skills (autopilot, team, plan, ralph...) |
17
- | No persistent context | Project memory, session notepad, mode state via MCP |
18
- | No multi-agent coordination | Team pipeline with verify/fix loops, up to 6 concurrent agents |
19
- | No verification protocol | Evidence-backed verification with architect sign-off |
17
+ Codex CLI is strong for direct tasks. OMX adds structure for larger work:
18
+ - Decomposition and staged execution (`team-plan -> team-prd -> team-exec -> team-verify -> team-fix`)
19
+ - Persistent mode lifecycle state (`.omx/state/`)
20
+ - Memory + notepad surfaces for long-running sessions
21
+ - Operational controls for launch, verification, and cancellation
20
22
 
21
- **Key design decision**: OMX is a pure add-on -- not a fork. It uses Codex CLI's native extension points so you always stay on upstream.
23
+ OMX is an add-on, not a fork. It uses Codex-native extension points.
22
24
 
23
- ## Prerequisites
25
+ ## Requirements
24
26
 
25
- - **OS support**: macOS and Linux only
26
- Windows is not currently supported directly. Use **WSL2** on Windows or run on macOS.
27
- - **Node.js** >= 20
28
- - **[OpenAI Codex CLI](https://github.com/openai/codex)** installed (`npm install -g @openai/codex`)
29
- - **OpenAI API key** configured
27
+ - macOS or Linux (Windows via WSL2)
28
+ - Node.js >= 20
29
+ - Codex CLI installed (`npm install -g @openai/codex`)
30
+ - Codex auth configured
30
31
 
31
- ## Quick Start
32
+ ## Quickstart (3 minutes)
32
33
 
33
34
  ```bash
34
- # Install
35
35
  npm install -g oh-my-codex
36
-
37
- # Setup (installs prompts, skills, configures Codex CLI)
38
36
  omx setup
39
-
40
- # Verify installation
41
37
  omx doctor
42
-
43
- # Recommended launch profile (trusted / externally sandboxed environments)
44
- omx --xhigh --madmax
45
38
  ```
46
39
 
47
- Inside a Codex CLI session:
40
+ Recommended trusted-environment launch profile:
48
41
 
42
+ ```bash
43
+ omx --xhigh --madmax
49
44
  ```
50
- > /prompts:architect "analyze the authentication module"
51
- > /prompts:executor "add input validation to the login flow"
52
- > $autopilot "build a REST API for user management"
53
- > $team 3:executor "fix all TypeScript errors"
54
- ```
55
-
56
- ## Team-First Workflow
57
45
 
58
- The core release feature in OMX is coordinated team execution.
46
+ ## First Session
59
47
 
60
- - Use `$team` inside Codex when you want staged multi-agent delivery with verify/fix loops.
61
- - Use `omx team` from terminal when you want tmux worker panes plus shared task/mailbox state.
62
- - OMX includes a HUD + tmux hook workaround path for Codex CLI behavior that is not natively supported yet.
48
+ Inside Codex:
63
49
 
64
- Canonical pipeline:
65
-
66
- ```
67
- team-plan -> team-prd -> team-exec -> team-verify -> team-fix (loop)
50
+ ```text
51
+ /prompts:architect "analyze current auth boundaries"
52
+ /prompts:executor "implement input validation in login"
53
+ $plan "ship OAuth callback safely"
54
+ $team 3:executor "fix all TypeScript errors"
68
55
  ```
69
56
 
70
- Examples:
57
+ From terminal:
71
58
 
72
59
  ```bash
73
- # Inside Codex
74
- $team 3:executor "fix all TypeScript errors across the project"
75
- $team ralph "ship a complete feature with persistence + verification"
76
-
77
- # From terminal
78
60
  omx team 4:executor "parallelize a multi-module refactor"
79
- omx doctor --team
80
-
81
- # Recommended high-throughput launch profile
82
- omx --xhigh --madmax
61
+ omx team status <team-name>
62
+ omx team shutdown <team-name>
83
63
  ```
84
64
 
85
- ## How It Works
65
+ ## Core Model
86
66
 
87
- OMX installs into Codex CLI's native extension points:
67
+ OMX installs and wires these layers:
88
68
 
89
- | Extension Point | What OMX Uses It For |
90
- |----------------|---------------------|
91
- | `AGENTS.md` | Orchestration brain loaded at session start |
92
- | `~/.codex/prompts/*.md` | 30 agent definitions as `/prompts:name` commands |
93
- | `~/.agents/skills/*/SKILL.md` | 39 workflow skills invoked via `$name` |
94
- | `config.toml` MCP servers | State management + project memory |
95
- | `config.toml` notify | Post-turn logging and metrics |
96
- | `config.toml` features | `collab` (sub-agents) + `child_agents_md` |
97
-
98
- ```
99
- User -> Codex CLI -> AGENTS.md (orchestration brain)
100
- -> ~/.codex/prompts/*.md (30 agents)
101
- -> ~/.agents/skills/*/SKILL.md (39 skills)
102
- -> config.toml (MCP, notify, features)
103
- -> .omx/ (state, memory, notepad, plans)
69
+ ```text
70
+ User
71
+ -> Codex CLI
72
+ -> AGENTS.md (orchestration brain)
73
+ -> ~/.codex/prompts/*.md (30 agent prompts)
74
+ -> ~/.agents/skills/*/SKILL.md (40 skills)
75
+ -> ~/.codex/config.toml (features, notify, MCP)
76
+ -> .omx/ (runtime state, memory, plans, logs)
104
77
  ```
105
78
 
106
- ## Agent Catalog (30 agents)
107
-
108
- Invoke agents with `/prompts:name` in Codex CLI.
109
-
110
- ### Build & Analysis
111
- | Agent | Tier | Description |
112
- |-------|------|-------------|
113
- | `/prompts:explore` | Low | Codebase discovery, symbol/file mapping |
114
- | `/prompts:analyst` | High | Requirements clarity, acceptance criteria |
115
- | `/prompts:planner` | High | Task sequencing, execution plans, risk flags |
116
- | `/prompts:architect` | High | System design, boundaries, interfaces |
117
- | `/prompts:debugger` | Standard | Root-cause analysis, failure diagnosis |
118
- | `/prompts:executor` | Standard | Code implementation, refactoring |
119
- | `/prompts:deep-executor` | High | Complex autonomous goal-oriented tasks |
120
- | `/prompts:verifier` | Standard | Completion evidence, claim validation |
121
-
122
- ### Review
123
- | Agent | Tier | Description |
124
- |-------|------|-------------|
125
- | `/prompts:style-reviewer` | Low | Formatting, naming, lint conventions |
126
- | `/prompts:quality-reviewer` | Standard | Logic defects, anti-patterns |
127
- | `/prompts:api-reviewer` | Standard | API contracts, versioning |
128
- | `/prompts:security-reviewer` | Standard | Vulnerabilities, OWASP Top 10 |
129
- | `/prompts:performance-reviewer` | Standard | Hotspots, complexity optimization |
130
- | `/prompts:code-reviewer` | High | Comprehensive review across concerns |
131
-
132
- ### Domain Specialists
133
- | Agent | Tier | Description |
134
- |-------|------|-------------|
135
- | `/prompts:dependency-expert` | Standard | External SDK/API evaluation |
136
- | `/prompts:test-engineer` | Standard | Test strategy, coverage |
137
- | `/prompts:quality-strategist` | Standard | Release readiness, risk assessment |
138
- | `/prompts:build-fixer` | Standard | Build/toolchain failures |
139
- | `/prompts:designer` | Standard | UX/UI architecture |
140
- | `/prompts:writer` | Low | Docs, migration notes |
141
- | `/prompts:qa-tester` | Standard | Interactive CLI validation |
142
- | `/prompts:scientist` | Standard | Data/statistical analysis |
143
- | `/prompts:git-master` | Standard | Commit strategy, history hygiene |
144
- | `/prompts:researcher` | Standard | External documentation research |
145
-
146
- ### Product
147
- | Agent | Tier | Description |
148
- |-------|------|-------------|
149
- | `/prompts:product-manager` | Standard | Problem framing, PRDs |
150
- | `/prompts:ux-researcher` | Standard | Heuristic audits, usability |
151
- | `/prompts:information-architect` | Standard | Taxonomy, navigation |
152
- | `/prompts:product-analyst` | Standard | Product metrics, experiments |
153
-
154
- ### Coordination
155
- | Agent | Tier | Description |
156
- |-------|------|-------------|
157
- | `/prompts:critic` | High | Plan/design critical challenge |
158
- | `/prompts:vision` | Standard | Image/screenshot analysis |
159
-
160
- ## Skills (39 skills)
161
-
162
- Invoke skills with `$name` in Codex CLI (e.g., `$autopilot "build a REST API"`).
163
-
164
- ### Execution Modes
165
- | Skill | Description |
166
- |-------|-------------|
167
- | `$autopilot` | Full autonomous execution from idea to working code |
168
- | `$ralph` | Persistence loop with architect verification |
169
- | `$ultrawork` (`$ulw`) | Maximum parallelism with parallel agent orchestration |
170
- | `$team` | N coordinated agents on shared task list |
171
- | `$pipeline` | Sequential agent chaining with data passing |
172
- | `$ecomode` | Token-efficient execution using lightweight models |
173
- | `$ultrapilot` | Parallel autopilot with file ownership partitioning |
174
- | `$ultraqa` | QA cycling: test, verify, fix, repeat |
175
-
176
- ### Planning
177
- | Skill | Description |
178
- |-------|-------------|
179
- | `$plan` | Strategic planning with optional consensus/review modes |
180
- | `$ralplan` | Consensus planning (planner + architect + critic) |
181
-
182
- ### Agent Shortcuts
183
- | Skill | Routes To | Trigger |
184
- |-------|-----------|---------|
185
- | `$analyze` | debugger | "analyze", "debug", "investigate" |
186
- | `$deepsearch` | explore | "search", "find in codebase" |
187
- | `$tdd` | test-engineer | "tdd", "test first" |
188
- | `$build-fix` | build-fixer | "fix build", "type errors" |
189
- | `$code-review` | code-reviewer | "review code" |
190
- | `$security-review` | security-reviewer | "security review" |
191
- | `$frontend-ui-ux` | designer | UI/component work |
192
- | `$git-master` | git-master | Git/commit work |
193
-
194
- ### Utilities
195
- `$cancel` `$doctor` `$help` `$note` `$trace` `$skill` `$learner` `$research` `$deepinit` `$release` `$hud` `$omx-setup` `$configure-telegram` `$configure-discord` `$writer-memory` `$psm` `$ralph-init` `$learn-about-omx` `$review`
196
-
197
- ## MCP Servers
198
-
199
- OMX provides two MCP servers configured via `config.toml`:
200
-
201
- - **`omx_state`** -- Mode lifecycle state (autopilot, ralph, ultrawork, team, etc.)
202
- - **`omx_memory`** -- Project memory and session notepad
203
-
204
- ## Magic Keywords
205
-
206
- The AGENTS.md orchestration brain detects keywords and activates skills automatically:
207
-
208
- | Say this... | Activates |
209
- |-------------|-----------|
210
- | "ralph", "don't stop", "keep going" | `$ralph` persistence loop |
211
- | "autopilot", "build me" | `$autopilot` autonomous pipeline |
212
- | "team", "coordinated team" | `$team` multi-agent orchestration |
213
- | "plan this", "let's plan" | `$plan` strategic planning |
214
- | "fix build", "type errors" | `$build-fix` build error resolution |
215
-
216
- ## CLI Commands
79
+ ## Main Commands
217
80
 
218
81
  ```bash
219
- omx --yolo # Launch Codex with low-friction execution flags
220
- omx --madmax # Launch Codex with full approval+sandbox bypass (dangerous)
221
- omx --high # Launch Codex with reasoning effort set to high
222
- omx --xhigh # Launch Codex with reasoning effort set to xhigh (recommended)
223
- omx setup # Install and configure OMX
224
- omx doctor # Run 9 installation health checks
225
- omx doctor --team # Diagnose team/swarm runtime state and blockers
226
- omx team ... # Spawn tmux team workers and bootstrap team state
227
- omx tmux-hook # Manage tmux prompt-injection workaround (init/status/validate/test)
228
- omx reasoning <mode> # Set default reasoning mode (low|medium|high|xhigh)
229
- omx status # Show active mode state
230
- omx cancel # Cancel active execution modes
231
- omx hud # Show HUD statusline (--watch, --json, --preset=NAME)
232
- omx version # Print version info
233
- omx help # Usage guide
82
+ omx # Launch Codex (+ HUD in tmux when available)
83
+ omx setup # Install prompts, skills, config wiring, AGENTS.md
84
+ omx doctor # Installation/runtime diagnostics
85
+ omx doctor --team # Team/swarm diagnostics
86
+ omx team ... # Start/status/resume/shutdown tmux team workers
87
+ omx status # Show active modes
88
+ omx cancel # Cancel active execution modes
89
+ omx reasoning <mode> # low|medium|high|xhigh
90
+ omx tmux-hook ... # init|status|validate|test
91
+ omx hud ... # --watch|--json|--preset
92
+ omx help
234
93
  ```
235
94
 
236
- ## Launch Options
95
+ ## Launch Flags
237
96
 
238
- - `--yolo`
239
- Launch shorthand for `omx launch --yolo`.
240
-
241
- - `--madmax`
242
- Launches Codex with `--dangerously-bypass-approvals-and-sandbox` (native Codex flag).
243
- This bypasses approval prompts and sandboxing.
244
- Use only in externally sandboxed/trusted environments.
245
-
246
- - `--high`
247
- Launches Codex with reasoning effort set to `high` (default).
248
-
249
- - `--xhigh`
250
- Launches Codex with reasoning effort set to `xhigh` (recommended).
97
+ ```bash
98
+ --yolo
99
+ --high
100
+ --xhigh
101
+ --madmax
102
+ --force
103
+ --dry-run
104
+ --verbose
105
+ ```
251
106
 
252
- Recommended launch profile:
253
- - `omx --xhigh --madmax`
254
- Use this for maximum throughput in trusted environments with external sandboxing.
107
+ `--madmax` maps to Codex `--dangerously-bypass-approvals-and-sandbox`.
108
+ Use it only in trusted/external sandbox environments.
255
109
 
256
- ## Tmux Injection Workaround (v0.2.3 Default)
110
+ ## Codex-First Prompt Control
257
111
 
258
- Codex CLI does not natively provide this tmux continuation behavior. OMX includes a production-safe HUD/hook workaround that can inject a continuation prompt into a tmux pane from `scripts/notify-hook.js`.
112
+ By default, OMX injects:
259
113
 
260
- As of `v0.2.3`, generated tmux hook config is enabled by default (`enabled: true`).
114
+ ```text
115
+ -c model_instructions_file="<cwd>/AGENTS.md"
116
+ ```
261
117
 
262
- Safety defaults:
263
- - No shell interpolation for tmux commands (argv-based subprocess execution)
264
- - Guardrails: allowed-mode gating, dedupe keying, cooldown, max injections/session, marker loop guard
265
- - Failures are non-fatal and logged
118
+ This layers project `AGENTS.md` guidance into Codex launch instructions.
119
+ It extends Codex behavior, but does not replace/bypass Codex core system policies.
266
120
 
267
- Initialize config:
121
+ Controls:
268
122
 
269
123
  ```bash
270
- omx tmux-hook init
124
+ OMX_BYPASS_DEFAULT_SYSTEM_PROMPT=0 omx # disable AGENTS.md injection
125
+ OMX_MODEL_INSTRUCTIONS_FILE=/path/to/instructions.md omx
271
126
  ```
272
127
 
273
- Check status/state:
128
+ ## Team Mode
274
129
 
275
- ```bash
276
- omx tmux-hook status
277
- ```
130
+ Use team mode for broad work that benefits from parallel workers.
278
131
 
279
- Validate tmux target:
132
+ Lifecycle:
280
133
 
281
- ```bash
282
- omx tmux-hook validate
134
+ ```text
135
+ start -> assign scoped lanes -> monitor -> verify terminal tasks -> shutdown
283
136
  ```
284
137
 
285
- Run an end-to-end synthetic hook turn:
138
+ Operational commands:
286
139
 
287
140
  ```bash
288
- omx tmux-hook test
141
+ omx team <args>
142
+ omx team status <team-name>
143
+ omx team resume <team-name>
144
+ omx team shutdown <team-name>
289
145
  ```
290
146
 
291
- Config file: `.omx/tmux-hook.json`
292
- Runtime state: `.omx/state/tmux-hook-state.json`
293
- Structured logs: `.omx/logs/tmux-hook-YYYY-MM-DD.jsonl`
294
-
295
- Compatibility note:
296
- - OMX writes `notify` as a TOML array by default.
297
- - Override with `OMX_NOTIFY_FORMAT=string` before `omx setup` for environments that require string notify syntax.
147
+ Important rule: do not shutdown while tasks are still `in_progress` unless aborting.
298
148
 
299
- ## Setup Details
149
+ ## What `omx setup` writes
300
150
 
301
- `omx setup` performs 7 steps:
151
+ - `~/.codex/prompts/` (30 prompt files)
152
+ - `~/.agents/skills/` (40 skills)
153
+ - `~/.codex/config.toml` updates:
154
+ - `notify = ["node", "..."]`
155
+ - `model_reasoning_effort = "high"`
156
+ - `developer_instructions = "..."`
157
+ - `[features] collab = true, child_agents_md = true`
158
+ - MCP server entries (`omx_state`, `omx_memory`, `omx_code_intel`, `omx_trace`)
159
+ - `[tui] status_line`
160
+ - Project `AGENTS.md`
161
+ - `.omx/` runtime directories and HUD config
302
162
 
303
- 1. Creates directories (`~/.codex/prompts/`, `~/.agents/skills/`, `.omx/state/`)
304
- 2. Installs 30 agent prompt files to `~/.codex/prompts/`
305
- 3. Installs 39 skill directories to `~/.agents/skills/`
306
- 4. Updates `~/.codex/config.toml` with MCP servers, features, notify hook, `[tui] status_line`, and default `model_reasoning_effort = "high"`
307
- 5. Generates `AGENTS.md` orchestration brain in the current project root
308
- 6. Configures the post-turn notification hook
309
- 7. Creates `.omx/hud-config.json` with default HUD preset
163
+ ## Agents and Skills
310
164
 
311
- Use `omx reasoning <mode>` to change the default reasoning effort (for example `high` or `xhigh`).
165
+ - Prompts: `prompts/*.md` (installed to `~/.codex/prompts/`)
166
+ - Skills: `skills/*/SKILL.md` (installed to `~/.agents/skills/`)
312
167
 
313
- ## Coverage
314
-
315
- ~92% feature parity with oh-my-claudecode (excluding MCP tools). See [COVERAGE.md](COVERAGE.md) for the detailed matrix and known gaps.
168
+ Examples:
169
+ - Agents: `architect`, `planner`, `executor`, `debugger`, `verifier`, `security-reviewer`
170
+ - Skills: `autopilot`, `plan`, `team`, `ralph`, `ultrawork`, `ultrapilot`, `research`, `cancel`
316
171
 
317
- ## Project Structure
172
+ ## Project Layout
318
173
 
319
- ```
174
+ ```text
320
175
  oh-my-codex/
321
- bin/omx.js # CLI entry point
176
+ bin/omx.js
322
177
  src/
323
- cli/ # CLI commands (setup, doctor, version, tmux-hook, status, cancel, hud, help)
324
- hud/ # HUD statusline (state readers, ANSI renderer, presets)
325
- config/ # config.toml generator
326
- agents/ # Agent definitions registry
327
- mcp/ # MCP servers (state, memory)
328
- hooks/ # Hook emulation layer + keyword detector
329
- modes/ # Mode lifecycle management
330
- team/ # Team orchestration (staged pipeline)
331
- verification/ # Verification protocol
332
- notifications/ # Desktop/Discord/Telegram notifications
333
- utils/ # Path resolution, package utilities
334
- prompts/ # 30 agent prompt files (*.md)
335
- skills/ # 39 skill directories (*/SKILL.md)
336
- templates/ # AGENTS.md template
337
- scripts/ # notify-hook.js, tmux-hook-engine.js
178
+ cli/
179
+ team/
180
+ mcp/
181
+ hooks/
182
+ hud/
183
+ config/
184
+ modes/
185
+ notifications/
186
+ verification/
187
+ prompts/
188
+ skills/
189
+ templates/
190
+ scripts/
338
191
  ```
339
192
 
340
193
  ## Development
@@ -344,13 +197,17 @@ git clone https://github.com/Yeachan-Heo/oh-my-codex.git
344
197
  cd oh-my-codex
345
198
  npm install
346
199
  npm run build
347
- npm link
348
- omx setup && omx doctor
200
+ npm test
349
201
  ```
350
202
 
203
+ ## Notes
204
+
205
+ - Coverage and parity notes: `COVERAGE.md`
206
+ - Setup and contribution details: `CONTRIBUTING.md`
207
+
351
208
  ## Acknowledgments
352
209
 
353
- oh-my-codex is inspired by [oh-my-claudecode (OMC)](https://github.com/Yeachan-Heo/oh-my-claudecode), which pioneered multi-agent orchestration for Claude Code. OMX adapts the same concepts -- agent roles, workflow skills, orchestration brain, mode lifecycle -- to work with OpenAI's Codex CLI through its native extension points.
210
+ Inspired by [oh-my-claudecode](https://github.com/Yeachan-Heo/oh-my-claudecode), adapted for Codex CLI.
354
211
 
355
212
  ## License
356
213
 
@@ -1,6 +1,6 @@
1
1
  import { describe, it } from 'node:test';
2
2
  import assert from 'node:assert/strict';
3
- import { normalizeCodexLaunchArgs, buildTmuxShellCommand, buildTmuxSessionName, readTopLevelTomlString, upsertTopLevelTomlString, } from '../index.js';
3
+ import { normalizeCodexLaunchArgs, buildTmuxShellCommand, buildTmuxSessionName, readTopLevelTomlString, upsertTopLevelTomlString, collectInheritableTeamWorkerArgs, resolveTeamWorkerLaunchArgsEnv, injectModelInstructionsBypassArgs, } from '../index.js';
4
4
  describe('normalizeCodexLaunchArgs', () => {
5
5
  it('maps --madmax to codex bypass flag', () => {
6
6
  assert.deepEqual(normalizeCodexLaunchArgs(['--madmax']), ['--dangerously-bypass-approvals-and-sandbox']);
@@ -55,6 +55,17 @@ describe('buildTmuxSessionName', () => {
55
55
  assert.equal(name.includes(' '), false);
56
56
  });
57
57
  });
58
+ describe('team worker launch arg inheritance helpers', () => {
59
+ it('collectInheritableTeamWorkerArgs extracts bypass and reasoning overrides', () => {
60
+ assert.deepEqual(collectInheritableTeamWorkerArgs(['--dangerously-bypass-approvals-and-sandbox', '-c', 'model_reasoning_effort="xhigh"', '--model', 'gpt-5']), ['--dangerously-bypass-approvals-and-sandbox', '-c', 'model_reasoning_effort="xhigh"']);
61
+ });
62
+ it('resolveTeamWorkerLaunchArgsEnv merges and normalizes with de-dupe + last reasoning wins', () => {
63
+ assert.equal(resolveTeamWorkerLaunchArgsEnv('--dangerously-bypass-approvals-and-sandbox -c model_reasoning_effort="high" --no-alt-screen', ['-c', 'model_reasoning_effort="xhigh"', '--dangerously-bypass-approvals-and-sandbox'], true), '--no-alt-screen --dangerously-bypass-approvals-and-sandbox -c model_reasoning_effort="xhigh"');
64
+ });
65
+ it('resolveTeamWorkerLaunchArgsEnv can opt out of leader inheritance', () => {
66
+ assert.equal(resolveTeamWorkerLaunchArgsEnv('--no-alt-screen', ['--dangerously-bypass-approvals-and-sandbox', '-c', 'model_reasoning_effort="xhigh"'], false), '--no-alt-screen');
67
+ });
68
+ });
58
69
  describe('readTopLevelTomlString', () => {
59
70
  it('reads a top-level string value', () => {
60
71
  const value = readTopLevelTomlString('model_reasoning_effort = "high"\n[mcp_servers.test]\nmodel_reasoning_effort = "low"\n', 'model_reasoning_effort');
@@ -65,6 +76,24 @@ describe('readTopLevelTomlString', () => {
65
76
  assert.equal(value, null);
66
77
  });
67
78
  });
79
+ describe('injectModelInstructionsBypassArgs', () => {
80
+ it('appends model_instructions_file override by default', () => {
81
+ const args = injectModelInstructionsBypassArgs('/tmp/my-project', ['--model', 'gpt-5'], {});
82
+ assert.deepEqual(args, ['--model', 'gpt-5', '-c', 'model_instructions_file="/tmp/my-project/AGENTS.md"']);
83
+ });
84
+ it('does not append when bypass is disabled via env', () => {
85
+ const args = injectModelInstructionsBypassArgs('/tmp/my-project', ['--model', 'gpt-5'], { OMX_BYPASS_DEFAULT_SYSTEM_PROMPT: '0' });
86
+ assert.deepEqual(args, ['--model', 'gpt-5']);
87
+ });
88
+ it('does not append when model_instructions_file is already set', () => {
89
+ const args = injectModelInstructionsBypassArgs('/tmp/my-project', ['-c', 'model_instructions_file="/tmp/custom.md"'], {});
90
+ assert.deepEqual(args, ['-c', 'model_instructions_file="/tmp/custom.md"']);
91
+ });
92
+ it('respects OMX_MODEL_INSTRUCTIONS_FILE env override', () => {
93
+ const args = injectModelInstructionsBypassArgs('/tmp/my-project', [], { OMX_MODEL_INSTRUCTIONS_FILE: '/tmp/alt instructions.md' });
94
+ assert.deepEqual(args, ['-c', 'model_instructions_file="/tmp/alt instructions.md"']);
95
+ });
96
+ });
68
97
  describe('upsertTopLevelTomlString', () => {
69
98
  it('replaces an existing top-level key', () => {
70
99
  const updated = upsertTopLevelTomlString('model_reasoning_effort = "low"\n[tui]\nstatus_line = []\n', 'model_reasoning_effort', 'high');
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/cli/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAErB,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,oCAAoC,EAAE,GA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,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,6DAA6D,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -4,6 +4,9 @@
4
4
  */
5
5
  export declare function main(args: string[]): Promise<void>;
6
6
  export declare function normalizeCodexLaunchArgs(args: string[]): string[];
7
+ export declare function injectModelInstructionsBypassArgs(cwd: string, args: string[], env?: NodeJS.ProcessEnv): string[];
8
+ export declare function collectInheritableTeamWorkerArgs(codexArgs: string[]): string[];
9
+ export declare function resolveTeamWorkerLaunchArgsEnv(existingRaw: string | undefined, codexArgs: string[], inheritLeaderFlags?: boolean): string | null;
7
10
  export declare function readTopLevelTomlString(content: string, key: string): string | null;
8
11
  export declare function upsertTopLevelTomlString(content: string, key: string, value: string): string;
9
12
  export declare function buildTmuxSessionName(cwd: string, sessionId: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4DH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAmExD;AAgGD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA2CjE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAgBlF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAyC5F;AAsBD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAgB3E;AA4FD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7E"}
1
+ {"version":3,"file":"index.d.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