oh-my-codex-cli 0.1.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.
- package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
- package/.agent/skills/agent-kb/README.md +46 -0
- package/.agent/skills/agent-kb/SKILL.md +128 -0
- package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
- package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
- package/.agent/skills/aireview/SKILL.md +704 -0
- package/.agent/skills/analyze/SKILL.md +81 -0
- package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
- package/.agent/skills/architect-planner/README.md +41 -0
- package/.agent/skills/architect-planner/SKILL.md +539 -0
- package/.agent/skills/auto-mbti/SKILL.md +291 -0
- package/.agent/skills/autopilot/SKILL.md +222 -0
- package/.agent/skills/backend-patterns/SKILL.md +602 -0
- package/.agent/skills/bdd-generator/README.md +78 -0
- package/.agent/skills/bdd-generator/SKILL.md +436 -0
- package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
- package/.agent/skills/brainstorming/README.md +41 -0
- package/.agent/skills/brainstorming/SKILL.md +165 -0
- package/.agent/skills/build-fix/SKILL.md +190 -0
- package/.agent/skills/cancel/SKILL.md +658 -0
- package/.agent/skills/checkpoint/SKILL.md +94 -0
- package/.agent/skills/code-review/SKILL.md +273 -0
- package/.agent/skills/coding-standards/SKILL.md +535 -0
- package/.agent/skills/conductor/SKILL.md +128 -0
- package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
- package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
- package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
- package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
- package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
- package/.agent/skills/conductor/scripts/install.sh +89 -0
- package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
- package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
- package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
- package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
- package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
- package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
- package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
- package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
- package/.agent/skills/conductor/templates/rules/README.md +23 -0
- package/.agent/skills/conductor/templates/rules/agents.md +49 -0
- package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
- package/.agent/skills/conductor/templates/rules/dev.md +20 -0
- package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
- package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
- package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
- package/.agent/skills/conductor/templates/rules/performance.md +47 -0
- package/.agent/skills/conductor/templates/rules/research.md +26 -0
- package/.agent/skills/conductor/templates/rules/review.md +22 -0
- package/.agent/skills/conductor/templates/rules/security.md +36 -0
- package/.agent/skills/conductor/templates/rules/testing.md +30 -0
- package/.agent/skills/conductor/templates/workflow.md +333 -0
- package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
- package/.agent/skills/consensus/README.md +41 -0
- package/.agent/skills/consensus/SKILL.md +317 -0
- package/.agent/skills/content-research-writer/SKILL.md +537 -0
- package/.agent/skills/debug-analysis/SKILL.md +331 -0
- package/.agent/skills/deepinit/SKILL.md +347 -0
- package/.agent/skills/deepsearch/SKILL.md +56 -0
- package/.agent/skills/doctor/SKILL.md +158 -0
- package/.agent/skills/drawio/EXAMPLES.md +382 -0
- package/.agent/skills/drawio/QUICK_START.md +237 -0
- package/.agent/skills/drawio/README.md +315 -0
- package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
- package/.agent/skills/drawio/SKILL.md +1176 -0
- package/.agent/skills/e2e/SKILL.md +396 -0
- package/.agent/skills/ecomode/SKILL.md +160 -0
- package/.agent/skills/electron-driver/SKILL.md +144 -0
- package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
- package/.agent/skills/eval/SKILL.md +140 -0
- package/.agent/skills/eval-harness/SKILL.md +242 -0
- package/.agent/skills/evolve/SKILL.md +213 -0
- package/.agent/skills/frontend-design/SKILL.md +42 -0
- package/.agent/skills/frontend-patterns/SKILL.md +646 -0
- package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
- package/.agent/skills/git-master/SKILL.md +75 -0
- package/.agent/skills/help/SKILL.md +89 -0
- package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
- package/.agent/skills/local-skills-setup/SKILL.md +483 -0
- package/.agent/skills/log-analyzer/SKILL.md +187 -0
- package/.agent/skills/mcp-setup/SKILL.md +226 -0
- package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
- package/.agent/skills/multi-model-research/README.md +233 -0
- package/.agent/skills/multi-model-research/SKILL.md +541 -0
- package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
- package/.agent/skills/note/SKILL.md +80 -0
- package/.agent/skills/omc-setup/SKILL.md +219 -0
- package/.agent/skills/orchestrate/SKILL.md +620 -0
- package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
- package/.agent/skills/patent-workflow/README.md +455 -0
- package/.agent/skills/patent-workflow/SKILL.md +1036 -0
- package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
- package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
- package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
- package/.agent/skills/pattern-recognition/SKILL.md +792 -0
- package/.agent/skills/pipeline/SKILL.md +448 -0
- package/.agent/skills/plan/SKILL.md +309 -0
- package/.agent/skills/planning-methodology/SKILL.md +370 -0
- package/.agent/skills/planning-with-files/SKILL.md +210 -0
- package/.agent/skills/planning-with-files/examples.md +202 -0
- package/.agent/skills/planning-with-files/reference.md +218 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
- package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
- package/.agent/skills/planning-with-files/templates/findings.md +95 -0
- package/.agent/skills/planning-with-files/templates/progress.md +114 -0
- package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
- package/.agent/skills/project-analyze/CLAUDE.md +18 -0
- package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
- package/.agent/skills/project-analyze/README.md +42 -0
- package/.agent/skills/project-analyze/SKILL.md +289 -0
- package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
- package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
- package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
- package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
- package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
- package/.agent/skills/project-session-manager/SKILL.md +428 -0
- package/.agent/skills/project-session-manager/lib/config.sh +86 -0
- package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
- package/.agent/skills/project-session-manager/lib/session.sh +132 -0
- package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
- package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
- package/.agent/skills/project-session-manager/psm.sh +629 -0
- package/.agent/skills/project-session-manager/templates/feature.md +56 -0
- package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
- package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
- package/.agent/skills/project-session-manager/templates/projects.json +19 -0
- package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
- package/.agent/skills/quality-check/README.md +50 -0
- package/.agent/skills/quality-check/SKILL.md +240 -0
- package/.agent/skills/quality-check/SKILL.md.backup +238 -0
- package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
- package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
- package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
- package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
- package/.agent/skills/quality-validation/SKILL.md +519 -0
- package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
- package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
- package/.agent/skills/ralph/SKILL.md +236 -0
- package/.agent/skills/ralph-init/SKILL.md +78 -0
- package/.agent/skills/ralplan/SKILL.md +58 -0
- package/.agent/skills/refactor-clean/SKILL.md +49 -0
- package/.agent/skills/release/SKILL.md +84 -0
- package/.agent/skills/research/SKILL.md +526 -0
- package/.agent/skills/research-methodology/SKILL.md +268 -0
- package/.agent/skills/review/SKILL.md +53 -0
- package/.agent/skills/security-review/SKILL.md +509 -0
- package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/.agent/skills/setup-pm/SKILL.md +102 -0
- package/.agent/skills/skill/SKILL.md +424 -0
- package/.agent/skills/skill-create/SKILL.md +209 -0
- package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
- package/.agent/skills/skill-debugger/README.md +44 -0
- package/.agent/skills/skill-debugger/SKILL.md +326 -0
- package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
- package/.agent/skills/skill-development/SKILL.md +661 -0
- package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
- package/.agent/skills/skill-doc-generator/README.md +37 -0
- package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
- package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
- package/.agent/skills/skill-quality-analyzer/README.md +61 -0
- package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
- package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
- package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
- package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
- package/.agent/skills/skill-tester/README.md +46 -0
- package/.agent/skills/skill-tester/SKILL.md +345 -0
- package/.agent/skills/start-dev/SKILL.md +701 -0
- package/.agent/skills/swarm/SKILL.md +691 -0
- package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
- package/.agent/skills/task-kb-record/SKILL.md +417 -0
- package/.agent/skills/tdd/SKILL.md +446 -0
- package/.agent/skills/tdd-generator/DEMO.md +516 -0
- package/.agent/skills/tdd-generator/README.md +89 -0
- package/.agent/skills/tdd-generator/SKILL.md +278 -0
- package/.agent/skills/tdd-workflow/SKILL.md +424 -0
- package/.agent/skills/test-coverage/SKILL.md +48 -0
- package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
- package/.agent/skills/thinkdeep/README.md +41 -0
- package/.agent/skills/thinkdeep/SKILL.md +343 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.agent/skills/ultrapilot/SKILL.md +647 -0
- package/.agent/skills/ultraqa/SKILL.md +152 -0
- package/.agent/skills/ultrawork/SKILL.md +123 -0
- package/.agent/skills/update-codemaps/SKILL.md +38 -0
- package/.agent/skills/update-docs/SKILL.md +52 -0
- package/.agent/skills/verification-loop/SKILL.md +140 -0
- package/.agent/skills/verify/SKILL.md +80 -0
- package/.agent/skills/writer-memory/SKILL.md +459 -0
- package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
- package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
- package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
- package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
- package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
- package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
- package/.governance/skill-lint.allowlist +4 -0
- package/.governance/skill-llm.allowlist +4 -0
- package/AGENTS.md +59 -0
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/README.zh.md +145 -0
- package/bin/omcodex.js +8 -0
- package/commands/conductor/implement.toml +358 -0
- package/commands/conductor/newTrack.toml +142 -0
- package/commands/conductor/revert.toml +123 -0
- package/commands/conductor/setup.toml +429 -0
- package/commands/conductor/status.toml +57 -0
- package/docs/ALIGNMENT.md +40 -0
- package/docs/CODEX.md +133 -0
- package/docs/NOTIFY.md +81 -0
- package/docs/SKILL_GOVERNANCE.md +72 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
- package/package.json +50 -0
- package/prompts/architect.md +105 -0
- package/prompts/executor.md +134 -0
- package/prompts/planner.md +113 -0
- package/scripts/check-skill-governance.sh +84 -0
- package/scripts/check-skill-llm-governance.js +302 -0
- package/scripts/eval-skills.js +217 -0
- package/scripts/generate-catalog-docs.js +95 -0
- package/scripts/generate-codex-mcp-config.sh +22 -0
- package/scripts/install-codex-force.sh +5 -0
- package/scripts/install-codex-incremental.sh +5 -0
- package/scripts/install-codex.sh +79 -0
- package/scripts/notify-dispatch.js +15 -0
- package/scripts/setup-package-manager.js +137 -0
- package/src/catalog/generated/public-catalog.json +547 -0
- package/src/catalog/manifest.json +542 -0
- package/src/catalog/reader.js +43 -0
- package/src/catalog/schema.js +79 -0
- package/src/cli/doctor.js +62 -0
- package/src/cli/index.js +85 -0
- package/src/cli/notify.js +127 -0
- package/src/cli/route.js +43 -0
- package/src/cli/setup.js +155 -0
- package/src/cli/team.js +125 -0
- package/src/config/generator.js +119 -0
- package/src/mcp/memory-server.js +241 -0
- package/src/mcp/state-server.js +112 -0
- package/src/mcp/trace-server.js +168 -0
- package/src/notify/dispatch.js +74 -0
- package/src/notify/extensibility/dispatcher.js +113 -0
- package/src/notify/extensibility/events.js +15 -0
- package/src/notify/extensibility/loader.js +54 -0
- package/src/router/skill-router.js +90 -0
- package/src/team/auto-advance.js +72 -0
- package/src/team/orchestrator.js +82 -0
- package/src/team/state-store.js +33 -0
- package/src/utils/paths.js +33 -0
- package/templates/AGENTS.md +15 -0
- package/templates/catalog-manifest.json +542 -0
- package/templates/code_styleguides/csharp.md +115 -0
- package/templates/code_styleguides/dart.md +238 -0
- package/templates/code_styleguides/general.md +23 -0
- package/templates/code_styleguides/go.md +48 -0
- package/templates/code_styleguides/html-css.md +49 -0
- package/templates/code_styleguides/javascript.md +51 -0
- package/templates/code_styleguides/python.md +37 -0
- package/templates/code_styleguides/typescript.md +43 -0
- package/templates/rules/README.md +23 -0
- package/templates/rules/agents.md +49 -0
- package/templates/rules/coding-style.md +70 -0
- package/templates/rules/dev.md +20 -0
- package/templates/rules/git-workflow.md +45 -0
- package/templates/rules/notify.md +6 -0
- package/templates/rules/patterns.md +55 -0
- package/templates/rules/performance.md +47 -0
- package/templates/rules/research.md +26 -0
- package/templates/rules/review.md +22 -0
- package/templates/rules/security.md +36 -0
- package/templates/rules/testing.md +30 -0
- package/templates/workflow.md +333 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
# Multi-Model Research Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
## Common Issues and Solutions
|
|
4
|
+
|
|
5
|
+
### Issue 1: Gemini CLI Timeout or Hangs
|
|
6
|
+
|
|
7
|
+
**Symptoms**:
|
|
8
|
+
- Gemini command doesn't return after 2-3 minutes
|
|
9
|
+
- Process appears frozen
|
|
10
|
+
- No output after initial startup logs
|
|
11
|
+
|
|
12
|
+
**Root Causes**:
|
|
13
|
+
1. OAuth token expired (most common)
|
|
14
|
+
2. Prompt too long for direct CLI
|
|
15
|
+
3. Network connectivity issues
|
|
16
|
+
4. Google API rate limiting
|
|
17
|
+
|
|
18
|
+
**Solutions**:
|
|
19
|
+
|
|
20
|
+
**Solution 1: Switch to gemp (Recommended)**
|
|
21
|
+
```bash
|
|
22
|
+
# Use gemp which handles token refresh automatically
|
|
23
|
+
cat > /tmp/gemini_prompt.txt << 'PROMPT_EOF'
|
|
24
|
+
Your question here
|
|
25
|
+
PROMPT_EOF
|
|
26
|
+
|
|
27
|
+
cat /tmp/gemini_prompt.txt | node ~/.gemini/long_task_runner.js 2>&1
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Solution 2: Refresh OAuth Token**
|
|
31
|
+
```bash
|
|
32
|
+
# Check current auth status
|
|
33
|
+
gemini --version
|
|
34
|
+
|
|
35
|
+
# Re-authenticate if needed
|
|
36
|
+
# Follow OAuth flow in browser
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Solution 3: Shorten Prompt**
|
|
40
|
+
```bash
|
|
41
|
+
# If prompt is very long, summarize or split into chunks
|
|
42
|
+
# Aim for < 2000 words per query
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Solution 4: Add Timeout**
|
|
46
|
+
```bash
|
|
47
|
+
# Use timeout command to prevent infinite hangs
|
|
48
|
+
timeout 300 gemini --yolo -c "$PROMPT" 2>&1 | grep -v "STARTUP|YOLO|Load"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### Issue 2: Codex Returns JSONL Format
|
|
54
|
+
|
|
55
|
+
**Symptoms**:
|
|
56
|
+
- Output contains lines like `{"type":"text","data":"..."}`
|
|
57
|
+
- Multiple JSON objects instead of plain text
|
|
58
|
+
- Hard to read response
|
|
59
|
+
|
|
60
|
+
**Root Cause**:
|
|
61
|
+
- Codex CLI outputs in JSONL format by default
|
|
62
|
+
- Each event (text, thinking) is a separate JSON object
|
|
63
|
+
|
|
64
|
+
**Solutions**:
|
|
65
|
+
|
|
66
|
+
**Solution 1: Parse JSONL Events (Recommended)**
|
|
67
|
+
```bash
|
|
68
|
+
cat /tmp/codex_prompt.txt | codex exec --dangerously-bypass-approvals-and-sandbox - 2>&1 | \
|
|
69
|
+
grep '"type":"text"' | \
|
|
70
|
+
sed 's/.*"data":"\(.*\)".*/\1/' | \
|
|
71
|
+
sed 's/\\n/\n/g'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Solution 2: Limit Output with head**
|
|
75
|
+
```bash
|
|
76
|
+
# Get first 500 lines (usually sufficient)
|
|
77
|
+
cat /tmp/codex_prompt.txt | codex exec --dangerously-bypass-approvals-and-sandbox - 2>&1 | head -500
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Solution 3: Save to File and Parse**
|
|
81
|
+
```bash
|
|
82
|
+
cat /tmp/codex_prompt.txt | \
|
|
83
|
+
codex exec --dangerously-bypass-approvals-and-sandbox -o /tmp/codex_output.txt - 2>&1
|
|
84
|
+
|
|
85
|
+
# Read and parse the file
|
|
86
|
+
cat /tmp/codex_output.txt
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
### Issue 3: Shell Escaping Errors
|
|
92
|
+
|
|
93
|
+
**Symptoms**:
|
|
94
|
+
- `bash: syntax error near unexpected token`
|
|
95
|
+
- `parse error` in heredoc
|
|
96
|
+
- Quotes not properly escaped
|
|
97
|
+
|
|
98
|
+
**Root Cause**:
|
|
99
|
+
- Complex prompts with nested quotes
|
|
100
|
+
- Special characters in prompts
|
|
101
|
+
- Heredoc delimiters not properly escaped
|
|
102
|
+
|
|
103
|
+
**Solutions**:
|
|
104
|
+
|
|
105
|
+
**Solution 1: Always Use Temporary Files (Best Practice)**
|
|
106
|
+
```bash
|
|
107
|
+
# Write prompt to file first
|
|
108
|
+
cat > /tmp/gemini_prompt.txt << 'PROMPT_EOF'
|
|
109
|
+
Your question with "quotes" and 'apostrophes'
|
|
110
|
+
Can include any special characters: $, `, \, etc.
|
|
111
|
+
PROMPT_EOF
|
|
112
|
+
|
|
113
|
+
# Then pipe to CLI
|
|
114
|
+
cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1 | grep -v "STARTUP|YOLO|Load"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Solution 2: Use Single-Quoted Heredoc**
|
|
118
|
+
```bash
|
|
119
|
+
# 'EOF' prevents variable expansion
|
|
120
|
+
cat > /tmp/prompt.txt << 'EOF'
|
|
121
|
+
Content here
|
|
122
|
+
EOF
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Solution 3: Escape Special Characters**
|
|
126
|
+
```bash
|
|
127
|
+
# If must use command line, escape properly
|
|
128
|
+
PROMPT="Question with \"quotes\" and \`backticks\`"
|
|
129
|
+
gemini --yolo -c "$PROMPT"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### Issue 4: CLI Commands Not Found
|
|
135
|
+
|
|
136
|
+
**Symptoms**:
|
|
137
|
+
- `gemini: command not found`
|
|
138
|
+
- `codex: command not found`
|
|
139
|
+
|
|
140
|
+
**Root Cause**:
|
|
141
|
+
- CLI tools not installed or not in PATH
|
|
142
|
+
- Shell session doesn't have updated PATH
|
|
143
|
+
|
|
144
|
+
**Solutions**:
|
|
145
|
+
|
|
146
|
+
**Solution 1: Check Installation**
|
|
147
|
+
```bash
|
|
148
|
+
# Verify gemini
|
|
149
|
+
which gemini
|
|
150
|
+
# Should show: /usr/local/bin/gemini or similar
|
|
151
|
+
|
|
152
|
+
# Verify codex
|
|
153
|
+
which codex
|
|
154
|
+
# Should show: /opt/homebrew/opt/nvm/versions/node/v22.17.1/bin/codex or similar
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Solution 2: Verify PATH**
|
|
158
|
+
```bash
|
|
159
|
+
echo $PATH | grep -o '[^:]*gemini[^:]*'
|
|
160
|
+
echo $PATH | grep -o '[^:]*codex[^:]*'
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Solution 3: Reload Shell Configuration**
|
|
164
|
+
```bash
|
|
165
|
+
# Reload .zshrc or .bashrc
|
|
166
|
+
source ~/.zshrc
|
|
167
|
+
# or
|
|
168
|
+
source ~/.bashrc
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Solution 4: Use Full Path**
|
|
172
|
+
```bash
|
|
173
|
+
# Use absolute path if PATH not updated
|
|
174
|
+
/usr/local/bin/gemini --yolo -c "$PROMPT"
|
|
175
|
+
/opt/homebrew/opt/nvm/versions/node/v22.17.1/bin/codex exec --dangerously-bypass-approvals-and-sandbox -
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### Issue 5: Empty or Incomplete Responses
|
|
181
|
+
|
|
182
|
+
**Symptoms**:
|
|
183
|
+
- CLI returns empty string
|
|
184
|
+
- Response cuts off mid-sentence
|
|
185
|
+
- Only startup logs, no actual response
|
|
186
|
+
|
|
187
|
+
**Root Causes**:
|
|
188
|
+
1. Filtering removed actual content
|
|
189
|
+
2. Timeout too short
|
|
190
|
+
3. API error not visible
|
|
191
|
+
4. Prompt unclear or malformed
|
|
192
|
+
|
|
193
|
+
**Solutions**:
|
|
194
|
+
|
|
195
|
+
**Solution 1: Remove Output Filtering**
|
|
196
|
+
```bash
|
|
197
|
+
# Don't filter output to see full response
|
|
198
|
+
cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1
|
|
199
|
+
# Check if actual content is being filtered out
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Solution 2: Check for Errors**
|
|
203
|
+
```bash
|
|
204
|
+
# Look for error messages in full output
|
|
205
|
+
cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1 | grep -i "error\|fail\|invalid"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Solution 3: Increase Timeout**
|
|
209
|
+
```bash
|
|
210
|
+
# Use gemp with 20-minute timeout
|
|
211
|
+
cat /tmp/gemini_prompt.txt | node ~/.gemini/long_task_runner.js 2>&1
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Solution 4: Simplify Prompt**
|
|
215
|
+
```bash
|
|
216
|
+
# Test with simple prompt first
|
|
217
|
+
echo "What is 2+2?" | gemini --yolo 2>&1
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
### Issue 6: gemp Script Not Found or Fails
|
|
223
|
+
|
|
224
|
+
**Symptoms**:
|
|
225
|
+
- `node ~/.gemini/long_task_runner.js: No such file or directory`
|
|
226
|
+
- `gemp: command not found`
|
|
227
|
+
|
|
228
|
+
**Root Cause**:
|
|
229
|
+
- gemp not installed or misconfigured
|
|
230
|
+
- Node.js not available
|
|
231
|
+
|
|
232
|
+
**Solutions**:
|
|
233
|
+
|
|
234
|
+
**Solution 1: Verify gemp Installation**
|
|
235
|
+
```bash
|
|
236
|
+
# Check if file exists
|
|
237
|
+
ls -la ~/.gemini/long_task_runner.js
|
|
238
|
+
|
|
239
|
+
# Check Node.js
|
|
240
|
+
which node
|
|
241
|
+
node --version
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
**Solution 2: Fallback to Standard gemini CLI**
|
|
245
|
+
```bash
|
|
246
|
+
# Use standard gemini CLI if gemp unavailable
|
|
247
|
+
cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1 | grep -v "STARTUP|YOLO|Load"
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Solution 3: Reinstall gemp**
|
|
251
|
+
```bash
|
|
252
|
+
# Follow gemp installation instructions
|
|
253
|
+
# (instructions depend on gemp distribution method)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
### Issue 7: Rate Limiting or Quota Exceeded
|
|
259
|
+
|
|
260
|
+
**Symptoms**:
|
|
261
|
+
- "Rate limit exceeded" error
|
|
262
|
+
- "Quota exceeded" message
|
|
263
|
+
- 429 HTTP status code
|
|
264
|
+
|
|
265
|
+
**Root Cause**:
|
|
266
|
+
- Too many requests in short time
|
|
267
|
+
- Daily quota reached
|
|
268
|
+
- Account limits
|
|
269
|
+
|
|
270
|
+
**Solutions**:
|
|
271
|
+
|
|
272
|
+
**Solution 1: Wait and Retry**
|
|
273
|
+
```bash
|
|
274
|
+
# Wait 60 seconds before retry
|
|
275
|
+
sleep 60
|
|
276
|
+
cat /tmp/gemini_prompt.txt | gemini --yolo 2>&1
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Solution 2: Batch Requests**
|
|
280
|
+
```bash
|
|
281
|
+
# Combine multiple questions into one prompt
|
|
282
|
+
# Instead of 3 separate calls, use 1 call with 3 questions
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Solution 3: Check Quota Status**
|
|
286
|
+
```bash
|
|
287
|
+
# Check Google Cloud Console for quota details
|
|
288
|
+
# (specific to Gemini API setup)
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
### Issue 8: Codex Authentication Errors
|
|
294
|
+
|
|
295
|
+
**Symptoms**:
|
|
296
|
+
- "Authentication failed" from codex
|
|
297
|
+
- "Invalid credentials"
|
|
298
|
+
- 401 or 403 errors
|
|
299
|
+
|
|
300
|
+
**Root Cause**:
|
|
301
|
+
- Codex API key expired or invalid
|
|
302
|
+
- Permissions not set correctly
|
|
303
|
+
|
|
304
|
+
**Solutions**:
|
|
305
|
+
|
|
306
|
+
**Solution 1: Verify Codex Configuration**
|
|
307
|
+
```bash
|
|
308
|
+
# Check codex configuration
|
|
309
|
+
codex --version
|
|
310
|
+
codex config list
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Solution 2: Re-authenticate**
|
|
314
|
+
```bash
|
|
315
|
+
# Follow codex authentication flow
|
|
316
|
+
codex login
|
|
317
|
+
# or
|
|
318
|
+
codex config set api_key YOUR_KEY
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**Solution 3: Check Permissions**
|
|
322
|
+
```bash
|
|
323
|
+
# Ensure --dangerously-bypass-approvals-and-sandbox is allowed
|
|
324
|
+
# (This is a security flag, ensure proper authorization)
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Quick Debugging Checklist
|
|
330
|
+
|
|
331
|
+
When multi-model research fails, check these in order:
|
|
332
|
+
|
|
333
|
+
1. **CLI Availability**
|
|
334
|
+
- [ ] `which gemini` works
|
|
335
|
+
- [ ] `which codex` works
|
|
336
|
+
- [ ] `which node` works (for gemp)
|
|
337
|
+
|
|
338
|
+
2. **Authentication**
|
|
339
|
+
- [ ] `gemini --version` shows authenticated
|
|
340
|
+
- [ ] `codex --version` works
|
|
341
|
+
|
|
342
|
+
3. **Prompt File**
|
|
343
|
+
- [ ] `/tmp/gemini_prompt.txt` exists and readable
|
|
344
|
+
- [ ] `/tmp/codex_prompt.txt` exists and readable
|
|
345
|
+
- [ ] Files contain expected content
|
|
346
|
+
|
|
347
|
+
4. **Network**
|
|
348
|
+
- [ ] Internet connectivity working
|
|
349
|
+
- [ ] No proxy issues
|
|
350
|
+
- [ ] Google API accessible
|
|
351
|
+
|
|
352
|
+
5. **Output**
|
|
353
|
+
- [ ] Check unfiltered output first
|
|
354
|
+
- [ ] Look for error messages
|
|
355
|
+
- [ ] Verify response not empty
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## Best Practices for Reliability
|
|
360
|
+
|
|
361
|
+
1. **Always Use Temporary Files**
|
|
362
|
+
- Avoids shell escaping issues
|
|
363
|
+
- Easier to debug
|
|
364
|
+
- Can inspect prompt content
|
|
365
|
+
|
|
366
|
+
2. **Prefer gemp Over gemini CLI**
|
|
367
|
+
- Better timeout handling (20 min vs 2-3 min)
|
|
368
|
+
- Automatic token refresh
|
|
369
|
+
- Cleaner output
|
|
370
|
+
|
|
371
|
+
3. **Add Timeouts to All Commands**
|
|
372
|
+
- Prevents infinite hangs
|
|
373
|
+
- `timeout 300` for 5-minute limit
|
|
374
|
+
|
|
375
|
+
4. **Log All Outputs for Debugging**
|
|
376
|
+
- Save full output before filtering
|
|
377
|
+
- Check logs when issues occur
|
|
378
|
+
|
|
379
|
+
5. **Test Simple Queries First**
|
|
380
|
+
- Verify CLI working with "What is 2+2?"
|
|
381
|
+
- Then try actual complex prompt
|
|
382
|
+
|
|
383
|
+
6. **Use Error Handling in Scripts**
|
|
384
|
+
```bash
|
|
385
|
+
if ! cat /tmp/prompt.txt | gemini --yolo 2>&1 > /tmp/output.txt; then
|
|
386
|
+
echo "Gemini CLI failed, check /tmp/output.txt"
|
|
387
|
+
exit 1
|
|
388
|
+
fi
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Emergency Fallback Strategy
|
|
394
|
+
|
|
395
|
+
If all else fails, use this minimal working example:
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
# 1. Create prompt file
|
|
399
|
+
echo "Your question here" > /tmp/test_prompt.txt
|
|
400
|
+
|
|
401
|
+
# 2. Try gemp first
|
|
402
|
+
if command -v node &> /dev/null; then
|
|
403
|
+
cat /tmp/test_prompt.txt | node ~/.gemini/long_task_runner.js 2>&1 > /tmp/response.txt
|
|
404
|
+
fi
|
|
405
|
+
|
|
406
|
+
# 3. Fallback to gemini CLI
|
|
407
|
+
if [ ! -s /tmp/response.txt ]; then
|
|
408
|
+
cat /tmp/test_prompt.txt | gemini --yolo 2>&1 > /tmp/response.txt
|
|
409
|
+
fi
|
|
410
|
+
|
|
411
|
+
# 4. Show result
|
|
412
|
+
cat /tmp/response.txt
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
This provides maximum compatibility and fallback options.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: note
|
|
3
|
+
description: Save notes to notepad.md for compaction resilience
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Note Skill
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$note ...` or `note: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Save important context to `.omc/notepad.md` that survives conversation compaction.
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
| Command | Action |
|
|
31
|
+
|---------|--------|
|
|
32
|
+
| `$note <content>` | Add to Working Memory with timestamp |
|
|
33
|
+
| `$note --priority <content>` | Add to Priority Context (always loaded) |
|
|
34
|
+
| `$note --manual <content>` | Add to MANUAL section (never pruned) |
|
|
35
|
+
| `$note --show` | Display current notepad contents |
|
|
36
|
+
| `$note --prune` | Remove entries older than 7 days |
|
|
37
|
+
| `$note --clear` | Clear Working Memory (keep Priority + MANUAL) |
|
|
38
|
+
|
|
39
|
+
## Sections
|
|
40
|
+
|
|
41
|
+
### Priority Context (500 char limit)
|
|
42
|
+
- **Always** injected on session start
|
|
43
|
+
- Use for critical facts: "Project uses pnpm", "API in src/api/client.ts"
|
|
44
|
+
- Keep it SHORT - this eats into your context budget
|
|
45
|
+
|
|
46
|
+
### Working Memory
|
|
47
|
+
- Timestamped session notes
|
|
48
|
+
- Auto-pruned after 7 days
|
|
49
|
+
- Good for: debugging breadcrumbs, temporary findings
|
|
50
|
+
|
|
51
|
+
### MANUAL
|
|
52
|
+
- Never auto-pruned
|
|
53
|
+
- User-controlled permanent notes
|
|
54
|
+
- Good for: team contacts, deployment info
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
$note Found auth bug in UserContext - missing useEffect dependency
|
|
60
|
+
$note --priority Project uses TypeScript strict mode, all files in src/
|
|
61
|
+
$note --manual Contact: api-team@company.com for backend questions
|
|
62
|
+
$note --show
|
|
63
|
+
$note --prune
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Behavior
|
|
67
|
+
|
|
68
|
+
1. Creates `.omc/notepad.md` if it doesn't exist
|
|
69
|
+
2. Parses the argument to determine section
|
|
70
|
+
3. Appends content with timestamp (for Working Memory)
|
|
71
|
+
4. Warns if Priority Context exceeds 500 chars
|
|
72
|
+
5. Confirms what was saved
|
|
73
|
+
|
|
74
|
+
## Integration
|
|
75
|
+
|
|
76
|
+
Notepad content is automatically loaded on session start:
|
|
77
|
+
- Priority Context: ALWAYS loaded
|
|
78
|
+
- Working Memory: Loaded if recent entries exist
|
|
79
|
+
|
|
80
|
+
This helps survive conversation compaction without losing critical context.
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omc-setup
|
|
3
|
+
description: Setup and configure oh-my-codex (the ONLY command you need to learn)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# OMC Setup
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Native Subagent Protocol (Codex)
|
|
10
|
+
|
|
11
|
+
Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
|
|
12
|
+
|
|
13
|
+
Execution preference:
|
|
14
|
+
1. Use native subagents first for independent workstreams (parallel when possible).
|
|
15
|
+
2. Merge results in main thread and run final verification.
|
|
16
|
+
3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
|
|
17
|
+
|
|
18
|
+
Minimal orchestration pattern:
|
|
19
|
+
```text
|
|
20
|
+
spawn_agent -> send_input (optional) -> wait -> close_agent
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> Codex invocation: use `$omc-setup ...` or `omc-setup: ...`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
This is the **only command you need to learn**. After running this, everything else is automatic.
|
|
28
|
+
|
|
29
|
+
## Usage Modes
|
|
30
|
+
|
|
31
|
+
This skill handles three scenarios:
|
|
32
|
+
|
|
33
|
+
1. **Initial Setup (no flags)**: Interactive installation wizard
|
|
34
|
+
2. **Local Configuration (`--local`)**: Configure project-specific settings (.codex/CLAUDE.md)
|
|
35
|
+
3. **Global Configuration (`--global`)**: Configure global settings (~/.codex/CLAUDE.md)
|
|
36
|
+
|
|
37
|
+
## Mode Detection
|
|
38
|
+
|
|
39
|
+
Check for flags in the user's invocation:
|
|
40
|
+
- If `--local` flag present → Skip to Local Configuration (Step 2A)
|
|
41
|
+
- If `--global` flag present → Skip to Global Configuration (Step 2B)
|
|
42
|
+
- If no flags → Run Initial Setup wizard (Step 1)
|
|
43
|
+
|
|
44
|
+
## Step 1: Initial Setup Wizard (Default Behavior)
|
|
45
|
+
|
|
46
|
+
Prompt the user in plain text with numbered choices:
|
|
47
|
+
|
|
48
|
+
**Question:** "Where should I configure oh-my-codex?"
|
|
49
|
+
|
|
50
|
+
**Options:**
|
|
51
|
+
1. **Local (this project)** - Creates `.codex/CLAUDE.md` in current project directory. Best for project-specific configurations.
|
|
52
|
+
2. **Global (all projects)** - Creates `~/.codex/CLAUDE.md` for all Codex sessions. Best for consistent behavior everywhere.
|
|
53
|
+
3. **Full Reinstall** - Re-run the full installer script (skills, rules, prompts, mcp)
|
|
54
|
+
|
|
55
|
+
## Step 2A: Local Configuration (--local flag or user chose LOCAL)
|
|
56
|
+
|
|
57
|
+
Use the helper script to install project-local configuration:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Run installer in project mode
|
|
61
|
+
./scripts/install-codex.sh --project --rules
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**What this does:**
|
|
65
|
+
- Copies `templates/CLAUDE.md` or downloads fresh from GitHub
|
|
66
|
+
- Installs local rules to `.codex/rules/`
|
|
67
|
+
- Helper script handles backup automatically
|
|
68
|
+
|
|
69
|
+
### Confirm Local Configuration Success
|
|
70
|
+
|
|
71
|
+
**OMC Project Configuration Complete**
|
|
72
|
+
- CLAUDE.md: Installed to ./.codex/CLAUDE.md
|
|
73
|
+
- Scope: **PROJECT** - applies only to this project
|
|
74
|
+
- Skills: Available via `.codex/skills` (if copied) or global fallback
|
|
75
|
+
- Rules: Project-specific rules in `.codex/rules`
|
|
76
|
+
|
|
77
|
+
## Step 2B: Global Configuration (--global flag or user chose GLOBAL)
|
|
78
|
+
|
|
79
|
+
Use the helper script to install global configuration:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Run installer in global mode (default)
|
|
83
|
+
./scripts/install-codex.sh --rules
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**What this does:**
|
|
87
|
+
- Copies `templates/CLAUDE.md` or downloads fresh from GitHub to `~/.codex/CLAUDE.md`
|
|
88
|
+
- Installs global rules to `~/.codex/rules/`
|
|
89
|
+
- Helper script handles backup automatically
|
|
90
|
+
|
|
91
|
+
### Confirm Global Configuration Success
|
|
92
|
+
|
|
93
|
+
**OMC Global Configuration Complete**
|
|
94
|
+
- CLAUDE.md: Installed to ~/.codex/CLAUDE.md
|
|
95
|
+
- Scope: **GLOBAL** - applies to all Codex sessions
|
|
96
|
+
- Skills: Available globally in `~/.codex/skills`
|
|
97
|
+
- Rules: Global rules in `~/.codex/rules`
|
|
98
|
+
|
|
99
|
+
## Step 3: Full Reinstall (Optional)
|
|
100
|
+
|
|
101
|
+
If user chose "Full Reinstall", run the comprehensive installer:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
./scripts/install-codex.sh --all
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This installs:
|
|
108
|
+
- Skills
|
|
109
|
+
- Rules
|
|
110
|
+
- Prompts (deprecated but included)
|
|
111
|
+
- MCP Config
|
|
112
|
+
- Plan Mode check
|
|
113
|
+
|
|
114
|
+
## Step 4: MCP Configuration
|
|
115
|
+
|
|
116
|
+
Ask user: "Would you like to configure MCP servers for enhanced capabilities? (Context7, Exa search, GitHub, etc.)"
|
|
117
|
+
|
|
118
|
+
If yes, invoke the mcp-setup skill:
|
|
119
|
+
```
|
|
120
|
+
$mcp-setup
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
If no, skip to next step.
|
|
124
|
+
|
|
125
|
+
## Step 5: Show Welcome Message
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
OMC Setup Complete!
|
|
129
|
+
|
|
130
|
+
You don't need to learn any commands. I now have intelligent behaviors that activate automatically via the Codex CLI.
|
|
131
|
+
|
|
132
|
+
WHAT HAPPENS AUTOMATICALLY:
|
|
133
|
+
- Complex tasks -> I parallelize and delegate to specialists
|
|
134
|
+
- "plan this" -> I start a planning interview
|
|
135
|
+
- "don't stop until done" -> I persist until verified complete
|
|
136
|
+
- "stop" or "cancel" -> I intelligently stop current operation
|
|
137
|
+
|
|
138
|
+
MAGIC KEYWORDS (optional power-user shortcuts):
|
|
139
|
+
Just include these words naturally in your request:
|
|
140
|
+
|
|
141
|
+
| Keyword | Effect | Example |
|
|
142
|
+
|---------|--------|---------|
|
|
143
|
+
| ralph | Persistence mode | "ralph: fix the auth bug" |
|
|
144
|
+
| ralplan | Iterative planning | "ralplan this feature" |
|
|
145
|
+
| ulw | Max parallelism | "ulw refactor the API" |
|
|
146
|
+
| eco | Token-efficient mode | "eco refactor the API" |
|
|
147
|
+
| plan | Planning interview | "plan the new endpoints" |
|
|
148
|
+
|
|
149
|
+
MCP SERVERS:
|
|
150
|
+
Run $mcp-setup to add tools like web search, GitHub, etc.
|
|
151
|
+
|
|
152
|
+
CLI ANALYTICS:
|
|
153
|
+
Check 'codex cost' for usage info.
|
|
154
|
+
|
|
155
|
+
That's it! Just use Codex CLI normally.
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Step 6: Ask About Starring Repository
|
|
159
|
+
|
|
160
|
+
First, check if `gh` CLI is available and authenticated:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
gh auth status &>/dev/null
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### If gh is available and authenticated:
|
|
167
|
+
|
|
168
|
+
Prompt the user in plain text with numbered choices:
|
|
169
|
+
|
|
170
|
+
**Question:** "If you're enjoying oh-my-codex, would you like to support the project by starring it on GitHub?"
|
|
171
|
+
|
|
172
|
+
**Options:**
|
|
173
|
+
1. **Yes, star it!** - Star the repository
|
|
174
|
+
2. **No thanks** - Skip without further prompts
|
|
175
|
+
|
|
176
|
+
If user chooses "Yes, star it!":
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
gh api -X PUT /user/starred/Yeachan-Heo/oh-my-codex 2>/dev/null && echo "Thanks for starring! ⭐" || true
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### If gh is NOT available or not authenticated:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
echo ""
|
|
186
|
+
echo "If you enjoy oh-my-codex, consider starring the repo:"
|
|
187
|
+
echo " https://github.com/Yeachan-Heo/oh-my-codex"
|
|
188
|
+
echo ""
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Help Text
|
|
192
|
+
|
|
193
|
+
When user runs `$omc-setup --help` or just `--help`, display:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
OMC Setup - Configure oh-my-codex for Codex CLI
|
|
197
|
+
|
|
198
|
+
USAGE:
|
|
199
|
+
$omc-setup Run initial setup wizard
|
|
200
|
+
$omc-setup --local Configure local project (.codex/CLAUDE.md)
|
|
201
|
+
$omc-setup --global Configure global settings (~/.codex/CLAUDE.md)
|
|
202
|
+
$omc-setup --help Show this help
|
|
203
|
+
|
|
204
|
+
MODES:
|
|
205
|
+
Initial Setup (no flags)
|
|
206
|
+
- Interactive wizard for first-time setup
|
|
207
|
+
- Configures CLAUDE.md (local or global)
|
|
208
|
+
- Offers MCP server configuration
|
|
209
|
+
|
|
210
|
+
Local Configuration (--local)
|
|
211
|
+
- Installs CLAUDE.md to ./.codex/
|
|
212
|
+
- Project-specific settings
|
|
213
|
+
|
|
214
|
+
Global Configuration (--global)
|
|
215
|
+
- Installs CLAUDE.md to ~/.codex/
|
|
216
|
+
- Global settings for all Codex sessions
|
|
217
|
+
|
|
218
|
+
For more info: https://github.com/Yeachan-Heo/oh-my-codex
|
|
219
|
+
```
|