一键导入
一键导入
[OMX] Clean-room interview-driven planner: Metis clarifies, Momus challenges, Oracle synthesizes, then hands off to $ultragoal/$team.
Alias for $plan --consensus
Durable professor-critic research workflow over Codex goal mode without reviving deprecated omx autoresearch
Stateful validator-gated research loop with native-hook persistence
[OMX] Bounded best-practice research wrapper using official/upstream evidence first
[OMX] Strict autonomous loop: $deep-interview -> $ralplan -> $ultragoal (+ $team if needed) -> $code-review -> $ultraqa
| name | plan |
| description | Strategic planning with optional interview workflow |
<Use_When>
--review--consensus, "ralplan"<Do_Not_Use_When>
autopilot insteadralph or delegate to executor<Why_This_Exists> Jumping into code without understanding requirements leads to rework, scope creep, and missed edge cases. Plan provides structured requirements gathering, expert analysis, and quality-gated plans so that execution starts from a solid foundation. The consensus mode adds multi-perspective validation for high-stakes projects. </Why_This_Exists>
<Execution_Policy>
explore agent before asking the user about themUSE_OMX_EXPLORE_CMD, prefer omx explore for simple read-only repository lookups during planning; keep prompts narrow and concrete, and keep prompt-heavy or ambiguous planning work on the richer normal path and fall back normally if omx explore is unavailable.--interactive to enable execution handoff--deliberate or when the request explicitly signals high risk (auth/security, data migration, destructive/irreversible changes, production incident, compliance/PII, public API breakage)| Mode | Trigger | Behavior |
|---|---|---|
| Interview | Default for broad requests | Interactive requirements gathering |
| Direct | --direct, or detailed request | Skip interview, generate plan directly |
| Consensus | --consensus, "ralplan" | Planner -> Architect -> Critic loop until agreement with RALPLAN-DR structured deliberation (short by default, --deliberate for high-risk); outputs plan by default |
| Consensus Interactive | --consensus --interactive | Same as Consensus but pauses for user feedback at draft and approval steps, then hands off to execution |
| Review | --review, "review this plan" | Critic evaluation of existing plan |
omx question; outside tmux use native structured input when available; use plain text only as a last fallbackexplore agent to find out, then ask informed follow-up questions--consensus / "ralplan")RALPLAN-DR modes: Short (default, bounded structure) and Deliberate (for --deliberate or explicit high-risk requests). Both modes keep the same Planner -> Architect -> Critic sequence. The workflow auto-proceeds through planning steps (Planner/Architect/Critic) but outputs the final plan without executing.
--interactive, MUST use AskUserQuestion / the structured question UI (omx question in attached tmux; native structured input outside tmux when available) to present the draft plan plus the RALPLAN-DR Principles / Decision Drivers / Options summary for early direction alignment with these options:
--interactive, automatically proceed to review (step 3).ask_codex with agent_role: "architect". Architect review MUST include: strongest steelman counterargument (antithesis) against the favored option, at least one meaningful tradeoff tension, and (when possible) a synthesis path. In deliberate mode, Architect should explicitly flag principle violations. Wait for this step to complete before proceeding to step 4. Do NOT run steps 3 and 4 in parallel.ask_codex with agent_role: "critic". Critic MUST verify principle-option consistency, fair alternative exploration, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. Critic MUST explicitly reject shallow alternatives, driver contradictions, vague risks, or weak verification. In deliberate mode, Critic MUST reject missing/weak pre-mortem or missing/weak expanded test plan. Run only after step 3 is complete..omx/plans/ with the accepted improvements (add missing details, refine steps, strengthen acceptance criteria, ADR updates, etc.)
d. Note which improvements were applied in a brief changelog section at the end of the plan
e. Before any execution handoff, derive an explicit available-agent-types roster from the known prompt catalog and add concrete follow-up staffing guidance for $ultragoal and $team (recommended roles, counts, suggested reasoning levels by lane, and why each lane exists), plus an explicit $ralph fallback note only when persistent single-owner verification is intentionally selected
f. Add a product-facing Goal-Mode Follow-up Suggestions section: recommend $ultragoal by default for general goal-oriented follow-up, $autoresearch-goal only when the context is a research project with a research deliverable/evaluator, and $performance-goal when the context is an optimization or performance project. Keep these suggestions alongside the Team path and any explicit Ralph fallback rather than replacing implementation-delivery guidance. For ordinary pre-planning external docs or best-practice lookup, cite $best-practice-research evidence and synthesize it into the plan instead of recommending Autoresearch as a final architecture component. For durable-goal work that is also parallelizable, explicitly recommend Team + Ultragoal: Ultragoal remains leader-owned goal/ledger state and Team returns checkpoint-ready execution evidence.
g. For the $team path, add an explicit launch-hint block with concrete omx team / $team commands and a team verification path (what Team proves before shutdown and what Ultragoal checkpoints as durable completion evidence). Distinguish Team + Ultragoal from any explicit Ralph fallback: Team handles coordinated parallel lanes; Ultragoal is the default durable follow-up/ledger owner, and Ralph is only an explicitly requested legacy-style persistent sequential verification/fix lane when needed.--interactive, use AskUserQuestion / the structured question UI to present the plan with these options:
$ultragoal by default (optionally with $team for parallel lanes)$ultragoal by default, or $autoresearch-goal / $performance-goal when the approved plan specifically fits research validation or measurable optimization--interactive, output the final approved plan and stop. Do NOT auto-execute.$ultragoal with the approved plan path from .omx/plans/ as context plus the explicit available-agent-types roster, suggested reasoning levels, concrete role allocation guidance, and direct launch hints for Ultragoal follow-up work. Use $team alongside Ultragoal when parallel lanes are warranted. Do NOT implement directly. Do NOT edit source code files in the planning agent. Ralph is not the default follow-up; only invoke $ralph when the user explicitly selects a legacy/persistent single-owner execution lane.$team with the approved plan path from .omx/plans/ as context plus the explicit available-agent-types roster, suggested reasoning levels, concrete staffing / worker-role allocation guidance, explicit omx team / $team launch hints, and the team verification path. Do NOT implement directly. The team skill coordinates parallel agents across the staged pipeline for faster execution on large tasks.$ultragoal as the default goal-mode path, $autoresearch-goal for research projects, or $performance-goal for optimization/performance projects with measurable evaluator criteria. Do NOT implement directly in the planning agent.--review).omx/plans/ask_codex with agent_role: "critic"$code-review, critic, quality-reviewer, or verifier as appropriate.Every plan includes:
$ultragoal, $autoresearch-goal, $performance-goal when contextually appropriate), explicit omx team / $team Launch Hints, and Team Verification PathPlans are saved to .omx/plans/. Drafts go to .omx/drafts/.
<Tool_Usage>
AskUserQuestion for preference questions (scope, priority, timeline, risk tolerance) -- provides clickable UIexplore agent (LOW tier, bounded quick pass) to gather codebase facts before asking the userask_codex with agent_role: "planner" for planning validation on large-scope plansask_codex with agent_role: "analyst" for requirements analysisask_codex with agent_role: "critic" for plan review in consensus and review modes--deliberate or explicit high-risk signals (auth/security, migrations, destructive changes, production incidents, compliance/PII, public API breakage)--interactive: use AskUserQuestion / the structured question UI for the user feedback step (step 2) and the final approval step (step 7) -- never ask for approval in plain text when a structured surface is available. Without --interactive, auto-proceed through planning steps without pausing. Output the final plan without execution.--interactive, on user approval MUST invoke the selected follow-up lane from step 9 ($ultragoal, $team, $autoresearch-goal, $performance-goal, or explicit $ralph fallback) -- never implement directly in the planning agent$ultragoal by default, $autoresearch-goal for research projects, $performance-goal for optimization/performance projects), explicit omx team / $team launch hints, and a team verification path. For parallelizable durable-goal plans, recommend Team + Ultragoal with leader-owned checkpointing from Team evidence; reserve Ralph for persistent sequential single-owner verification/fix follow-up.
</Tool_Usage>Good: The user says continue after the workflow already has a clear next step. Continue the current branch of work instead of restarting or re-asking the same question.
Good: The user changes only the output shape or downstream delivery step (for example make a PR). Preserve earlier non-conflicting workflow constraints and apply the update locally.
Bad: The user says continue, and the workflow restarts discovery or stops before the missing verification/evidence is gathered.
<Escalation_And_Stop_Conditions>
--interactive, user can approve and hand off to ultragoal/team, with Ralph only as an explicit legacy/persistent single-owner lane$ultragoal to transition to durable goal execution mode by default; use $ralph only when the user explicitly asks for that fallback. Do NOT implement directly in the planning agent.<Final_Checklist>
.omx/plans/--interactive: user explicitly approved before any execution; without --interactive: output final plan after Critic approval (no auto-execution)
</Final_Checklist>When presenting design choices during interviews, chunk them:
Format for each option:
### Option A: [Name]
**Approach:** [1 sentence]
**Pros:** [bullets]
**Cons:** [bullets]
What's your reaction to this approach?
Before asking any interview question, classify it:
| Type | Examples | Action |
|---|---|---|
| Codebase Fact | "What patterns exist?", "Where is X?" | Explore first, do not ask user |
| User Preference | "Priority?", "Timeline?" | Ask user via the structured question path (omx question in attached tmux; native structured input where available) |
| Scope Decision | "Include feature Y?" | Ask user |
| Requirement | "Performance constraints?" | Ask user |
| Criterion | Standard |
|---|---|
| Clarity | 80%+ claims cite file/line |
| Testability | 90%+ criteria are concrete |
| Verification | All file refs exist |
| Specificity | No vague terms |
The separate /planner, /ralplan, and /review skills have been merged into $plan. All workflows (interview, direct, consensus, review) are available through $plan.