paseo-loop
getpaseo/paseo
Run an agent loop with worker/verifier cycles until an exit condition is met.
What is paseo-loop?
Paseo Loop executes iterative autonomous workflows by launching a worker agent, verifying progress, and repeating until done or limits are hit. Use when you need continuous execution, polling, babysitting, or "keep trying until" behavior.
- Execute worker/verifier cycles: launch worker → check verification → repeat until exit condition
- Support multiple verification shapes: shell checks (objective criteria), verifier prompts (judgment-based), or both
- Manage loop lifecycle with CLI commands: ls, inspect, logs, stop, and run
- Configure worker and verifier providers independently, optionally from orchestration preferences
- Set iteration and time limits to prevent runaway loops
- Archive agent states after each iteration for inspection and debugging
How to install paseo-loop
npx skills add https://github.com/getpaseo/paseo --skill paseo-loop- Paseo skill must be installed and readable
- Orchestration preferences file at ~/.paseo/orchestration-preferences.json (unless providers explicitly named)
- Clear understanding of worker intent and verification criteria before launching
How to use paseo-loop
- 1.Define the worker prompt: self-contained, concrete, explicit about what counts as progress
- 2.Choose verification shape: shell check (objective), verifier prompt (judgment), or both
- 3.Select worker and verifier providers from preferences or explicitly name them
- 4.Set --max-iterations and/or --max-time to prevent runaway loops
- 5.Add --sleep only when polling external systems; otherwise let it run fast
- 6.Optionally use --archive to keep agent states for inspection after each iteration
- 7.Launch with: paseo loop run
Use cases
- Babysit a pull request: worker fixes issues, shell check validates PR status, sleeps 2m between checks, max 1h runtime
- Drive tests to green: worker investigates test failures and fixes code, verifier confirms all tests pass, max 10 iterations
- Cross-provider implementation: worker on one provider, verifier on another to catch each other's blind spots, bounded iterations and time
- Poll external systems: worker checks state of external service, sleeps between checks, repeats until condition met
- Autonomous code improvement: worker refactors or optimizes code, verifier checks quality metrics and test results
- Developers automating repetitive fix-and-verify workflows
- DevOps engineers babysitting deployments or infrastructure checks
- QA automation specialists driving test suites to completion
- Anyone needing iterative autonomous execution with verification
paseo-loop FAQ
Use shell check (--verify-check) for objective criteria a command can answer, like test results or PR status. Use verifier prompt (--verify) for judgment calls that need reasoning. Use both when shell rules out obvious failures and the verifier judges the rest.
For implementation loops, pair them on different providers—each catches the other's blind spots. For simpler loops, the same provider is fine.
Depends on the task. Babysitting a PR might be max-time 1h with 2m sleep. Driving tests to green might be max-iterations 10. Always set both to prevent runaway loops.
Yes. Use `paseo loop ls` to list loops, `paseo loop inspect <id>` to see details, `paseo loop logs <id>` for output, and `paseo loop stop <id>` to stop it.
--archive keeps agent states after each iteration so you can inspect what the worker and verifier did, helping debug loops or understand decision-making.
Full instructions (SKILL.md)
Source of truth, from getpaseo/paseo.
name: paseo-loop description: 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. user-invocable: true
Paseo Loop Skill
A loop is a worker/verifier cycle: launch a worker → check verification → repeat until done or limits hit. Use for "keep trying", "babysit", or "watch this until X."
User's arguments: $ARGUMENTS
Prerequisites
Read the paseo skill. Before choosing worker or verifier providers, read ~/.paseo/orchestration-preferences.json unless the user explicitly named providers in this request. Do not start the loop until you have read it.
Loops are a CLI primitive: paseo loop run. Manage with paseo loop ls, paseo loop inspect <id>, paseo loop logs <id>, paseo loop stop <id>.
Your job
- Understand the user's intent from
$ARGUMENTSand the conversation. - Worker prompt — self-contained, concrete about what to do this iteration, explicit about what counts as progress.
- Verification — pick the right shape:
- Shell check (
--verify-check) for objective criteria a command can answer (gh pr checks --fail-fast,npm test). - Verifier prompt (
--verify) for judgment ("Return done=true only if all tests pass and the changed files are coherent. Cite the command and the outcome."). - Both, when shell rules out the obvious failures and the verifier judges the rest.
- Shell check (
- Providers —
--providerfor the worker,--verify-providerfor the verifier. From preferences unless the user named them. For implementation loops, pair worker and verifier on different providers — each catches the other's blind spots. - Sleep —
--sleeponly when polling something external. Otherwise let it run as fast as the loop completes. - Stops — set a sensible
--max-iterationsand/or--max-time. Open-ended loops are how runaways happen. - Archive —
--archivekeeps agents after each iteration for inspection. - Launch with
paseo loop run.
Common shapes
Babysit a PR — worker checks PR state and fixes issues; shell check is gh pr checks <n> --fail-fast; sleep 2m; max-time 1h.
Drive tests to green — worker investigates failures and fixes code; shell check is the test command; verifier confirms all tests pass; max-iterations 10.
Cross-provider implementation — worker on impl provider, verifier on a different provider; verifier checks changed files, runs typecheck and tests; max-iterations and max-time both bounded; archive on so iterations can be inspected.
Prompt rules
Worker — self-contained, concrete (commands, files, branches, tests, PRs, systems), explicit about what counts as progress this iteration.
Verifier — checks facts, doesn't suggest fixes, cites commands/outputs/file evidence, specific about what "done" means.
Related skills
More from getpaseo/paseo and the wider catalog.

paseo-orchestrate
Deprecated. Renamed to paseo-epic. Loading this skill redirects to paseo-epic and tells the user.

paseo
Manage AI coding agents and worktrees—create, prompt, and supervise agents on your machine.

paseo-committee
Form a two-agent committee to step back, diagnose root causes, and plan solutions when stuck or tunnel-visioning.

paseo-handoff
Hand off tasks to another agent with full context preservation and zero-context briefing.

sentry-react-setup
Setup Sentry in React apps. Use when asked to add Sentry to React, install @sentry/react, or configure error monitoring, error boundaries, session replay, or browser tracing for React applications.

sentry-android-sdk
Full Sentry SDK setup for Android with error monitoring, tracing, profiling, and session replay.