murmur spawn fixes with its --on-idle flag, but applied to an agent that is already running — so you can flip an agent to keep-alive for an interactive debugging session, then back to sleep to stop paying for an idle VM, without killing and respawning it.
Only sleep and keep-alive can be set at runtime. terminate is a structural decision fixed when the agent spawns (murmur spawn --on-idle terminate) and cannot be changed mid-flight; to tear an agent down now, use murmur kill.
The change takes effect the next time the agent goes idle; it does not interrupt an in-flight turn.
Synopsis
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | on laptop | The agent’s slug. Optional on VMs (defaults to self). |
mode | string | yes | The idle behavior: sleep or keep-alive. |
--json | bool | no | Print the UpdateOnIdleResponse as JSON ({} on success). |
--workspace | string | no | Workspace name. Overrides the value from murmur.yaml. |
Modes
| Mode | Behavior |
|---|---|
sleep | Stop the VM and preserve the session; the agent enters PHASE_SLEEPING and wakes on a follow-up or with murmur wake. This is the default an agent spawns with. |
keep-alive | Keep the VM running and the session live indefinitely. |
keep_alive is accepted as an alias for keep-alive, matching the spelling the hosted spawn tool uses.
Output
Examples
Keep an agent’s VM alive for interactive work
Put it back to sleep when you’re done
Change the calling agent’s own behavior from its VM
Errors
| Code | Meaning | What to do |
|---|---|---|
cannot be set at runtime | You passed terminate, which is fixed at spawn time. | Set it at spawn with murmur spawn --on-idle terminate, or use murmur kill to tear the agent down now. |
unknown --on-idle | The mode is not sleep or keep-alive. | Pass a valid mode. |
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. |
Related
- Agents — concept overview, including the idle behaviors
murmur spawn— set the initial idle behavior with--on-idlemurmur sleep— stop a running agent’s VM nowmurmur wake— restart a sleeping agent’s VMmurmur kill— cancel an agent permanently