Multi-agent orchestration layer for OpenAI Codex CLI.
- English
- 한국어 (Korean)
- 日本語 (Japanese)
- 简体中文 (Chinese)
- Tiếng Việt (Vietnamese)
- Español (Spanish)
- Português (Portuguese)
- Русский (Russian)
OMX turns Codex from a single-session agent into a coordinated system with:
- Role prompts (
/prompts:name) for specialized agents - Workflow skills (
$name) for repeatable execution modes - Team orchestration in tmux (
omx team,$team) - Persistent state + memory via MCP servers
Codex CLI is strong for direct tasks. OMX adds structure for larger work:
- Decomposition and staged execution (
team-plan -> team-prd -> team-exec -> team-verify -> team-fix) - Persistent mode lifecycle state (
.omx/state/) - Memory + notepad surfaces for long-running sessions
- Operational controls for launch, verification, and cancellation
OMX is an add-on, not a fork. It uses Codex-native extension points.
- macOS or Linux (Windows via WSL2)
- Node.js >= 20
- Codex CLI installed (
npm install -g @openai/codex) - Codex auth configured
npm install -g oh-my-codex
omx setup
omx doctorRecommended trusted-environment launch profile:
omx --xhigh --madmax- Scope-aware setup with
omx setup --scope user|project-local|projectfor flexible install modes. - Spark worker routing via
--spark/--madmax-sparkso team workers can usegpt-5.3-codex-sparkwithout forcing the leader model. - Catalog consolidation — removed deprecated prompts (
deep-executor,scientist) and 9 deprecated skills for a leaner surface. - Notifier verbosity levels for fine-grained CCNotifier output control.
Inside Codex:
/prompts:architect "analyze current auth boundaries"
/prompts:executor "implement input validation in login"
$plan "ship OAuth callback safely"
$team 3:executor "fix all TypeScript errors"
From terminal:
omx team 4:executor "parallelize a multi-module refactor"
omx team status <team-name>
omx team shutdown <team-name>OMX installs and wires these layers:
User
-> Codex CLI
-> AGENTS.md (orchestration brain)
-> ~/.codex/prompts/*.md (agent prompt catalog)
-> ~/.agents/skills/*/SKILL.md (skill catalog)
-> ~/.codex/config.toml (features, notify, MCP)
-> .omx/ (runtime state, memory, plans, logs)
omx # Launch Codex (+ HUD in tmux when available)
omx setup # Install prompts/skills/config by scope + project AGENTS.md/.omx
omx doctor # Installation/runtime diagnostics
omx doctor --team # Team/swarm diagnostics
omx team ... # Start/status/resume/shutdown tmux team workers
omx status # Show active modes
omx cancel # Cancel active execution modes
omx reasoning <mode> # low|medium|high|xhigh
omx tmux-hook ... # init|status|validate|test
omx hooks ... # init|status|validate|test (plugin extension workflow)
omx hud ... # --watch|--json|--preset
omx helpOMX now includes omx hooks for plugin scaffolding and validation.
omx tmux-hookremains supported and unchanged.omx hooksis additive and does not replace tmux-hook workflows.- Plugin files live at
.omx/hooks/*.mjs. - Plugins are off by default; enable with
OMX_HOOK_PLUGINS=1.
See docs/hooks-extension.md for the full extension workflow and event model.
--yolo
--high
--xhigh
--madmax
--force
--dry-run
--verbose
--scope <user|project-local|project> # setup only--madmax maps to Codex --dangerously-bypass-approvals-and-sandbox.
Use it only in trusted/external sandbox environments.
By default, OMX injects:
-c model_instructions_file="<cwd>/AGENTS.md"
This layers project AGENTS.md guidance into Codex launch instructions.
It extends Codex behavior, but does not replace/bypass Codex core system policies.
Controls:
OMX_BYPASS_DEFAULT_SYSTEM_PROMPT=0 omx # disable AGENTS.md injection
OMX_MODEL_INSTRUCTIONS_FILE=/path/to/instructions.md omxUse team mode for broad work that benefits from parallel workers.
Lifecycle:
start -> assign scoped lanes -> monitor -> verify terminal tasks -> shutdown
Operational commands:
omx team <args>
omx team status <team-name>
omx team resume <team-name>
omx team shutdown <team-name>Important rule: do not shutdown while tasks are still in_progress unless aborting.
Worker CLI selection for team workers:
OMX_TEAM_WORKER_CLI=auto # default; uses claude when worker --model contains "claude"
OMX_TEAM_WORKER_CLI=codex # force Codex CLI workers
OMX_TEAM_WORKER_CLI=claude # force Claude CLI workers
OMX_TEAM_WORKER_CLI_MAP=codex,codex,claude,claude # per-worker CLI mix (len=1 or worker count)
OMX_TEAM_AUTO_INTERRUPT_RETRY=0 # optional: disable adaptive queue->resend fallbackNotes:
- Worker launch args are still shared via
OMX_TEAM_WORKER_LAUNCH_ARGS. OMX_TEAM_WORKER_CLI_MAPoverridesOMX_TEAM_WORKER_CLIfor per-worker selection.- Trigger submission uses adaptive retries by default (queue/submit, then safe clear-line+resend fallback when needed).
- In Claude worker mode, OMX spawns workers as plain
claude(no extra launch args) and ignores explicit--model/--config/--effortoverrides so Claude uses defaultsettings.json.
.omx/setup-scope.json(persisted setup scope)- Scope-dependent installs:
user:~/.codex/prompts/,~/.agents/skills/,~/.codex/config.toml,~/.omx/agents/project-local:./.codex/prompts/,./.agents/skills/,./.codex/config.toml,./.omx/agents/project: skips prompt/skill/config/native-agent installs
- Launch behavior: if persisted scope is
project-local,omxlaunch auto-usesCODEX_HOME=./.codex(unlessCODEX_HOMEis already set). - Existing
AGENTS.mdis preserved unless--forceis used (and active-session safety checks still apply). config.tomlupdates (foruser/project-localscopes):notify = ["node", "..."]model_reasoning_effort = "high"developer_instructions = "..."[features] multi_agent = true, child_agents_md = true- MCP server entries (
omx_state,omx_memory,omx_code_intel,omx_trace) [tui] status_line
- Project
AGENTS.md .omx/runtime directories and HUD config
- Prompts:
prompts/*.md(installed to~/.codex/prompts/foruser,./.codex/prompts/forproject-local) - Skills:
skills/*/SKILL.md(installed to~/.agents/skills/foruser,./.agents/skills/forproject-local)
Examples:
- Agents:
architect,planner,executor,debugger,verifier,security-reviewer - Skills:
autopilot,plan,team,ralph,ultrawork,cancel
oh-my-codex/
bin/omx.js
src/
cli/
team/
mcp/
hooks/
hud/
config/
modes/
notifications/
verification/
prompts/
skills/
templates/
scripts/
git clone https://github.com/Yeachan-Heo/oh-my-codex.git
cd oh-my-codex
npm install
npm run build
npm test- Release notes:
CHANGELOG.md - Migration guide (post-v0.4.4 mainline):
docs/migration-mainline-post-v0.4.4.md - Coverage and parity notes:
COVERAGE.md - Hook extension workflow:
docs/hooks-extension.md - Setup and contribution details:
CONTRIBUTING.md
Inspired by oh-my-claudecode, adapted for Codex CLI.
MIT