oh-my-codex 0.3.4 → 0.3.6

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 (80) hide show
  1. package/README.md +136 -271
  2. package/dist/cli/__tests__/index.test.js +19 -1
  3. package/dist/cli/__tests__/index.test.js.map +1 -1
  4. package/dist/cli/index.d.ts +1 -0
  5. package/dist/cli/index.d.ts.map +1 -1
  6. package/dist/cli/index.js +44 -4
  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/hud/__tests__/hud-tmux-injection.test.d.ts +10 -0
  12. package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +1 -0
  13. package/dist/hud/__tests__/hud-tmux-injection.test.js +143 -0
  14. package/dist/hud/__tests__/hud-tmux-injection.test.js.map +1 -0
  15. package/dist/hud/index.d.ts +10 -0
  16. package/dist/hud/index.d.ts.map +1 -1
  17. package/dist/hud/index.js +32 -8
  18. package/dist/hud/index.js.map +1 -1
  19. package/dist/team/__tests__/tmux-session.test.js +100 -0
  20. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  21. package/dist/team/state.d.ts +1 -1
  22. package/dist/team/state.d.ts.map +1 -1
  23. package/dist/team/state.js +2 -2
  24. package/dist/team/state.js.map +1 -1
  25. package/dist/team/tmux-session.d.ts +1 -1
  26. package/dist/team/tmux-session.d.ts.map +1 -1
  27. package/dist/team/tmux-session.js +44 -4
  28. package/dist/team/tmux-session.js.map +1 -1
  29. package/package.json +1 -1
  30. package/prompts/analyst.md +102 -105
  31. package/prompts/api-reviewer.md +90 -93
  32. package/prompts/architect.md +102 -104
  33. package/prompts/build-fixer.md +81 -84
  34. package/prompts/code-reviewer.md +98 -100
  35. package/prompts/critic.md +79 -82
  36. package/prompts/debugger.md +85 -88
  37. package/prompts/deep-executor.md +105 -107
  38. package/prompts/dependency-expert.md +91 -94
  39. package/prompts/designer.md +96 -98
  40. package/prompts/executor.md +92 -94
  41. package/prompts/explore.md +104 -107
  42. package/prompts/git-master.md +84 -87
  43. package/prompts/information-architect.md +28 -29
  44. package/prompts/performance-reviewer.md +86 -89
  45. package/prompts/planner.md +108 -111
  46. package/prompts/product-analyst.md +28 -29
  47. package/prompts/product-manager.md +33 -34
  48. package/prompts/qa-tester.md +90 -93
  49. package/prompts/quality-reviewer.md +98 -100
  50. package/prompts/quality-strategist.md +33 -34
  51. package/prompts/researcher.md +88 -91
  52. package/prompts/scientist.md +84 -87
  53. package/prompts/security-reviewer.md +119 -121
  54. package/prompts/style-reviewer.md +79 -82
  55. package/prompts/test-engineer.md +96 -98
  56. package/prompts/ux-researcher.md +28 -29
  57. package/prompts/verifier.md +87 -90
  58. package/prompts/vision.md +67 -70
  59. package/prompts/writer.md +78 -81
  60. package/skills/analyze/SKILL.md +1 -1
  61. package/skills/autopilot/SKILL.md +11 -16
  62. package/skills/code-review/SKILL.md +1 -1
  63. package/skills/configure-discord/SKILL.md +6 -6
  64. package/skills/configure-telegram/SKILL.md +6 -6
  65. package/skills/doctor/SKILL.md +47 -45
  66. package/skills/ecomode/SKILL.md +1 -1
  67. package/skills/frontend-ui-ux/SKILL.md +2 -2
  68. package/skills/help/SKILL.md +1 -1
  69. package/skills/learner/SKILL.md +5 -5
  70. package/skills/omx-setup/SKILL.md +47 -1109
  71. package/skills/plan/SKILL.md +1 -1
  72. package/skills/project-session-manager/SKILL.md +5 -5
  73. package/skills/release/SKILL.md +3 -3
  74. package/skills/research/SKILL.md +10 -15
  75. package/skills/security-review/SKILL.md +1 -1
  76. package/skills/skill/SKILL.md +20 -20
  77. package/skills/tdd/SKILL.md +1 -1
  78. package/skills/ultrapilot/SKILL.md +11 -16
  79. package/skills/writer-memory/SKILL.md +1 -1
  80. package/templates/AGENTS.md +7 -7
