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.
- package/README.md +136 -271
- package/dist/cli/__tests__/index.test.js +19 -1
- package/dist/cli/__tests__/index.test.js.map +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +44 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +48 -1
- package/dist/cli/setup.js.map +1 -1
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts +10 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js +143 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js.map +1 -0
- package/dist/hud/index.d.ts +10 -0
- package/dist/hud/index.d.ts.map +1 -1
- package/dist/hud/index.js +32 -8
- package/dist/hud/index.js.map +1 -1
- package/dist/team/__tests__/tmux-session.test.js +100 -0
- package/dist/team/__tests__/tmux-session.test.js.map +1 -1
- package/dist/team/state.d.ts +1 -1
- package/dist/team/state.d.ts.map +1 -1
- package/dist/team/state.js +2 -2
- package/dist/team/state.js.map +1 -1
- package/dist/team/tmux-session.d.ts +1 -1
- package/dist/team/tmux-session.d.ts.map +1 -1
- package/dist/team/tmux-session.js +44 -4
- package/dist/team/tmux-session.js.map +1 -1
- package/package.json +1 -1
- package/prompts/analyst.md +102 -105
- package/prompts/api-reviewer.md +90 -93
- package/prompts/architect.md +102 -104
- package/prompts/build-fixer.md +81 -84
- package/prompts/code-reviewer.md +98 -100
- package/prompts/critic.md +79 -82
- package/prompts/debugger.md +85 -88
- package/prompts/deep-executor.md +105 -107
- package/prompts/dependency-expert.md +91 -94
- package/prompts/designer.md +96 -98
- package/prompts/executor.md +92 -94
- package/prompts/explore.md +104 -107
- package/prompts/git-master.md +84 -87
- package/prompts/information-architect.md +28 -29
- package/prompts/performance-reviewer.md +86 -89
- package/prompts/planner.md +108 -111
- package/prompts/product-analyst.md +28 -29
- package/prompts/product-manager.md +33 -34
- package/prompts/qa-tester.md +90 -93
- package/prompts/quality-reviewer.md +98 -100
- package/prompts/quality-strategist.md +33 -34
- package/prompts/researcher.md +88 -91
- package/prompts/scientist.md +84 -87
- package/prompts/security-reviewer.md +119 -121
- package/prompts/style-reviewer.md +79 -82
- package/prompts/test-engineer.md +96 -98
- package/prompts/ux-researcher.md +28 -29
- package/prompts/verifier.md +87 -90
- package/prompts/vision.md +67 -70
- package/prompts/writer.md +78 -81
- package/skills/analyze/SKILL.md +1 -1
- package/skills/autopilot/SKILL.md +11 -16
- package/skills/code-review/SKILL.md +1 -1
- package/skills/configure-discord/SKILL.md +6 -6
- package/skills/configure-telegram/SKILL.md +6 -6
- package/skills/doctor/SKILL.md +47 -45
- package/skills/ecomode/SKILL.md +1 -1
- package/skills/frontend-ui-ux/SKILL.md +2 -2
- package/skills/help/SKILL.md +1 -1
- package/skills/learner/SKILL.md +5 -5
- package/skills/omx-setup/SKILL.md +47 -1109
- package/skills/plan/SKILL.md +1 -1
- package/skills/project-session-manager/SKILL.md +5 -5
- package/skills/release/SKILL.md +3 -3
- package/skills/research/SKILL.md +10 -15
- package/skills/security-review/SKILL.md +1 -1
- package/skills/skill/SKILL.md +20 -20
- package/skills/tdd/SKILL.md +1 -1
- package/skills/ultrapilot/SKILL.md +11 -16
- package/skills/writer-memory/SKILL.md +1 -1
- package/templates/AGENTS.md +7 -7
package/skills/doctor/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Diagnose and fix oh-my-codex installation issues
|
|
|
5
5
|
|
|
6
6
|
# Doctor Skill
|
|
7
7
|
|
|
8
|
-
Note: All `~/.
|
|
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 ~/.
|
|
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-
|
|
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
|
|
31
|
+
### Step 2: Check Hook Configuration (config.toml + legacy settings.json)
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- `bash $HOME/.
|
|
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 ~/.
|
|
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
|
|
52
|
+
### Step 4: Check AGENTS.md
|
|
51
53
|
|
|
52
54
|
```bash
|
|
53
|
-
# Check if
|
|
54
|
-
ls -la ~/.
|
|
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" ~/.
|
|
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 -
|
|
62
|
-
- If missing OMX marker: WARN - outdated
|
|
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 ~/.
|
|
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 ~/.
|
|
82
|
+
ls -la ~/.codex/agents/ 2>/dev/null
|
|
81
83
|
|
|
82
84
|
# Check for legacy commands directory
|
|
83
|
-
ls -la ~/.
|
|
85
|
+
ls -la ~/.codex/commands/ 2>/dev/null
|
|
84
86
|
|
|
85
87
|
# Check for legacy skills directory
|
|
86
|
-
ls -la ~/.
|
|
88
|
+
ls -la ~/.codex/skills/ 2>/dev/null
|
|
87
89
|
```
|
|
88
90
|
|
|
89
91
|
**Diagnosis**:
|
|
90
|
-
- If `~/.
|
|
91
|
-
- If `~/.
|
|
92
|
-
- If `~/.
|
|
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
|
-
|
|
|
117
|
-
| Legacy Scripts (~/.
|
|
118
|
-
|
|
|
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 (~/.
|
|
121
|
-
| Legacy Commands (~/.
|
|
122
|
-
| Legacy Skills (~/.
|
|
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
|
-
|
|
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 ~/.
|
|
146
|
-
rm -f ~/.
|
|
147
|
-
rm -f ~/.
|
|
148
|
-
rm -f ~/.
|
|
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 ~/.
|
|
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 ~/.
|
|
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
|
|
165
|
-
Fetch latest from GitHub and write to `~/.
|
|
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/
|
|
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 ~/.
|
|
177
|
-
# mv ~/.
|
|
178
|
-
# mv ~/.
|
|
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 ~/.
|
|
182
|
-
rm -rf ~/.
|
|
183
|
-
rm -rf ~/.
|
|
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.
|
package/skills/ecomode/SKILL.md
CHANGED
|
@@ -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 `~/.
|
|
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
|
|
21
|
+
If ToolSearch finds no MCP tools, use the Codex agent fallback below.
|
|
22
22
|
|
|
23
|
-
### Fallback:
|
|
23
|
+
### Fallback: Codex Agent
|
|
24
24
|
```
|
|
25
25
|
spawn_sub_agent(subagent_type="oh-my-codex:designer", model="sonnet", prompt="{{ARGUMENTS}}")
|
|
26
26
|
```
|
package/skills/help/SKILL.md
CHANGED
|
@@ -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/.
|
|
80
|
+
CONFIG_FILE="$HOME/.codex/.omx-config.json"
|
|
81
81
|
|
|
82
82
|
echo "Analyzing OMX Usage..."
|
|
83
83
|
echo ""
|
package/skills/learner/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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**: ~/.
|
|
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
|
|
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
|
|
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
|
|