Subscribes an agent to events on specific branches or files. When a matching event occurs — a push to a watched branch, or a change to a watched file — the agent receives it. You can subscribe to a branch, one or more files, or both at once. EachDocumentation Index
Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
Use this file to discover all available pages before exploring further.
--file flag adds a separate file subscription.
Synopsis
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | on laptop | The agent’s slug. Optional on VMs (defaults to self). |
--branch | string | no | Branch name to subscribe to. At least one of --branch or --file is required. |
--file | string | no | File path (relative to repo root) to subscribe to. Repeatable. At least one of --branch or --file is required. |
--repo | string | no | Repository URL (HTTPS, SSH, or scp-style). Auto-detected from git remote origin if omitted. |
--workspace | string | no | Workspace name. Overrides the value from murmur.yaml. |
Examples
Subscribe to a branch
fix-auth now receives events whenever commits are pushed to main.
Subscribe to specific files
Subscribe with an explicit repo URL
--repo when you are not inside the repository’s working tree, or when you want to subscribe to events in a different repository.
Self-subscribe on a VM
When running on an agent VM, omit the slug to subscribe the current agent:Errors
| Code | Meaning | What to do |
|---|---|---|
INVALID_ARGUMENT | Neither --branch nor --file was provided. | Specify at least one of --branch or --file. |
INVALID_ARGUMENT | Slug is required when not running on a VM. | Provide the agent slug as a positional argument. |
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
- Events — concept overview
- Agents — concept overview
murmur subscriptions remove— unsubscribe from branch or file eventsmurmur subscriptions flush— remove all subscriptions for an agentmurmur subscriptions ls— list an agent’s subscriptionsmurmur status— query an agent’s current status