Codex+OMX模式切换:全委托 x 全能力面 x 按任务 OMX 子模式匹配。不适用于简单编辑、快速问答、只读探索。
Agent-facing, brain-led capability orchestration for Codex CLI with oh-my-codex (OMX) installed. This skill enables the agent to discover, select, combine, and reselect available capability surfaces (native runtime, enhancement layer, skill, MCP, command, subagent, worktree) to build the lowest-sufficient task-lifecycle capability route for the task.
For non-trivial work, keep the current Codex session as the decision maker and final integrator: own the goal, constraints, decomposition, permission checks, integration, acceptance, verification, and final answer. Run a delegation-first scan before equivalent inline work. Prefer bounded Codex native subagents and available OMX lanes when they provide better evidence or context economy; do not delegate merely to create fan-out.
Run detection at three levels. Do not collapse a partial failure into a full fallback — only re-orchestrate the specific surface that is unavailable.
omx --versionomx list, omx exec --help. If L2 passes, the agent may use OMX skill enumeration, exec delegation, and sparkshell throughout the session.omx question or team/question orchestration. Check whether a tmux session is attached. If L3 fails, skip omx question and team bridge features, but continue using L2 CLI surfaces.aha-opencode-omo instead. This skill is for Codex+OMX only.Run discovery on every orchestration pass. Capability surfaces change across sessions, projects, versions, and permission modes.
omx list and only the OMX feature surfaces needed for this task. Do not treat a binary or one feature as proof that all roles, models, or interactive bridges are available.Resolve these roles from the current runtime before dispatch; use the closest available role or keep the documented exception inline. Do not hardcode model names: the runtime resolves the model for the selected role.
UnitPreferred role / laneRepository search, file mapping, focused readingnative exploreOfficial/version-sensitive researchnative researcherDiagnosisnative debuggerTests and regression strategynative test-engineer or verifierReview / acceptance cross-checknative code-reviewer, verifier, or architectBounded writeone native executor with a declared disjoint write_set
OMX team, review, QA, or persistent modes are optional feature-level lanes; detect the specific feature before use. The primary session remains the only final integrator. Refer to the shared v1.1 delegation contract for return evidence, direct-work exceptions, and tool-composition limits.
See ./references/capability-orchestration.md for the 7-field discovery schema.
If discovery fails, transparently disclose, fall back to built-in reference knowledge, mark it as possibly outdated, and request current capability information only when needed. Do not overclaim actual availability.
To deactivate: stop using OMX-specific capabilities and re-orchestrate to native Codex. No persistent state is maintained by this skill. Partial deactivation is valid: if only the interactive bridge is unavailable, deactivate bridge features only and keep using OMX CLI surfaces.
./references/capability-orchestration.md before applying orchestration logic. It is the source of truth for orchestration steps, transparency, re-orchestration, out-of-session, cost awareness, and the 7-field discovery schema.git pull in the aha-orch repo, or re-run npx skills add its-how/aha-orch to get the latest version.aha-codex-omx/) from your skills path.