autopilot-loop
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRun 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 and stop
mcp__claude-flow__autopilot_disable - Get prediction: for the optimal next action
mcp__claude-flow__autopilot_predict - 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" })
使用Claude Code原生的/loop运行一次自动驾驶迭代:
- 检查状态:
mcp__claude-flow__autopilot_status - 如果所有任务完成或达到最大迭代次数,调用并停止
mcp__claude-flow__autopilot_disable - 获取预测:调用获取最优下一步操作
mcp__claude-flow__autopilot_predict - 执行预测的任务(生成Agent、编辑代码、运行测试等)
- 通过记录日志
mcp__claude-flow__autopilot_log - 安排下一次迭代:
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.
始终使用270秒的延迟(低于300秒的缓存TTL),以在迭代之间保持提示缓存的热度。
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"] })自动驾驶功能从以下来源发现任务:
- team-tasks:Claude Code任务列表条目
- swarm-tasks:MCP task_list条目
- file-checklist:跟踪文件中的Markdown复选框项
配置方式:
mcp__claude-flow__autopilot_config({ taskSources: ["team-tasks", "swarm-tasks"] })