Post

Herdr Shortcuts Cheatsheet

Keyboard shortcuts for running multiple AI coding agents in Herdr, using workspaces for clients, tabs for tasks and panes for splitting a task up.

Herdr is a terminal workspace manager for AI coding agents. It shows which agents are working, blocked or done, and keeps them running when you close the terminal.

This is the workflow and the shortcuts needed to manage agents with it.

The workflow

Herdr thingUse it forExample
WorkspaceOne client or projectClassic Arch, CWA, Asialink
TabOne taskFix mega menu, Plugin updates
PaneA separate panel inside a taskAgent on the left, dev server on the right, logs below

The sidebar rolls up agent status per workspace. You can see which client has an agent waiting on you without opening it.

The prefix key

Most shortcuts start with the prefix: ctrl+b.

Press ctrl+b, release it, then press the next key. In this post that is written as prefix+c.

The prefix exists so Herdr doesn’t steal keys from the agent running in the pane.

Press prefix+? at any time to list every active shortcut.

Learn these first

ActionShortcut
New tabprefix+c
Split rightprefix+v
Split downprefix+-
Move between panesprefix+h/j/k/l
Workspacesprefix+w
Detach (agents keep running)prefix+q

Workspaces (clients)

ActionShortcut
New workspaceprefix+shift+n
Workspace navigationprefix+w
Rename workspaceprefix+shift+w
Close workspaceprefix+shift+d
Goto picker (every agent and terminal, grouped by workspace)prefix+g
Show / hide sidebarprefix+b
Jump to the agent that needs youprefix+o

Tabs (tasks)

ActionShortcut
New tabprefix+c
Next tabprefix+n
Previous tabprefix+p
Jump to tab 1 to 9prefix+1 … prefix+9
Rename tabprefix+shift+t
Close tabprefix+shift+x

Rename each tab to the task name, or the Asana task, so you can find it later.

Panes (splitting up a task)

ActionShortcut
Split right (side by side)prefix+v
Split down (stacked)prefix+-
Focus pane left / down / up / rightprefix+h / j / k / l
Cycle to next / previous paneprefix+tab / prefix+shift+tab
Zoom the focused pane (toggle)prefix+z
Swap pane left / down / up / rightprefix+shift+h / j / k / l
Rename paneprefix+shift+p
Close paneprefix+x

Closing a pane ends whatever is running in it, including an agent.

Zoom (prefix+z) is handy when you need to read a long agent response. Press it again to restore the layout.

Resize panes with the keyboard

  1. Focus the pane you want to resize (prefix+h/j/k/l).
  2. Press prefix+r to enter resize mode.
  3. Press h, j, k, l (or the arrow keys) to push the pane’s edge.
  4. Press esc or enter to leave resize mode.
Key in resize modeResult
h / left arrowResize left
j / down arrowResize down
k / up arrowResize up
l / right arrowResize right
esc or enterExit resize mode

Resize without entering resize mode

Optional. Bind direct keys in ~/.config/herdr/config.toml:

1
2
3
4
5
[keys]
resize_pane_left  = "ctrl+shift+alt+left"
resize_pane_down  = "ctrl+shift+alt+down"
resize_pane_up    = "ctrl+shift+alt+up"
resize_pane_right = "ctrl+shift+alt+right"

Then reload without restarting:

1
herdr server reload-config

Or press prefix+shift+r inside Herdr.

Your OS or terminal can grab some key combinations before Herdr sees them. If a binding does nothing, try a different combination.

Copy and scrollback

ActionShortcut
Copy mode for the focused paneprefix+[
Open scrollback in $EDITORprefix+e

In copy mode, move with h/j/k/l.

Session

ActionShortcut
Detach, leave everything runningprefix+q
Reattachrun herdr in any terminal
Settingsprefix+s
Reload configprefix+shift+r
Show all shortcutsprefix+?

To fully stop Herdr and every agent in it:

1
herdr server stop

A typical day

  1. prefix+shift+n and name the workspace after the client.
  2. prefix+c for the first task, then prefix+shift+t to name it.
  3. Start the agent in the tab.
  4. prefix+v to split right and run the dev server or tests next to it.
  5. prefix+r, then l a few times, to give the agent pane more room. esc to finish.
  6. prefix+c for the next task. Switch back with prefix+1, prefix+2 or prefix+n.
  7. prefix+g to see every agent across every client and jump to the one that is blocked.
  8. prefix+q at the end of the day. The agents keep working.

Mouse

Herdr is mouse-native. You can click panes, tabs and workspaces, drag split borders to resize, and right-click for menus. The keyboard is optional.

Sources

This post is licensed under CC BY 4.0 by the author.