技能 编程开发 自动循环流程执行

自动循环流程执行

v20260707
autopilot-loop
该功能用于运行完整的自主循环流程(autopilot loop)。它系统性地检查任务进度,预测下一步的最佳行动(如编辑代码、运行测试),执行任务,记录日志,并安排下一次唤醒。它支持从团队任务、集群任务和文件清单中获取任务,实现持续、自动化的开发流程。
获取技能
462 次下载
概览

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

  1. Check status: mcp__claude-flow__autopilot_status
  2. If all tasks complete or max iterations reached, call mcp__claude-flow__autopilot_disable and stop
  3. Get prediction: mcp__claude-flow__autopilot_predict for the optimal next action
  4. Execute the predicted task (spawn agent, edit code, run tests, etc.)
  5. Log via mcp__claude-flow__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__claude-flow__autopilot_config({ taskSources: ["team-tasks", "swarm-tasks"] })

信息
Category 编程开发
Name autopilot-loop
版本 v20260707
大小 1.27KB
更新时间 2026-07-09
语言