Loading...
Loading...
Compare original and translation side by side
{ done: boolean, reason: string }done{ done: boolean, reason: string }done{ done: boolean, reason: string }done{ done: boolean, reason: string }donereason<previous-iteration-result>reason<previous-iteration-result>~/.paseo/loops/<loop-id>/
worker-prompt.md # worker prompt (live-editable)
verifier-prompt.md # verifier prompt (live-editable, only when verifier is used)
last_reason.md # latest iteration result
history.log # per-iteration records~/.paseo/loops/<loop-id>/
worker-prompt.md # worker提示词(可实时编辑)
verifier-prompt.md # 验证器提示词(仅在使用验证器时可实时编辑)
last_reason.md # 最新迭代结果
history.log # 每次迭代的记录$ARGUMENTS$ARGUMENTS/loop babysit PR #42 until CI is green, check every 5 minutes
→ worker-prompt: "Check the CI status of PR #42 using `gh pr checks 42`. Report done when ALL checks
have passed (no pending, no failures). If any checks are still running or have failed, report not
done and list which checks are pending or failing."
No verifier (self-terminating: the worker inspects CI and reports done when green)
sleep: 5m
archive: yes
name: babysit-pr-42
/loop implement the auth refactor from the plan in /tmp/plan.md
→ worker-prompt-file: /tmp/plan.md
verifier-prompt: "Verify every step of the plan was implemented. Check file changes, types, and
run `npm run typecheck` and `npm test`. Report each criterion individually with evidence."
name: auth-refactor
worktree: auth-refactor
/loop run the test suite until it passes
→ worker-prompt: "Run `npm test`. If any tests fail, read the failure output, investigate the root
cause in the source code, and fix it. Report done when `npm test` exits with code 0 and all
tests pass. Report not done if any test still fails, and explain which tests failed and why."
No verifier (self-terminating: worker reports done when tests pass)
name: fix-tests
/loop watch error rates after deploy, check every 10 minutes
→ worker-prompt: "Check the error rate for the canary deployment by running `./scripts/check-canary.sh`.
Report done when the error rate has been below 0.1% for at least 2 consecutive checks. Report not
done with the current error rate and trend."
No verifier (self-terminating: worker reports done when error rate is stable)
sleep: 10m
max-iterations: 30
archive: yes
name: canary-watch/loop 持续监控PR #42直到CI变绿,每5分钟检查一次
→ worker-prompt: "使用`gh pr checks 42`检查PR #42的CI状态。当所有检查通过(无 pending、无失败)时报告任务完成。如果仍有检查在运行或失败,报告任务未完成并列出对应的检查项。"
无验证器(自终止模式:worker自行检查CI状态,变绿时报告完成)
sleep: 5m
archive: yes
name: babysit-pr-42
/loop 根据/tmp/plan.md中的方案实现认证重构
→ worker-prompt-file: /tmp/plan.md
verifier-prompt: "验证方案中的每一步都已实现。检查文件变更、类型定义,运行`npm run typecheck`和`npm test`。逐个报告每个验证标准并提供证据。"
name: auth-refactor
worktree: auth-refactor
/loop 运行测试套件直到全部通过
→ worker-prompt: "运行`npm test`。如果有测试失败,读取失败输出,在源码中排查根本原因并修复。当`npm test`返回码为0且所有测试通过时报告完成。如果仍有测试失败,报告任务未完成并说明失败的测试项及原因。"
无验证器(自终止模式:worker在测试通过时报告完成)
name: fix-tests
/loop 部署后监控错误率,每10分钟检查一次
→ worker-prompt: "运行`./scripts/check-canary.sh`检查金丝雀部署的错误率。当错误率连续两次检查都低于0.1%时报告完成。如果未达标,报告当前错误率及趋势。"
无验证器(自终止模式:worker在错误率稳定达标时报告完成)
sleep: 10m
max-iterations: 30
archive: yes
name: canary-watch~/.claude/skills/paseo-loop/bin/loop.shundefined~/.claude/skills/paseo-loop/bin/loop.shundefinedundefinedundefined| Flag | Required | Default | Description |
|---|---|---|---|
| Yes* | — | Prompt given to the worker each iteration |
| Yes* | — | Read the worker prompt from a file |
| No | | Worker agent ( |
| No* | — | Verification prompt for a separate verifier agent |
| No* | — | Read the verifier prompt from a file |
| No | | Verifier agent ( |
| Yes | — | Name prefix for agents |
| No | — | Delay between iterations (e.g. |
| No | unlimited | Safety cap on iterations |
| No | off | Archive agents after each iteration |
| No | — | Worktree name. Created on first use, reused after. |
| No | | Thinking level for worker |
--worker-prompt--worker-prompt-file--verifier-prompt--verifier-prompt-file| 参数标识 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|
| 是* | — | 每次迭代给worker的提示词 |
| 是* | — | 从文件中读取worker提示词 |
| 否 | | Worker agent(格式为 |
| 否* | — | 给独立验证器agent的提示词 |
| 否* | — | 从文件中读取验证器提示词 |
| 否 | | 验证器agent(格式为 |
| 是 | — | Agent的名称前缀 |
| 否 | — | 两次迭代之间的延迟(例如 |
| 否 | unlimited | 迭代次数的安全上限 |
| 否 | off | 每次迭代后是否归档Agent |
| 否 | — | Worktree名称。首次使用时创建,后续复用。 |
| 否 | | Worker的思考深度 |
--worker-prompt--worker-prompt-file--verifier-prompt--verifier-prompt-file| Parameters | Mode | Use case |
|---|---|---|
| Self-terminating worker | Worker does work and decides when done |
| Worker + verifier | Worker implements, verifier independently checks |
| Polling with self-termination | Periodic check until a condition is met |
| Periodic work + verifier | Periodic work with independent verification |
| 参数组合 | 模式 | 使用场景 |
|---|---|---|
仅 | 自终止worker | Worker执行任务并自行判断完成时机 |
| Worker+验证器 | Worker负责实现,验证器独立检查 |
| 带自终止的轮询模式 | 定期检查直到满足条件 |
| 定期执行+验证模式 | 定期执行任务并进行独立验证 |
{name}-{N}babysit-1 # First iteration
babysit-2 # Second iteration{name}-{N}{name}-verify-{N}feat-1 # First worker
feat-verify-1 # First verifier
feat-2 # Second worker (with previous result context)
feat-verify-2 # Second verifier{name}-{N}babysit-1 # 第一次迭代
babysit-2 # 第二次迭代{name}-{N}{name}-verify-{N}feat-1 # 第一个worker
feat-verify-1 # 第一个验证器
feat-2 # 第二个worker(带上一次迭代结果的上下文)
feat-verify-2 # 第二个验证器--worktree~/.claude/skills/paseo-loop/bin/loop.sh \
--worker-prompt "Implement the feature..." \
--verifier-prompt "Verify the feature works and typecheck passes" \
--name "feature-x" \
--worktree "feature-x"--worktree~/.claude/skills/paseo-loop/bin/loop.sh \
--worker-prompt "实现该功能..." \
--verifier-prompt "验证功能可用且typecheck通过" \
--name "feature-x" \
--worktree "feature-x"$ARGUMENTS--archivecodexclaude/sonnetloop.sh$ARGUMENTS--archivecodexclaude/sonnetloop.sh--verifier-prompt--verifier-promptnpm testnpm run typecheckGET /healthanynpm run typechecknpm testnpm testnpm run typecheckGET /healthanynpm run typechecknpm test~/.claude/skills/paseo-loop/bin/loop.sh \
--worker-prompt "Use /committee to plan, then fix the provider list bug. The bug is..." \
--verifier-prompt "The provider list renders correctly and npm run typecheck passes" \
--name "provider-fix"~/.claude/skills/paseo-loop/bin/loop.sh \
--worker-prompt "使用/committee进行规划,然后修复供应商列表的bug。bug详情为..." \
--verifier-prompt "供应商列表渲染正常且npm run typecheck通过" \
--name "provider-fix"/handoff a loop in a worktree to babysit PR #42/handoff 在worktree中启动循环持续监控PR #42