/rig:loop ["what to repeat (a command or a task)"] [--every <dur>] [--until "<check>"] [--times N] [--plan]from rig
rig/loop — a recurring driver that repeats something (a command, a rig flow, a task) on an interval or at its own pace, with a stopping condition (--until, --times, or an explicit stop) and a safety ceiling. The opposite of goal, which converges on an outcome: this watches, polls, and runs on a schedule.
Ships in rig. Installing the plugin adds it to Claude Code.
Start the rig:engine skill with the Skill tool first and follow its SKILL.md (PARSE → RESOLVE → COMPOSE → RUN, context-minimal). This command is only the entry point; the engine lives in the skill and is not repeated here. Scheduling reuses the existing patterns/autonomous-loop (ScheduleWakeup).
Then PARSE the following arguments with --recipe loop as the default:
$ARGUMENTS
Hands the target to the loop recipe. The procedure — fix the target, the interval, and the stopping condition; run one tick; decide whether to stop; schedule the next tick or finish — is in facets/instructions/loop-driver.
/rig:dev or /rig:pr, or any command (checking CI, aggregating something).--every <dur> drives it by time (10m); without it, it paces itself, moving on a signal or an event.--until "<check>" is a mechanically verified condition; --times N is a count; an explicit stop needs the safety ceiling confirmed. Never enter an unbounded watch with neither a condition nor a ceiling./rig:goal — converge until achieved; the end is the acceptance criteria. Work that finishes./rig:loop — repeat and watch; the end is a stopping condition or a count. Work that does not./rig:loop --every 1h /rig:goal "…" kicks a goal on a schedule: loop is the outer scheduler, goal is the convergence inside it.--every <dur> — the time-driven interval (5m, 1h), following the ScheduleWakeup conventions (270 and 1200; never 300). Without it, self-paced.--until "<check>" — the stopping condition, decided mechanically: a shell exit code of 0, a GitHub MCP status, a grep.--times <N> — finish after N runs.--plan — present the target, interval, and stopping condition, then stop. A dry run./rig:loop --every 10m --until "CI is green" /rig:pr 1234 # watch a PR's CI until it goes green
/rig:loop --times 3 /rig:dev --only review # run the review three times
/rig:loop --every 1h /rig:goal "get the issue through review"
/rig:loop "aggregate the report each morning" # a self-paced recurring chore
/rig:loop --plan --every 10m --until "the deploy succeeded" ...
/rig:loop --until "PR #123 is MERGED or CLOSED" "/rig:pr 123" # babysitting a PR
/rig:loop --every 7d "/rig:import --check-updates" # a dependabot for skills
While a RUN is active, restate this run-status header as a single line at the top of every turn. Do not drop it right after an interruption, a question, or tool output — the visibility is the evidence that the harness is driving:
▸ rig | recipe: <name[tier]|ad-hoc> | step: <id> (<n>/<N>) | gate: <none|pending|passed|REJECT> | backend: <manual|workflow> | mode: <gated|autonomous>
Exception (SKILL.md §6 ①): a turn woken only by a <task-notification> whose status is completed and whose result is only the harness's already-delivered sentence (the report was delivered to you as a message and is not repeated) gets no header and no narration; a result that merely quotes that sentence is not exempt, and a failed, killed or stopped notification never is.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub itoh-shun/rig --plugin rig30 commands in this plugin
/brainstormrig/brainstorm — thinking a design through 💭rig/brainstorm — think a rough idea through: questions, alternatives, and agreement section by section. It comes before implementation and task-splitting, settling what to build, why, and in what order, so nothing goes into implementation still vague. Converges on a design brief and hands off to /rig:tasks or /rig:dev./catalogrig/catalog — the cross-tier registryrig/catalog — the cross-tier registry. Walks every tier (shipped, global, project) and shows the map of domain x pack x persona x wiki x recipe, so you can see again who is doing what where. Read-only./Other plugins' commands for the same job