# Goal agents

> Agents that watch data on a heartbeat and act when a goal goes off target.

A **goal agent** (`kind: goal`, the default) declares objectives and turns a
[cycle](/loom-site/concepts/the-cycle/) on its heartbeat, `goal.evaluate_every`. While the goal holds,
a cycle costs no model call. When it fails, the model proposes what to do.

```yaml
goal:
  objectives:
    disk_ok: "m.disk_pct_avg < 85"
  evaluate_every: 5m
```

Good fits: a budget, a fleet of hosts, an inbox, a migration's progress. Anything where, most of the
time, the right action is nothing.

## What it can do

Only what its `capabilities` declare, each through the [safety pipeline](/loom-site/concepts/safety-pipeline/).
It can also alert a person without proposing anything, through
[notifications](/loom-site/guides/notifications/).

## Goal-less agents on a timer

A bundle without a goal has no heartbeat. Give it a `schedule` and the timer runs a cycle that pulls
data and fires notifications, without calling the model.

## Examples

[`bundle.finance.yaml`](https://github.com/benja0rtzzz/loom/blob/main/tests/bundles/bundle.finance.yaml),
[`bundle.fleet.yaml`](https://github.com/benja0rtzzz/loom/blob/main/tests/bundles/bundle.fleet.yaml),
[`bundle.inbox.yaml`](https://github.com/benja0rtzzz/loom/blob/main/tests/bundles/bundle.inbox.yaml) and
[`bundle.migration.yaml`](https://github.com/benja0rtzzz/loom/blob/main/tests/bundles/bundle.migration.yaml).