ulw-loop

ulw-loop is a skill for Claude Code from rlaope/oh-my-hermes. It costs 16 tokens per session (3,077 once invoked), scanned A, original, MIT.

A workflow skill for improving an outcome through repeated cycles of defining a goal, acting, checking results, and revising.

In plain words
What is it for?
Use it for iterative coding or research work where each round produces an observable result and has a clear stopping condition.
Why use it?
It helps when the right implementation is not known at the start, while keeping each cycle measurable and bounded.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it for iterative coding or research work where each round produces an observable result and has a clear stopping condition.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rlaope/oh-my-hermes/ulw-loop
About the project

oh-my-hermes is an operating layer for Hermes Agent that organizes requests into workflows for planning, research, creation, coding handoffs, operations, and project memory. Hermes users run these workflows through the desktop app, CLI, or messenger app, while the catalogue add-ons extend its native capabilities.

rlaope/oh-my-hermes · 6,237 stars · on GitHub · omher.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rlaope/oh-my-hermes --skill ulw-loop
Clone the repo
git clone --depth 1 https://github.com/rlaope/oh-my-hermes

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ulw-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/ulw-loop/github.svg)](https://agentmods.dev/skills/rlaope/oh-my-hermes/ulw-loop)
Your own site
<a href="https://agentmods.dev/skills/rlaope/oh-my-hermes/ulw-loop"><img src="https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/ulw-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ulw-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/rlaope/oh-my-hermes/ulw-loop"><img src="https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/ulw-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 167
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.03077
Opus 5.5 $0.00006 $0.01231
Sonnet 5.5 $0.00003 $0.00615
Haiku 4.5 $0.00002 $0.00308

Measured 10d ago against content hash 81d6dcc7356b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ulw-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agent-skills/ulw-loop/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Loop

This is an OMH loop workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

Read references/details.md first.

Do Not Use When

Read references/details.md first.

Examples

Read references/details.md first.

Completion Checklist

Read references/details.md first.

Recovery Notes

  • Drive the loop lifecycle through a native loop tool when this host offers one, submitting the revision the last read reported; the OMH native loop tool is unavailable in this projection, so keep the durable ledger with the host commands instead.
  • If a queued tick is pending, show it as prepared queue state and use loop status/run-once before claiming progress.
  • If feedback is unclear, ask one gate question or route back to ulw-research or omh-plan rather than advancing the loop.
  • If the goal turns into external waiting, record the waiting state and next observable signal instead of continuing locally.
  • Checkpoint on context/budget exhaustion. Migrate loop_cycle/v1 with migrate-driver --apply before external binding.
  • Resume the current host's durable checklist from observed evidence. If native goal control is requested on an unsupported host, report unavailable instead of inventing activation.
  • If the loop runs out of next actions, re-read the scoped files, recombine the near-miss attempts, then escalate to a more radical change before declaring the loop blocked.

When to Use

Use when the user starts a high-level goal or invokes loop. Direct loop invocation means start/continue through interviewer, planner, researcher, builder, reviewer, and loop-controller lanes until a real gate stops it.

Strong routing signals: `loop`, `./loop`, `$loop`, `goal loop`; all of them in `references/details.md`.

Catalog Metadata

Category: goal-loop Phase: continuous-goal-loop Quality tier: loop-gated Reasoning demand: heavy

Quality bar:

  • Treat direct loop, ./loop, $loop, and OMH loop invocations as a start/continue signal rather than a picker or passive clarification path, unless a Do Not Use condition holds; then name that condition and hand to the skill it names, or say none applies.
  • Classify the goal as task, project, ambition, external-wait, or unclear inside the loop, then keep progressing until a real permission, evidence, verification, context, budget, or external-wait gate appears.
  • A mid-run user message is an interjection, not a stop: answer it briefly and, in the same reply, continue the run — re-read the phase todo when one is active and dispatch or advance the next pending step, or name the armed wait it is waiting on -- handle, bound completion signal, deadline -- instead of re-reading status. Only the user's explicit stop or cancel, or the engine's own completion gate, ends the run; when the interjection changes scope, say so and update the declared plan or todo instead of silently abandoning it. A mid-run message is the latest steering for the active task, not automatically a replacement objective: it replaces the objective when the user says so and steers the current one otherwise.
  • A follow-up that needs new authority, materially expands the scope, or changes external state not already authorized is described first and started only on the user's approval; persistence never broadens the authorized scope. A refused escalation gets a safer alternative inside the boundary, or the authorization the boundary asks for — never a workaround or an indirect execution.
  • The closing brief scales to the change: one or two sentences for a simple change. Lead with the result and validation; omit abandoned approaches unless they explain a tradeoff, and internal bookkeeping. Disclose requested-but-not-done work and material prepared/unmerged work; omit unrelated non-action footers. Required accounting stays outside this scaling. Order: result -> relevant evidence/limits -> observed accounting (when required) -> specific question (if useful). For a real unresolved user decision or a useful briefing discussion, offer one specific, content-linked question. Completed work needs no question; discussion grants no authority. Never estimate usage.
  • Expose core OMH roles: interviewer, planner, researcher, builder, reviewer, and loop controller.
  • Route tiny direct tasks to one-cycle delivery surfaces instead of forcing loop overhead.
  • Reframe a north-star ambition into a bounded arena, observable problem, next loop goal, and next verification without shrinking its ambition.
  • Separate task discovery, distribution, execution, verification, next-task decision, runtime tick queueing, durable-checkpoint/handoff, feedback, waiting, and resume decisions.
  • Expose a permission profile before executor/runtime dispatch, repository mutation, PR, merge, or external publishing.
  • Expose the automation, worktree, skill, connector, and subagent building-block states without treating planned blocks as observed work.
  • Choose workflow patterns such as single-step, fan-out-and-synthesize, adversarial verification, tournament, or triage batch as orchestration metadata only.
  • Keep repeated scaffold shape stable, summarize within bounded budgets, and add verifier lanes only when risk or evidence warrants them.
  • Keep prepared worktree/subagent/connector plans, observed executor work, linked goal completion, and external waiting as distinct evidence states.
  • Use cheap inner-loop checks frequently and expensive outer-loop checks sparingly.
  • Keep the practical small-loop recipe visible: test as stop signal, plan -> execute -> verify, one task at a time.
  • Surface verification_gap, comprehension_debt, and cognitive_surrender as warnings before a loop starts looking self-steering.
  • Before a loop launches, or when asked whether one will hold, load references/loop-design-review.md: a finish line written beside the fence of files the loop may not edit, a judge other than the builder, and the pre-launch failure check.
  • When a measured loop compares variants of code or config on branches (training runs, evals, sweeps), load references/experiment-tree.md: one fixed run command for every node, results freeze a node, a small fan of siblings per decision, then descend onto the winner.
  • Use omh loop assess, start, status, tick, and feedback as local metadata control-plane commands. Execute authorized work through the current host. The default hermes_goal driver label is prepared metadata, not an available host goal controller. Do not invoke native /goal controls on another host.
  • Only an explicitly selected coding owner with a session-bound host_observed resumable_goal capability may use the external goal-driver CLI path. Otherwise keep a host-owned evidence ledger; report unavailable native goal activation rather than fabricating it.
  • Treat ticks as preparation only. Record host phase results separately; never manufacture native phase-transition evidence from a host task declaration.
  • Treat a judge done verdict, a turn-ceiling pause, or a gate-retry pause as narration; completion still requires the linked goal ledger completion gate and observed evidence.
  • When the stop ladder names replan_stuck_loop_once, re-plan once from the goal ledger and recorded failures alone, not the transcript or recalled memory; record the new approach and continue; a second stop names the blocker step.
  • Treat any future change to the default goal driver (native /goal) as a maintainer-reviewed product decision, not a runtime phase or automatic loop outcome.
  • Compare only observed outcomes under matched task, model/provider, permissions, turn budget, and verification surface; unresolved evidence keeps the current default.
  • Keep promotion governance separate from goal-ledger completion and ordinary measured-loop keep/discard decisions; do not invent subjective scorers, fixed numeric thresholds, minimum run counts, weighted percentages, or per-turn artifact quotas.
  • Name the one element gating this loop from the loop_constraint_assessment/v1 block before choosing the next action; if none is binding, say so from the recorded reason rather than assuming.
  • When the goal is measurable, declare the evaluation contract before the first attempt - exact command, metric name, direction, and the rule that the loop may not modify the scoring harness - and bind every keep or discard decision to it; when no such contract exists, say the goal is unmeasured instead of scoring it by judgement.
  • Run a measurable cycle as attempt, commit, measure, then keep or reset; a reset is the normal discard, and rewinding to an older commit is for a run of discards that traces to one bad ancestor.
  • For a measurable loop, keep a human-scannable ledger the loop itself appends to - one tab-separated line per cycle carrying commit, metric, cost, keep or discard or crash, and a one-line description - beside the JSON loop artifacts.
  • Log a long-running cycle to a file and pull only the declared metric and error lines into context; read the whole log only when the cycle crashed.
  • Choose the wait strategy before starting long-running work and bind it to a completion signal the host exposes, never to a status loop: a command that fits one tool call runs once in the foreground with a duration-sized timeout; a longer terminal command runs in the background with completion notification armed and no process-status polling; a delegated lane relies on its delivered result while the parent continues independent work or ends the turn; a CI, PR, deploy, file, port, log-line, or external-session condition uses the host's monitor when observed, else exactly ONE bounded watcher or adaptive backoff outside model turns. Record the handle and observation mode at dispatch; every armed wait needs a hard deadline, a cancellation path, and a fallback naming the missing capability. Each wait closes in one terminal state with bounded evidence; an unbounded idle or busy-wait is a defect and a lost notification times out. One decision-changing midpoint peek and any user-requested status check stay allowed; neither is the wait mechanism. Ladder and terminal states: shared rail.
  • On an equal metric keep the simpler change, always keep an improvement achieved by deletion, and do not let a small gain buy added complexity.
  • After the judge passes, run an omh-ai-slop-cleaner pass scoped to the changed_files the cycle's loop_subagent_result_contract/v1 results reported, never wider; the loop's own verification then reruns and must not regress - on a measured loop neither may the metric - or the cleaner's edits are reverted. When the linked goal carries AC-SLOP (a loop allowed repo_edit arms it), the goal refuses completion until an outcome record made with omh runtime record --skill ai-slop-cleaner --harness coding-handling --status completed --cleanup-outcome passed|skipped|reverted --goal <linked goal id> --outputs-summary <what changed, or why skipped> is cited by omh goal checkpoint --goal <goal_id> --summary <outcome> --criterion AC-SLOP --evidence-ref run:<run_id>; one accepted record satisfies AC-SLOP for the goal, so later cycles need no new one. A user's skip, or a cycle that reported no changed_files, is an explicit skipped, and a reverted pass is reverted, never passed; a missing record is never read as nothing to clean.

Read the full file on GitHub · 146 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +1 lines 81d6dcc7356b
  2. 11d ago Changed · -50 lines · -17 tokens per session b11f65e9d8c9
  3. 18d ago Changed · -35 tokens per session 60d3012a932e
  4. 23d ago Changed 993bd3264969
  5. 24d ago Changed fc4e0ac4c9a0
  6. 27d ago Changed · +1 lines 3859309f3f3e
  7. 1mo ago Changed · +1 lines 04c5021c9d6f
  8. 1mo ago Changed · +1 lines 96fb76d5839b
  9. 1mo ago Changed · +2 lines 476465243014
  10. 1mo ago First seen · 190 lines · 68 tokens per session scan A 797243a7bc87

Subscribe to this mod's changes

ulw-loop is a skill published in the GitHub repository rlaope/oh-my-hermes (6,237 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 3,077 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ulw-loop compared with skills from other repositories

ulw-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ulw-looprlaope/oh-my-hermesSkill6.2ktodayMITA16Claude Code
librarianJetBrains/thinkrailSkill8.5ktodayApache-2.0A71Claude Code, Codex
managing-mcp-serversJetBrains/thinkrailSkill8.5ktodayApache-2.0A62Claude Code, Codex
todosJetBrains/thinkrailSkill8.5ktodayApache-2.0A58Claude Code, Codex
upgrading-core-dependenciesJetBrains/thinkrailSkill8.5ktodayApache-2.0A59Claude Code, Codex
writing-workflow-skillsJetBrains/thinkrailSkill8.5ktodayApache-2.0A60Claude Code, Codex
about-thinkrailJetBrains/thinkrailSkill8.5ktodayApache-2.0A153Claude Code, Codex