Blocks until an agent reaches a target phase, then prints the agent’s status. Useful in scripts and CI pipelines that need to act on agent completion. When called withDocumentation Index
Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
Use this file to discover all available pages before exploring further.
--phase, the command returns as soon as the agent enters that phase — or enters a terminal phase (PHASE_COMPLETED, PHASE_FAILED, PHASE_CANCELED), whichever comes first. When called without --phase, the default target is PHASE_RUNNING.
The command is interruptible — press Ctrl-C to stop waiting.
Synopsis
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | on laptop | The agent’s slug. Optional on VMs (defaults to self). |
--phase | string | no | The phase to wait for. Default: PHASE_RUNNING. |
--workspace | string | no | Workspace name. Overrides the value from murmur.yaml. |
Valid phases
| Phase | Meaning |
|---|---|
PHASE_STARTING | Agent is provisioning — acquiring a VM and preparing the workspace. |
PHASE_RUNNING | Agent is actively working on a task. |
PHASE_TASK_COMPLETE | Agent finished a task and is waiting for follow-ups or will go idle. |
PHASE_IDLE | Agent is idle — VM is still running, waiting for a follow-up or sleep. |
PHASE_SLEEPING | VM is stopped. The agent wakes on the next follow-up or murmur wake. |
PHASE_CHECKS_PENDING | Agent is waiting for CI checks to complete on a PR. |
PHASE_DESTROYING | Agent is shutting down and releasing its VM. |
PHASE_COMPLETED | Agent finished and exited normally. Terminal. |
PHASE_FAILED | Agent encountered an error. Terminal. |
PHASE_CANCELED | Agent was killed. Terminal. |
If the agent reaches a terminal phase before the target phase, the command returns immediately with the terminal status.
Output
When the target phase is reached, the command prints the same status output asmurmur status — workflow ID, phase, VM assignment, progress, output, and cost.
Examples
Wait for an agent to start running
Wait for task completion
Wait in a script
Agent fails before reaching target phase
PHASE_FAILED is terminal — it does not block forever waiting for PHASE_IDLE.
Errors
| Code | Meaning | What to do |
|---|---|---|
NOT_FOUND | No agent with that slug exists. | Check the slug spelling. Use murmur ls to see running agents. |
UNAUTHENTICATED | Identity token is missing or expired. | Run murmur auth or check your murmur.local.yaml configuration. |
DEADLINE_EXCEEDED | The wait was interrupted or timed out. | Re-run the command, or check the agent’s status with murmur status. |
| — | unknown phase "<value>" | The --phase value is not a recognized phase name. Use one of the phases listed above. |
Related
- Agents — concept overview
murmur status— check an agent’s current statusmurmur sleep— stop an agent’s VMmurmur wake— restart a sleeping agent’s VMmurmur spawn— start an agentmurmur ls— list running agents