@@ -5,7 +5,7 @@ description: Diagnose and fix oh-my-codex installation issues
5
5
 
6
6
  # Doctor Skill
7
7
 
8
- Note: All `~/.claude/...` paths in this guide respect `CLAUDE_CONFIG_DIR` when that environment variable is set.
8
+ Note: All `~/.codex/...` paths in this guide respect `CODEX_HOME` when that environment variable is set.
9
9
 
10
10
  ## Task: Run Installation Diagnostics
11
11
 
@@ -15,11 +15,11 @@ You are the OMX Doctor - diagnose and fix installation issues.
15
15
 
16
16
  ```bash
17
17
  # Get installed version
18
- INSTALLED=$(ls ~/.claude/plugins/cache/omc/oh-my-codex/ 2>/dev/null | sort -V | tail -1)
18
+ INSTALLED=$(ls ~/.codex/plugins/cache/omc/oh-my-codex/ 2>/dev/null | sort -V | tail -1)
19
19
  echo "Installed: $INSTALLED"
20
20
 
21
21
  # Get latest from npm
22
- LATEST=$(npm view oh-my-claude-sisyphus version 2>/dev/null)
22
+ LATEST=$(npm view oh-my-codex version 2>/dev/null)
23
23
  echo "Latest: $LATEST"
24
24
  ```
25
25
 
@@ -28,12 +28,14 @@ echo "Latest: $LATEST"
28
28
  - If INSTALLED != LATEST: WARN - outdated plugin
29
29
  - If multiple versions exist: WARN - stale cache
30
30
 
31
- ### Step 2: Check for Legacy Hooks in settings.json
31
+ ### Step 2: Check Hook Configuration (config.toml + legacy settings.json)
32
32
 
33
- Read `~/.claude/settings.json` and check if there's a `"hooks"` key with entries like:
34
- - `bash $HOME/.claude/hooks/keyword-detector.sh`
35
- - `bash $HOME/.claude/hooks/persistent-mode.sh`
36
- - `bash $HOME/.claude/hooks/session-start.sh`
33
+ Check `~/.codex/config.toml` first (current Codex config), then check legacy `~/.codex/settings.json` only if it exists.
34
+
35
+ Look for hook entries pointing to removed scripts like:
36
+ - `bash $HOME/.codex/hooks/keyword-detector.sh`
37
+ - `bash $HOME/.codex/hooks/persistent-mode.sh`
38
+ - `bash $HOME/.codex/hooks/session-start.sh`
37
39
 
38
40
  **Diagnosis**:
39
41
  - If found: CRITICAL - legacy hooks causing duplicates
@@ -41,31 +43,31 @@ Read `~/.claude/settings.json` and check if there's a `"hooks"` key with entries
41
43
  ### Step 3: Check for Legacy Bash Hook Scripts
42
44
 
43
45
  ```bash
44
- ls -la ~/.claude/hooks/*.sh 2>/dev/null
46
+ ls -la ~/.codex/hooks/*.sh 2>/dev/null
45
47
  ```
46
48
 
47
49
  **Diagnosis**:
48
50
  - If `keyword-detector.sh`, `persistent-mode.sh`, `session-start.sh`, or `stop-continuation.sh` exist: WARN - legacy scripts (can cause confusion)
49
51
 
50
- ### Step 4: Check CLAUDE.md
52
+ ### Step 4: Check AGENTS.md
51
53
 
52
54
  ```bash
53
- # Check if CLAUDE.md exists
54
- ls -la ~/.claude/CLAUDE.md 2>/dev/null
55
+ # Check if AGENTS.md exists
56
+ ls -la ~/.codex/AGENTS.md 2>/dev/null
55
57
 
56
58
  # Check for OMX marker
57
- grep -q "oh-my-codex Multi-Agent System" ~/.claude/CLAUDE.md 2>/dev/null && echo "Has OMX config" || echo "Missing OMX config"
59
+ grep -q "oh-my-codex Multi-Agent System" ~/.codex/AGENTS.md 2>/dev/null && echo "Has OMX config" || echo "Missing OMX config"
58
60
  ```
