Agent skill
paseo-loop
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.
Install this agent skill to your Project
npx add-skill https://github.com/getpaseo/paseo/tree/main/skills/paseo-loop
SKILL.md
Paseo Loop Skill
You are setting up a loop — an iterative worker/verifier cycle managed by the Paseo daemon.
User's arguments: $ARGUMENTS
Prerequisites
Load the Paseo skill first. It contains the CLI reference for paseo loop and related commands.
Core Model
A loop repeats: launch a worker → verify → repeat until done or limits hit.
- Worker prompt: what the worker does each iteration
- Verification: verifier prompt and/or shell checks that judge success
- Sleep: optional pause between iterations
- Stop conditions: max iterations and/or max total runtime
- Model selection: different providers/models for worker vs verifier
- Archive: optionally preserve agent history after each iteration
Verification
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)- Both can be combined: shell checks run first, then the verifier prompt
Model Selection
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
--archive preserves worker and verifier agents after each iteration instead of destroying them. Use this when you need to inspect conversation history for debugging.
Defaults by User Intent
Babysit / watch / check every X
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
Keep trying until tests pass
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
Implementation loop with cross-provider review
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
Managing Loops
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
Your Job
- Understand the user's intent from the conversation and
$ARGUMENTS - Decide the worker prompt — self-contained, concrete about what to do
- Decide verification — shell checks for objective criteria, verifier prompt for judgment
- Choose providers/models for worker and verifier
- Choose sleep only when the task is polling or waiting on an external system
- Add sensible stop conditions
- Run
paseo loop runwith the final arguments
Prompt Writing Rules
Worker prompt
The worker prompt must be:
- self-contained
- concrete about commands, files, branches, tests, PRs, or systems to inspect
- explicit about what counts as progress this iteration
Verifier prompt
The verifier prompt should:
- check facts, not offer fixes
- cite commands, outputs, or file evidence
- be specific about what "done" means
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
paseo-chat
Use chat rooms through the Paseo CLI. Use when the user says "chat room", "room", "coordinate through chat", "shared mailbox", or wants agents to communicate asynchronously.
paseo-committee
Form a committee of two high-reasoning agents to step back, do root cause analysis, and produce a plan. Use when stuck, looping, tunnel-visioning, or facing a hard planning problem.
paseo
Paseo CLI reference for managing agents. Load this skill whenever you need to use paseo commands.
paseo-handoff
Hand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another agent (Codex or Claude).
paseo-orchestrate
End-to-end implementation orchestrator. Use when the user says "orchestrate", "implement this end to end", "build this", or wants a full feature/fix implemented through a team of agents with planning, implementation, review, and QA phases.
verl-rl-training
Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.
Didn't find tool you were looking for?