# ed crew

> Live coding agents on this Mac and on the SSH machines Edith already knows.

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

Live coding agents on this Mac and on the SSH machines Edith already knows.
Every agent runs inside the agents engine, a small program bundled with Crew
that owns the agent's terminal. The engine keeps running after Edith quits, after
the terminal window closes and after an SSH connection drops, so agents keep
working and you can attach again later.

On this Mac the engine is installed into `~/.edith/agents/bin/edith-agents` and
runs under launchd. On another macOS or Linux machine Edith copies the matching
engine to the same path the first time you start an agent there, checks its
SHA-256 digest, and starts it detached so it survives the SSH session. Windows
machines cannot run agents.

A machine where the engine has not been installed yet is not a failure. That host
is listed with an empty agent list. Each JSON host also reports `reachable`, so a
connection failure is distinct from a machine that was reached. Both cases keep the
aggregate listing at exit 0. Unknown machines are the only not-found case.

The Agents extension does not have to be on for these commands to run. They talk
to the engine, not to the Edith window.

## At a glance

| Command | What it does |
| --- | --- |
| `ed crew` | Runs `ls`, which is the default subcommand |
| `ed crew ls` | Live sessions on this Mac and every SSH machine |
| `ed crew command <pane>` | The attach line for one pane |
| `ed crew attach <pane>` | Attach this terminal to one pane |
| `ed crew models [<kind>]` | Models, effort levels and fast mode each agent offers |
| `ed crew defaults` | The model, effort and fast mode every launch uses |
| `ed crew defaults set <kind>` | Change those launch defaults for one kind |
| `ed crew send <pane> <message>` | Type a message now, when the agent finishes, or at a time |
| `ed crew hooks` | Messages waiting for an agent to finish |
| `ed crew layout` | Tabs, saved layouts, and agent terminals in the Edith window |
| `ed crew select` | Show one tab in the Edith window |
| `ed crew split <agent>` | Open an agent beside the focused pane |
| `ed crew move <agent>` | Move an agent into another tab |
| `ed crew swap <agent> <agent>` | Swap two agents in the same tab |
| `ed crew gather` | Gather every tab into one |
| `ed crew separate` | Turn a split into one tab per agent |
| `ed crew terminal` | Open a terminal in the selected tab |
| `ed crew space ls` | List open space windows |
| `ed crew space terminal` | Open a terminal in a space window |
| `ed crew space split` | Split the focused pane in a space window |
| `ed crew background` | Keep the agents Edith starts running after Edith quits |
| `ed crew engine ...` | Run any engine command: `run`, `checkpoint`, `worktree`, `events` and more |
| `ed crew thread` | Structured agent threads: launch, read, send, approve, fork |
| `ed crew checkpoints` | Snapshots of your files around every agent turn |
| `ed crew workflows` | Multi-step agent workflows that survive restarts |
| `ed crew schedules` | Prompts on a timer or when a webhook arrives |
| `ed crew providers` | Agent CLIs threads can use, sign-in and models |
| `ed crew integrations` | Hooks that let agents report their state |
| `ed crew activity` | Sessions and approvals Crew's provider hooks observed |
| `ed crew local` | Turn this Mac's local environment on or off |
| `ed crew close-tab` | Close one tab after `--yes` |
| `ed crew close-others` | Close every tab except one after `--yes` |
| `ed crew close-right` | Close tabs to the right after `--yes` |
| `ed crew close-all` | Close every agent tab after `--yes` |

`ed crew list` is an alias for `ed crew ls`. Layout commands talk to the
open Edith window. The session commands above talk to the engine and do not
need that window.

## Commands

