Skip to content
Edith

Agent docs

Coding agents

Arrange agents with tabs, splits and saved layouts

Every agent you open lands in a tab next to the board. A tab can hold one agent or several side by side, and each tab can carry its own terminals. You arrange tabs by dragging, from right-click menus, and with the layout popover.

Work with tabs

The board is always the first tab and cannot be closed. Agent tabs follow it. Press ⌘1, ⌘2 and so on to show a tab, ⌘W to close the selected one, and ⇧⌘T to reopen the last tab you closed. Hidden tabs keep their terminals, so switching never restarts or replays anything.

Right-click a tab for:

Item What it does
Send message Message the agents in a split tab
Separate into tabs Turn a split tab into one tab per agent
Move into Merge this tab into another one
Gather all tabs here Pull every open tab into this one
Close others, Close to the right, Close to the left, Close all, Close Close tabs

Put agents side by side

There are several ways to split a tab:

  • Drag a card from the board, or a row from the agent list, onto a tab or into a pane.
  • Right-click an agent and choose Open in > Beside a tab, then Right, Left, Below or Above.
  • In New agent, set the layout menu to Side by side.
  • In the layout popover, use Add agent or Add to this tab.

Inside a split tab, press ⌥` to move to the next agent and ⌥⌘ with an arrow key to move by direction. Right-click a pane for Zoom (⇧⌘↩), Restore layout, Swap with another agent, Message this tab and Close pane.

Use the layout popover

Press the adjust button in the tab bar and choose Layout… to open the popover for the current tab.

  • Arrange lists the built-in arrangements that fit the number of agents in the tab, plus your saved layouts. In arrangements with a highlighted spot, the focused agent takes it. Right-click a saved layout for Delete saved layout.
  • Adjust has Rotate, Flip, Flip up, Even out, Zoom or Restore, Separate and Save.
  • Add to this tab brings another tab in beside the current agents, and Gather all tabs shows every open tab together in this one.
  • Add agent opens another agent beside the focused one.
  • Animate changes makes tabs and panes glide into place instead of switching instantly.

Save a layout

Press Save in the popover, give it a name, and save. Saved layouts show up in Arrange, and while you drag, whenever the same number of agents share a tab. A saved layout with the same shape replaces the old one.

Keep terminals in an agent tab

Each tab can carry its own terminals in a panel that floats over the bottom of the tab, so the agents underneath keep their size. Drag the panel up to cover the whole tab.

Keys What they do
⌃` or ⌘J Show or hide the terminals panel
⌃⇧` Open another terminal for the focused agent

A terminal belongs to one agent and opens on that agent's machine, in that agent's folder. When a tab shows several agents, + asks which one. The board opens terminals on this Mac in the home folder. Terminals are listed on the right of the panel, named after what is in the foreground, and a dot marks one that is running something.

Each terminal is a real herdr tab in a workspace called Edith-terminals on that machine. History lives in herdr, so the scrollbar follows herdr's scrollback.

The × next to a terminal closes it. When a terminal or a tab is running something, Edith asks first and names what would stop. Tabs that are merged or moved carry their terminals along.

The gear in the panel header sets the mouse mode, text size, start folder, a startup command for every new terminal, and whether Edith asks before closing a busy terminal. More detail is in Terminals in agent tabs.

Open a space in its own window

A space can open in a window of its own: use the window button on a space header, or Open space in a new window in the filter menu. In that window, ⌘T opens a terminal, ⌘D splits right, ⇧⌘D splits down, and ⇧⌘W closes the focused pane.

From the terminal

These commands talk to the open Edith window. Index 0 is the board, and agent tabs start at 1. --tab takes an index, an id or a title, and agents can be named by id, pane id or a unique title.

Terminal
ed agents layout lsed agents layout apply grid --tab 1ed agents layout save Pair --tab 1ed agents split w3:p1 --side righted agents gather --tab 1ed agents terminal --tab 1ed agents space split --window desk --side down

Built-in arrangement names are columns, rows, grid, tallGrid, focusLeft, focusRight, focusTop, focusBottom, focusCenter, twoColumns and twoRows, and the arrangement has to fit the number of agents in the tab. split opens an agent beside the focused pane, or in a new tab when the board is showing. gather lands four or more agents in a grid and fewer in columns. space commands take --window with a space id or title, which you can leave out when only one space window is open. The terminal panel settings are ed config keys too.

close-tab, close-others, close-right, close-all and layout delete print a preview and change nothing until you add --yes. See the ed agents reference for select, move, swap, separate and every other command.