oh-my-codex
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中运行并行团队工作者以协调任务执行
- 使用持久化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 "analyze current auth boundaries"
/prompts:executor "implement input validation in login"
/prompts:security-reviewer "audit OAuth flow"Workflow Skills
工作流技能
text
$plan "ship OAuth callback safely"
$autopilot "implement user registration"
$team 3:executor "fix all TypeScript errors"text
$plan "ship OAuth callback safely"
$autopilot "implement user registration"
$team 3:executor "fix all TypeScript errors"Team Mode (Terminal)
团队模式(终端中)
bash
undefinedbash
undefinedStart parallel team workers
启动并行团队工作者
omx team 4:executor "parallelize a multi-module refactor"
omx team 4:executor "parallelize a multi-module refactor"
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:产品需求定义
- 执行:团队工作者并行执行任务
- 验证:交付成果的有效性验证
- 修复:自动化错误修复
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 |
| 安装提示词、技能和配置 |
| 安装/运行时诊断 |
| 团队/集群诊断 |
| 启动团队工作者 |
| 查看团队状态 |
| 关闭团队 |
| 查看活跃模式 |
| 取消执行模式 |
| 设置推理强度(low/medium/high/xhigh) |
| HUD显示选项 |
| 查看帮助 |
Resources
资源
License
许可证
MIT License
MIT许可证