completed/failed/canceled), or comes to rest awaiting input (task-complete/idle/sleeping with nothing queued). Returns a one-line outcome plus the agent’s full status: check its phase.
Equivalent to murmur wait in the CLI.
A resting agent cannot move again without input, and a sleeping agent never completes on its own. When wait reports the agent at rest, use queue_add to give it work, which wakes it automatically, or kill to end it. Repeating the same wait returns the same resting status.
Parameters
Response
Returns a one-line outcome (wait ended: …) followed by the agent’s full status as a JSON object. The status format is identical to status.
The outcome line is one of:
wait ended: target phase <phase> reachedwait ended: agent is terminal (<phase>)wait ended: turn finished (task-complete) ...,wait ended: agent is at rest (idle, VM running) ..., orwait ended: agent is at rest (sleeping) ...wait ended: timeout after <n>s ...whentimeout_secondselapses first
Examples
Wait until the agent is done or at rest
Waiting on an agent that went to sleep
A child spawned with the defaulton_idle: sleep parks its VM after the idle timeout and never self-terminates. Wait returns the resting status instead of blocking forever:
Wait for a specific phase, bounded
wait ended: timeout after 600s — agent has not reached its stop condition yet plus the latest status, rather than an error.
Wait on an agent in another workspace
Errors
Related
murmur wait: equivalent CLI commandstatus: check agent state without blockingspawn: create an agentls: list running agentsqueue_add: send follow-up after wait completes