| name | oh-my-codex-workflow |
| description | Expert in Oh My Codex (OMX) - workflow layer for OpenAI Codex CLI with agents, skills, and team coordination |
| triggers | ["set up oh my codex for this project","start an omx workflow with deep interview","create a team execution plan with omx","configure omx agents and skills","troubleshoot my omx installation","run omx ralph for persistent completion","use omx team runtime with tmux","integrate omx with codex cli"] |
Oh My Codex (OMX) Workflow
Skill by ara.so — Codex Skills collection.
What OMX Does
Oh My Codex (OMX) is a workflow layer for OpenAI Codex CLI that enhances the base Codex experience with:
- Canonical workflow:
$deep-interview → $ralplan → $ralph or $team
- Agent teams: Coordinated parallel execution with tmux-backed worktrees
- Persistent state: Plans, logs, memory, and mode tracking in
.omx/
- Role keywords: Reusable specialist roles (executor, architect, reviewer, etc.)
- Skills system: Installable workflows like
$deep-interview, $ralplan, $team, $ralph
- Project guidance: Scoped
AGENTS.md for project-specific context
- Runtime hooks: Native Codex lifecycle integration via
.codex/hooks.json
OMX keeps Codex as the execution engine and adds better task routing, workflow orchestration, and runtime support around it.
Installation
Prerequisites
- Node.js 20+
- Codex CLI:
npm install -g @openai/codex
- Configured Codex auth (check with
codex login status)
tmux on macOS/Linux for team runtime (optional but recommended)
Install OMX
npm install -g @openai/codex oh-my-codex
omx setup
omx doctor
omx exec --skip-git-repo-check -C . "Reply with exactly OMX-EXEC-OK"
Update OMX
omx update
npm install -g oh-my-codex
omx setup
Core Workflow
The Recommended Path
omx --madmax --high
$deep-interview "clarify the authentication change"
$ralplan "approve the auth plan and review tradeoffs"
$ralph "carry the approved plan to completion"
$team 3:executor "execute the approved plan in parallel"
$ultragoal "turn this launch into durable Codex goals"
Launch Modes
omx --madmax --high
omx --direct --yolo
export OMX_LAUNCH_POLICY=direct
omx --yolo
OMX_LAUNCH_POLICY=direct omx --tmux --yolo
Canonical Skills
$deep-interview
Clarify intent, boundaries, and non-goals when the request is vague.
$deep-interview "clarify requirements for the new API endpoint"
$deep-interview "understand the performance bottleneck before planning fixes"
$ralplan
Turn clarified scope into an approved architecture and implementation plan.
$ralplan "approve the implementation plan and review tradeoffs"
$ralplan "verify the migration strategy is safe"
$ralph
Persistent completion loop - one owner keeps pushing until done.
$ralph "carry the approved plan to completion"
$ralph "implement the auth changes with verification"
$team
Coordinated parallel execution with tmux-backed worktrees.
# Launch team with N agents of role:type
$team 3:executor "execute the approved plan in parallel"
$team 2:architect "design the new service architecture"
# Team management (CLI, not in-session)
omx team status <team-name>
omx team resume <team-name>
omx team shutdown <team-name>
$ultragoal
Convert a launch session into durable Codex goals for multi-session work.
$ultragoal "turn this migration into sequential Codex goals"
Project Structure
OMX creates and manages these directories:
.omx/
├── plans/ # Approved implementation plans from $ralplan
├── logs/ # Execution logs from $ralph and $team
├── memory/ # Persistent agent memory
├── ultragoal/ # Durable multi-goal artifacts
└── teams/ # Team runtime state and worktrees
.codex/
├── config.toml # Codex configuration (OMX seeds defaults)
├── hooks.json # Native Codex hooks (OMX-managed wrappers)
└── prompts/ # OMX-installed role and skill prompts
AGENTS.md # Project-specific agent guidance (optional)
Configuration
Model and Environment Routing
Edit .omx-config.json for model/env routing (only use keys supported by your OMX version):
{
"model": "gpt-5.5",
"provider": "openai",
"baseURL": "https://api.openai.com/v1",
"env": {
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
See model/env routing reference for details.
Codex Config Seeding
OMX seeds .codex/config.toml with recommended defaults for gpt-5.5:
[gpt-5.5]
model_name = "gpt-5.5"
model_context_window = 250000
model_auto_compact_token_limit = 200000
AGENTS.md Merge
Preserve existing project guidance while adding OMX sections:
omx setup --merge-agents
omx setup
Common Patterns
Standard Workflow
async function standardWorkflow() {
}
Team Execution
omx team 3:executor "migrate database schema with verification"
omx team status migration-team
omx team resume migration-team
omx team shutdown migration-team
Direct Codex Exec
import { execSync } from 'child_process';
const result = execSync(
'omx exec --skip-git-repo-check -C . "List all TypeScript files in src/"',
{ encoding: 'utf-8' }
);
console.log(result);
Custom Skill Creation
CLI Commands
Setup and Verification
omx setup
omx setup --merge-agents
omx setup --force
omx doctor
omx update
omx uninstall
Launch
omx --madmax --high
omx --yolo
omx --direct --yolo
omx --tmux
Execution
omx exec [options] "prompt"
omx exec --skip-git-repo-check -C . "prompt"
Team Runtime
omx team N:role "task"
omx team status <name>
omx team resume <name>
omx team shutdown <name>
omx team list
Monitoring
omx hud --watch
Environment Variables
export OMX_LAUNCH_POLICY=direct
export CODEX_HOME=~/.codex
export OPENAI_API_KEY=your_key_here
export ANTHROPIC_API_KEY=your_key_here
Troubleshooting
Installation Issues
omx doctor
codex login status
omx exec --skip-git-repo-check -C . "Reply with exactly OMX-EXEC-OK"
omx setup
omx update
Team Runtime Issues
which tmux
omx team status <team-name>
cat .omx/teams/<team-name>/logs/*
omx team shutdown <team-name>
Hook Issues
cat .codex/hooks.json
omx setup
cat .omx/logs/hooks/*
Model/Provider Issues
cat .omx-config.json
cat .codex/config.toml
omx exec --skip-git-repo-check -C . "test prompt"
echo $OPENAI_API_KEY
Common Errors
Error: Codex not found
npm install -g @openai/codex
Error: Auth failed
codex login
codex login status
Error: tmux not found (team runtime)
brew install tmux
sudo apt-get install tmux
Error: Setup refresh skips AGENTS.md
omx setup --merge-agents
omx setup --force
Advanced Usage
Plugin Mode vs Setup Mode
OMX ships both as npm package (setup mode) and Codex plugin (plugin mode):
Setup mode (recommended):
npm install -g oh-my-codex
omx setup
- Installs native agents and prompts
- Manages
.codex/hooks.json wrappers
- Full runtime integration
Plugin mode:
- Install via Codex plugin marketplace
- Bundles skills in plugin manifest
- Optional MCP compatibility (disabled by default)
- Removes legacy OMX-managed prompts to avoid shadowing
- Native/runtime hooks still setup-owned
- Not a replacement for full OMX setup
Custom Agent Roles
Create custom roles in .codex/prompts/agents/:
---
name: security-reviewer
role: Security Review Specialist
---
# Security Reviewer Agent
You are a security review specialist. When assigned a task:
1. Review code for security vulnerabilities
2. Check for OWASP top 10 issues
3. Validate input sanitization
4. Review authentication/authorization
5. Document findings with severity levels
Integration with Other Tools
omx exec --skip-git-repo-check -C . "Run security audit on changed files"
omx exec -C . "Review staged changes for issues"
Best Practices
- Start with clarification: Use
$deep-interview when scope is unclear
- Approve plans explicitly: Always run
$ralplan before execution
- Choose the right execution mode:
$ralph for persistent loops, $team for parallel work
- Use durable goals: Run
$ultragoal for multi-session work
- Review
.omx/ artifacts: Check plans and logs for context
- Keep AGENTS.md updated: Maintain project-specific guidance
- Verify with
omx doctor: Run after setup or when issues arise
- Test with
omx exec: Smoke test auth and execution before workflows
Resources