/maestro:patient-waitingfrom maestro
Provides zero-token waiting strategies for file changes, PRs, CI, deploys, and human approvals. Prevents runaway polling loops by using background bash until-loops or Monitor tool before falling back to human nudging.
Ships in maestro. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One incident to remember: a background until-loop watcher kept getting
killed, so the main agent "recovered" by rescheduling itself hourly via
ScheduleWakeup to cat a status file. The loop had no idle cap and ran for
a week — ~140 full-context premium-model turns spent confirming that nothing
had changed. Every rule below exists because of that.
The ladder below uses Claude Code background tasks and Monitor. For Codex
wall-clock work, use the until skill (delayed-work plugin): capability-detect
codex queue (verified on CLI 0.160.1), then arm a detached one-shot timer targeting
the exact current thread. It costs no model tokens while waiting and needs a live
queue receiver at fire time. Queue acceptance is not delivery proof. If unavailable,
report the missing capability and offer a manual nudge or short active-turn wait.
This timed path does not establish a general Codex file/event watcher contract.
For Codex queued callback payloads, follow the canonical Codex queued sender
labels section in $maestro:conduct.
until loop (run_in_background). Zero tokens while
waiting; one completion notification when the condition flips.
until <condition-check>; do sleep 3; done; echo "signal"; <print state>
Monitor tool, only inside its reported deadline. The harness runs your
poll script shell-side and invokes the model ONLY when a line is emitted. Zero
tokens idle, but Claude Code 2.1.272 still applies a 30-minute cap when it accepts
persistent: true; accepted is not the same as honored. Use it only when the event
fits inside the returned deadline. Cover failure states too — emit on the watched
thing dying, not just succeeding.ScheduleWakeup loops are for machine-paced state only (CI runs,
deploys, data jobs, remote queues) — and only when neither ladder rung 1
nor 2 can see the state. Even then, three backstops are mandatory:
reason ("quiet poll 2/3")
so drift is visible in telemetry and to the user.cat file + "no change",
the model should not be in the loop.| Waiting on | Mechanism |
|---|---|
| Local file/status flag to flip once | Background bash until loop |
| Wall-clock time / "run X at 9pm" | The until skill (delayed-work plugin) — Claude background Bash / deadline-bounded Monitor; Codex capability-detected same-thread queue timer |
| Recurring events (log errors, PR comments) | Monitor only when its reported deadline covers the watch; otherwise stop |
| Human action (submit, approve, "when I'm ready") | Watcher from above — or just tell them to nudge you. Never scheduled wakes. |
| CI/deploy the harness can't see | ScheduleWakeup, interval matched to the job, max 3 quiet polls |
| Watcher keeps getting killed | Stop. Ask. Don't escalate. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
waiting, polling, background-tasks, token-efficiency, monitoring
Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin maestro3 skills in this plugin
/conductOperating stance for a main agent orchestrating delegated work — an implement → review → address pipeline across one or more repos/workspaces: boss/doer split, fresh agent per phase, work orders that carry the traps forward, verify-before-relay, and a "Next for you:" contract with the human. Use when the session's job is overseeing delegated agents (orchestrate, multi-agent workstream, boss mode, delegate a pipeline) rather than doing the work itself.
/your-cueRead-only briefing across every live agent session — who is working, who is waiting on the user, what finished overnight — ending in one cue per workstream and a single prioritized "Next for you:". Use for a morning briefing or a status sweep of delegated work.