Loop

Runs supervised multi-round DevOS Loop cycles to iteratively refine a target with human review between rounds.

Updated Sep 3, 2026
One-click install
npx skills add https://github.com/ruban-s/DevOS --skill loop-ruban-s
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Loop
Source: https://github.com/ruban-s/DevOS/tree/main/skills/Loop
Command: npx skills add https://github.com/ruban-s/DevOS --skill loop-ruban-s

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Single-pass improvement cycles lose context between runs: dead ends get re-explored, rejected approaches resurface, and there is no way to tell whether quality actually improved. This Skill carries ISC criteria, learnings, and a dead-ends ledger across repeated refinement rounds so each pass starts from the last one's endpoint. ## Core Features & Use Cases - Multi-round refinement: Runs complete OBSERVE-to-LEARN DevOS Loop cycles against a target file, directory, or skill, with each round inheriting the previous round's context. - Human-in-the-loop by default: A person reviews and steers between rounds, approving or redirecting the next cycle. - Autoresearch mode: An opt-in --autoresearch flag enables autonomous iteration with a dead-ends ledger and MAD-based confidence gating on iteration scores. - Use Case: Point it at a prompt file with a goal like "more concise, less filler" and run 5 iterations, reviewing the output after each round before continuing. ## Quick Start Ask the agent to loop over a target file with a stated goal and an iteration count, for example: run /loop on prompts/summarize.md with the goal of making it more concise for 3 iterations.

Frequently Asked Questions about Loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run multiple improvement iterations on a file with an AI agent?▼

Invoke /loop with a --target path, an optional --goal describing what better means, and --iterations for the maximum number of cycles. Each round runs a full OBSERVE-to-LEARN cycle and carries learnings into the next round.

What is the difference between /loop and /optimize?▼

/loop runs full DevOS Loop cycles with human judgment threaded between rounds, while /optimize is an autonomous mutation loop with no human in it. Choose /loop when between-round review matters.

Can I run iterative refinement autonomously without human review?▼

Yes, pass the --autoresearch flag to disable between-cycle human review. The loop then runs until the iteration count, target, or an interrupt, using a dead-ends ledger and MAD confidence gating on scores.

How do I resume a previous loop run?▼

Use /loop --resume to continue a prior loop and /loop --status to show iteration history. Resumes read the dead-ends ledger first so rejected approaches stay rejected.

What are the limitations of iterative loop refinement?▼

Each round is a complete cycle, so time and token cost is real and scales with iterations. Without a clear exit condition a loop can run indefinitely, and skipping the default human review removes the main feedback mechanism.