loop-worker
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse for in-session periodic workers. Cache-aware delays keep prompt cache warm:
/loop- Delay formula: -- default 270s
min(270, cache_ttl * 0.9)
Dispatch a worker via MCP:
mcp__claude-flow__hooks_worker-dispatch({ trigger: "WORKER_NAME" })Then schedule the next iteration:
ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration" })使用实现会话内周期性工作进程。缓存感知延迟可保持提示缓存处于活跃状态:
/loop- 延迟公式:-- 默认270秒
min(270, cache_ttl * 0.9)
通过MCP调度工作进程:
mcp__claude-flow__hooks_worker-dispatch({ trigger: "WORKER_NAME" })然后调度下一次迭代:
ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration" })Available Workers
可用工作进程
| Worker | Interval | Description |
|---|---|---|
| audit | 270s | Security analysis |
| optimize | 270s | Performance optimization |
| consolidate | 600s | Memory consolidation |
| predict | 270s | Predictive preloading |
| map | 600s | Codebase mapping |
| testgaps | 270s | Test coverage analysis |
| document | 600s | Auto-documentation |
| benchmark | 600s | Performance benchmarking |
MCP tool responses include and hints -- follow them.
[LOOP_SUGGESTION][CRON_SUGGESTION]| 工作进程 | 间隔 | 描述 |
|---|---|---|
| audit | 270秒 | 安全分析 |
| optimize | 270秒 | 性能优化 |
| consolidate | 600秒 | 内存整合 |
| predict | 270秒 | 预测性预加载 |
| map | 600秒 | 代码库映射 |
| testgaps | 270秒 | 测试覆盖率分析 |
| document | 600秒 | 自动文档生成 |
| benchmark | 600秒 | 性能基准测试 |
MCP工具响应包含和提示——请遵循这些提示。
[LOOP_SUGGESTION][CRON_SUGGESTION]