Ulw loop

From code-yeongyu/oh-my-openagent · View interactive version

Ulw loop is an AI agent skill from the GitHub repository code-yeongyu/oh-my-openagent. A goal-like loop that decomposes work into systematic, evidence-bound ultrawork steps. Use when the user wants a goal loop or durable, checkpointed execution.

How to use this skill

Skill file

ulw-loop

Use this skill when the user asks for ulw-loop, ulw, durable goal execution, evidence-led work, manual QA, or checkpointed long-running delivery.

This skill is intentionally compact. The full workflow lives in references/full-workflow.md. Read only the sections needed for the current phase, then execute them exactly.

Required First Steps

  1. Open references/full-workflow.md.
  2. Read through Bootstrap (including its tier triage), Execution Loop, the Manual-QA channels table, and the Stop Rules before running any ULW command or recording evidence.
  3. Open references/define-goal.md and register the run's goal by it. Goal creation is NEVER skipped: shape the objective and every success criterion by that reference before any implementation.
  4. If the task has code edits, tests, QA, or commit work, follow the full workflow's delegation and evidence rules. Tests alone never prove done.

Non-Negotiables

Team mode: decide it, do not default to it

Solo execution with parallel background task workers is the default. A team (team_create) adds per-member briefing, shared-state, and relay overhead, so it must be paid for by the work's shape. Decide ONCE, when the plan's work units are known, and record the verdict plus its reason in the notepad.

Stand up a team when BOTH hold:

  1. The units' scopes overlap in a way you cannot cleanly cut. They touch the same module, contract, or migration, so one unit's discovery changes what another should do. Fire-and-forget workers cannot exchange that mid-flight; teammates can, because the lead relays it.
  2. Running them at the same time actually finishes sooner. The units are each substantial and none is merely waiting on another's output. Two units where the second only consumes the first's result are a sequence, not a team.

When the units are genuinely independent — separate files, no shared contract — spawn parallel background task workers instead and avoid the team coordination overhead entirely. When the work is one cohesive unit, keep it in this session - delegating only the code edits, test writes, fixes, and QA executions the rule above requires. Overlap alone is not enough: near-identical units that would collide on the same lines are faster done in sequence by one worker.

Under team mode, isolate and land per unit:

Codex Tool Mapping

Codex exposes ONE subagent surface per session — check your tool list. GPT-5.6 (sol/terra) get the flat MultiAgentV2 tools (primary); GPT-5.5 and gpt-5.6-luna get the namespaced multi_agent_v1.* set (fallback row). The workflow's orchestration examples map to:

| Intent | MultiAgentV2 (gpt-5.6 sol/terra) |

| --- | --- |

| Spawn a worker | spawn_agent({"task_name":"<lower_snake_id>","message":"TASK: act as <role>. ...","fork_turns":"none"}) — task_name+message required; fork_turns:"none" = no parent history; do NOT set agent_type/model/reasoning_effort |

| Re-task an idle worker (wakes it) | followup_task({"target":"<name>","message":"..."}) |

| Send context without interrupting | send_message({"target":"<name>","message":"..."}) |

| Wait for a mailbox signal | wait_agent({"timeout_ms":<ms>}) — any live worker; a timeout only means no new update |

| Enumerate / stop a runaway | list_agents() / interrupt_agent({"target":"<name>"}) — no close_agent; finished workers end on their own |

V1 fallback (gpt-5.5, gpt-5.6-luna): multi_agent_v1.spawn_agent({...,"fork_context":false}), multi_agent_v1.send_input (re-task), multi_agent_v1.wait_agent({"targets":[...],"timeout_ms":...}), multi_agent_v1.close_agent.

When translating load_skills=[...], include the requested skill names in the spawned agent's message.

Driver goal lifecycle

The Codex thread goal is a DRIVER the loop instructs, never a gate. checkpoint takes an OPTIONAL --codex-goal-json snapshot, records it verbatim in the ledger, and never rejects on its status or objective; the advice arrives in nextActions. A driver completed early yields advice to create_goal again with the plan's objective verbatim; paused, usage_limited, and budget_limited yield resume advice; a differing objective is a warning, not a refusal. Malformed snapshot input is the only failure, reported as ULW_LOOP_CODEX_GOAL_JSON_INVALID.

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.