59
61
 
60
62
  **Diagnosis**:
61
- - If missing: CRITICAL - CLAUDE.md not configured
62
- - If missing OMX marker: WARN - outdated CLAUDE.md
63
+ - If missing: CRITICAL - AGENTS.md not configured
64
+ - If missing OMX marker: WARN - outdated AGENTS.md
63
65
 
64
66
  ### Step 5: Check for Stale Plugin Cache
65
67
 
66
68
  ```bash
67
69
  # Count versions in cache
68
- ls ~/.claude/plugins/cache/omc/oh-my-codex/ 2>/dev/null | wc -l
70
+ ls ~/.codex/plugins/cache/omc/oh-my-codex/ 2>/dev/null | wc -l
69
71
  ```
70
72
 
71
73
  **Diagnosis**:
@@ -77,19 +79,19 @@ Check for legacy agents, commands, and skills installed via curl (before plugin
77
79
 
78
80
  ```bash
79
81
  # Check for legacy agents directory
80
- ls -la ~/.claude/agents/ 2>/dev/null
82
+ ls -la ~/.codex/agents/ 2>/dev/null
81
83
 
82
84
  # Check for legacy commands directory
83
- ls -la ~/.claude/commands/ 2>/dev/null
85
+ ls -la ~/.codex/commands/ 2>/dev/null
84
86
 
85
87
  # Check for legacy skills directory
86
- ls -la ~/.claude/skills/ 2>/dev/null
88
+ ls -la ~/.codex/skills/ 2>/dev/null
87
89
  ```
88
90
 
89
91
  **Diagnosis**:
90
- - If `~/.claude/agents/` exists with oh-my-codex-related files: WARN - legacy agents (now provided by plugin)
91
- - If `~/.claude/commands/` exists with oh-my-codex-related files: WARN - legacy commands (now provided by plugin)
92
- - If `~/.claude/skills/` exists with oh-my-codex-related files: WARN - legacy skills (now provided by plugin)
92
+ - If `~/.codex/agents/` exists with oh-my-codex-related files: WARN - legacy agents (now provided by plugin)
93
+ - If `~/.codex/commands/` exists with oh-my-codex-related files: WARN - legacy commands (now provided by plugin)
94
+ - If `~/.codex/skills/` exists with oh-my-codex-related files: WARN - legacy skills (now provided by plugin)
93
95
 
94
96
  Look for files like:
95
97
  - `architect.md`, `researcher.md`, `explore.md`, `executor.md`, etc. in agents/
@@ -113,13 +115,13 @@ After running all checks, output a report:
113
115
  | Check | Status | Details |
114
116
  |-------|--------|---------|
115
117
  | Plugin Version | OK/WARN/CRITICAL | ... |
116
- | Legacy Hooks (settings.json) | OK/CRITICAL | ... |
117
- | Legacy Scripts (~/.claude/hooks/) | OK/WARN | ... |
118
- | CLAUDE.md | OK/WARN/CRITICAL | ... |
118
+ | Hook Config (config.toml / legacy settings.json) | OK/CRITICAL | ... |
119
+ | Legacy Scripts (~/.codex/hooks/) | OK/WARN | ... |
120
+ | AGENTS.md | OK/WARN/CRITICAL | ... |
119
121
  | Plugin Cache | OK/WARN | ... |
120
- | Legacy Agents (~/.claude/agents/) | OK/WARN | ... |
121
- | Legacy Commands (~/.claude/commands/) | OK/WARN | ... |
122
- | Legacy Skills (~/.claude/skills/) | OK/WARN | ... |
122
+ | Legacy Agents (~/.codex/agents/) | OK/WARN | ... |
123
+ | Legacy Commands (~/.codex/commands/) | OK/WARN | ... |
124
+ | Legacy Skills (~/.codex/skills/) | OK/WARN | ... |
123
125
 
124
126
  ### Issues Found
125
127
  1. [Issue description]
@@ -137,34 +139,34 @@ If issues found, ask user: "Would you like me to fix these issues automatically?
137
139
 
138
140
  If yes, apply fixes:
139
141
 
140
- ### Fix: Legacy Hooks in settings.json
141
- Remove the `"hooks"` section from `~/.claude/settings.json` (keep other settings intact)
142
+ ### Fix: Legacy Hooks in legacy settings.json
143
+ If `~/.codex/settings.json` exists, remove the legacy `"hooks"` section (keep other settings intact).
142
144
 
143
145
  ### Fix: Legacy Bash Scripts
144
146
  ```bash
145
- rm -f ~/.claude/hooks/keyword-detector.sh
146
- rm -f ~/.claude/hooks/persistent-mode.sh
147
- rm -f ~/.claude/hooks/session-start.sh
148
- rm -f ~/.claude/hooks/stop-continuation.sh
147
+ rm -f ~/.codex/hooks/keyword-detector.sh
148
+ rm -f ~/.codex/hooks/persistent-mode.sh
149
+ rm -f ~/.codex/hooks/session-start.sh
150
+ rm -f ~/.codex/hooks/stop-continuation.sh
149
151
  ```
150
152
 
151
153
  ### Fix: Outdated Plugin
152
154
  ```bash
153
- rm -rf ~/.claude/plugins/cache/oh-my-codex
155
+ rm -rf ~/.codex/plugins/cache/oh-my-codex
154
156
  echo "Plugin cache cleared. Restart Codex CLI to fetch latest version."
155
157
  ```
156
158
 
157
159
  ### Fix: Stale Cache (multiple versions)
158
160
  ```bash
159
161
  # Keep only latest version
160
- cd ~/.claude/plugins/cache/omc/oh-my-codex/
162
+ cd ~/.codex/plugins/cache/omc/oh-my-codex/
161
163
  ls | sort -V | head -n -1 | xargs rm -rf
162
164
  ```
163
165
 
164
- ### Fix: Missing/Outdated CLAUDE.md
165
- Fetch latest from GitHub and write to `~/.claude/CLAUDE.md`:
166
+ ### Fix: Missing/Outdated AGENTS.md
167
+ Fetch latest from GitHub and write to `~/.codex/AGENTS.md`:
166
168
  ```
167
- WebFetch(url: "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-codex/main/docs/CLAUDE.md", prompt: "Return the complete raw markdown content exactly as-is")
169
+ WebFetch(url: "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-codex/main/docs/AGENTS.md", prompt: "Return the complete raw markdown content exactly as-is")
168
170
  ```
169
171
 
170
172
  ### Fix: Legacy Curl-Installed Content
@@ -173,14 +175,14 @@ Remove legacy agents, commands, and skills directories (now provided by plugin):
173
175
 
174
176
  ```bash
175
177
  # Backup first (optional - ask user)
176
- # mv ~/.claude/agents ~/.claude/agents.bak
177
- # mv ~/.claude/commands ~/.claude/commands.bak
178
- # mv ~/.claude/skills ~/.claude/skills.bak
178
+ # mv ~/.codex/agents ~/.codex/agents.bak
179
+ # mv ~/.codex/commands ~/.codex/commands.bak
180
+ # mv ~/.codex/skills ~/.codex/skills.bak
179
181
 
180
182
  # Or remove directly
181
- rm -rf ~/.claude/agents
182
- rm -rf ~/.claude/commands
183
- rm -rf ~/.claude/skills
183
+ rm -rf ~/.codex/agents
184
+ rm -rf ~/.codex/commands
185
+ rm -rf ~/.codex/skills
184
186
  ```
185
187
 
186
188
  **Note**: Only remove if these contain oh-my-codex-related files. If user has custom agents/commands/skills, warn them and ask before removing.
@@ -93,7 +93,7 @@ Long-running commands (install, build, test) run in background. Maximum 20 concu
93
93
 
94
94
  Ecomode can be completely disabled via config. When disabled, all ecomode keywords are ignored.
95
95
 
96
- Set in `~/.claude/.omx-config.json`:
96
+ Set in `~/.codex/.omx-config.json`:
97
97
  ```json
98
98
  {
99
99
  "ecomode": {
@@ -18,9 +18,9 @@ Routes to the designer agent or Gemini MCP for frontend work.
18
18
  ### Preferred: MCP Direct
19
19
  Before first MCP tool use, call `ToolSearch("mcp")` to discover deferred MCP tools.
20
20
  Use `mcp__g__ask_gemini` with `agent_role: "designer"` for design tasks.
21
- If ToolSearch finds no MCP tools, use the Claude agent fallback below.
21
+ If ToolSearch finds no MCP tools, use the Codex agent fallback below.
22
22
 
23
- ### Fallback: Claude Agent
23
+ ### Fallback: Codex Agent
24
24
  ```
25
25
  spawn_sub_agent(subagent_type="oh-my-codex:designer", model="sonnet", prompt="{{ARGUMENTS}}")
26
26
  ```
@@ -77,7 +77,7 @@ Analyze your oh-my-codex usage and get tailored recommendations to improve your
77
77
  # Check for token tracking data
78
78
  TOKEN_FILE="$HOME/.omx/state/token-tracking.jsonl"
79
79
  SESSION_FILE=".omx/state/session-history.json"
80
- CONFIG_FILE="$HOME/.claude/.omx-config.json"
80
+ CONFIG_FILE="$HOME/.codex/.omx-config.json"
81
81
 
82
82
  echo "Analyzing OMX Usage..."
83
83
  echo ""
@@ -7,13 +7,13 @@ description: Extract a learned skill from the current conversation
7
7
 
8
8
  ## The Insight
9
9
 
10
- Reusable skills are not code snippets to copy-paste, but **principles and decision-making heuristics** that teach Claude HOW TO THINK about a class of problems.
10
+ Reusable skills are not code snippets to copy-paste, but **principles and decision-making heuristics** that teach Codex HOW TO THINK about a class of problems.
11
11
 
12
12
  **The difference:**
13
13
  - BAD (mimicking): "When you see ConnectionResetError, add this try/except block"
14
14
  - GOOD (reusable skill): "In async network code, any I/O operation can fail independently due to client/server lifecycle mismatches. The principle: wrap each I/O operation separately, because failure between operations is the common case, not the exception."
15
15
 
16
- A good skill changes how Claude APPROACHES problems, not just what code it produces.
16
+ A good skill changes how Codex APPROACHES problems, not just what code it produces.
17
17
 
18
18
  ## Why This Matters
19
19
 
@@ -62,7 +62,7 @@ The system REJECTS skills that are:
62
62
 
63
63
  **Step 3: Save Location**
64
64
 
65
- - **User-level**: ~/.claude/skills/omc-learned/ - Rare. Only for truly portable insights.
65
+ - **User-level**: ~/.codex/skills/omc-learned/ - Rare. Only for truly portable insights.
66
66
  - **Project-level**: .omx/skills/ - Default. Version-controlled with repo.
67
67
 
68
68
  ### What Makes a USEFUL Skill
@@ -120,14 +120,14 @@ How do you know when this skill applies? What are the signs?
120
120
  Example: "Building any long-lived connection handler (proxy, websocket, SSE)"
121
121
 
122
122
  ## The Approach
123
- The decision-making heuristic, not just code. How should Claude THINK about this?
123
+ The decision-making heuristic, not just code. How should Codex THINK about this?
124
124
  Example: "For each I/O operation, ask: what if this fails right now? Handle it locally."
125
125
 
126
126
  ## Example (Optional)
127
127
  If code helps, show it - but as illustration of the principle, not copy-paste material.
128
128
  ```
129
129
 
130
- **Key**: A skill is REUSABLE if Claude can apply it to NEW situations, not just identical ones.
130
+ **Key**: A skill is REUSABLE if Codex can apply it to NEW situations, not just identical ones.
131
131
 
132
132
  ## Related Commands
133
133