Skip to content
Edith

Agent docs

Coding agentsBeta

Crew threads: structured agent conversations

A thread is an agent conversation the agents engine runs through the agent's own protocol instead of a terminal. Its messages, plans, commands and approval requests arrive as separate items you can read, answer, fork and rewind. Threads keep running when you leave the page.

Open the Threads section

On the Crew page, switch from Terminals to Threads. The sidebar lists threads grouped by project, with Pinned threads and a Needs you group at the top. New thread (⌘N) starts one; in the New agent popup, set Open as to Thread.

A thread is Idle, Starting, Working, Needs you, Error or Stopped.

Work in a thread

The composer at the bottom sends your message. Its controls:

Control Keys What it does
Model ⌘⇧M Choose the model
Reasoning effort ⌘⇧E How hard the model thinks
Permission mode ⌘⇧A Supervised, Auto-accept edits, Auto or Full access
Plan Plan before making changes
Branch ⌘⇧G Switch or create a branch
Where the agent works ⌘⇧X Current checkout or a New worktree

While the agent works, a message either steers the current turn, when the agent supports it, or waits in the queue. Interrupt stops the current turn.

From the thread toolbar, Diff (⌘D) shows the thread's changes, Files (⌘P) jumps to a file and Terminal (⌘J) opens a terminal in the thread's folder.

Answer approvals, questions and plans

When the agent asks for permission, the request appears in the thread with the choices the agent offers: Approve, Always allow this session, Always allow, Decline, or Decline with feedback to tell the agent what to do instead. A question shows as The agent has a question with its answers. A plan shows with Implement plan and Save plan to the workspace.

Organize threads

Right-click a thread to rename, pin, Fork thread, Settle thread (⌘⇧S), Snooze, mark unread, archive or delete it. Settled and snoozed threads move out of the way. To bring in sessions you started outside Edith, right-click Add project at the bottom of the sidebar and choose Import from Claude Code or Codex….

Fork, compact and rewind

The Thread actions menu in the thread's toolbar has Fork thread, Compact conversation to summarize the history and free context, Start a fresh session and Stop agent session, which ends the agent session and keeps the thread; the next message starts it again.

Hover one of your messages and press Edit from here to remove it and everything after it. Revert and keep changes only rewinds the conversation; Revert files too also puts the worktree back to its checkpoint. See Checkpoints.

From the terminal

Terminal
ed crew thread launch . --provider codex -- fix the failing login tested crew thread lsed crew thread send th_01 "now add a test" --waited crew thread requestsed crew thread respond rq_01 --decision accepted crew thread fork th_01 --run run_02
  • launch takes a project id or a folder; . means the project that holds the current folder. --worktree main --branch fix-login runs it in a new git worktree, --machine auto picks the machine with the most free capacity, and --wait waits for the reply.
  • send --mode takes auto, steer, queue, restart or start, and ed crew thread queue edits the queue.
  • respond decisions are accept, accept_for_session, accept_always, decline and cancel. A secret request takes the secret from --secret-file, never from the command line.
  • rollback, compact, delegate, merge-back and stop match the actions above. delegate hands a task to a child thread that reports back to the parent.

In --json output, thread states are idle, starting, running, waiting, error and stopped. See ed crew thread for every option and exit code.

Projects

Threads start in projects, folders the engine tracks with a default agent, permissions and mode.

  • Press Add project at the bottom of the Threads sidebar and pick a folder.
  • Right-click a project and choose Project settings… to set its New threads defaults and its Actions, such as a command to run when a worktree is created.

From the terminal, ed crew projects add ~/code/app --provider claude adds one.

Thread engine options, such as Name threads automatically and Continue threads after a restart, are under Thread engine in Agent launch settings: open Filter (⇧⌘F) in the Terminals section and choose Edit launch settings.

Where to go next