> ## Documentation Index
> Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# murmur goal

> Give an agent a goal, check its progress, pause, resume, complete, or clear it, and report on your own goal from a VM.

Manages an [agent's goal](https://docs.murmur.dev/concepts/goals.md): an objective the agent keeps working toward whenever it has nothing else to do. `murmur agent goal` is the same command.

## Synopsis

```bash theme={null}
murmur goal get      [flags] [slug]
murmur goal set      --objective TEXT [--max-continuations N] [flags] [slug]
murmur goal edit     --objective TEXT [flags] [slug]
murmur goal pause    [flags] [slug]
murmur goal resume   [flags] [slug]
murmur goal complete [flags] [slug]
murmur goal clear    [flags] [slug]
murmur goal report   --goal-id ID --revision N --complete|--blocked --summary TEXT [--reason TEXT] [flags]
```

On a VM, omitting the slug targets your own agent. An explicit relative slug targets a child; an absolute `/w/{workspace}/{owner_provider}/{account}/{slug}` path targets the named agent, subject to permissions. Off a VM, the slug is required.

An agent can read its own goal and report on it, but cannot set, edit, pause, resume, complete, or clear it.

## Subcommands

| Subcommand | Description |
| - | - |
| `get` | Show the goal: its ID and revision, objective, status and why, turn counts, how much of its continuation limit it has used, and the agent's latest report. |
| `set` | Give the agent a new, active goal, replacing any goal it has. |
| `edit` | Change the objective. This increases the goal's revision. |
| `pause` | Stop the goal from starting turns until it is resumed. |
| `resume` | Start working toward a paused, blocked, or complete goal again. |
| `complete` | Mark the goal complete without a report from the agent. |
| `clear` | Remove the goal. |
| `report` | From the agent's own VM: report its goal complete or blocked. |

## Flags

| Name | Type | Subcommands | Description |
| - | - | - | - |
| `--objective` | string | `set` (required), `edit` (required) | What the agent should achieve, including how to tell that it is done. At most 8,000 bytes. |
| `--max-continuations` | int | `set` | How many turns the goal may start before Murmur blocks it, counted from when it is set, resumed, or its objective is edited. Resuming a goal blocked at its limit allows as many more. 1 to 1,000; defaults to 50. To change it, set a new goal. |
| `--goal-id` | string | `report` (required) | The goal you worked toward, as shown under Goal in your instructions. |
| `--revision` | int | `report` (required) | The goal revision you worked against, as shown under Goal in your instructions. |
| `--complete` | bool | `report` | Report the objective met, verified against current evidence. |
| `--blocked` | bool | `report` | Report that progress needs something only a person can supply. |
| `--summary` | string | `report` (required) | What was achieved and how it was verified, or what is blocking. At most 4,000 bytes. |
| `--reason` | string | `report` (required with `--blocked`) | Why the goal is blocked, in one line of at most 200 bytes, such as `needs a Stripe API key`. The dashboard shows it next to the goal's Blocked status. Not allowed with `--complete`. |
| `--json` | bool | all | Print the goal as JSON. |
| `--workspace` | string | all | [Workspace](https://docs.murmur.dev/concepts/workspaces.md) name. Overrides the value from `murmur.yaml`. |

Exactly one of `--complete` and `--blocked` is required for `report`. A report naming a goal that has since been replaced, or a revision that has since been edited, is refused.

## Examples

### Give an agent a goal

```bash theme={null}
murmur goal set fix-flakes \
  --objective "Make the TestReplay* suite pass 50 runs in a row on main. Done means a PR is merged and CI is green on it." \
  --max-continuations 20
```

### Start an agent with a goal

```bash theme={null}
murmur spawn fix-flakes --goal "Make the TestReplay* suite pass 50 runs in a row on main."
```

With `--goal`, the task description is optional: the agent starts on the goal. `--goal-max-continuations` sets the goal's continuation limit (default 50).

### Change the objective

```bash theme={null}
murmur goal edit fix-flakes \
  --objective "Make the TestReplay* suite pass 100 runs in a row on main. Done means a PR is merged and CI is green on it."
```

### Report your own goal complete

```bash theme={null}
murmur goal report --goal-id goal-1-6f1c2a9e-3b7d-4e52-a8c4-91d0e7b35f21 --revision 1 --complete \
  --summary "Merged #812; the TestReplay* suite passed 50 consecutive runs on main and CI is green."
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.