Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Loop Worker

  • 649 installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

loop-worker is a Ruflo agent skill that dispatches named background workers on Claude Code `/loop` schedules with cache-aware delays until success criteria or iteration limits are reached.

About

loop-worker is a ruvnet/ruflo skill for developers who need persistent, stateful agent loops instead of single-turn commands. It integrates Claude Code native `/loop` scheduling with Ruflo MCP worker hooks: dispatch via `mcp__claude-flow__hooks_worker-dispatch`, monitor with hooks_worker-status, and chain iterations through ScheduleWakeup. Cache-aware delay uses `min(270, cache_ttl * 0.9)` seconds, defaulting to 270 seconds between worker runs to keep prompt cache warm. Invoke loop-worker with a worker name argument to run periodic background tasks until success criteria or a maximum iteration cap. Reach for it when operational automation must retry on an interval—sync jobs, queue drainers, or long-running fix loops—without manually re-prompting each cycle.

  • Executes repeated agent cycles with memory and state persistence
  • Built-in success criteria evaluation and early termination
  • Supports configurable max iterations and retry logic
  • Designed for autonomous agent workflows and long-running tasks
  • Integrates directly with Claude Code, Cursor, and similar agents

Loop Worker by the numbers

  • 649 all-time installs (skills.sh)
  • +10 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #368 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill loop-worker

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs649
repo stars67k
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you run persistent agent worker loops?

Run persistent, stateful agent loops that continue until success criteria are met or a maximum iteration limit is reached.

Who is it for?

Developers using Claude Code `/loop` and Ruflo who need cache-aware periodic workers that run until success criteria are met.

Skip if: Developers running one-shot scripts or CI jobs that complete in a single execution without agent scheduling requirements.

When should I use this skill?

A background worker must repeat on an interval until success criteria or max iterations, using Ruflo worker-dispatch and ScheduleWakeup hooks.

What you get

Dispatched worker iterations, hooks_worker-status snapshots, and ScheduleWakeup chains until success or iteration cap.

  • Worker iteration dispatch logs
  • hooks_worker-status reports
  • ScheduleWakeup iteration chain

By the numbers

  • Default worker wake delay of 270 seconds between iterations
  • Cache-aware delay formula `min(270, cache_ttl * 0.9)`

Files

SKILL.mdMarkdownGitHub ↗

Use /loop for in-session periodic workers. Cache-aware delays keep prompt cache warm:

  • Delay formula: min(270, cache_ttl * 0.9) -- default 270s

Dispatch a worker via MCP: mcp__claude-flow__hooks_worker-dispatch({ trigger: "WORKER_NAME" })

Then schedule the next iteration: ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration" })

Available Workers

WorkerIntervalDescription
audit270sSecurity analysis
optimize270sPerformance optimization
consolidate600sMemory consolidation
predict270sPredictive preloading
map600sCodebase mapping
testgaps270sTest coverage analysis
document600sAuto-documentation
benchmark600sPerformance benchmarking

MCP tool responses include [LOOP_SUGGESTION] and [CRON_SUGGESTION] hints -- follow them.

Related skills

How it compares

Pick loop-worker for Ruflo MCP scheduled agent workers; use fixed-interval loop skills when only shell sleep ticks are needed without Claude-Flow worker dispatch.

FAQ

How does loop-worker schedule iterations?

loop-worker uses Claude Code `/loop` plus ScheduleWakeup to chain worker iterations. Delay follows `min(270, cache_ttl * 0.9)` seconds, defaulting to 270 seconds, keeping prompt cache warm between runs.

Which MCP hooks does loop-worker call?

loop-worker dispatches through `mcp__claude-flow__hooks_worker-dispatch` with a trigger worker name and checks status via hooks_worker-status. Bash `npx` commands are allowed for supporting CLI steps.

When should developers use loop-worker?

loop-worker fits tasks that must repeat until success criteria or a maximum iteration limit—queue processing, sync jobs, or fix loops. Avoid it for single-run scripts that do not need agent scheduling or stateful retries.

Automation & Workflowsagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.