Skip to content
Skills Library
AI & agents · Automation

omega-loop

/omega-loop

Autonomous multi-model engineering loop (plan → build → isolated adversarial audit → verify → commit) with automatic Codex detection and Claude-only fallback. Use when the user invokes /omega-loop or asks for the OMEGA-LOOP protocol on a task.

Repository
omega-loop ↗
Licence
MIT
Last repository change
11.11.2026

Assessment and security

85/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Autonomous multi-model engineering loop (plan → build → isolated adversarial audit → verify → commit) with automatic Codex detection and Claude-only fallback. Use when the user invokes /omega-loop or asks for the OMEGA-LOOP protocol on a task.

Original author description

Autonomous multi-model engineering loop (plan → build → isolated adversarial audit → verify → commit) with automatic Codex detection and Claude-only fallback. Use when the user invokes /omega-loop or asks for the OMEGA-LOOP protocol on a task.

How it works

  1. Provider failover
  2. Model routing (runtime)
  3. Phase 0 — Bootstrap (every run, re-detects Codex)
  4. Phase 1 — Recon + Strategy
  5. Phase 2 — Execution (Builder)
  6. Phase 3 — Adversarial audit
  7. Phase 4 — Verification + commit
Original SKILL.md headings · 39 lines, 457 words
SKILL.md preview
---
name: omega-loop
description: Autonomous multi-model engineering loop (plan → build → isolated adversarial audit → verify → commit) with automatic Codex detection and Claude-only fallback. Use when the user invokes /omega-loop or asks for the OMEGA-LOOP protocol on a task.
---

# OMEGA-LOOP (global)

Tooling lives in `~/.claude/omega/`. Per-repo state lives in `.omega/` of the current repo (globally git-ignored). Task = skill args.

Rules: the writer never reviews its own diff. Project CLAUDE.md rules still win (commit-per-phase confirmations, CHANGELOG, etc.). Never use `--no-verify`.

## Provider failover
- Codex out of tokens/erroring: its role (architect, builder, auditor) moves to Claude immediately, without stopping the loop. `audit.sh` does this by itself (codex → claude).
- Claude out of tokens: `audit.sh` falls back to Codex; the rest of the loop resumes from the terminal with `~/.claude/omega/codex_takeover.sh` (reads `.omega/` and continues). Claude cannot launch it once exhausted: ask the user to do it, and always keep STATE.json/DECISIONS.log current so resuming is possible.
- Every provider switch must be written to DECISIONS.log.

## Model routing (runtime)
Orchestrator = the model selected in the session (Sonnet, Opus, Fable). Everything else goes to local Qwen (Ollama :11434 / LM Studio :1234) when available.
- Qwen unavailable: Sonnet replaces it; if Sonnet is already the orchestrator, Haiku is used.
- Delegate read-only side tasks (searches, summaries, validations) with `OMEGA_MAIN_MODEL=<your model> ~/.claude/omega/subagent.sh "<prompt>"` instead of the Agent tool. `PROVIDER_STATE.json` shows `qwen` and `delegate`.
- Audit order in `audit.sh`: codex, qwen, claude (Claude-only mode: qwen, claude, codex). Log every routing change in DECISIONS.log.

## Phase 0 — Bootstrap (every run, re-detects Codex)
1. `python3 ~/.claude/omega/skills/fallback_manager.py` → `.omega/PROVIDER_STATE.json`. Report mode: `HYBRID_MULTI_MODEL` (codex ok) or `CLAUDE_ISOLATED_FULL_STACK`.
2. Write `.omega/STATE.json` `{"state":"RECON","iteration":0}`. Append every transition/decision to `.omega/ledger/DECISIONS.log`.

## Phase 1 — Recon + Strategy
1. Read repo rules/docs, detect stack. Validators in `~/.claude/omega/skills/validate.sh <files>` (scad, swift, cs; AngularJS only with `OMEGA_NG=1`).
2. Architect role: Codex mode → `codex exec --sandbox read-only` with `~/.claude/omega/agents/architect_prompt.md`; fallback → do it yourself as architect persona (no code). 
3. Write `.omega/PLAN.md`: goals, invariants, acceptance criteria, exact proof commands.
4. GATE: show the plan, get explicit user approval (AskUserQuestion) before any edit.

## Phase 2 — Execution (Builder)
State `EXECUTION`. Minimal atomic edits (Builder = you; in Codex mode may delegate to `codex exec --full-auto` if the user chose it). Run `validate.sh` on changed files. Then `git diff > .omega/drafts/latest.diff` (include untracked via `git add -N` first).

## Phase 3 — Adversarial audit
State `ADVERSARIAL_AUDIT`. Run `~/.claude/omega/audit.sh <iteration>`: uses Codex if available, else a fresh `claude -p` session with no tools and no memory of the build. Parse the JSON verdict.
- REJECTED: log flaws, iteration+1, back to Phase 2 with remediations. Max 5 iterations, then stop and ask the user.
- APPROVED: log, continue. Unparseable output = treat as REJECTED once, then ask user.

## Phase 4 — Verification + commit
State `VERIFICATION`: run the PLAN proof commands (build/tests). If green: write `.omega/SUMMARY.md`, state `COMMITTED`, commit following the project's commit rules (ask first if project requires it).

Versions

The database has no other skills named omega-loop.

Database snapshot: 13.11.2026 · package version 122cfea96cec (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100omega-agent-bridge
    Delegate bounded implementation, refactoring, audit, or review work to local CLI agents through Omega Agent Bridge (agy, Claude Code, Codex). Use when the user wants the current agent to act as architect and controller, hand bulk work to a separate execution engine, rotate…
  • 91omega-harness
    Operate in Omega and the AIEN repositories. Use for any Omega or .om task, compiler or migration work, AIEN architecture, repository routing, or project status claim. Covers source pins, .om-first implementation, compile and run evidence, safe effects, communication and stopping repeated errors.
  • 100omh-loop
    Use when running, continuing, or stopping a spec-driven autonomous Oh My Harness loop in Codex.
  • 100ralph
    This skill should be used when the user wants to set up an autonomous coding loop, plan a Ralph loop, prepare for headless Claude execution, create a spec and implementation plan for autonomous coding, or run an autonomous development workflow. Trigger phrases include "ralph",…
  • 98auto-review-loop-minimax
    Autonomous multi-round research review loop using MiniMax API. Use when you want to use MiniMax instead of Codex MCP for external review. Trigger with "auto review loop minimax" or "minimax review".
  • 90omega-communication
    Communicate Omega and AIEN work precisely: status and evidence labels, reports, PR text, agent handoffs, receipts, semantic needs, wire formats and corrections. Use when reporting, briefing agents, reviewing or publishing claims.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.