Skip to content
Edith

Agent docs

Command referenceBeta

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. The background agent owns them, so they keep working while the Edith window is closed.

Output
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