# ed crew hooks

> Messages waiting to go out, from ed crew send --when-finished, --in, --at, or the Agents page, plus the result of the ones that already went out.

- Canonical URL: https://getedith.pro/docs/agents/crew/cli/hooks
- Updated: 2026-12-02

Messages waiting to go out, from `ed crew send --when-finished`, `--in`,
`--at`, or the Agents page, plus the result of the ones that already went out.
The background agent owns them, so they keep working while the Edith window
is closed.

```
ed crew hooks [ls] [--json]
ed crew hooks rm <id> [--json]
```

`ed crew hooks` runs `ed crew hooks ls`. `list` is an alias for `ls` and
`remove` for `rm`.

## `rm` arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<id>` | a hook id, or a unique prefix of it | required | Cancel a waiting message, or forget a finished one |
| `--json` | flag | off | Emit JSON on stdout |

## `--json` shape

`ls` prints `{"hooks": [...]}`.

```json
{
  "hooks": [
    {
      "agent": "local|default|w1:p2",
      "detail": null,
      "id": "1F0C2A9B-3C1D-4E2F-8A7B-6C5D4E3F2A1B",
      "machine": "local",
      "message": "Now run the full test suite.",
      "pane": "w1:p2",
      "session": "default",
      "state": "armed",
      "title": "Refactor the parser",
      "when": "Sends when it finishes"
    }
  ]
}
```

`state` is `armed` while it waits, `sending` for the moment it goes out, then
`sent`, `skipped` (the engine refused it, see `detail`) or `cancelled` (the agent
closed or was replaced). `when` says whether it is waiting for the agent to
finish or for a clock time, such as `Sends today at 4:30 PM`. Finished entries
are kept for a day.

`rm` prints `{"removed": "<id>"}`. An id that matches nothing, or more than one
hook, exits 3. Both commands exit 4 when the background agent is not running.

## Where to go next

- [`ed crew send`](https://getedith.pro/docs/agents/crew/cli/send), send now, when an agent finishes, or at a time
- [`ed crew`](https://getedith.pro/docs/agents/crew/cli), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