- [`ed crew ls`](https://getedith.pro/docs/agents/crew/cli/ls)
- [`ed crew command`](https://getedith.pro/docs/agents/crew/cli/command)
- [`ed crew attach`](https://getedith.pro/docs/agents/crew/cli/attach)
- [`ed crew models`](https://getedith.pro/docs/agents/crew/cli/models)
- [`ed crew defaults`](https://getedith.pro/docs/agents/crew/cli/defaults)
- [`ed crew send`](https://getedith.pro/docs/agents/crew/cli/send)
- [`ed crew hooks`](https://getedith.pro/docs/agents/crew/cli/hooks)
- [`ed crew layout`](https://getedith.pro/docs/agents/crew/cli/layout)
- [`ed crew layout save`](https://getedith.pro/docs/agents/crew/cli/layout-save)
- [`ed crew layout delete`](https://getedith.pro/docs/agents/crew/cli/layout-delete)
- [`ed crew select`](https://getedith.pro/docs/agents/crew/cli/select)
- [`ed crew layout apply`](https://getedith.pro/docs/agents/crew/cli/layout-apply)
- [`ed crew layout even`](https://getedith.pro/docs/agents/crew/cli/layout-even)
- [`ed crew split`](https://getedith.pro/docs/agents/crew/cli/split)
- [`ed crew move`](https://getedith.pro/docs/agents/crew/cli/move)
- [`ed crew swap`](https://getedith.pro/docs/agents/crew/cli/swap)
- [`ed crew gather`](https://getedith.pro/docs/agents/crew/cli/gather)
- [`ed crew separate`](https://getedith.pro/docs/agents/crew/cli/separate)
- [`ed crew terminal`](https://getedith.pro/docs/agents/crew/cli/terminal)
- [`ed crew close-tab`](https://getedith.pro/docs/agents/crew/cli/close-tab)
- [`ed crew close-others`](https://getedith.pro/docs/agents/crew/cli/close-others)
- [`ed crew close-right`](https://getedith.pro/docs/agents/crew/cli/close-right)
- [`ed crew close-all`](https://getedith.pro/docs/agents/crew/cli/close-all)
- [`ed crew background`](https://getedith.pro/docs/agents/crew/cli/background)
- [`ed crew engine`](https://getedith.pro/docs/agents/crew/cli/engine)
- [`ed crew thread`](https://getedith.pro/docs/agents/crew/cli/thread)
- [`ed crew checkpoints`](https://getedith.pro/docs/agents/crew/cli/checkpoints)
- [`ed crew workflows`](https://getedith.pro/docs/agents/crew/cli/workflows)
- [`ed crew schedules`](https://getedith.pro/docs/agents/crew/cli/schedules)
- [`ed crew providers`](https://getedith.pro/docs/agents/crew/cli/providers)
- [`ed crew integrations`](https://getedith.pro/docs/agents/crew/cli/integrations)
- [`ed crew activity`](https://getedith.pro/docs/agents/crew/cli/activity)
- [`ed crew local`](https://getedith.pro/docs/agents/crew/cli/local)
- [Terminals in agent tabs](https://getedith.pro/docs/agents/crew/cli/terminals)

## Exit codes

| Code | When |
| --- | --- |
| 0 | The listing printed, including when a machine has no engine yet or no panes are live |
| 2 | The command line was wrong: an unknown flag, `command` with no pane, or `defaults set` with options the model cannot take |
| 3 | `--machine` named no configured machine, `command` named no pane, or `models` / `defaults set` named a kind with no launch options |
| 1 | `send` named one pane and the engine did not take the message |
| 4 | `send --when-finished` or `hooks` could not reach the background agent, or `background` could not run a session under launchd |

Listing never exits 1 or 4. A down SSH machine is an error string on
that host and `reachable: false`, not an unavailable CLI. Plain output prints
the host error instead of describing the tool as missing.

## Notes and gotchas

- This Mac is `--machine local`. `this-mac`, `thismac` and `mac` are the same
  thing. Any other value is resolved the way `ed machines show` resolves a
  name: exact name, SSH alias, UUID, or a unique prefix.
- Session names come from `edith-agents session list`. When it prints nothing
  useful, Edith tries the `default` session.
- The attach line for a remote pane is
  `ssh -tt <target> -- '"$HOME/.edith/agents/bin/edith-agents" --session <session> agent attach <pane> --takeover'`.
  Run `edith-agents` with no arguments on any machine to pick an agent from a
  list. `ctrl+]` detaches; the agent keeps running.
- Turn Crew on in Library, or with `ed extensions enable crew`, so the sidebar
  item appears.

## Where to go next

- [`ed machines`](https://getedith.pro/docs/cli/machines) for the SSH directory these commands walk
- [`ed extensions`](https://getedith.pro/docs/cli/extensions) to turn the Agents page on
- [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
