OMX
Oh My CodeXv0.18.9

Core Concepts

How OMX's agents, skills, hooks, and state management fit together

What makes up OMX

OMX is four systems meshing together.

Each concept in a line

Agents

OMX ships 33 role-specific agents. Each one owns a single responsibility.

Examples: explore (discovery), planner (planning), architect (design), executor (implementation), verifier (verification).

Skills

Skills are the workflow entrypoints that combine and extend agent behavior. You call them by name with $autopilot, $ralph, $team, and so on.

Examples: $deep-interview (requirement clarification), $ralplan (consensus planning), $ralph (runs until verified).

Hooks

Hooks fire on Codex CLI lifecycle events and activate skills and runtime behavior. They can intervene on session start, prompt submit, tool use, and stop.

State

Task progress and cross-session memory are stored under .omx/. That lets important information survive context compaction.


What are agents?

An agent is a work surface tuned for a specific role. OMX groups them into four lanes.

Build / Analysis lane

The core development flow: discovery → analysis → planning → implementation → verification.

AgentRole
exploreCodebase discovery, mapping files, patterns, and relationships
analystRequirement analysis, surfacing hidden constraints
plannerSequencing work and producing execution plans
architectSystem design, interfaces, tradeoff analysis
debuggerRoot-cause analysis
executorCode implementation and refactoring
verifierCompletion evidence and test adequacy

Review lane

Inspects quality and risk before implementation results move forward.

AgentRole
quality-reviewerLogic defects, maintainability, anti-patterns
security-reviewerVulnerabilities, trust boundaries, auth
code-reviewerComprehensive code review
style-reviewerNaming, formatting, style consistency
api-reviewerAPI contracts and backward compatibility
performance-reviewerPerformance bottlenecks and cost

Domain lane

Specialists in narrower areas. Called in when needed.

Examples:

  • test-engineer — test strategy
  • designer — UI / UX design
  • writer — docs and user guidance
  • researcher — external documentation and references
  • build-fixer — build and toolchain error repair
  • git-master — Git operations and history management

Coordination lane

Reviews and coordinates the plans and outputs the other agents produce.

Examples:

  • critic — reviews gaps in plans and designs
  • team-executor — supports the team execution lane
  • quality-strategist — quality strategy decisions

Picking an agent

As a simple guide:

Kind of workAgent to reach for first
Want to read the codebase fastexplore
Requirements unclearanalyst
Need a plan before codeplanner, architect, critic
Need actual implementationexecutor
Need to confirm completionverifier
Worried about security / quality / performancereview lane

The full list lives in the agents catalog.


What are skills?

Skills are the workflow system that composes agent behavior. They don't replace agents — they define which role to call in what order.

How do you call a skill?

In OMX you usually invoke with a $ prefix:

$deep-interview "clarify the auth requirements"
$ralplan "produce the safest implementation plan"
$ralph "carry the approved plan to completion"

Matching magic keywords can also activate a skill automatically.

Core workflow skills

SkillRole
$deep-interviewClarify fuzzy requirements through guided questioning
$ralplanBuild a planner / architect / critic consensus plan
$ralphKeep running until completion is verified
$teamCoordinate work that benefits from parallel execution
$autopilotRun from idea through implementation, QA, and validation
$ultraqaIterate through testing, verification, and fixes

When do you reach for which?

  • Requirements are still fuzzy$deep-interview
  • Want a plan before implementation$ralplan
  • Need one owner to push to completion$ralph
  • Parallel execution makes sense$team
  • Hand off the full pipeline in one call$autopilot

The full list lives in the skills catalog.


What are hooks?

Hooks are runtime handlers that react to Codex CLI lifecycle events. They intervene automatically when the user submits a prompt, when a tool executes, and when a session starts or stops.

OMX uses hooks to implement keyword detection, skill activation, state restoration, stop-gating, and similar behavior.

Main events and what OMX does

EventWhat OMX does
SessionStartRestore state, inject developer context, run initial .omx/ checks
UserPromptSubmitDetect magic keywords, activate the matching skill
PreToolUseWarn on destructive commands, apply pre-execution guards
PostToolUseSurface failure hints, post-processing
StopBlock or continue long-running modes

In other words, hooks are not user-invoked features — they are the event layer that lets OMX behave coherently in the background.

More detail lives in the Hooks section.


State management overview

OMX stores in-flight state and cross-session memory under .omx/.

PathRole
.omx/state/Active mode state
.omx/plans/Plan outputs from $ralplan and similar
.omx/logs/Session and execution logs
.omx/notepad.mdFreeform notes
.omx/project-memory.jsonLong-lived project directives and notes
.omx/wiki/Accumulated wiki knowledge

Why it matters

State management is what lets OMX:

  • not lose progress after context compaction
  • resume long-running workflows
  • carry project knowledge across sessions

If hooks and skills are the "behavior", state management is the foundation that keeps that behavior from getting cut off.

More detail lives in the .omx/ directory reference and the State tool.

On this page