From 0a3e55734b6ce0c246ad185f50ab2fa9aef34f8f Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 15 Mar 2026 10:47:07 +0700 Subject: [PATCH] docs(skill): document --wait-timeout option and clarify wait behavior --- skills/paseo/SKILL.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/skills/paseo/SKILL.md b/skills/paseo/SKILL.md index 325ec50ad..700d61bcf 100644 --- a/skills/paseo/SKILL.md +++ b/skills/paseo/SKILL.md @@ -13,12 +13,17 @@ paseo ls # Only shows agents for current directory paseo ls -g # All agents across all projects (global) paseo ls --json # JSON output for parsing -# Create and run an agent (blocks until completion by default) +# Create and run an agent (blocks until completion by default, no timeout) paseo run --mode bypass "" paseo run --mode bypass --name "Task Name" "" paseo run --mode bypass --model opus "" paseo run --mode full-access --provider codex "" +# Wait timeout - limit how long run blocks (default: no limit) +paseo run --wait-timeout 30m "" # Wait up to 30 minutes +paseo run --wait-timeout 1h "" # Wait up to 1 hour +paseo run --wait-timeout 3600 "" # Plain number = seconds + # Detached mode - runs in background, returns agent ID immediately paseo run --detach "" paseo run -d "" # Short form @@ -27,6 +32,7 @@ paseo run -d "" # Short form paseo run --output-schema '{"type":"object","properties":{"summary":{"type":"string"}},"required":["summary"]}' "" paseo run --output-schema schema.json "" # Or from a file # NOTE: --output-schema blocks until completion (cannot be used with --detach) +# NOTE: --wait-timeout applies to --output-schema runs too # Worktrees - isolated git worktree for parallel feature development paseo run --worktree feature-x "" @@ -144,10 +150,12 @@ When working with agents, you must dig deep and challenge them rigorously: ### Waiting for Agents -**CRITICAL:** `paseo wait` blocks until the agent completes. Trust it. +**CRITICAL:** Both `paseo run` and `paseo wait` block until the agent completes. Trust them. +- `paseo run` waits **forever** by default (no timeout). Use `--wait-timeout` to set a limit. +- `paseo wait` also waits forever by default. Use `--timeout` to set a limit. - Agent tasks can legitimately take 10, 20, or even 30+ minutes. This is normal. -- When `paseo wait` times out, **just re-run `paseo wait `** — don't panic, don't start checking logs, don't inspect status. The agent is still working. +- When a wait times out, **just re-run `paseo wait `** — don't panic, don't start checking logs, don't inspect status. The agent is still working. - Do NOT poll with `paseo ls`, `paseo inspect`, or `paseo logs` in a loop to "check on" the agent. This wastes your context window and accomplishes nothing. - Only check logs/inspect if you have a **specific reason** to believe something is wrong (e.g., you sent a prompt and got an unexpected error back). - **Never launch a duplicate agent** because a wait timed out. The original is still running. @@ -158,6 +166,9 @@ paseo wait # timed out? just run it again: paseo wait # still going? keep waiting: paseo wait --timeout 300 # or use a longer timeout +# For long-running tasks, set a generous timeout on run itself: +paseo run --wait-timeout 1h --output-schema '...' "" + # Wrong: anxious polling loop paseo wait # timed out paseo ls # is it still running??