Run an agent loop until an exit condition is met. Use when the user says "loop", "babysit", "keep trying until", "check every X", "watch", or wants iterative autonomous execution.
You are setting up a loop — an iterative worker/verifier cycle managed by the Paseo daemon.
User's arguments: $ARGUMENTS
Load the Paseo skill first. It contains the CLI reference for paseo loop and related commands.
A loop repeats: launch a worker → verify → repeat until done or limits hit.
Every loop needs at least one form of verification:
--verify "<prompt>" — a verifier agent judges the worker's output--verify-check "<command>" — a shell command that must exit 0 (repeatable)Choose the right provider/model for worker and verifier independently:
--provider <provider/model> — sets the worker (e.g. codex/gpt-5.4)--verify-provider <provider/model> — sets the verifier (e.g. claude/opus)Default: both use Claude/sonnet. For implementation loops, use Codex for the worker and Claude for the verifier — each catches the other's blind spots.
--archive preserves worker and verifier agents after each iteration instead of destroying them. Use this when you need to inspect conversation history for debugging.
paseo loop run "Check PR #42. Review CI, comments, and branch status. Fix issues as they arise." \
--verify-check "gh pr checks 42 --fail-fast" \
--sleep 2m \
--max-time 1h \
--name babysit-pr-42
paseo loop run "Run the test suite, investigate failures, and fix the code." \
--provider codex/gpt-5.4 \
--verify "Run the test suite. Return done=true only if all tests pass. Cite the exact command and outcome." \
--verify-check "npm test" \
--max-iterations 10 \
--name fix-tests
paseo loop run "Implement issue #456. Make incremental progress each iteration." \
--provider codex/gpt-5.4 \
--verify "Verify issue #456 is complete. Check changed files, run typecheck and tests." \
--verify-provider claude/sonnet \
--max-iterations 8 \
--max-time 2h \
--archive \
--name issue-456
paseo loop ls # List all loops
paseo loop inspect <id> # Show details and iteration history
paseo loop logs <id> # Stream logs
paseo loop stop <id> # Stop a running loop
$ARGUMENTSpaseo loop run with the final argumentsThe worker prompt must be:
The verifier prompt should: