Goal
Create one Herdr workspace for a single project and build a four-pane layout on your Mac: left = commander, right = worker agents, lower right = logs.
Finished result (shown first)
Four panes in a single tab.
- Left: The commander agent (the instructor uses Hermes; learners can use any agent they have)
- Upper right: Worker agent 1 (the instructor uses Claude Code)
- Middle right: Worker agent 2
- Lower right: A read-only log pane (the instructor streams ComfyUI server logs; learners can use any log viewable with
tail -f)
In the instructor's actual screen (with personal information hidden; 2026-11-10 and later), two Claude Code agents were running in parallel, one finished (idle) and one working (working). The log pane showed model loading and progress bars scrolling by.
Why this shape (the instructor's standard)
- One project = one workspace. Herdr's official documentation also describes "one workspace per repository, task, or investigation." When the instructor measured, three workspaces were open (count only).
- Stack worker agents in split panes, not tabs, so they can be seen side by side on the same screen.
- The instructor's measurements come from one machine and one configuration. This is not a benchmark, nor the one "correct" answer.
Prerequisites
You can complete this lesson on its own. What you need:
- An Apple silicon Mac and one coding agent (Claude Code, OpenCode, Codex, etc.; install and sign in using each product's official instructions, e.g. https://code.claude.com/docs/en/overview (opens in a new tab)).
- Herdr. If it is not installed, run the official one-line installer (official: https://herdr.dev/docs/install/ (opens in a new tab)).
curl -fsSL https://herdr.dev/install.sh | sh herdr --version herdrIf
herdr --versionprints a version, Herdr is installed (in the instructor's environment:herdr 0.9.5). Runherdrto start it. - Herdr is a terminal workspace manager for AI coding agents (official). It runs inside Warpeer (a terminal app for Mac) or inside the Mac's standard "Terminal".
- Terminology: A pane is one section of a split screen. A workspace is a project's work area that groups several panes. "Press
Ctrl+B, thenv" means: pressCtrl+Band release it, then pressvonce.
Steps
1. Create a workspace
Inside Herdr, press
Ctrl+B→Shift+Nto create a new workspace. Rename it withCtrl+B→Shift+W(use the project name; don't let personal or client names appear in the recording). These key bindings were verified in the default configuration Herdr 0.9.5 outputs (herdr --default-config) on 2026-11-23.2. Start the commander in the left pane
In the first pane, start the agent you want to use as commander.
3. Stack the worker panes on the right (how to build four panes)
- In the left pane (commander), press
Ctrl+B→vto split to the right. - Move to the right pane (
Ctrl+B→l; you can also click with the mouse). - In the right pane, press
Ctrl+B→-(minus) to split downward, giving two panes on the right. - Move to the upper-right pane (
Ctrl+B→k) and pressCtrl+B→-again. The right side now has three panes: top, middle, and bottom. - Confirm the four panes: left, upper right, middle right, lower right. Which pane has focus immediately after a split has not yet been verified. Check the screen before the next action. Step 2 and step 4 above are harmless even if you are already in that pane.
You can also split with commands (arguments verified by the instructor on 2026-11-11).
herdr pane list herdr pane split --pane <PANE_ID> --direction right herdr pane split --pane <PANE_ID> --direction downherdr pane listshows the pane IDs.When splitting with commands, focus did not move by default (verified with Herdr 0.9.5 on 2026-11-23; the new pane shows
focused: false). Use--focusto move focus to the new pane, or--no-focusto keep it where it is (herdr pane split --help). Split direction is--direction rightordown; the ratio is--ratio.- In the left pane (commander), press
4. Move between panes
Use
Ctrl+B→hjklto move, andCtrl+B→zto zoom the pane you are looking at. If you get lost,Ctrl+B→?lists the active keys (they may vary by version). Default bindings in Herdr 0.9.5 (herdr --default-config, confirmed 2026-11-23):Ctrl+B→vvertical split (split_vertical),-horizontal split (split_horizontal),xclose pane,h/j/k/lmove left/down/up/right,zzoom,qdetach,?help,Shift+Nnew workspace,Shift+Wrename workspace,cnew tab. The prefix key (Ctrl+B) can be changed in the configuration. You can also use the mouse to click, drag pane borders, and open the right-click menu.Figure 2 Keys for splitting and moving between panes (excerpt). The assignments are the Herdr 0.9.5 defaults and may vary by version. 5. Start an agent in the upper-right worker pane
In that pane, start the agent you want to use (
claude,opencode, etc.).To add a second worker agent, move to the middle-right pane (
Ctrl+B→j) and start it the same way (optional; the layout works with just one).6. Put a log pane in the lower right (optional)
This is a read-only pane. The instructor streams ComfyUI's server log here. If you don't have a log, you can do the following for practice (a course example, not an instructor measurement).
touch ~/demo.log tail -f ~/demo.logRunning
echo "hello" >> ~/demo.login another pane adds one line in the lower-right pane. This is the "watchtower" spot; don't do work here.7. When you're done, close the panes
herdr pane close <PANE_ID>Close panes whose agents have finished to tidy up. Leave panes that are blocked open until you have read the cause.
In short
The commander watches the whole picture, the worker panes do the work, and the log pane shows what is happening. Agents started in a pane are visible on the same screen (in the instructor's environment, some things are deliberately run out of sight, such as scheduled jobs).
Copy-and-use prompt (initial instructions for the commander)
You are the commander. Work with the following screen layout.
- Left: you (commander)
- Right: the worker agent (split pane; do not use tabs)
- Lower right: a read-only log
Rules:
1. Hand the work to the agent on the right (how to hand it off with `herdr agent prompt` is covered in Lesson 03. Until then, paste the instruction into the right pane to hand it over). Do not rewrite large numbers of files yourself.
2. Before handing off, combine the purpose, the output destination, and what must not be touched into a single instruction.
3. When finished, reread the result and report what you confirmed and what you could not confirm separately.(The principles are generalized from the instructor's practice. Behavior on a real machine has not been verified.)
Checklist
Ticks only last while this page is open (they are not saved).
Common errors and how to fix them
| Symptom | Likely cause | Fix |
|---|---|---|
Text sent to a new pane has extra characters at the start, causing command not found | It was sent before the shell prompt appeared (encountered by the instructor on 2026-11-11) | Wait for the prompt in a new pane before sending. Clear the input line first |
| Pane-switching keys don't work | Wrong prefix, or version differences | Check the actual bindings with Ctrl+B → ? |
| You don't know the pane ID | - | herdr pane list |
Verified versions and dates
Herdr 0.9.5, Warpeer 0.1.3 (2026-11-10 to 2026-11-11). Key operations were checked against the 0.9.5 official documentation and the default configuration output by the instructor's Mac on 2026-11-23 (herdr --default-config), not by pressing each key one by one. Splitting and focus behavior with commands were verified on 2026-11-23 in a disposable workspace. The pane-splitting commands were verified by the instructor on 2026-11-11.
Downloadable materials (planned, not yet created)
| File | Contents |
|---|---|
| 02-layout-cheatsheet.pdf | A diagram of the four-pane layout and the key list (only the keys above; one page) |
| 02-commander-prompt.txt | The commander prompt above |
| 02-pane-commands.md | Usage examples for herdr pane list / split / close |
Changelog
- (Not yet published. Record the verified versions and dates here after recording.)