Command referenceBeta
ed crew
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 lsed crew commanded crew attached crew modelsed crew defaultsed crew sended crew hooksed crew layouted crew layout saveed crew layout deleteed crew selected crew layout applyed crew layout evened crew splited crew moveed crew swaped crew gathered crew separateed crew terminaled crew close-tabed crew close-othersed crew close-righted crew close-alled crew backgrounded crew engineed crew threaded crew checkpointsed crew workflowsed crew schedulesed crew providersed crew integrationsed crew activityed crew local- Terminals in agent tabs
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,thismacandmacare the same thing. Any other value is resolved the wayed machines showresolves 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 thedefaultsession. - The attach line for a remote pane is
ssh -tt <target> -- '"$HOME/.edith/agents/bin/edith-agents" --session <session> agent attach <pane> --takeover'. Runedith-agentswith 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 machinesfor the SSH directory these commands walked extensionsto turn the Agents page on- All
edcommands