Autopilot

From Yeachan-Heo/oh-my-codex · View interactive version

Autopilot is an AI agent skill from the GitHub repository Yeachan-Heo/oh-my-codex. [OMX] Canonical autonomous orchestrator: $deep-interview -> $ralplan -> $ultragoal

How to use this skill

Skill file

Autopilot

<Purpose>

Autopilot is the first-class canonical orchestrator for hands-off delivery. Its defining default chain is mandatory:

$deep-interview -> $ralplan -> $ultragoal

The chain is not a list of optional hints and Autopilot is not an alias for direct execution. Autopilot supervises each child stage in one recoverable session, carries durable artifacts forward, and continues through implementation verification until the requested outcome is complete or a genuine blocker is recorded.

</Purpose>

<Use_When>

</Use_When>

<Default_Chain>

Run or resume these stages in order:

  1. deep-interview — clarify intent, scope, non-goals, constraints, acceptance criteria, and unresolved decisions. Produce a durable requirements/specification handoff. Deep Interview is a real stage; do not replace it with a one-question check or skip it merely because the task looks actionable.
  2. ralplan — turn the clarified requirements into an execution-ready consensus plan with architecture, sequencing, test, and verification guidance. Preserve review evidence as lifecycle evidence, not host-issued security authority.
  3. ultragoal — execute the approved plan through durable goals and ledger receipts, implementation, focused verification, cleanup, review, and terminal evidence.

$team, $code-review, and $ultraqa may be used inside the supervised execution when the active Ultragoal plan or verification boundary requires them. They do not replace or weaken the defining three-stage chain.

When review or QA proves the requirements or plan wrong, keep Autopilot active, return its supervised phase to ralplan, attach the findings, and continue through ultragoal again. Implementation-only review fixes may remain within Ultragoal's blocker/review loop.

</Default_Chain>

<Execution_Policy>

</Execution_Policy>

<State_Management>

Autopilot state is session-scoped and owned by the canonical state writer. A new run records at least:

{
  "mode": "autopilot",
  "active": true,
  "current_phase": "deep-interview",
  "iteration": 1,
  "phase_cycle": ["deep-interview", "ralplan", "ultragoal"],
  "handoff_artifacts": {
    "deep_interview": null,
    "ralplan": null,
    "ultragoal": null
  },
  "return_to_ralplan_reason": null
}

Start or update state only through the CLI-first state surface:

omx state write --input '{"mode":"autopilot","active":true,"current_phase":"deep-interview","state":{"phase_cycle":["deep-interview","ralplan","ultragoal"],"handoff_artifacts":{"deep_interview":null,"ralplan":null,"ultragoal":null},"return_to_ralplan_reason":null}}' --json

Stage transitions:

</State_Management>

<Continuation_And_Resume>

When the user says continue, resume, or keep going, read the current session's autopilot-state.json and continue from current_phase:

Never discard valid handoff artifacts or restart discovery merely because the conversation resumed.

</Continuation_And_Resume>

<Recovery_Contract>

Autopilot continuation hooks may nudge an active non-terminal run, but they MUST fail open for recovery:

</Recovery_Contract>

<Final_Checklist>

</Final_Checklist>

<Examples>

<Good>

User: $autopilot implement issue #42

Flow: activate Autopilot at deep-interview, crystallize requirements, continue to supervised ralplan, then supervised ultragoal, verify the completed outcome, and mark the exact session complete.

</Good>

<Good>

User: continue

Context: Autopilot state has current_phase:"ralplan".

Flow: resume the existing plan from the deep-interview handoff; do not create a separate standalone Ralplan run.

</Good>

<Bad>

Flow: treat $deep-interview, $ralplan, and $ultragoal as optional suggestions and jump directly to implementation.

Why bad: this hollows out Autopilot's defining orchestration contract.

</Bad>

</Examples>

Task: {{ARGUMENTS}}

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.