Ideas In Reach

Researched

A beginner's guide to herdr

What herdr is, the few keys worth learning first, and a ten-minute first session for running several AI coding agents at once.

Why I share this: I use herdr every day and wanted a short guide I could keep. This is the short version.

How to read this

  1. Alfred’s night worker wrote this report. This page keeps the short answers. The private details of my home are removed.
  2. This is research, not expert advice. Herdr is young and changes fast. Press Ctrl+b then ? in the program. That beats any article, including this one.
  3. The tmux and Zellij comparison comes from general knowledge. The worker did not check it.

Short answer

herdr is tmux for AI coding agents. It is a terminal program. It keeps many terminals (panes) running in a background server. A sidebar shows which agent (Claude Code, Codex, OpenCode, Cursor and others) is working, blocked (waiting for you, for example at a permission prompt) or idle.

You can close the window or lose your SSH connection. Everything keeps running. Run herdr again to get back in.

The ideas in one minute

Word Meaning
Server Background process that owns all your terminals. It survives disconnects.
Client The screen you look at. You can detach and reattach from any terminal, SSH session or phone browser.
Workspace One per project (left sidebar).
Tab Like a browser tab inside a workspace.
Pane A real terminal. Split a tab into several.
Agent state working, blocked or idle. Shown in the sidebar with no setup.
Prefix Ctrl+b. Press and release, then press a key. Same idea as tmux.

Keys to learn first

These are the defaults from the official docs. Press Ctrl+b, let go, then:

Do this Keys
Show all keys ?
New workspace Shift+n
New tab; next / previous tab c; n / p
Split right / split down v / -
Move between panes h j k l
Zoom a pane (toggle) z
Close pane / tab x / Shift+x
Scroll back (copy mode) [, then PageUp / PageDown
Detach (everything keeps running) q

The mouse works too. Click panes and tabs, drag split borders, right-click for menus. That helps a lot on a phone.

If you also use tmux, change the prefix so the two do not clash.

A first session (10 minutes)

  1. Run herdr. You see the sidebar.
  2. Press Ctrl+b then ? to read the key list.
  3. Press Ctrl+b then Shift+n to make a workspace for a project. In its pane, start claude.
  4. Press Ctrl+b then v to split right. Use the new pane for a normal shell (git, logs).
  5. Open a second workspace and start another agent. When one shows blocked, it needs you.
  6. Press Ctrl+b then q to detach. Close the laptop. Come back later and run herdr. The agents carried on.

Handy extras

  1. Config: ~/.config/herdr/config.toml. It is optional. herdr --default-config prints every default. Example:
    [keys]
    prefix = "ctrl+space"
    [theme]
    name = "catppuccin"
    
    Built-in themes include Catppuccin, Gruvbox, Nord and Dracula. After editing, run herdr server reload-config.
  2. Notifications: [ui.toast] and [ui.sound] can ping you when a background agent finishes or gets blocked. Good for long jobs.
  3. Remote: herdr --remote ssh://user@host runs the server on the remote box and the client on your own machine. Your local config and theme follow you. The worker did not test this.
  4. Agent restore: after the server restarts, panes with an official agent integration resume their session. Other panes come back as plain shells.
  5. Agents can drive herdr. A CLI and a local socket let an agent open panes, read another pane, send it a prompt, or wait until it is blocked. This part is more experimental. See the socket API docs.

herdr compared with the alternatives

herdr tmux Zellij Plain terminal tabs
Survives disconnect Yes Yes Yes No
Knows agent state Yes, built in No No No
Maturity New (2026), moves fast Very old, solid Mature n/a
Best for Several AI agents at once Anything, scripts General use One local window

Keep tmux for plain servers. Use herdr when several agents run at once.

Cautions

  1. Young project. Docs showed 0.9.5 as the latest version. Keys and options may shift between releases.
  2. License is unclear. The GitHub page says Apache-2.0. One search result said AGPL-3.0. Check the repo’s LICENSE file before you redistribute it.
  3. Agents with permissions act on your machine. herdr only runs them. It does not make them safe. If you open a herdr shell from a phone, put it behind a login and keep it off the open internet.
  4. Copy mode: while scrolling, Ctrl+b still means “prefix”, not “page up”. Use PageUp or Ctrl+u.
  5. Light on hardware: one small Rust binary, about 10 MB, no GPU. A small container runs it easily.

Sources