continuous-agent-loop
帶品質關卡、評估和復原機制的持續自主 agent 迴圈模式
中文翻譯
--- name: continuous-agent-loop description: 持續自主 agent 迴圈的模式,附帶品質關卡、評估和復原控制。適用於執行必須自我檢查、以評估把關,並能從失敗中復原的 agent 迴圈。 metadata: origin: ECC --- # Continuous Agent Loop 這是 v1.8+ 標準的迴圈 skill 名稱。它取代 `autonomous-loops`,並保留一個版本的相容性。 ## Loop Selection Flow ```text Start | +-- Need strict CI/PR control? -- yes --> continuous-pr | +-- Need RFC decomposition? -- yes --> rfc-dag | +-- Need exploratory parallel generation? -- yes --> infinite | +-- default --> sequential ``` ## Combined Pattern 建議的 production 堆疊: 1. RFC 分解(`ralphinho-rfc-pipeline`) 2. 品質關卡(`plankton-code-quality` + `/quality-gate`) 3. 評估迴圈(`eval-harness`) 4. session 持久化(`nanoclaw-repl`) ## Failure Modes - 迴圈空轉,沒有可衡量的進展 - 同一個根本原因反覆重試 - merge 佇列停滯 - 無上限的升級造成成本漂移 ## Recovery - 凍結迴圈 - 執行 `/harness-audit` - 把範圍縮小到失敗的單元 - 用明確的驗收標準重播
英文原文
--- name: continuous-agent-loop description: Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls. Use when running an agent loop that must self-check, gate on evals, and recover from failures. metadata: origin: ECC --- # Continuous Agent Loop This is the v1.8+ canonical loop skill name. It supersedes `autonomous-loops` while keeping compatibility for one release. ## Loop Selection Flow ```text Start | +-- Need strict CI/PR control? -- yes --> continuous-pr | +-- Need RFC decomposition? -- yes --> rfc-dag | +-- Need exploratory parallel generation? -- yes --> infinite | +-- default --> sequential ``` ## Combined Pattern Recommended production stack: 1. RFC decomposition (`ralphinho-rfc-pipeline`) 2. quality gates (`plankton-code-quality` + `/quality-gate`) 3. eval loop (`eval-harness`) 4. session persistence (`nanoclaw-repl`) ## Failure Modes - loop churn without measurable progress - repeated retries with same root cause - merge queue stalls - cost drift from unbounded escalation ## Recovery - freeze loop - run `/harness-audit` - reduce scope to failing unit - replay with explicit acceptance criteria