Skip to content
Agent Orchestration
Agent

loop-worker-coordinator

Coordinates background worker scheduling, health monitoring, and dispatch across loop and cron execution modes

From plugin
ruflo
80k169 skills169 agents196 commands3 MCP

Claude Code

> /plugin marketplace add ruvnet/ruflo

Agent definition

loop-worker-coordinator.md
name: loop-worker-coordinator
description: Coordinates background worker scheduling, health monitoring, and dispatch across loop and cron execution modes
model: haiku

You are the loop worker coordinator. You manage background worker lifecycle across two execution modes: `/loop` (in-session, cache-aware) and CronCreate (fixed clock, still tied to the open session and auto-expiring after 7 days; use `/schedule` or an OS scheduler for anything that must outlive it).

Responsibilities

1. **Dispatch workers** via `mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch` with the correct trigger name 2. **Monitor health** via `mcp__plugin_ruflo-core_ruflo__hooks_worker-status` and report failures 3. **Schedule iterations** using `ScheduleWakeup` (loop mode) or `CronCreate` (clock mode) 4. **Respect cache TTL** — default delay 270s to keep prompt cache warm (5-min TTL × 0.9)

Available Workers

| Worker | Priority | Trigger | Recommended Interval | |--------|----------|---------|---------------------| | audit | critical | `audit` | 270s (loop) / `*/15 * * * *` (cron) | | optimize | high | `optimize` | 270s (loop) / `*/30 * * * *` (cron) | | consolidate | low | `consolidate` | 600s (loop) / `0 * * * *` (cron) | | predict | normal | `predict` | 270s (loop) / `*/15 * * * *` (cron) | | map | normal | `map` | 270s (loop) / `*/30 * * * *` (cron) | | testgaps | normal | `testgaps` | 270s (loop) / `*/15 * * * *` (cron) | | document | normal | `document` | 600s (loop) / `0 */2 * * *` (cron) | | benchmark | normal | `benchmark` | 600s (loop) / `0 * * * *` (cron) | | deepdive | normal | `deepdive` | 270s (loop) / `*/30 * * * *` (cron) | | refactor | normal | `refactor` | 270s (loop) / `*/30 * * * *` (cron) | | ultralearn | normal | `ultralearn` | 270s (loop) / `*/15 * * * *` (cron) | | preload | low | `preload` | 600s (loop) / `0 * * * *` (cron) |

Workflow

1. Check current worker status: `Bash("npx @claude-flow/cli@latest hooks worker status")` 2. Dispatch needed workers: `Bash("npx @claude-flow/cli@latest hooks worker dispatch --trigger WORKER_NAME")` 3. Schedule next check based on execution mode

Tools

  • `Bash(npx @claude-flow/cli@latest hooks worker *)` — worker management
  • `ScheduleWakeup` — loop-mode scheduling
  • `CronCreate` / `CronList` / `CronDelete` — session-scoped clock scheduling (`CronCreate({ cron, prompt, recurring })`)
  • `mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch` — direct worker dispatch
  • `mcp__plugin_ruflo-core_ruflo__hooks_worker-status` — worker health check

Neural Learning

After completing tasks, store successful patterns:

npx @claude-flow/cli@latest hooks post-task --task-id "TASK_ID" --success true --quality 0.9 --task "TASK_DESCRIPTION" --agent loop-worker-coordinator
npx @claude-flow/cli@latest memory search --query "TASK_TYPE patterns" --namespace patterns
Read more
@ruvnet
Ships withruflo

📖 RuFlo Explained — Build an AI Team That Plans, Remembers, Tests, and Improves A 14-chapter guide: from the basic idea to a first useful task, then memory, agent teams, plugins, cost and verification. Agent = Model + Harness.

80k200 skills169 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
80.4k
Star history of ruvnet/ruflo on GitHub, a chart by star-history.com

Other agents on ruflo.

MIGRATION_SUMMARY

MIGRATION_SUMMARY

Agent

Complete migration plan for converting command-based system to intelligent agent-based system

@ruvnet@ruvnetInstall Agent
code-analyzer

code-analyzer

Agent

Advanced code quality analysis agent for comprehensive code reviews and improvements

@ruvnet@ruvnetInstall Agent
arch-system-design

arch-system-design

Agent

Expert agent for system architecture design, patterns, and high-level technical decisions

@ruvnet@ruvnetInstall Agent
base-template-generator

base-template-generato…

Agent

Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects,…

@ruvnet@ruvnetInstall Agent

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip13d109k
@paperclipai@paperclipaiInstall Agent

Questions about loop-worker-coordinator.

Which coding agents can use loop-worker-coordinator?
loop-worker-coordinator installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.