mcpField
A
autopilot-loop

autopilot-loop

github.com/ruvnetAgent workflows80.0k752 installsUpdated today
Repository

About autopilot-loop

autopilot-loop is a skill for running one Claude Code /loop iteration at a time. It checks task status, predicts and executes a next action, logs the result, and schedules another iteration when appropriate.

Key features

  1. 01Check autopilot status
  2. 02Predict the next task
  3. 03Execute and log an action
  4. 04Stop at completion or iteration limit
  5. 05Schedule the next iteration

Use cases

  1. 01Run tasks from a team task list
  2. 02Work through MCP swarm tasks
  3. 03Process Markdown checklist items

MCP support

Uses MCP tools to check autopilot status, predict actions, log results, configure task sources, and disable autopilot.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ruvnet/ruflo --skill autopilot-loop

After installing, type/autopilot-loopin Claude Code to confirm it loaded.

Details

From the project README

Run one autopilot iteration using Claude Code's native /loop:

  1. Check status: mcp__plugin_ruflo-core_ruflo__autopilot_status
  2. If all tasks complete or max iterations reached, call mcp__plugin_ruflo-core_ruflo__autopilot_disable and stop
  3. Get prediction: mcp__plugin_ruflo-core_ruflo__autopilot_predict for the optimal next action
  4. Execute the predicted task (spawn agent, edit code, run tests, etc.)
  5. Log via mcp__plugin_ruflo-core_ruflo__autopilot_log
  6. Schedule next: ScheduleWakeup({ delaySeconds: 270, reason: "next autopilot iteration" })
Cache-Aware Scheduling

Always use delay 270s (under 300s cache TTL) to keep the prompt cache warm between iterations.

Task Sources

Autopilot discovers tasks from:

  • team-tasks: Claude Code TaskList entries
  • swarm-tasks: MCP task_list entries
  • file-checklist: Markdown checkbox items in tracked files

Configure: mcp__plugin_ruflo-core_ruflo__autopilot_config({ taskSources: ["team-tasks", "swarm-tasks"] })

Comments

Markdown supported