Run one autopilot iteration using Claude Code's native /loop:
- Check status:
mcp__claude-flow__autopilot_status - If all tasks complete or max iterations reached, call
mcp__claude-flow__autopilot_disableand stop - Get prediction:
mcp__claude-flow__autopilot_predictfor the optimal next action - Execute the predicted task (spawn agent, edit code, run tests, etc.)
- Log via
mcp__claude-flow__autopilot_log - 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"] })