omx
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseoh-my-codex (OMX) - Multi-Agent Orchestration for Codex CLI
oh-my-codex (OMX) - 为Codex CLI打造的多Agent编排系统
When to use this skill
适用场景
- Orchestrating complex multi-agent workflows with OpenAI Codex CLI
- Running parallel team workers in tmux for coordinated task execution
- Using persistent MCP servers for state, memory, and code intelligence
- Executing staged pipelines (plan → prd → exec → verify → fix)
- Leveraging role-based agent prompts for specialized tasks
- 通过OpenAI Codex CLI编排复杂的多Agent工作流
- 在tmux中运行并行团队Worker以协同执行任务
- 使用持久化MCP服务器管理状态、内存与代码智能
- 执行分阶段流水线(规划→PRD→执行→验证→修复)
- 利用基于角色的Agent提示词完成专业任务
1. Core Concepts
1. 核心概念
Role Prompts (30 Agents)
角色提示词(30个Agent)
| Agent Tier | Agents | Use Case |
|---|---|---|
| Core Development | architect, planner, executor, debugger, verifier, explore | Main development workflow |
| Quality Assurance | style-reviewer, quality-reviewer, api-reviewer, security-reviewer, performance-reviewer | Code review lane |
| Domain Experts | dependency-expert, test-engineer, build-fixer, designer, writer, qa-tester | Specialized tasks |
| Product Strategy | product-manager, ux-researcher, product-analyst, information-architect | Product planning |
| Agent层级 | 包含Agent | 适用场景 |
|---|---|---|
| 核心开发类 | architect, planner, executor, debugger, verifier, explore | 主要开发工作流 |
| 质量保障类 | style-reviewer, quality-reviewer, api-reviewer, security-reviewer, performance-reviewer | 代码评审环节 |
| 领域专家类 | dependency-expert, test-engineer, build-fixer, designer, writer, qa-tester | 专业任务处理 |
| 产品策略类 | product-manager, ux-researcher, product-analyst, information-architect | 产品规划工作 |
Workflow Skills (40+)
工作流技能(40+种)
| Skill | Trigger | Description |
|---|---|---|
| | Full autonomous execution from idea to working code |
| | Self-referential loop with verifier verification until completion |
| | Maximum parallelism with parallel agent orchestration |
| | N coordinated agents using Codex CLI native teams |
| | Strategic planning with consensus and review modes |
| | Parallel scientist agents for comprehensive research |
| | Test-first development with red-green-refactor cycle |
| | Fix build errors, type errors, and toolchain failures |
| | Comprehensive code review across all quality dimensions |
| | Security audit focusing on vulnerabilities and trust boundaries |
| | Stop execution modes and clear active state |
| 技能 | 触发指令 | 说明 |
|---|---|---|
| | 从需求到可运行代码的全自主执行 |
| | 结合验证器的自循环执行,直至任务完成 |
| | 最大化并行度的多Agent编排 |
| | 使用Codex CLI原生团队功能的N个协同Agent |
| | 支持共识与评审模式的战略规划 |
| | 由并行科学家Agent完成全面调研 |
| | 遵循红-绿-重构循环的测试优先开发 |
| | 修复构建错误、类型错误与工具链故障 |
| | 覆盖全质量维度的全面代码评审 |
| | 聚焦漏洞与信任边界的安全审计 |
| | 停止执行模式并清除活跃状态 |
MCP Servers
MCP服务器
| Server | Purpose |
|---|---|
| Persistent mode lifecycle state |
| Memory + notepad surfaces for long-running sessions |
| Code intelligence and context |
| Execution tracing and debugging |
| 服务器 | 用途 |
|---|---|
| 持久化模式生命周期状态 |
| 长会话的内存与记事本存储 |
| 代码智能与上下文管理 |
| 执行追踪与调试 |
2. Installation & Setup
2. 安装与配置
Prerequisites
前置要求
- macOS or Linux (Windows via WSL2)
- Node.js >= 20
- Codex CLI installed ()
npm install -g @openai/codex - Codex auth configured
- macOS或Linux(Windows需通过WSL2)
- Node.js >= 20
- 已安装Codex CLI()
npm install -g @openai/codex - 已配置Codex身份验证
Install oh-my-codex
安装oh-my-codex
bash
npm install -g oh-my-codex
omx setup
omx doctorbash
npm install -g oh-my-codex
omx setup
omx doctorRecommended Launch Profile
推荐启动配置
bash
undefinedbash
undefinedTrusted environment with high reasoning
高推理能力的可信环境
omx --xhigh --madmax
---omx --xhigh --madmax
---3. Usage Patterns
3. 使用模式
Role Prompts (Inside Codex)
角色提示词(Codex内使用)
text
/prompts:architect "analyze current auth boundaries"
/prompts:executor "implement input validation in login"
/prompts:security-reviewer "audit OAuth flow"text
/prompts:architect "分析当前认证边界"
/prompts:executor "在登录功能中实现输入验证"
/prompts:security-reviewer "审计OAuth流程"Workflow Skills
工作流技能
text
$plan "ship OAuth callback safely"
$autopilot "implement user registration"
$team 3:executor "fix all TypeScript errors"text
$plan "安全交付OAuth回调功能"
$autopilot "实现用户注册功能"
$team 3:executor "修复所有TypeScript错误"Team Mode (Terminal)
团队模式(终端中使用)
bash
undefinedbash
undefinedStart parallel team workers
启动并行团队Worker
omx team 4:executor "parallelize a multi-module refactor"
omx team 4:executor "多模块重构并行化"
Monitor team status
监控团队状态
omx team status <team-name>
omx team status <team-name>
Resume team work
恢复团队工作
omx team resume <team-name>
omx team resume <team-name>
Shutdown team
终止团队
omx team shutdown <team-name>
---omx team shutdown <team-name>
---4. Launch Flags
4. 启动参数
| Flag | Description |
|---|---|
| Fast execution, minimal verification |
| High reasoning effort |
| Extra-high reasoning effort |
| Maps to Codex |
| Force operation |
| Preview without execution |
| Verbose output |
| 参数 | 说明 |
|---|---|
| 快速执行,最小化验证 |
| 高推理算力消耗 |
| 超高推理算力消耗 |
| 对应Codex的 |
| 强制执行操作 |
| 预览执行过程,不实际运行 |
| 详细输出日志 |
5. Staged Pipeline
5. 分阶段流水线
OMX implements a structured execution pipeline:
team-plan → team-prd → team-exec → team-verify → team-fix- Plan: Strategic decomposition of work
- PRD: Product requirements definition
- Exec: Parallel execution by team workers
- Verify: Validation of deliverables
- Fix: Automated error resolution
OMX实现了结构化的执行流水线:
team-plan → team-prd → team-exec → team-verify → team-fix- 规划:对工作进行战略分解
- PRD:定义产品需求
- 执行:由团队Worker并行执行任务
- 验证:校验交付成果
- 修复:自动解决错误
6. Hook Extensions (v0.4.0+)
6. 钩子扩展(v0.4.0及以上版本)
Native Lifecycle Events
原生生命周期事件
- /
session-start/session-endsession-idle turn-complete
- /
session-start/session-endsession-idle turn-complete
Plugin Workflow
插件工作流
bash
undefinedbash
undefinedEnable hook plugins
启用钩子插件
OMX_HOOK_PLUGINS=1 omx hooks test
OMX_HOOK_PLUGINS=1 omx hooks test
Hook commands
钩子命令
omx hooks init # Initialize hooks
omx hooks status # Check hook status
omx hooks validate # Validate configuration
omx hooks test # Test hook execution
Plugin files: `.omx/hooks/*.mjs`
---omx hooks init # 初始化钩子
omx hooks status # 检查钩子状态
omx hooks validate # 验证配置
omx hooks test # 测试钩子执行
插件文件路径:`.omx/hooks/*.mjs`
---7. Configuration
7. 配置
AGENTS.md Injection
AGENTS.md注入
By default, OMX injects project-level AGENTS.md:
bash
-c model_instructions_file="<cwd>/AGENTS.md"默认情况下,OMX会注入项目级别的AGENTS.md文件:
bash
-c model_instructions_file="<cwd>/AGENTS.md"Environment Controls
环境变量控制
bash
undefinedbash
undefinedDisable AGENTS.md injection
禁用AGENTS.md注入
OMX_BYPASS_DEFAULT_SYSTEM_PROMPT=0 omx
OMX_BYPASS_DEFAULT_SYSTEM_PROMPT=0 omx
Custom instructions file
自定义指令文件
OMX_MODEL_INSTRUCTIONS_FILE=/path/to/instructions.md omx
---OMX_MODEL_INSTRUCTIONS_FILE=/path/to/instructions.md omx
---Quick Reference
快速参考
| Command | Action |
|---|---|
| Launch Codex with HUD |
| Install prompts, skills, config wiring |
| Installation/runtime diagnostics |
| Team/swarm diagnostics |
| Start team workers |
| Show team status |
| Shutdown team |
| Show active modes |
| Cancel execution modes |
| Set reasoning (low/medium/high/xhigh) |
| HUD display options |
| Show help |
| 命令 | 作用 |
|---|---|
| 启动带HUD的Codex |
| 安装提示词、技能与配置 |
| 安装/运行时诊断 |
| 团队/集群诊断 |
| 启动团队Worker |
| 查看团队状态 |
| 终止团队 |
| 查看活跃模式 |
| 取消执行模式 |
| 设置推理级别(low/medium/high/xhigh) |
| HUD显示选项 |
| 查看帮助 |
Resources
资源
License
许可证
MIT License
MIT License